:root {
    --bg-color: #ffffff;
    --card-bg: #f4f6f8;
    --primary-color: #003366; /* Deep Corporate Blue */
    --secondary-color: #8B0000; /* Dark Red - subtle accent */
    --text-color: #333333;
    --text-muted: #666666;
    --accent-color: #c5a059; /* Gold/Bronze for prestige */
    --font-sans: 'Noto Sans SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-serif: 'Noto Serif SC', 'Times New Roman', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessibility Utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 30px;
    transition: 0.3s;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: 0.3s;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.menu-btn {
    display: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 12px;
    margin-left: 20px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 600;
    border-radius: 2px;
    transition: 0.3s;
    font-size: 0.9rem;
}

.lang-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Sections */
.section {
    padding: 80px 10%;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 50px;
    text-align: center;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 120px 10% 80px;
    background: linear-gradient(135deg, #f0f4f8 0%, #ffffff 100%);
    position: relative;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.hero-content {
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.greeting {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 30px;
    font-weight: 400;
}

.highlight {
    color: var(--secondary-color);
    font-weight: 700;
}

.description {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 100%; /* Reset max-width restriction */
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    font-family: var(--font-sans);
    letter-spacing: 1px;
}

.primary-btn {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #fff;
}

.primary-btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
}

.secondary-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr; /* Full width text for professional bio */
    gap: 40px;
}

.about-text {
    text-align: justify;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-serif);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}

.skill-tag {
    padding: 8px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: 0.3s;
}

.skill-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f0f4f8;
}

/* Projects/Case Studies Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    border-bottom: 3px solid transparent;
}

.project-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--secondary-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-image {
    height: 220px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
}

/* Professional Abstract Backgrounds */
.project-bg-1 { background: linear-gradient(135deg, #2c3e50, #4ca1af); }
.project-bg-2 { background: linear-gradient(135deg, #141e30, #243b55); }
.project-bg-3 { background: linear-gradient(135deg, #4b6cb7, #182848); }


.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.tech-stack span {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: #f4f4f4;
    padding: 4px 10px;
    border-radius: 2px;
}

/* Contact Section */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 2px;
    color: var(--text-color);
    font-family: var(--font-sans);
    outline: none;
    transition: 0.3s;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    background: #fff;
}

.social-links {
    margin-top: 30px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid #ddd;
}

.social-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background: var(--primary-color);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

footer i {
    color: var(--secondary-color);
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .navbar {
        padding: 15px 20px;
    }

    .hero-container {
        padding-top: 20px;
    }

    .description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px; /* Below navbar */
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        transition: 0.3s;
        border-top: 1px solid #eee;
    }

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

    .nav-links a {
        margin: 15px 0;
        font-size: 1.2rem;
        color: var(--primary-color);
    }

    .hero-section {
        padding-top: 100px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        padding: 30px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}