/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo .subtitle {
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.9;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-links a:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: all 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0 L1200,0 L1200,60 Q600,120 0,60 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-slogan {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    opacity: 0.95;
    letter-spacing: 0.5px;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: #1a237e;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    background-color: #f0f0f0;
}

/* About Section */
.about {
    padding: 5rem 2rem;
    background-color: white;
}

.about h2 {
    font-size: 2.5rem;
    color: #1a237e;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 3px solid #c62828;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.about .container {
    text-align: center;
}

.about .container > h2 {
    width: 100%;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.profile-section {
    flex-shrink: 0;
}

.profile-photo {
    width: 280px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    border: 5px solid #1a237e;
}

.about-text {
    text-align: left;
    flex: 1;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text .intro {
    font-size: 1.3rem;
    font-weight: 500;
    color: #1a237e;
}

.quote-box {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
    padding: 2rem;
    border-left: 5px solid #c62828;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 5px;
}

.quote-box p {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.quote-box span {
    display: block;
    text-align: right;
    font-size: 1rem;
    opacity: 0.9;
}

/* Practice Areas */
.practice-areas {
    padding: 5rem 2rem;
    background-color: #f8f9fa;
}

.practice-areas h2 {
    font-size: 2.5rem;
    color: #1a237e;
    margin-bottom: 3rem;
    text-align: center;
    border-bottom: 3px solid #c62828;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.practice-areas .container {
    text-align: center;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.practice-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border-top: 4px solid #1a237e;
}

.practice-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border-top-color: #c62828;
}

.practice-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.practice-card h3 {
    color: #1a237e;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.practice-card p {
    color: #5a6c7d;
    line-height: 1.6;
}

/* Credentials */
.credentials {
    padding: 5rem 2rem;
    background-color: white;
}

.credentials h2 {
    font-size: 2.5rem;
    color: #1a237e;
    margin-bottom: 3rem;
    text-align: center;
    border-bottom: 3px solid #c62828;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.credentials .container {
    text-align: center;
}

.credentials-content {
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.credential-item {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    border-left: 5px solid #1a237e;
    text-align: left;
}

.credential-icon {
    font-size: 3rem;
    margin-right: 2rem;
}

.credential-details h3 {
    color: #1a237e;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.credential-details .institution {
    font-weight: 500;
    color: #5a6c7d;
    margin-bottom: 0.3rem;
}

.credential-details .years,
.credential-details .location {
    color: #7a8c9d;
    font-style: italic;
}

.fun-fact {
    background: linear-gradient(135deg, #ffeb3b 0%, #fdd835 100%);
    padding: 2rem;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.fun-fact h3 {
    color: #c62828;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.fun-fact p {
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    border-bottom: 3px solid #ffeb3b;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.contact .container {
    text-align: center;
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffeb3b;
}

.contact-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.contact-details {
    background-color: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-label {
    min-width: 120px;
    font-weight: 600;
    color: #ffeb3b;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #ffeb3b;
}

.partners {
    background-color: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.partners h3 {
    color: #ffeb3b;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.partners p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Footer */
footer {
    background-color: #0d1117;
    color: white;
    padding: 2rem;
    text-align: center;
}

footer .container {
    position: relative;
}

footer p {
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: italic;
}

/* Easter Egg */
.easter-egg-trigger {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s;
    position: relative;
}

.easter-egg-trigger:hover {
    color: #ffeb3b;
    text-decoration: underline;
}

.easter-egg-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 20000;
    justify-content: center;
    align-items: center;
}

.easter-egg-modal.show {
    display: flex;
}

.easter-egg-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.easter-egg-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
}

.easter-egg-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    line-height: 1;
}

.easter-egg-close:hover {
    color: #ffeb3b;
}

/* Chatbot Popup */
.chatbot-popup {
    position: fixed;
    bottom: -400px;
    right: 20px;
    width: 320px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    z-index: 10000;
    transition: bottom 0.5s ease-out;
    cursor: pointer;
}

.chatbot-popup.show {
    bottom: 20px;
}

.chatbot-header {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    padding: 15px;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.chatbot-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid white;
    background: white;
    object-fit: cover;
}

.chatbot-info {
    flex: 1;
    color: white;
}

.chatbot-info strong {
    display: block;
    font-size: 16px;
}

.online-status {
    font-size: 12px;
    color: #4caf50;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
}

.chatbot-close:hover {
    color: #ffeb3b;
}

.chatbot-body {
    padding: 20px;
}

.chatbot-message {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 10px;
    animation: pulse 2s infinite;
}

.chatbot-message p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Virus Popups */
.virus-popup {
    position: fixed;
    width: 300px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    border: 3px solid #ffeb3b;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    z-index: 9999;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
    transition: all 0.3s;
    animation: shake 0.5s infinite;
}

.virus-popup.show {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.virus-header {
    background: #ffeb3b;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 7px 7px 0 0;
    font-weight: bold;
    color: #cc0000;
}

.virus-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #cc0000;
    padding: 0;
    width: 25px;
    height: 25px;
}

.virus-body {
    padding: 15px;
    color: white;
    text-align: center;
}

.virus-body p {
    margin: 0 0 15px 0;
    font-weight: bold;
    font-size: 16px;
}

.virus-button {
    background: #ffeb3b;
    color: #cc0000;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    animation: blink 1s infinite;
}

.virus-button:hover {
    background: white;
}

@keyframes shake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-5px) rotate(-2deg); }
    75% { transform: translateX(5px) rotate(2deg); }
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        position: relative;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
        flex-direction: column;
        padding: 5rem 2rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        text-align: left;
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-slogan {
        font-size: 1.1rem;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .profile-photo {
        width: 220px;
        margin-bottom: 2rem;
    }

    .practice-grid {
        grid-template-columns: 1fr;
    }

    .credential-item {
        flex-direction: column;
        text-align: center;
    }

    .credential-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-label {
        margin-bottom: 0.5rem;
    }
}
