/* Apple-Inspired Design System */
:root {
    /* Apple Color Palette */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-tertiary: #fbfbfd;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --text-tertiary: #6e6e73;
    --accent-primary: #0071e3;
    --accent-secondary: #007aff;
    --border-color: #d2d2d7;
    --border-hover: #0071e3;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --card-bg: #ffffff;
    --input-bg: #f5f5f7;
    --navbar-bg: rgba(255, 255, 255, 0.8);
    --success-color: #34c759;
    --warning-color: #ff9500;
    --error-color: #ff3b30;
    
    /* Apple-inspired section backgrounds */
    --about-bg: #fafafa;
    --about-bg-alt: #f8f9fa;
    --about-bg-warm: #fef7f0;
    --about-bg-cool: #f0f8ff;
    --about-bg-galactic: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
    --projects-bg-galactic: linear-gradient(135deg, #000000 0%, #0a0a0a 25%, #001122 50%, #002244 75%, #003366 100%);
}



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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

/* Apple-style Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 44px;
}

.nav-logo .logo-text {
    font-size: 21px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.022em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.2s ease;
}

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





.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
}

.bar {
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 1px;
}

/* Apple-style Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    position: relative;
    padding: 120px 0 80px;
    overflow: visible;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    overflow: visible;
    min-height: 60vh;
}

.hero-title {
    font-size: 50px;
    font-weight: 600;
    line-height: 1px;
    letter-spacing: -0.005em;
    margin-bottom: 10px;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-wrap: wrap;
    align-items: left;
    padding-left: 10px;
}

.title-line {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    line-height: 1.4;
}

.fade-in-line {
    animation-delay: calc(var(--delay) * 0.5s);
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.10722;
    letter-spacing: .004em;
    color: var(--text-secondary);
    margin-bottom: 32px;
    padding-left: 10px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    margin-top: 32px;
    padding-left: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    min-height: 44px;
    letter-spacing: -0.022em;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background: var(--accent-secondary);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

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

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: scale(0.98);
}

/* Code Animation - Apple Style */
.code-animation {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 24px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    border: 1px solid var(--border-color);
    width: 100%;
}

.code-line {
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.keyword {
    color: var(--accent-primary);
    font-weight: 600;
}

.variable {
    color: var(--text-primary);
    font-weight: 500;
}

.string {
    color: var(--success-color);
}

.indent {
    margin-left: 20px;
}

.indent-2 {
    margin-left: 40px;
}

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

/* Section Styles */
section {
    padding: 120px 0;
    scroll-margin-top: 80px;
}

.section-title {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.08349;
    letter-spacing: -.003em;
    text-align: center;
    margin-bottom: 64px;
    color: var(--text-primary);
}

/* Reduce title margin for projects section */
.projects .section-title {
    margin-bottom: 8px;
    color: white;
}



.section-content {
    width: 100%;
}

/* About Section */
.about {
    background: var(--about-bg-galactic);
    padding: 120px 0;
    color: white;
}

.about h2 {
    color: white;
}

.about-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

.about-text p {
    font-size: 21px;
    line-height: 1.381;
    font-weight: 400;
    letter-spacing: .011em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.skill-category h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.16667;
    letter-spacing: .009em;
    color: white;
    margin-bottom: 16px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tags img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.skill-tags img:hover {
    transform: scale(1.1);
}

/* Timeline Section */
.timeline {
    background: var(--bg-primary);
    padding: 120px 0;
}

.timeline-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    padding-right: 55%;
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: 55%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 24px;
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 2px var(--border-color);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-secondary);
    box-shadow: 0 0 0 2px var(--accent-primary);
}

.timeline-content {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: all 0.3s ease;
    margin-left: 20px;
    margin-right: 20px;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--shadow-color);
}

.timeline-content h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.timeline-company {
    font-size: 17px;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline-description {
    font-size: 15px;
    line-height: 1.4;
    color: var(--text-secondary);
}

/* Resume Download Section */
.resume-download-section {
    text-align: center;
    margin-top: 48px;
    padding: 32px 0;
}

.resume-download-section .btn {
    min-width: 200px;
    font-size: 16px;
    padding: 14px 28px;
}

.resume-download-section .btn i {
    margin-right: 8px;
}

/* View All Projects Section */
.view-all-projects {
    margin-top: 64px;
    text-align: center;
}

.projects-intro {
    max-width: 600px;
    margin: 0 auto;
    padding: 48px 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.projects-intro h3 {
    font-size: 28px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.projects-intro p {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.projects-intro .btn {
    min-width: 200px;
    font-size: 16px;
}

.projects-intro .btn i {
    margin-right: 8px;
}

/* Projects Section */
.projects {
    background: var(--projects-bg-galactic);
    padding: 80px 0;
    color: white;
}

/* Project Actions in Carousel */
.project-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0;
}

.project-actions .btn {
    padding: 12px 20px;
    font-size: 15px;
    min-height: 44px;
    flex: 1;
    min-width: 140px;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.project-actions .btn i {
    margin-right: 8px;
}

.project-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Tech Tags */
.tech-tag {
    background: var(--accent-primary);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--accent-primary);
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tech-tag:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

/* Project Carousel Styles - Redesigned for Better Layout */

.project-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

.project-carousel {
    position: relative;
    height: 750px;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.project-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.project-slide.prev {
    transform: translateX(-100%);
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: flex-start;
    max-width: 1100px;
    width: 100%;
    padding: 48px;
}

.project-image-section {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-tertiary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16/9;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.project-image-section:hover .project-main-image {
    transform: scale(1.05);
}

/* Project Image Styles */
.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.project-image-section:hover .project-main-image {
    transform: scale(1.05);
}

/* Project Placeholder for projects without images */
.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.project-placeholder:hover {
    transform: scale(1.02);
}

.project-placeholder i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.project-placeholder span {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
}



.project-details {
    padding: 0;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-details h3 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff !important;
    margin: 0;
    letter-spacing: -0.02em;
}

.project-details p {
    font-size: 18px;
    line-height: 1.6;
    color: white !important;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    max-width: 100%;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}


/* Carousel Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.carousel-control:hover {
    background: white;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.carousel-control.prev {
    left: -24px;
}

.carousel-control.next {
    right: -24px;
}



/* Responsive Design for Project Carousel */
@media (max-width: 768px) {
    .project-carousel {
        height: auto;
        min-height: 800px;
        border-radius: 16px;
    }
    
    .project-content {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 24px;
    }
    
    .project-image-section {
        aspect-ratio: 16/9;
        height: 250px;
    }
    
    .project-details h3 {
        font-size: 26px;
        line-height: 1.3;
        color: #ffffff !important;
    }
    
    .project-details p {
        font-size: 16px;
        line-height: 1.6;
        color: white !important;
    }
    
    .project-tech {
        gap: 8px;
        margin-bottom: 24px;
    }
    
    .tech-tag {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .carousel-control {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .carousel-control.prev {
        left: -18px;
    }
    
    .carousel-control.next {
        right: -18px;
    }
    
    
    
    /* Project actions responsive */
    .project-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .project-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 15px;
        min-height: 44px;
    }
}

/* Timeline Mobile Responsive Improvements */
@media (max-width: 768px) {
    .timeline {
        padding: 80px 0;
    }
    
    .timeline-container {
        padding: 0 16px;
        position: relative;
    }
    
    /* Hide the vertical line on mobile */
    .timeline-line {
        display: none;
    }
    
    /* Reset all timeline items to left alignment */
    .timeline-item {
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: left !important;
        margin-bottom: 32px;
        position: relative;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    
    /* Position dots on the left side */
    @media (max-width: 768px) {
        .timeline-item {
            position: relative; /* ensures dot is positioned relative to the item */
        }
    
        .timeline-dot {
            position: absolute;
            left: 14px; /* aligns with the border-left on .timeline-content */
            top: 22px; /* vertically centers relative to the heading */
            width: 12px;
            height: 12px;
            background: var(--accent-primary);
            border: 2px solid var(--bg-primary);
            box-shadow: 0 0 0 2px var(--border-color);
            border-radius: 50%;
            z-index: 5;
        }
    
        .timeline-content {
            padding: 20px 20px 20px 32px;
            border-radius: 12px;
            border-left: 3px solid var(--accent-primary);
            margin-left: 32px; /* gives space for dot + border */
        }
    }
    
    .timeline-content h3 {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .timeline-company {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .timeline-description {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* Additional Mobile Improvements */
@media (max-width: 768px) {
    /* Section padding adjustments */
    section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 36px;
        margin-bottom: 48px;
    }
    
    /* About section mobile */
    .about {
        padding: 80px 0;
    }
    
    .about-text p {
        font-size: 18px;
        line-height: 1.6;
        margin-bottom: 40px;
    }
    
    .skills-grid {
        gap: 24px;
        margin-top: 48px;
    }
    
    .skill-category h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .skill-tags {
        gap: 8px;
    }
    
    .skill-tags img {
        width: 28px;
        height: 28px;
    }
    
    /* Contact section mobile */
    .contact {
        padding: 80px 0;
    }
    
    .contact-intro h3 {
        font-size: 28px;
    }
    
    .contact-intro p {
        font-size: 16px;
    }
    
    .contact-card {
        padding: 24px;
    }
    
    .contact-card-header i {
        font-size: 28px;
    }
    
    .contact-card-header h4 {
        font-size: 18px;
    }
    
    .contact-card p {
        font-size: 14px;
    }
    
    /* Form mobile improvements */
    .contact-form-container {
        padding: 24px;
        margin: 0 16px;
    }
    
    .contact-form-container h3 {
        font-size: 20px;
        margin-bottom: 24px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Button mobile improvements */
    .btn {
        padding: 14px 20px;
        font-size: 16px;
        min-height: 48px;
    }
    
    /* Hero section mobile improvements */
    .hero {
        padding: 100px 0 60px;
        min-height: 90vh;
    }
    
    .hero-container {
        gap: 32px;
        min-height: 50vh;
    }
    
    .code-animation {
        padding: 20px;
        font-size: 13px;
    }
    
    /* Navigation mobile improvements */
    .nav-container {
        padding: 0 16px;
    }
    
    .nav-logo .logo-text {
        font-size: 18px;
    }
    
    .nav-link {
        font-size: 11px;
    }
    
    /* Resume download mobile */
    .resume-download-section {
        margin-top: 32px;
        padding: 24px 0;
    }
    
    .resume-download-section .btn {
        min-width: 180px;
        font-size: 15px;
        padding: 12px 24px;
    }
    
    /* View all projects mobile */
    .view-all-projects {
        margin-top: 48px;
    }
    
    .projects-intro {
        padding: 32px 20px;
        margin: 0 16px;
    }
    
    .projects-intro h3 {
        font-size: 24px;
    }
    
    .projects-intro p {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .projects-intro .btn {
        min-width: 180px;
        font-size: 15px;
    }
}

/* Contact Section */
.contact {
    background: var(--bg-primary);
    padding: 120px 0;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.contact-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-intro h3 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.contact-intro p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.contact-card {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: all 0.3s ease;
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px var(--shadow-color);
}

.contact-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.contact-card-header i {
    font-size: 32px;
    color: var(--accent-primary);
    margin-bottom: 12px;
}

.contact-card-header h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.contact-card p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.contact-link:hover {
    color: var(--accent-secondary);
    transform: translateX(4px);
}

.contact-form-container {
    background: var(--card-bg);
    padding: 48px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px var(--shadow-color);
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.contact-form-container h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 32px;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.contact-form .btn {
    align-self: center;
    min-width: 200px;
}

/* Popup Modal */
.popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-modal.show {
    opacity: 1;
    visibility: visible;
}

.popup-modal.hidden {
    opacity: 0;
    visibility: hidden;
}

.popup-content {
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 48px;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    position: relative;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-modal.show .popup-content {
    transform: scale(1);
    opacity: 1;
}

.popup-content h3 {
    margin: 0 0 16px 0;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.popup-content p {
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}



/* Responsive design for popup modal */
@media (max-width: 768px) {
    .popup-content {
        padding: 32px 24px;
        max-width: 90%;
        margin: 0 16px;
    }
    
    .popup-content h3 {
        font-size: 24px;
    }
    
    .popup-content p {
        font-size: 16px;
    }
    

}
/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 32px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

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

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 44px;
        flex-direction: column;
        background-color: var(--navbar-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        padding: 32px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .theme-toggle {
        margin-left: 8px;
    }

    .theme-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 32px;
        gap: 8px;
        flex-direction: column;
    }

    .hero-subtitle {
        font-size: 21px;
    }

    .timeline-line {
        left: 24px;
    }

    .timeline-item {
        padding-left: 60px !important;
        text-align: left !important;
    }

    .timeline-dot {
        left: 24px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        padding: 32px;
    }

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

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

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }

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

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

    .contact-content {
        gap: 48px;
    }
    
    /* Tablet-specific improvements */
    .project-carousel {
        min-height: 650px;
    }
    
    .project-content {
        gap: 40px;
        padding: 32px;
    }
    
    .project-details h3 {
        font-size: 28px;
        color: #ffffff !important;
    }
    
    .project-details p {
        font-size: 17px;
        color: white !important;
    }
    
    .timeline-item {
        margin-bottom: 56px;
    }
    
    .timeline-content {
        padding: 28px;
    }
    
    .timeline-content h3 {
        font-size: 22px;
        color: var(--text-primary) !important;
    }
    
    .timeline-company {
        font-size: 18px;
    }
    
    .timeline-description {
        font-size: 16px;
    }
    
    /* Contact form tablet improvements */
    .contact-form-container {
        padding: 40px;
    }
    
    .contact-card {
        padding: 28px;
    }
}

/* Small mobile devices (iPhone SE, etc.) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
        gap: 6px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .project-carousel {
        min-height: 750px;
        border-radius: 12px;
    }
    
    .project-content {
        padding: 20px;
        gap: 24px;
    }
    
    .project-image-section {
        aspect-ratio: 16/9;
        height: 200px;
    }
    
    .project-details h3 {
        font-size: 22px;
        color: #ffffff !important;
    }
    
    .project-details p {
        font-size: 15px;
        color: white !important;
    }
    
    .carousel-control {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .carousel-control.prev {
        left: -16px;
    }
    
    .carousel-control.next {
        right: -16px;
    }
    
    .timeline-item {
        padding-left: 0 !important;
        margin-bottom: 24px;
    }
    
    .timeline-line {
        display: none;
    }
    
    .timeline-dot {
        left: 0;
        width: 10px;
        height: 10px;
        top: 6px;
        background: var(--accent-primary);
        border: 2px solid var(--bg-primary);
        box-shadow: 0 0 0 2px var(--border-color);
        z-index: 5;
        transform: none;
    }
    
    .timeline-content {
        padding: 16px;
    }
    
    .timeline-content h3 {
        font-size: 16px;
        color: var(--text-primary) !important;
    }
    
    .timeline-company {
        font-size: 14px;
    }
    
    .timeline-description {
        font-size: 13px;
    }
    
    .contact-form-container {
        padding: 20px;
        margin: 0 12px;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .btn {
        padding: 12px 18px;
        font-size: 15px;
        min-height: 44px;
    }
    
    .code-animation {
        padding: 16px;
        font-size: 12px;
    }
    
    .nav-container {
        padding: 0 12px;
    }
    
    .nav-logo .logo-text {
        font-size: 16px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Code line animations */
.code-line:nth-child(1) { animation-delay: 0.1s; }
.code-line:nth-child(2) { animation-delay: 0.2s; }
.code-line:nth-child(3) { animation-delay: 0.3s; }
.code-line:nth-child(4) { animation-delay: 0.4s; }
.code-line:nth-child(5) { animation-delay: 0.5s; }
.code-line:nth-child(6) { animation-delay: 0.6s; }
.code-line:nth-child(7) { animation-delay: 0.7s; }
.code-line:nth-child(8) { animation-delay: 0.8s; }
.code-line:nth-child(9) { animation-delay: 0.9s; }
.code-line:nth-child(10) { animation-delay: 1.0s; }
.code-line:nth-child(11) { animation-delay: 1.1s; }

.hero-content {
    overflow: visible;
}

/* Projects Page Styles */
.projects-header {
    background: var(--about-bg-galactic);
    padding: 120px 0;
    color: white;
}

.projects-header h2 {
    color: white;
}

.projects-header .about-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

.projects-header .about-text p {
    font-size: 21px;
    line-height: 1.381;
    font-weight: 400;
    letter-spacing: .011em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
    text-align: center;
}

/* Search and Filter Controls */
.projects-controls {
    max-width: 800px;
    margin: 0 auto;
}

.search-container {
    position: relative;
    margin-bottom: 32px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    z-index: 10;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.15);
}

.filter-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.filter-dropdown {
    position: relative;
    display: inline-block;
}

.filter-dropdown-btn {
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    justify-content: space-between;
}

.filter-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-1px);
}

.filter-dropdown-btn i {
    transition: transform 0.3s ease;
}

.filter-dropdown-btn.active i {
    transform: rotate(180deg);
}

.filter-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 16px;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 200px;
}

.filter-dropdown-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    padding: 8px 12px;
}

.filter-checkbox:hover {
    background: rgba(0, 0, 0, 0.05);
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.filter-checkbox span {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.filter-tag {
    background: var(--accent-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-tag::before {
    content: "✓";
    font-weight: bold;
}

.remove-filter {
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    margin-left: 4px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.remove-filter:hover {
    opacity: 1;
}

/* Projects Grid */
.projects-grid-section {
    background: var(--bg-primary);
    padding: 80px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.project-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.project-image-container {
    position: relative;
    aspect-ratio: 16/9;
    height: 160px;
    overflow: hidden;
    background: var(--bg-tertiary);
    border-radius: 16px;
}

.project-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 12px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.project-links .btn {
    padding: 10px 20px;
    font-size: 14px;
    min-height: 40px;
}

.project-links .btn i {
    margin-right: 8px;
}

.project-content {
    padding: 20px 32px 32px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: flex-start;
    align-items: center;
    flex: 1;
}

.project-content h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: white !important;
    margin: 0;
    letter-spacing: -0.02em;
}

.project-content p {
    font-size: 18px;
    line-height: 1.5;
    color: black;
    margin: 0;
    max-width: 100%;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    justify-content: center;
}

.project-tech .tech-tag {
    font-size: 11px;
    padding: 4px 8px;
    background: var(--accent-primary);
    color: #ffffff;
    border: 1px solid var(--accent-primary);
}


/* Projects Disclaimer - Sliding Box */
.disclaimer-slide-box {
    position: fixed;
    top: 20px;
    left: -100%;
    background: #ffffff;
    border: 2px solid var(--accent-primary);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 20px 24px;
    max-width: 600px;
    width: 90%;
    z-index: 1000;
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.disclaimer-slide-box.show {
    left: 20px;
}

.disclaimer-slide-box.hide {
    left: -100%;
}

.disclaimer-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.disclaimer-content i {
    color: var(--accent-primary);
    font-size: 20px;
    flex-shrink: 0;
}

.disclaimer-content p {
    margin: 0;
    color: #333333;
    font-size: 15px;
    line-height: 1.5;
}

.disclaimer-content strong {
    color: #000000;
}

/* Back to Home Section */
.back-to-home {
    background: var(--bg-secondary);
    padding: 48px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.back-to-home .btn {
    min-width: 180px;
}

.back-to-home .btn i {
    margin-right: 8px;
}

/* Mobile Responsive for Projects Page */
@media (max-width: 768px) {
    .projects-header {
        padding: 100px 0 60px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .page-subtitle {
        font-size: 18px;
        margin-bottom: 40px;
    }
    
    .search-input {
        padding: 14px 14px 14px 44px;
        font-size: 16px;
    }
    
    .search-icon {
        left: 14px;
        font-size: 14px;
    }
    
    .filter-container {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 32px;
    }
    
    .project-content {
        padding: 12px 16px 16px 16px;
        gap: 12px;
    }
    
    .project-content h3 {
        font-size: 16px;
        color: white;
    }
    
    .project-content p {
        font-size: 12px;
        color: black;
    }
    
    .disclaimer-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .disclaimer-content p {
        font-size: 14px;
    }
    
    .disclaimer-slide-box {
        width: 95%;
        padding: 16px 20px;
    }
    
    .project-links {
        flex-direction: row;
        gap: 8px;
    }
    
    .project-links .btn {
        padding: 8px 16px;
        font-size: 13px;
        min-height: 36px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 32px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .project-links .btn {
        width: 100%;
    }
}


