:root {
    --primary: #00adad;
    --primary-light: #00c2c2;
    --background: #0a0a0a;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-hover: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-secondary: #a0a0a0;
    --border: rgba(255, 255, 255, 0.1);
    --nav-blur: rgba(10, 10, 10, 0.8);

    /* Add nav height variable so anchors and layout can account for the fixed header */
    --nav-height: 72px;
}

/* make browser scrollIntoView and anchor jumps account for fixed header */
html {
    scroll-behavior: smooth;
}

/* Ensure sections used as anchor targets are offset below the fixed nav */
section {
    margin: 0;
    padding: 6rem 0;
    position: relative;
}

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

body {
    font-family: 'Cascadia Code', monospace;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    font-size: 0.95rem;
    font-weight: 400;
}

section {
    margin: 0;
    padding: 6rem 0;
    position: relative;
}

section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1200px;
    height: 1px;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0)
    );
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
}

h2 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    background-color: var(--nav-blur);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

nav::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1200px;
    height: 1px;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0)
    );
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 40px;
}

.logo {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    transition: all 0.3s ease;
    position: relative;
    width: 150px;
    height: 100%;
    display: flex;
    align-items: center;
}

.logo-short {
    position: absolute;
    left: 0;
    opacity: 1;
    transition: all 0.3s ease;
}

.logo-full {
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-scrolled .logo-short {
    opacity: 0;
}

.nav-scrolled .logo-full {
    opacity: 1;
    transform: translateX(0);
}

.nav-links a.active {
    color: var(--text);
    font-weight: 500;
}

.nav-links a.active::after {
    background-color: var(--primary);
    width: 100%;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover {
    color: var(--text);
}

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

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

.nav-links a.active {
    color: var(--text);
}

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

/* Hero Section */
.hero {
    /* use min-height so header space is reserved and vertical centering still works */
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    /* small top padding so content doesn't butt too close to nav on tall screens */
    padding-top: 80px;
}

.hero-content {
    max-width: 1100px;
    width: 100%;
}

.hero-grid {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    justify-content: space-between;
}

/* ensure hero-main scales */
.hero-main {
    flex: 1 1 60%;
    min-width: 280px;
}

/* photo container & image */
.hero-photo-wrap {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;    /* ...existing code... */
    
    /* Hero layout tweaks to keep profile photo responsive and prevent it from covering content */
    .hero-grid {
        display: flex;
        gap: 2.5rem;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap; /* allow stacking when space is constrained */
    }
    
    /* ensure hero-main stays above the photo and doesn't get visually hidden */
    .hero-main {
        flex: 1 1 60%;
        min-width: 280px;
        z-index: 1;
    }
    
    /* photo container & image: use clamp + aspect-ratio so image never balloons */
    .hero-photo-wrap {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 260px; /* hard cap for very large screens */
    }
    
    .hero-photo {
        width: clamp(120px, 18vw, 220px); /* responsive but bounded */
        aspect-ratio: 1 / 1;                /* keep perfect circle without forcing exact height */
        height: auto;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid rgba(255,255,255,0.06);
        box-shadow: 0 10px 30px rgba(0, 173, 173, 0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: block;
        max-width: 100%;
    }
    
    .hero-photo:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 40px rgba(0, 173, 173, 0.12);
    }
    
    /* On very small screens hide the photo if space is too tight (optional) */
    @media (max-width: 420px) {
        .hero-photo-wrap {
            display: none;
        }      
        .hero-main {
            text-align: left;
            margin-bottom: 3rem;
            margin-top: clamp(12px, 6vh, 48px); /* added: extra gap above the "Hi" heading */
        }
    }
    
    /* ...existing code... */
}

.hero-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.06);
    box-shadow: 0 10px 30px rgba(0, 173, 173, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-photo:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 173, 173, 0.12);
}

/* mobile: stack and center photo */
@media (max-width: 768px) {
    .hero-grid {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        text-align: center;
    }

    .hero-main {
        width: 100%;
    }

    .hero-photo {
        width: 160px;
        height: 160px;
    }
}

.hero-main {
    text-align: left;
    margin-bottom: 3rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: -1px;
}

.highlight {
    color: var(--primary);
}

/* Muted / greyed text for subtle annotations */
.muted {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

.type-wrap {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-bio {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.8;
}

.resume-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: var(--primary);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    font-size: 0.9rem;
}

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

.hero-photo-wrap {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--text);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat-logo {
    width: 140px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.languages {
    margin-top: 2rem;
}



/* About Section */
.about {
    padding: 6rem 2rem;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.skills {
    margin-top: 2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.skill-tag {
    background-color: transparent;
    color: var(--text);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid var(--primary);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background-color: rgba(0, 173, 173, 0.1);
    transform: translateY(-2px);
}

/* Codeynamics Section */
.codeynamics {
    padding: 6rem 2rem;
    text-align: center;
}

.codeynamics-header-logo {
    width: 400px;
    height: 142px;
    object-fit: contain;
    margin-bottom: 3rem;
}

.codeynamics-content {
    max-width: 800px;
    margin: 0 auto;
}

.codeynamics-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.platform-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.platform-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 300px;
}

.platform-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.platform-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.platform-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.platform-info h3 {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 500;
}

.platform-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Projects Section */
.projects {
    padding: 6rem 2rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.project-card:hover {
    transform: translateY(-5px) scale(1.02);
    background-color: var(--surface-hover);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -15px rgba(0, 173, 173, 0.2);
}

.project-card h3 {
    color: var(--text);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.project-card p {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.project-card:hover h3 {
    color: var(--primary);
}

.project-card:hover p {
    color: var(--text);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: var(--background);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: var(--primary-light);
}

/* Contact Section */
.contact {
    padding: 8rem 2rem 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 4rem;
}

.contact-content {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.contact-section {
    margin-bottom: 3rem;
    width: 100%;
}

.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-section-title {
    color: var(--text);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.contact-row {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.contact-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-logo {
    transform: scale(1.1);
}

.contact-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background-color: var(--surface-hover);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
}

.contact-card.secondary {
    background-color: transparent;
    border-color: var(--text-secondary);
}

.contact-card.secondary .contact-icon {
    background-color: var(--text-secondary);
}

.contact-card.secondary:hover {
    border-color: var(--text);
    background-color: var(--surface);
}

.contact-card.secondary:hover .contact-icon {
    background-color: var(--primary);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 1.5rem;
    border-radius: 12px;
    background-color: var(--surface-hover);
    border: 1px solid var(--border);
    flex: 1;
}

.contact-link i {
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.contact-link div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-link span {
    font-weight: 500;
}

.contact-link small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.contact-link:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    background-color: var(--surface-hover);
}

.contact-link:hover i {
    transform: scale(1.1);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* Experience Section */
.experience {
    padding-top: 8rem;
}
.timeline {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.experience-card {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.experience-card:hover {
    transform: translateX(10px);
    background-color: var(--surface-hover);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -15px rgba(0, 173, 173, 0.2);
}

.experience-card:hover ul li {
    color: var(--text);
}

.experience-card h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.experience-card ul li {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.experience-card:hover h3 {
    color: var(--primary);
}

.experience-card h4 {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.duration {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.exp-skills {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Achievements Section */
.achievements {
    padding-top: 8rem;
}
.achievements-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 0 2rem;
}

.patents, .certifications {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 8px;
}

.patents h3, .certifications h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.patents ul, .certifications ul {
    list-style: none;
}

.patents li, .certifications li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.patents li:before, .certifications li:before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.achievement-tag {
    display: inline-block;
    background-color: var(--primary);
    color: var(--background);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Contact Section Updates */
.contact-left, .contact-right {
    flex: 1;
    background-color: var(--surface-hover);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 2rem;
    transition: all 0.3s ease;
}

.contact-info {
    text-align: left;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info p i {
    color: var(--primary);
    font-size: 1.2rem;
}

.languages {
    text-align: center;
}

.languages h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.languages h3 {
    margin-bottom: 2rem;
    color: var(--primary);
}

.language-tags {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.language-tag {
    background-color: var(--surface);
    border: 1px solid var(--primary);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.language-tag:hover {
    transform: translateY(-2px);
    background-color: var(--surface-hover);
}

.language-tag span:first-child {
    color: var(--text);
    font-weight: 500;
}

.language-tag span:last-child {
    color: var(--primary);
    font-size: 0.9rem;
}

/* Areas of Interest */
.areas {
    margin: 2rem 0;
}

.areas h3, .skills h3 {
    color: var(--text);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

/* Skills Group */
.skills-group {
    margin-top: 1rem;
}

.skills-group h4 {
    color: var(--primary);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    .menu-toggle {
        display: flex;
    }

    .nav-content {
        padding: 1rem 2rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background-color: var(--background);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        padding: 2rem;
        z-index: 999;
    }

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

    /* Hero Section */
    .hero {
        min-height: 100vh;
        padding-top: 80px;
        padding: 80px 1rem 2rem 1rem;
    }

    .hero-main {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        margin-top: 2rem;
    }

    .type-wrap {
        font-size: 1rem;
    }

    .hero-bio {
        text-align: center;
        margin: 0 auto;
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
        margin-top: 2rem;
        padding: 1rem;
    }

    /* About Section */
    section {
        padding: 4rem 1rem;
    }

    .about {
        margin-top: 2rem;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .about-content {
        padding: 0 1rem;
    }

    .area-tags, .skill-tags {
        justify-content: center;
    }

    .skills-group h4 {
        text-align: center;
        margin-top: 2rem;
    }

    /* Platform Cards */
    .codeynamics-header-logo {
        width: 80%;
        height: auto;
        max-width: 300px;
    }

    .platform-cards {
        flex-direction: column;
        align-items: center;
    }

    .platform-card {
        width: 100%;
        max-width: 300px;
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    /* Projects & Experience */
    .project-grid, .timeline {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .experience-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .exp-skills {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Achievements */
    .achievements-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .patents, .certifications {
        padding: 1.5rem;
    }

    /* Contact */
    .contact {
        padding: 4rem 1rem;
    }

    .contact-row {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .contact-card {
        width: 100%;
        max-width: 300px;
    }

    .contact-section-title {
        font-size: 1.2rem;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Hero Section */
    .hero {
        padding-top: 100px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-bio {
        margin: 0 auto;
    }

    .hero-stats {
        gap: 2rem;
        justify-content: center;
    }

    /* About Section */
    .about-content {
        padding: 0 2rem;
    }

    /* Platform Cards */
    .platform-cards {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .platform-card {
        width: calc(50% - 1.5rem);
        min-width: 280px;
    }

    /* Projects & Experience */
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 2rem;
    }

    .timeline {
        padding: 0 2rem;
    }

    /* Contact */
    .contact-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .contact-card {
        width: calc(50% - 1.5rem);
        min-width: 200px;
    }
}

/* Additional fixes for larger phones and small tablets */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-item {
        width: calc(50% - 2rem);
    }

    .platform-card {
        flex-direction: row;
        text-align: left;
    }
}

/* Awards Section */
.awards-section {
    margin-top: 3rem;
    padding: 0 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.awards-section h3 {
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.award-card {
    background-color: var(--surface);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.award-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background-color: var(--surface-hover);
}

.award-card h4 {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.award-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
}

.award-position {
    color: var(--primary);
    font-weight: 500;
}

.award-date {
    font-size: 0.9rem;
}

/* Responsive styles for awards section */
@media (max-width: 768px) {
    .awards-section {
        padding: 0 1rem;
    }
    
    .awards-grid {
        grid-template-columns: 1fr;
    }
    
    .award-card {
        padding: 1.2rem;
    }
    
    .award-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Pre6 specific link styling */
a[href="https://pre6.ai"] {
    color: #ef4444 !important;
}

a[href="https://pre6.ai"]:hover {
    color: #dc2626 !important;
}