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

html {
    scroll-behavior: smooth;
}

/* Inter Variable Font */
@font-face {
    font-family: 'Inter';
    src: url('Inter-4.1/web/InterVariable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('Inter-4.1/web/InterVariable-Italic.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* Instrument Serif */
@font-face {
    font-family: 'Instrument Serif';
    src: url('instrument-serif/instrumentserif-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Instrument Serif';
    src: url('instrument-serif/instrumentserif-italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar.hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.navbar a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    font-weight: 300;
    transition: opacity 0.3s;
    position: relative;
}

.navbar a.active {
    font-weight: 400;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #1a1a1a;
    transition: width 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.navbar a:hover {
    opacity: 1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8rem 2rem 5rem;
    text-align: center;
    background-color: #ffffff;
}

.hero-content {
    margin-bottom: 4rem;
}

.hero-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(4rem, 12vw, 11rem);
    font-weight: 400;
    line-height: 0.9;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    max-width: 48rem;
    margin: 0 auto 2rem;
    line-height: 1.8;
    color: #4a4a4a;
}

.btn-outline {
    display: inline-block;
    border: 1.5px solid #1a1a1a;
    background: transparent;
    color: #1a1a1a;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 400;
}

.btn-outline:hover {
    background: #1a1a1a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hero About me button - wide pill */
.hero .btn-outline {
    display: block;
    width: 100%;
    max-width: 500px;
    text-align: center;
    padding: 1.1rem 2rem;
    font-size: 1.1rem;
    border-radius: 60px;
    border: 1.5px solid #1a1a1a;
    font-weight: 400;
    margin: 0 auto;
}

.hero-image-container {
    position: relative;
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
    border-radius: 0.5rem;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.floating-badge {
    position: absolute;
    top: -1rem;
    right: -1rem;
    background: #f4c430;
    color: #1a1a1a;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    transform: rotate(12deg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: float 3s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(12deg);
    }
    50% {
        transform: translateY(-10px) rotate(12deg);
    }
}

/* Companies Section */
.companies {
    padding: 3rem 0;
    background: #fff;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.section-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: #aaa;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 400;
    text-transform: uppercase;
}

.companies-scroll {
    overflow: hidden;
    position: relative;
    width: 100%;
    /* fade edges for transparent look */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.companies-track {
    display: flex;
    align-items: center;
    gap: 5rem;
    animation: scroll 18s linear infinite;
    width: max-content;
    padding: 0.75rem 0;
}

.companies-track:hover {
    animation-play-state: paused;
}

.company-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.company-logo-item img {
    height: 32px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.45);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.company-logo-item img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.08);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Experience Section */
.experience {
    padding: 8rem 0;
}

.experience-header {
    margin-bottom: 5rem;
}

.section-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(3rem, 8vw, 7.5rem);
    font-weight: 400;
    line-height: 0.9;
    margin-bottom: 2rem;
}

.section-description {
    font-size: 1.25rem;
    color: #666;
    max-width: 40rem;
    margin-bottom: 0.5rem;
}

.section-subdescription {
    font-size: 1.125rem;
    color: #999;
}

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

.testimonial-card {
    background: #fff;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}

.testimonial-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 2rem;
}

.author-name {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.author-title {
    color: #999;
}

/* About Section */
.about {
    padding: 8rem 0;
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 5rem;
    align-items: center;
}

.about-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 2rem;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
}

.about-image {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 1rem;
}

/* Education Section */
.education {
    padding: 8rem 0;
}

.education-list {
    margin-top: 4rem;
}

.education-item {
    border-left: 4px solid #1a1a1a;
    padding: 2rem 0 2rem 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s;
}

.education-item:hover {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 0 0.5rem 0.5rem 0;
}

.education-degree {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.education-year {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.education-description {
    color: #4a4a4a;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: #1a1a1a;
    color: #fff;
    text-align: center;
}

.contact-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(3rem, 8vw, 6.25rem);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 2rem;
}

.contact-text {
    font-size: 1.25rem;
    color: #ccc;
    max-width: 40rem;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.btn-primary {
    background: #fff;
    color: #1a1a1a;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
    padding: 2rem 0;
    background: #000;
    color: #fff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-copyright {
    color: #999;
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.fade-in.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-left {
        gap: 1.5rem;
    }
    
    .navbar a {
        font-size: 0.75rem;
    }
    
    .hero {
        padding: 6rem 1rem 3rem;
    }
    
    .testimonials-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-badge {
        top: 1rem;
        right: 1rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f5f5f0;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}


/* Experience Timeline */
.experience {
    padding: 8rem 0;
    background: #f5f5f0;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.download-cv {
    margin: 0;
}

.experience-timeline {
    max-width: 900px;
}

.timeline-item {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e0e0e0;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-date {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-company {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.timeline-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a4a4a;
}

/* Education Section */
.education {
    padding: 8rem 0;
    background: #fff;
}

.education-list {
    margin-top: 4rem;
    max-width: 900px;
}

.education-item {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e0e0e0;
}

.education-item:last-child {
    border-bottom: none;
}

.education-year {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.education-degree {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.education-institution {
    font-size: 1rem;
    color: #666;
}

/* Skills Section */
.skills {
    padding: 8rem 0;
    background: #f5f5f0;
}

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

.skill-card {
    padding: 2rem;
    background: #fff;
    border-radius: 0.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.skill-label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.skill-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

/* Testimonials Section */
.testimonials {
    padding: 8rem 0;
    background: #fff;
}

.testimonials-header {
    margin-bottom: 5rem;
    max-width: 900px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}


/* Page Hero */
.page-hero {
    padding: 10rem 0 5rem;
    background: #ffffff;
}

.page-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 2rem;
}

.title-dot {
    color: #f4c430;
}

.page-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #f4c430;
    font-weight: 400;
}

.page-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

/* About Page */
.about-content {
    padding: 5rem 0;
    background: #fff;
}

.about-text-section {
    max-width: 600px;
}

.about-paragraph {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-icon {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 1rem;
    transition: opacity 0.3s;
}

.social-icon:hover {
    opacity: 0.6;
}

.about-image-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Experience Page */
.experience-page {
    padding: 5rem 0;
    background: #ffffff;
}

/* Education Page */
.education-page {
    padding: 5rem 0;
    background: #ffffff;
}

/* Contact Page */
.contact-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 8rem 2rem;
}


/* Intro Section */
.intro-section {
    padding: 5rem 0;
    background: #fff;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.email-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.email-text {
    font-size: 1.125rem;
    font-weight: 400;
}

.copy-btn {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    padding: 0.5rem 0.7rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: #e8e8e8;
    border-color: #d0d0d0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.intro-paragraph {
    font-size: 1.75rem;
    line-height: 1.6;
    font-weight: 400;
}

/* Home Experience Section */
.home-experience {
    padding: 5rem 0;
    background: #ffffff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.section-title-home {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.timeline-compact {
    max-width: 900px;
}

.timeline-item-compact {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.timeline-item-compact:last-child {
    border-bottom: none;
}

.timeline-date-compact {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.timeline-title-compact {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-company-compact {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.timeline-desc-compact {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a4a4a;
}

/* Home Education Section */
.home-education {
    padding: 5rem 0;
    background: #fff;
}

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

.education-card {
    padding: 2rem 0;
}

.edu-year {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.edu-degree {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.edu-institution {
    font-size: 0.95rem;
    color: #666;
}

/* Soft Skills Section */
.soft-skills {
    padding: 5rem 0;
    background: #ffffff;
}

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

.skill-item {
    padding: 1.5rem 0;
}

.skill-title-home {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.skill-desc-home {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

/* Technical Proficiencies Section */
.technical-prof {
    padding: 5rem 0;
    background: #fff;
}

.tech-item {
    margin-bottom: 4rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: center;
}

.tech-item:nth-child(even) {
    grid-template-columns: 1fr 1.5fr;
}

.tech-item:nth-child(even) .tech-image {
    order: 2;
}

.tech-item:nth-child(even) .tech-content {
    order: 1;
    text-align: right;
}

.tech-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 1rem;
}

.tech-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.tech-desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Testimonials Home Section */
.testimonials-home {
    padding: 5rem 0;
    background: #ffffff;
}

.testimonials-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    text-align: center;
}

.highlight {
    font-weight: 700;
}

.testimonials-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
}

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

.testimonial-card-home {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e0e0e0;
}

.testimonial-quote {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
}

.testimonial-author-home {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #d0d0d0;
    flex-shrink: 0;
}

.author-name-home {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 0.85rem;
    color: #666;
}

/* Contact Form Section */
.contact-form-section {
    padding: 6rem 0;
    background: #1a1a1a;
    color: #fff;
}

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

.contact-form-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 1rem;
}

.exclamation {
    color: #f4c430;
}

.contact-form-subtitle {
    text-align: center;
    color: #999;
    margin-bottom: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    color: #ccc;
}

.form-group input,
.form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid #444;
    color: #fff;
    padding: 0.75rem 0;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.btn-submit {
    background: #fff;
    color: #1a1a1a;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Footer Updates */
.footer-name {
    color: #fff;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tech-item,
    .tech-item:nth-child(even) {
        grid-template-columns: 1fr;
    }
    
    .tech-item:nth-child(even) .tech-content {
        text-align: left;
    }
    
    .testimonials-grid-home {
        grid-template-columns: 1fr;
    }
}


/* About Page Styles */
.about-hero {
    padding: 8rem 2rem 5rem;
    background: #fff;
    text-align: center;
}

.about-hero-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.me-gray {
    color: #999;
}

.about-hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #f4c430;
    font-weight: 400;
    margin-bottom: 2rem;
}

.about-hero-text {
    max-width: 900px;
    margin: 0 auto 2rem;
    font-size: 1rem;
    line-height: 1.8;
    color: #4a4a4a;
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.social-link {
    color: #1a1a1a;
    transition: opacity 0.3s;
}

.social-link:hover {
    opacity: 0.6;
}

.about-hero-image {
    max-width: 500px;
    margin: 0 auto;
}

.about-main-img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* About Experience Section */
.about-experience {
    padding: 5rem 0;
    background: #fff;
}

.experience-detailed {
    max-width: 900px;
    margin: 0 auto;
}

.exp-item {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e0e0e0;
}

.exp-item:last-child {
    border-bottom: none;
}

.exp-date {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.exp-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.exp-company {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
}

.exp-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #4a4a4a;
}

/* About Education Section */
.about-education {
    padding: 5rem 0;
    background: #fff;
}

.section-title-about {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 3rem;
}

.education-table {
    max-width: 900px;
}

.edu-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1.5fr;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.edu-row:last-child {
    border-bottom: none;
}

.edu-col-year {
    font-size: 0.875rem;
    color: #666;
}

.edu-col-degree {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.edu-col-institution {
    font-size: 0.95rem;
    color: #666;
}

/* About Skills Section */
.about-skills {
    padding: 5rem 0;
    background: #fff;
}

.skills-table {
    max-width: 900px;
}

.skill-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.skill-row:last-child {
    border-bottom: none;
}

.skill-col-title {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.skill-col-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

@media (max-width: 768px) {
    .edu-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .skill-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}


/* Dark Page Styles */
.dark-page {
    background: #1a1a1a;
    color: #fff;
}

.navbar-dark {
    background-color: rgba(26, 26, 26, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar-dark.scrolled {
    background-color: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.navbar-dark a {
    color: #fff;
}

.navbar-dark a::after {
    background: #fff;
}

/* Contact Page Section */
.contact-page-section {
    min-height: 100vh;
    padding: 10rem 2rem 5rem;
    display: flex;
    align-items: center;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-info {
    max-width: 500px;
}

.contact-page-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 3rem;
}

.phone-section {
    margin-bottom: 2rem;
}

.phone-label {
    font-size: 0.875rem;
    color: #999;
    margin-bottom: 1rem;
}

.phone-number {
    display: block;
    font-size: 1.5rem;
    color: #f4c430;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: opacity 0.3s;
}

.phone-number:hover {
    opacity: 0.8;
}

.contact-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #999;
}

/* Contact Form Dark */
.contact-form-wrapper {
    max-width: 500px;
}

.contact-form-dark {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group-dark {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-dark label {
    font-size: 0.875rem;
    color: #ccc;
}

.form-group-dark input,
.form-group-dark textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid #444;
    color: #fff;
    padding: 0.75rem 0;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group-dark input:focus,
.form-group-dark textarea:focus {
    outline: none;
    border-bottom-color: #fff;
}

.form-group-dark input::placeholder,
.form-group-dark textarea::placeholder {
    color: #666;
}

.btn-submit-dark {
    background: #fff;
    color: #1a1a1a;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-submit-dark:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Footer Dark */
.footer-dark {
    background: #1a1a1a;
    border-top: 1px solid #333;
}

.footer-dark .footer-links a {
    color: #fff;
}

.footer-dark .footer-links a:hover {
    opacity: 0.7;
}

.footer-dark .footer-name {
    color: #fff;
}

@media (max-width: 968px) {
    .contact-page-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}


/* Experience Hero Section */
.experience-hero {
    padding: 8rem 2rem 5rem;
    background: #fff;
    text-align: center;
}

.experience-hero-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 2rem;
}

.btn-outline-center {
    display: inline-block;
    border: 2px solid #1a1a1a;
    background: transparent;
    padding: 0.875rem 2.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #1a1a1a;
    margin-bottom: 2rem;
    font-weight: 500;
}

.btn-outline-center:hover {
    background: #1a1a1a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-icons-center {
    display: flex;
    gap: 1rem;
    justify-content: center;
}


/* ===== MOBILE NAV ===== */
.nav-desktop {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.nav-mobile {
    display: none;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #1a1a1a;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #f4c430;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 1.5rem 2rem 2rem;
    border-top: 1px solid #eee;
    gap: 0;
}

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

.mobile-menu a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.3s;
    text-align: center;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    color: #f4c430;
}

.mobile-menu-dark {
    background: #1a1a1a;
    border-top: 1px solid #333;
}

.mobile-menu-dark a {
    color: #fff;
    border-bottom-color: #333;
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .nav-mobile {
        display: flex;
    }

    .nav-container {
        padding: 0 1.5rem;
    }

    /* Hero mobile */
    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .hero-title {
        font-size: clamp(2.8rem, 12vw, 5rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-image-container {
        max-width: 100%;
    }

    .floating-badge {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }

    /* Intro section mobile */
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .intro-paragraph {
        font-size: clamp(1.6rem, 6vw, 2rem);
        text-align: justify;
        line-height: 1.5;
    }

    .email-box {
        justify-content: flex-start;
    }

    .email-text {
        font-size: 1rem;
    }

    /* Section titles mobile — large, bold, centered */
    .section-title-home {
        font-family: 'Instrument Serif', serif;
        font-size: clamp(2rem, 9vw, 3rem);
        font-weight: 400;
        text-align: center;
        line-height: 1.1;
    }

    .section-header {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        text-align: center;
    }

    /* Home experience timeline mobile */
    .home-experience {
        padding: 3rem 0;
    }

    .timeline-item-compact {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }

    .timeline-date-compact {
        font-size: 0.8rem;
        color: #999;
        margin-bottom: 0.4rem;
    }

    .timeline-title-compact {
        font-size: 1.4rem;
        font-weight: 700;
        margin-bottom: 0.25rem;
    }

    .timeline-company-compact {
        font-size: 0.95rem;
        color: #555;
        margin-bottom: 0;
    }

    /* Hide description on mobile for clean look like Framer */
    .timeline-desc-compact {
        display: none;
    }

    /* Home education mobile */
    .home-education {
        padding: 3rem 0;
    }

    .education-grid-home {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .education-card {
        padding: 1.5rem 0;
        border-bottom: 1px solid #e0e0e0;
    }

    .education-card:last-child {
        border-bottom: none;
    }

    .edu-year {
        font-size: 0.8rem;
        color: #999;
        margin-bottom: 0.5rem;
    }

    .edu-degree {
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 0.4rem;
    }

    .edu-institution {
        font-size: 0.95rem;
        color: #555;
    }

    /* Soft skills mobile */
    .soft-skills {
        padding: 3rem 0;
    }

    .skills-grid-home {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .skill-item {
        padding: 1.5rem 0;
        border-bottom: 1px solid #e0e0e0;
    }

    .skill-item:last-child {
        border-bottom: none;
    }

    .skill-title-home {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .skill-desc-home {
        font-size: 0.95rem;
        color: #555;
    }

    /* Testimonials mobile */
    .testimonials-grid-home {
        grid-template-columns: 1fr;
    }

    .testimonials-title {
        font-size: 1.5rem;
        text-align: center;
    }

    /* Tech items mobile */
    .technical-prof {
        padding: 3rem 0;
    }

    .tech-item,
    .tech-item:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2.5rem;
    }

    .tech-item:nth-child(even) .tech-content {
        text-align: left;
        order: 2;
    }

    .tech-item:nth-child(even) .tech-image {
        order: 1;
    }

    .tech-image {
        height: 220px;
    }

    /* Contact form mobile */
    .contact-page-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-page-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    /* About hero mobile */
    .about-hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .about-hero-subtitle {
        font-size: 1.25rem;
    }

    /* Experience hero mobile */
    .experience-hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    /* Education table mobile */
    .edu-row {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .skill-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    /* Footer mobile */
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}




