:root {
    --primary-color: #114b5f; /* Dark Teal */
    --secondary-color: #4f7c8a; /* Medium Teal */
    --text-color: #1a535c; /* Darker text color */
    --text-light: #639b94; /* Lighter text color */
    --background-color: #ffffff;
    --section-bg: #e8f5e9; /* Light Green background */
    --transition: all 0.3s ease;
}

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

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: #64bfe3;
    background: linear-gradient(-45deg, rgba(100, 191, 227, 0.6), rgba(162, 222, 187, 0.6), rgba(244, 245, 228, 0.6), rgba(224, 247, 250, 0.6));
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    min-height: 100vh;
    position: relative;
}

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

/* Section Navigation */
.section-nav {
    display: none; /* Hide by default */
    position: fixed;
    top: 1.2rem;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    flex-direction: row;
    gap: 1.5rem;
    z-index: 200;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-nav.open {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) scale(1);
}

.section-nav a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.4rem 1rem;
    opacity: 0.85;
    font-weight: 500;
    border-radius: 1.5rem;
    color: #114b5f;
}

.section-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--primary-color);
    font-weight: 700;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.section-nav i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

/* Desktop menu */
@media (min-width: 769px) {
    .section-nav {
        display: flex;
        opacity: 1;
        pointer-events: auto;
    }

    .hamburger-btn {
        display: none !important;
    }
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex !important;
        position: fixed;
        top: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
        z-index: 1001;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-radius: 50%;
        cursor: pointer;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        transition: all 0.3s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .hamburger-btn .bar {
        display: block;
        width: 26px;
        height: 3px;
        background: var(--primary-color);
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .hamburger-btn.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .section-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        border-radius: 0 0 1.5rem 1.5rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        z-index: 1000;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .section-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .section-nav a {
        font-size: 1.1rem;
        padding: 1rem;
        width: 100%;
        text-align: left;
        display: block;
        -webkit-tap-highlight-color: transparent;
    }

    .section-nav a:active {
        background-color: rgba(0, 0, 0, 0.05);
    }

    /* Keep other mobile styles */
    .hero h1, .hero-subtitle {
        font-size: 3rem;
        margin-left: 0;
        text-align: center;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
        max-width: 100%;
    }

    .section {
        padding: 3rem 1rem;
    }

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

    .timeline-content {
        padding: 1rem;
        margin: 0 0.5rem;
    }

    .timeline-item::before {
        left: -0.5rem;
    }

    .project-card {
        width: 100%;
        margin: 0 auto 2rem;
    }

    .project-image img {
        height: 200px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .connect-title {
        font-size: 2.5rem;
        padding-right: 0;
        padding-bottom: 2rem;
        text-align: center;
    }

    .contact-right {
        padding-bottom: 2rem;
    }

    .contact-label {
        font-size: 1.2rem;
    }

    .contact-right a {
        font-size: 1.1rem;
        margin-right: 1rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-links a {
        font-size: 1.5rem;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 1200px;
    padding: 2rem;
    color: #1a535c;
    position: relative;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
}

.hero h1 {
    font-size: 8rem;
    font-weight: 700;
    margin-bottom: 0;
    color: #114b5f;
    line-height: 1.1em;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.2s forwards;
    text-align: center;
}

.hero-subtitle {
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0rem 0 0rem;
    margin-left: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25em;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.4s forwards;
    line-height: 1;
}

.hero-subtitle .static-a {
    position: relative;
    z-index: 1;
    transition: none;
    transform: none !important;
}

.hero-description {
    font-size: 1.4rem;
    color: #4f7c8a;
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
    line-height: 1.5;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
    margin-top: 1rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 2rem;
    transition: var(--transition);
    margin-top: -1.75rem;
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Sections */
.section {
    padding: 6rem 0;
    background-color: transparent;
    width: 100%;
    position: relative;
    z-index: 1;
}

.section h2 {
    font-size: 2.8rem;
    margin-bottom: 3.5rem;
    text-align: center;
    color: var(--primary-color);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.8rem;
    color: var(--text-light);
}

/* Experience Section */
.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    position: relative;
    padding-left: 0rem;
    margin-bottom: 2.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 0;
    width: 3px; /* Slightly thicker line */
    background-color: var(--secondary-color);
    transition: height 1s ease-in-out;
}

.timeline-content:hover .timeline-item::before {
    height: 100%;
}

.timeline-date {
    font-weight: 700; /* Bolder date */
    color: var(--secondary-color);
    margin-bottom: 0.2rem;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.timeline-content h4 {
    color: var(--text-light);
    margin-bottom: 0.8rem;
}

.job-description {
    display: none;
    opacity: 0;
    transform: translateY(-15px); /* Slightly less movement */
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    line-height: 1.8; /* Improved readability */
    margin-top: -0.5rem; /* Pull the description up closer to the location */
}

.timeline-content:hover .job-description {
    display: block;
    opacity: 1;
    transform: translateY(0px);
    animation: fadeIn 0.6s ease-in-out; /* Adjusted animation duration */
}

.timeline-content:not(:hover) .job-description {
     opacity: 0;
     transform: translateY(-15px); /* Consistent with hover state */
     transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-content {
    background-color: transparent;
    padding: 1.5rem;
    padding-bottom: 0.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    width: 50%;
    margin: 0 auto;
    background: var(--background-color);
    border-radius: 12px; /* Slightly more rounded corners */
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); /* Softer shadow */
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px); /* More pronounced lift */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.project-image img {
    width: 100%;
    height: 300px; /* Slightly reduced height for consistency */
    object-fit: cover; /* Cover to avoid distortion, adjust if needed */
}

.project-image img:hover {
    transform: scale(1.05); /* Slightly less zoom */
    transition: transform 0.4s ease;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

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

.project-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: background 0.2s, color 0.2s, font-weight 0.2s, border-radius 0.2s, box-shadow 0.2s, transform 0.2s;
    padding: 0.3em 1em;
    border-radius: 1.2rem;
    display: inline-block;
}

.project-links a:hover {
    background: var(--section-bg);
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transform: scale(1.07);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Keep layout */
    gap: 5rem; /* Increased gap */
    max-width: 1000px;
    margin: 0 auto;
    align-items: start; /* Align items to the top */
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Increased gap */
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.6rem; /* Slightly larger icon */
    color: var(--secondary-color);
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.05rem;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

/* Footer */
.footer {
    background: linear-gradient(-45deg, rgba(100, 191, 227, 0.6), rgba(162, 222, 187, 0.6), rgba(244, 245, 228, 0.6), rgba(224, 247, 250, 0.6));
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    color: #114b5f;
    padding: 2.5rem 0;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 0;
}

.intro-text {
    display: none;
}

@media (max-width: 768px) {
    .hero h1, .hero-subtitle {
        font-size: 3rem;
        margin-left: 0;
        text-align: center;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
        max-width: 100%;
    }

    .section {
        padding: 3rem 1rem;
    }

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

    .timeline-content {
        padding: 1rem;
        margin: 0 0.5rem;
    }

    .timeline-item::before {
        left: -0.5rem;
    }

    .project-card {
        width: 100%;
        margin: 0 auto 2rem;
    }

    .project-image img {
        height: 200px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .connect-title {
        font-size: 2.5rem;
        padding-right: 0;
        padding-bottom: 2rem;
        text-align: center;
    }

    .contact-right {
        padding-bottom: 2rem;
    }

    .contact-label {
        font-size: 1.2rem;
    }

    .contact-right a {
        font-size: 1.1rem;
        margin-right: 1rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-links a {
        font-size: 1.5rem;
    }

    .section-nav {
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0 0 1.5rem 1.5rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }

    .section-nav a {
        font-size: 1rem;
        padding: 0.8rem 1rem;
        width: 100%;
        text-align: left;
    }

    .section-nav i {
        font-size: 1.1rem;
        margin-right: 0.8rem;
    }

    .hamburger-btn {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    .hamburger-btn .bar {
        width: 22px;
        height: 2px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero h1, .hero-subtitle {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .section-nav a {
        font-size: 0.9rem;
        padding: 0.7rem 0.8rem;
    }

    .section-nav i {
        font-size: 1rem;
        margin-right: 0.6rem;
    }

    .project-card {
        margin-bottom: 1.5rem;
    }

    .project-image img {
        height: 180px;
    }

    .connect-title {
        font-size: 2rem;
    }

    .contact-label {
        font-size: 1.1rem;
    }

    .contact-right a {
        font-size: 1rem;
    }

    .social-links a {
        font-size: 1.3rem;
    }
}

/* Fix for very small screens */
@media (max-width: 360px) {
    .hero h1, .hero-subtitle {
        font-size: 2rem;
    }

    .section-nav a {
        font-size: 0.85rem;
        padding: 0.6rem 0.7rem;
    }

    .hamburger-btn {
        width: 36px;
        height: 36px;
        top: 0.8rem;
        right: 0.8rem;
    }

    .hamburger-btn .bar {
        width: 20px;
    }
}

/* Fix for landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 4rem 0;
    }

    .section-nav {
        top: 0.5rem;
    }

    .hamburger-btn {
        top: 0.5rem;
    }

    .hero h1, .hero-subtitle {
        font-size: 2.5rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spinner {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 620px;
    max-width: 450px;
    height: 7rem;
    overflow: hidden;
    vertical-align: middle;
    justify-content: flex-start;
    margin-left: 2rem;
    z-index: 4;
}

.spinner__text {
    color: #114b5f;
    font-size: 8rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    width: 100%;
    height: 100%;
    line-height: 7rem;
    text-align: left;
    z-index: 5;
}

.spinner__text--top,
.spinner__text--bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-weight: 700;
    color: #114b5f;
    line-height: 1;
    font-size: 8rem;
    z-index: 6;
}

.spinner__text--top {
    animation: spinTop 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.spinner__text--bottom {
    opacity: 0;
    animation: spinBottom 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spinTop {
    0%, 45% {
        transform: translateY(0);
        opacity: 1;
    }
    50%, 95% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@keyframes spinBottom {
    0%, 45% {
        transform: translateY(100%);
        opacity: 0;
    }
    50%, 95% {
        transform: translateY(0);
    opacity: 1;
    }
    100% {
    transform: translateY(0);
        opacity: 1;
    }
}

.liquid-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: rgba(100, 191, 227, 0.3);
    border-radius: 50%;
    filter: blur(40px);
    animation: float 12s infinite;
}

.shape-1 {
    width: 500px;
    height: 500px;
    top: -100px;
    left: -100px;
    background: rgba(100, 191, 227, 0.4);
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    top: 50%;
    right: -100px;
    background: rgba(162, 222, 187, 0.4);
    animation-delay: -3s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: 30%;
    background: rgba(244, 245, 228, 0.4);
    animation-delay: -6s;
}

.shape-4 {
    width: 350px;
    height: 350px;
    top: 20%;
    left: 20%;
    background: rgba(100, 191, 227, 0.35);
    animation-delay: -4s;
}

.shape-5 {
    width: 450px;
    height: 450px;
    bottom: 10%;
    right: 20%;
    background: rgba(162, 222, 187, 0.35);
    animation-delay: -9s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(100px, 100px) rotate(90deg);
    }
    50% {
        transform: translate(0, 200px) rotate(180deg);
    }
    75% {
        transform: translate(-100px, 100px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* Custom Contact Section Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    gap: 2rem;
    min-height: 60vh;
    margin-top: 8rem;
    margin-bottom: 8rem;
}

.connect-title {
    font-size: 8vw;
    font-weight:600;
    color: var(--primary-color);
    line-height: 1.08;
    text-align: left;
    letter-spacing:-2px;
    padding-bottom: 12rem;
    padding-right: 25rem;
}

.contact-label {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.7rem;
    letter-spacing: -1px;
}

.contact-right a {
    display: inline-block;
    color: var(--primary-color);
    font-size: 2rem;
    text-decoration: underline;
    margin-right: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    transition: color 0.2s, text-decoration-thickness 0.2s;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    
}

.contact-right a:hover {
    color: var(--secondary-color);
    text-decoration-thickness: 4px;
}

.contact-block {
    margin-bottom: 2.5rem;
}

.contact-left {
    display: flex;
    align-items: flex-end;
    height: 100%;
}

.contact-right {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    align-items: flex-start;
    justify-content: flex-end;
    height: 100%;
    padding-bottom: 10rem;

}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        min-height: 30vh;
        margin-top: 3rem;
        margin-bottom: 3rem;
    }
    .contact-left, .contact-right {
        align-items: flex-start;
        justify-content: flex-start;
    }
    .connect-title {
        font-size: 2.5rem;
        text-align: left;
        letter-spacing: -1px;
    }
    .contact-label {
        font-size: 1.2rem;
    }
    .contact-right a {
        font-size: 1.2rem;
        margin-right: 1rem;
    }
}

.resume-nav {
    position: fixed;
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    z-index: 1000;
    padding: 2rem 1.5rem;
}

.resume-nav a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.7rem;
    transition: all 0.3s ease;
    padding: 1rem 0;
    opacity: 0.85;
    font-weight: 700;
}

.resume-nav i {
    margin-right: 1.2rem;
    font-size: 2.2rem;
    transition: all 0.3s ease;
}

.resume-nav a:hover {
    color: var(--secondary-color);
    transform: translateX(-16px);
    font-weight: 800;
    opacity: 1;
}

.resume-nav a:hover i {
    transform: scale(1.25);
}

@media (max-width: 900px) {
    .resume-nav {
        right: 1rem;
        gap: 1.2rem;
        padding: 1rem 0.5rem;
    }
    .resume-nav a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }
    .resume-nav i {
    font-size: 1.2rem;
        margin-right: 0.7rem;
    }
}

.resume-link .arrow {
    display: inline-block;
    margin-left: 0.5rem;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s cubic-bezier(0.4,0,0.2,1);
    transform: translateX(0) rotate(0deg);
    opacity: 0;
}

.resume-link:hover .arrow {
    transform: translateX(12px) rotate(-45deg);
    opacity: 1;
}

.hamburger-btn {
    display: flex;
    position: fixed;
    top: 1.2rem;
    right: 2rem;
    z-index: 1001;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.hamburger-btn .bar {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-btn.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 900px) {
    .hamburger-btn {
        display: flex;
    }
    .section-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100vw;
        border-radius: 0 0 2rem 2rem;
        box-shadow: 0 4px 24px rgba(0,0,0,0.08);
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1.5rem 1.5rem 1.5rem 2.5rem;
        background: rgba(255,255,255,0.98);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s;
    }
    .section-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}

.contact-link {
    display: inline-block;
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1), color 0.2s;
    text-decoration: none !important;
}
.contact-link:hover, .contact-link:focus {
    transform: rotate(-3deg) scale(1.04);
    color: var(--primary-color);
    text-decoration: none !important;
}

.contact-link.no-anim:hover, .contact-link.no-anim:focus {
  transform: none;
  color: var(--primary-color);
  text-decoration: none !important;
}

.contact-link .link-text {
  transition: color 0.3s, transform 0.3s;
  display: inline-block;
}
.contact-link:hover .link-text, .contact-link:focus .link-text {
  color: var(--primary-color);
  transform: translateY(0) scale(1.04) rotate(-3deg);
}

.contact-link:hover .icon-on-hover, .contact-link:focus .icon-on-hover {
  opacity: 1;
  transform: translateY(-2px) scale(1.04) rotate(-3deg);
}

.contact-link .arrow {
  display: inline-block;
  margin-left: 0.1rem;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s cubic-bezier(0.4,0,0.2,1);
  transform: translateX(0) translateY(-4px) rotate(-67deg); /* Moved arrow up */
  opacity: 0;
}
.contact-link:hover .arrow, .contact-link:focus .arrow {
  transform: translateX(5px) translateY(-4px) rotate(-67deg); /* Moved arrow up */
  opacity: 1;
}

#switcher-text {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.5s cubic-bezier(0.4,0,0.2,1);
  will-change: transform, opacity;
  min-width: 8ch;
  text-align: left;
}
#switcher-text.slide-out {
  opacity: 0;
  transform: translateY(-40%);
}
#switcher-text.slide-in {
  opacity: 1;
  transform: translateY(0);
}

/* Base responsive styles */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero h1, .hero-subtitle {
        font-size: 6rem;
    }
    
    .connect-title {
        font-size: 6vw;
        padding-right: 15rem;
    }
}

@media (max-width: 900px) {
    .section-nav {
        top: 1.2rem;
        gap: 1rem;
        padding: 0.4rem 1rem;
    }
    
    .section-nav a {
        font-size: 0.9rem;
        padding: 0.3rem 0.8rem;
    }
    
    .section-nav i {
        font-size: 1rem;
        margin-right: 0.4rem;
    }
    
    .hero h1, .hero-subtitle {
        font-size: 4rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
        max-width: 90%;
    }
    
    .connect-title {
        font-size: 3rem;
        padding-right: 0;
        padding-bottom: 6rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 4rem;
        margin-bottom: 4rem;
    }
    
    .contact-right {
        padding-bottom: 5rem;
    }
    
    .project-card {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .section-nav {
        top: 0;
        left: 0;
        right: 0;
        width: 100vw;
        border-radius: 0 0 2rem 2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1.5rem 1.5rem 1.5rem 2.5rem;
        background: rgba(255, 255, 255, 0.98);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s;
    }
    
    .section-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .hero h1, .hero-subtitle {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .project-card {
        width: 95%;
    }
    
    .project-image img {
        height: 200px;
    }
    
    .contact-label {
        font-size: 1.1rem;
    }
    
    .contact-right a {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero h1, .hero-subtitle {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .social-links a {
        font-size: 1.5rem;
    }
    
    .section-nav a {
        font-size: 0.85rem;
        padding: 0.25rem 0.6rem;
    }
    
    .hamburger-btn {
        width: 40px;
        height: 40px;
        top: 1rem;
        right: 1rem;
    }
    
    .hamburger-btn .bar {
        width: 22px;
        height: 2px;
    }
    
    .project-card {
        width: 100%;
    }
    
    .contact-grid {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    
    .connect-title {
        font-size: 2rem;
        padding-bottom: 3rem;
    }
}

/* Fix for very small screens */
@media (max-width: 360px) {
    .hero h1, .hero-subtitle {
        font-size: 2rem;
    }
    
    .section-nav a {
        font-size: 0.8rem;
        padding: 0.2rem 0.5rem;
    }
    
    .hamburger-btn {
        width: 36px;
        height: 36px;
    }
    
    .hamburger-btn .bar {
        width: 20px;
    }
}

/* Fix for landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 4rem 0;
    }
    
    .hero h1, .hero-subtitle {
        font-size: 2.5rem;
    }
    
    .section-nav {
        top: 0.8rem;
    }
    
    .hamburger-btn {
        top: 0.8rem;
    }
} 