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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    /* Fluid base font size that scales with viewport */
    font-size: clamp(14px, 1vw + 0.5rem, 18px);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: clamp(0.75rem, 2vw, 1.25rem) 0;
}

.nav-container {
    /* Responsive max-width for different screen sizes */
    max-width: min(90%, 1600px);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #0066cc;
}

.nav-links {
    display: flex;
    gap: clamp(1rem, 3vw, 2.5rem);
}

.nav-links a {
    color: #666;
    text-decoration: none;
    font-size: clamp(0.85rem, 1vw, 1rem);
    transition: color 0.3s ease;
    font-weight: 400;
}

.nav-links a:hover {
    color: #1a1a1a;
}

/* Main Content */
main {
    margin-top: clamp(60px, 8vh, 100px);
}

/* Hero + About Combined Section */
.hero-about-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: clamp(2rem, 5vh, 4rem) 0;
    position: relative;
    min-height: calc(100vh - clamp(60px, 8vh, 100px));
    display: flex;
    align-items: center;
}

.hero-about-container {
    max-width: min(90%, 1800px);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: minmax(300px, 450px) minmax(400px, 1fr);
    gap: clamp(2rem, 5vw, 6rem);
    align-items: start;
}

/* Left Column - Hero */
.hero-left {
    position: sticky;
    top: clamp(80px, 10vh, 120px);
}

.hero-content {
    text-align: center;
    margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
}

.profile-badge {
    margin-bottom: clamp(1rem, 2vh, 1.5rem);
    display: inline-block;
}

.profile-image {
    width: clamp(120px, 15vw, 180px);
    height: clamp(120px, 15vw, 180px);
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: #666;
    margin-bottom: clamp(0.75rem, 1.5vh, 1.25rem);
    font-weight: 400;
}

.hero-tagline {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    color: #444;
    line-height: 1.6;
    margin: 0 auto;
}

/* Company Logos */
.company-logos {
    background: white;
    border-radius: 12px;
    padding: clamp(1rem, 2vh, 1.5rem);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.company-logos h3 {
    text-align: center;
    font-size: clamp(0.6rem, 1vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #999;
    margin-bottom: clamp(0.5rem, 1vh, 1rem);
    font-weight: 500;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(0.3rem, 1vw, 0.75rem);
    align-items: center;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.3rem, 1vw, 0.6rem);
    transition: transform 0.3s ease;
}

.logo-item:hover {
    transform: translateY(-4px);
}

.logo-item img {
    max-width: 100%;
    max-height: clamp(100px, 12vh, 160px);
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Right Column - About */
.about-right {
    background: white;
    border-radius: 12px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    max-height: calc(100vh - clamp(140px, 15vh, 200px));
    overflow-y: auto;
}

.about-title {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 500;
    margin-bottom: clamp(1rem, 2vh, 2rem);
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.about-content {
    max-width: 100%;
}

/* Section Styles */
.section-container {
    max-width: min(90%, 1600px);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 500;
    margin-bottom: clamp(2rem, 4vh, 3.5rem);
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.about-text {
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    line-height: 1.7;
    color: #444;
    margin-bottom: clamp(1rem, 2vh, 1.5rem);
}

.about-text.highlight {
    color: #1a1a1a;
    font-weight: 500;
}

/* Work Section */
.work-section {
    padding: clamp(4rem, 8vh, 8rem) 0;
    background: #fafafa;
}

/* Featured Project */
.featured-project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    background: white;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: clamp(3rem, 6vh, 5rem);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-project:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.featured-image {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
    min-height: 350px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-project:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding: clamp(2rem, 4vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-meta-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-title {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    font-weight: 500;
    margin-bottom: clamp(0.5rem, 1vh, 1rem);
    color: #1a1a1a;
}

.project-description {
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    line-height: 1.7;
    color: #444;
    margin-bottom: clamp(1rem, 2vh, 2rem);
}

.project-skills {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.4rem, 1vw, 0.75rem);
}

.skill-tag {
    padding: clamp(0.35rem, 0.8vw, 0.5rem) clamp(0.75rem, 1.5vw, 1rem);
    background: #f8f9fa;
    border-radius: 20px;
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    color: #666;
}

/* Projects Grid - Responsive columns */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: clamp(2rem, 4vh, 4rem);
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.project-image {
    width: 100%;
    height: clamp(200px, 25vh, 280px);
    overflow: hidden;
    background: #f0f0f0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: clamp(1.25rem, 2.5vw, 2rem);
}

.project-name {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #1a1a1a;
}

.project-org {
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    color: #999;
    margin-bottom: clamp(0.75rem, 1.5vh, 1.25rem);
}

.project-brief {
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
    line-height: 1.6;
    color: #666;
    margin-bottom: clamp(0.75rem, 1.5vh, 1.25rem);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.4rem, 1vw, 0.6rem);
}

.tag-sm {
    padding: clamp(0.25rem, 0.5vw, 0.35rem) clamp(0.5rem, 1vw, 0.75rem);
    background: #f0f0f0;
    border-radius: 4px;
    font-size: clamp(0.6rem, 0.9vw, 0.7rem);
    color: #666;
}

/* Contact Section */
.contact-section {
    padding: clamp(4rem, 8vh, 8rem) 0;
    background: white;
    text-align: center;
}

.contact-email {
    display: inline-block;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 400;
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: #004499;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: clamp(1.5rem, 3vh, 2.5rem) 0;
    text-align: center;
}

.footer-container {
    max-width: min(90%, 1600px);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
}

.footer p {
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    color: rgba(255, 255, 255, 0.7);
}

/* Large Screen Breakpoints */

/* Extra Large Screens (1440px and up - Common laptop/desktop) */
@media (min-width: 1440px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1400px;
        margin: 0 auto clamp(2rem, 4vh, 4rem);
    }

    .hero-about-container {
        grid-template-columns: 450px minmax(600px, 1fr);
    }
}

/* Ultra Wide Screens (1920px and up - Large monitors) */
@media (min-width: 1920px) {
    .nav-container,
    .section-container,
    .footer-container {
        max-width: 1800px;
    }

    .hero-about-container {
        max-width: 1800px;
        grid-template-columns: 500px minmax(800px, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1600px;
    }

    body {
        font-size: 18px;
    }
}

/* 4K Screens (2560px and up) */
@media (min-width: 2560px) {
    .nav-container,
    .section-container,
    .footer-container {
        max-width: 2200px;
    }

    .hero-about-container {
        max-width: 2200px;
        grid-template-columns: 600px minmax(1000px, 1fr);
    }

    .projects-grid {
        max-width: 2000px;
    }

    body {
        font-size: 20px;
    }
}

/* Tablet and Medium Screen Breakpoints */
@media (max-width: 1200px) {
    .hero-about-container {
        grid-template-columns: 360px minmax(300px, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero-about-section {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-left {
        position: static;
    }

    .about-right {
        max-height: none;
    }

    .logos-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .featured-project {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Breakpoints */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .featured-image {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 0.75rem;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

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

    .profile-image {
        width: 100px;
        height: 100px;
    }

    body {
        font-size: 14px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer {
        display: none;
    }

    main {
        margin-top: 0;
    }

    .hero-about-section {
        min-height: auto;
    }
}