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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #e5e7eb;
    background-color: #1f2937;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

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

/* Navigation */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 3000px;
    margin: 0 auto;
    padding: 1rem 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #10b981;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #10b981;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #10b981;
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #e5e7eb;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    position: relative;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.hero-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1);
}

/* Hero video iframe styles - scale to eliminate black bars */
#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.78vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    filter: brightness(0.9) contrast(1);
}

/* Hero video styles for maximum expansion on larger screens */
.hero-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1);
}

/* Ensure hero video expands to full viewport on larger screens */
@media (min-width: 1200px) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-background {
        width: 100vw;
        height: 100vh;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero-background video {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        filter: brightness(0.9) contrast(1);
    }
}

@media (min-width: 1600px) {
    .hero-background video {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        filter: brightness(0.9) contrast(1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.hero-container {
    max-width: 3000px;
    margin: 0 auto;
    padding: 0 40px 80px 40px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: left;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: #10b981;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #e5e7eb;
}

.hero-description {
    max-width: 700px;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #d1d5db;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: #10b981;
    color: white;
    border: 2px solid #10b981;
}

.btn-primary:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #10b981;
    transform: translateY(-2px);
}



/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #e5e7eb;
}

/* Experience Section */
.experience {
    padding: 80px 0;
    background-color: #374151;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #10b981;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    transition: all 0.4s ease;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 2rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 2rem;
}

/* Scroll-based expansion classes */
.timeline-item.expanded {
    width: 75%;
    z-index: 10;
}

.timeline-item:nth-child(odd).expanded {
    left: -25%;
}

.timeline-item:nth-child(even).expanded {
    left: 50%;
}

/* Scroll-based expansion classes */
.timeline-item.expanded {
    width: 75%;
    z-index: 10;
}

.timeline-item:nth-child(odd).expanded {
    left: -25%;
}

.timeline-item:nth-child(even).expanded {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #10b981;
    border-radius: 50%;
    top: 0;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-content {
    background: #1f2937;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid #374151;
    cursor: pointer;
}



.timeline-header {
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.timeline-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: calc(1.5rem * 1.2 + 1.1rem * 1.2 + 0.5rem); /* Height of h3 + h4 + gap */
    background: transparent;
    border: 0px solid white;
    border-radius: 8px;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.timeline-icon i {
    color: white;
    font-size: 1.5rem;
}

.timeline-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.timeline-text {
    flex: 1;
}

.timeline-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    margin: 0 0 0.5rem 0;
}

.timeline-header h4 {
    font-size: 1.1rem;
    color: #10b981;
    margin-bottom: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 0 1rem 0;
}

/* Minimized state: hide h4 and reposition date */
.timeline-item:not(.expanded) .timeline-header h4 {
    display: none;
}

.timeline-item:not(.expanded) .timeline-date {
    order: 2;
    margin-bottom: 0;
    background: transparent;
    color: #10b981;
    padding: 0;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 500;
    display: inline-block;
    width: fit-content;
}

/* Expanded state: show h4 and reset date position */
.timeline-item.expanded .timeline-header h4 {
    display: block;
}

.timeline-item.expanded .timeline-date {
    position: absolute;
    top: 0;
    right: 0;
    margin-bottom: 0;
    order: unset;
}

.timeline-item.expanded .timeline-text {
    position: relative;
}

.timeline-date {
    display: inline-block;
    background: #374151;
    color: #10b981;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.timeline-details {
    display: flex;
    gap: 2rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    margin-top: 0;
}

/* Ensure timeline details are hidden in minimized state */
.timeline-item:not(.expanded) .timeline-details {
    display: none;
}

/* Image positioning for expanded state */
.timeline-item:nth-child(odd) .timeline-details {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-details {
    flex-direction: row;
}

/* Timeline image positioning - now outside timeline-item and same size as content */
.timeline-image {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    opacity: 0;
    transform: scale(0.8);
    z-index: 5;
    top: 0;
    border: 1px solid #374151;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Timeline playlist positioning - same as image positioning */
.timeline-playlist {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    opacity: 0;
    transform: scale(0.8);
    z-index: 5;
    top: 0;
    border: 1px solid #374151;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.timeline-playlist iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Position images on opposite side of dot for odd items (left side items) */
.timeline-item:nth-child(odd) .timeline-image {
    right: calc(-100% - 2rem); /* Position on right side with gap */
}

/* Position images on opposite side of dot for even items (right side items) */
.timeline-item:nth-child(even) .timeline-image {
    left: calc(-100% - 2rem); /* Position on left side with gap */
}

/* Position playlists on opposite side of dot for odd items (left side items) */
.timeline-item:nth-child(odd) .timeline-playlist {
    right: calc(-100% - 2rem); /* Position on right side with gap */
}

/* Position playlists on opposite side of dot for even items (right side items) */
.timeline-item:nth-child(even) .timeline-playlist {
    left: calc(-100% - 2rem); /* Position on left side with gap */
}

/* Show and enhance images when timeline item is expanded */
.timeline-item.expanded .timeline-image {
    opacity: 1;
    transform: scale(1);
}

/* Show and enhance playlists when timeline item is expanded */
.timeline-item.expanded .timeline-playlist {
    opacity: 1;
    transform: scale(1);
}

/* Adjust positioning for expanded state - move further out */
.timeline-item:nth-child(odd).expanded .timeline-image {
    right: calc(-100% - 3rem);
}

.timeline-item:nth-child(even).expanded .timeline-image {
    left: calc(-100% - 3rem);
}

/* Adjust playlist positioning for expanded state - move further out */
.timeline-item:nth-child(odd).expanded .timeline-playlist {
    right: calc(-100% - 3rem);
}

.timeline-item:nth-child(even).expanded .timeline-playlist {
    left: calc(-100% - 3rem);
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    text-align: center;
    height: 100%;
}

.image-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #10b981;
}

.image-placeholder span {
    font-size: 0.9rem;
    font-weight: 500;
}

.timeline-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Set order for timeline elements */
.timeline-header h3 {
    order: 1;
}

.timeline-header h4 {
    order: 2;
}

.timeline-date {
    order: 3;
}

.timeline-text p {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.timeline-description {
    color: #d1d5db;
    margin-bottom: 1rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Default state - show title, company, date, and description */
.timeline-content {
    padding: 2rem;
}

.timeline-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-header h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.timeline-date {
    margin-bottom: 1rem;
}

/* Minimized state for non-expanded items during scroll */
.timeline-item.minimized {
    width: min-content;
    min-width: 50%;
    max-width: 100%;
}

.timeline-item.minimized .timeline-content {
    padding: 1rem 2rem;
}

.timeline-item.minimized .timeline-header {
    position: relative;
    flex-direction: row;
    align-items: flex-start;
}

.timeline-item.minimized .timeline-text {
    flex: 1;
    padding-right: 0;
}



.timeline-item.minimized .timeline-header h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.timeline-item.minimized .timeline-header h4 {
    display: none;
}

.timeline-item.minimized .timeline-date {
    position: absolute;
    top: 2rem;
    left: 66px;
    margin-bottom: 0;
    margin-top: 0;
}

.timeline-item.minimized .timeline-description {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    overflow: hidden;
}

/* Expanded state - scroll-driven */
.timeline-item.expanded .timeline-content {
transform: translateY(-5px);
box-shadow: 0 12px 35px rgba(16, 185, 129, 0.25);
border-color: #10b981;
padding: 2rem;
background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

.timeline-item.expanded .timeline-details {
opacity: 1;
max-height: 500px;
margin-top: 1rem;
}

/* Projects Section */
.projects {
padding: 80px 0;
background-color: #1f2937;
}

.projects .container {
    max-width: 1500px; /* Wider container for projects */
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force 3 equal columns */
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch; /* Ensure equal heights */
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    height: 100%;
}

.project-card {
    background: #374151;
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #4b5563;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image i {
    font-size: 4rem;
    color: white;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.project-content {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e5e7eb;
    padding: 0 2rem;
}

.project-content p {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    padding: 0 2rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0 2rem;
}

.tech-tag {
    background: #4b5563;
    color: #e5e7eb;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
    padding: 0 2rem;
    margin-top: auto;
}

.project-link {
    color: #10b981;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #059669;
}

.project-link a {
    color: #10b981;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.project-link a:hover {
    color: #059669;
}

/* Gallery Section */
.gallery {
    padding: 80px 0 0 0;
    background-color: #1f2937;
}

.gallery .container {
    max-width: none;
    padding: 0;
    margin: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 0;
    margin-top: 2rem;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.gallery-item {
    width: calc(100vw / 9);
    height: calc(100vw / 9);
    min-height: 500px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.gallery-item:hover {
    transform: scale(5);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.2);
}

/* Responsive Gallery */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gallery-item:hover {
        transform: scale(1.15);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-item {
        min-height: 100px;
    }
    
    .gallery-item:hover {
        transform: scale(1.1);
    }
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: #374151;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

/* Profile Photo in Contact Section */
.profile-photo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.profile-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
    transition: transform 0.3s ease;
    border: 3px solid #10b981;
}

.profile-placeholder:hover {
    transform: scale(1.05);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e5e7eb;
}

.contact-info p {
    color: #d1d5db;
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.contact-item i {
    width: 20px;
    color: #10b981;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: #10b981;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #059669;
    transform: translateY(-2px);
}

.contact-form {
    background: #1f2937;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid #374151;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #e5e7eb;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #4b5563;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #374151;
    color: #e5e7eb;
    transition: border-color 0.3s ease;
}

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

.contact-form .btn {
    width: 100%;
    justify-content: center;
}

/* Project Detail Pages */
.project-nav {
    position: fixed;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
}

.project-hero {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    padding: 120px 0 80px;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.project-hero-content {
    max-width: 800px;
}

.project-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.project-subtitle {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-content {
    background: #1f2937;
    padding: 80px 0;
}

.project-section {
    margin-bottom: 4rem;
}

.project-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2rem;
    border-bottom: 3px solid #10b981;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.project-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

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

.gallery-item {
    background: #374151;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.image-caption {
    padding: 1rem;
    font-size: 0.9rem;
    color: #9ca3af;
    text-align: center;
    margin: 0;
}

.video-container {
    background: #374151;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 2rem;
}

.video-container video {
    border-radius: 8px;
    width: 100%;
    max-height: 500px;
}

.video-caption {
    text-align: center;
    margin-top: 1rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

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

.feature-item {
    background: #374151;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.feature-item p {
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.6;
}

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

.tech-category {
    background: #374151;
    padding: 2rem;
    border-radius: 12px;
}

.tech-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 1rem;
}

.tech-category ul {
    list-style: none;
    padding: 0;
}

.tech-category li {
    color: #d1d5db;
    padding: 0.5rem 0;
    border-bottom: 1px solid #4b5563;
    position: relative;
    padding-left: 1.5rem;
}

.tech-category li:before {
    content: '▸';
    color: #10b981;
    position: absolute;
    left: 0;
}

.tech-category li:last-child {
    border-bottom: none;
}

.challenges {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.challenge-item {
    background: #374151;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #10b981;
}

.challenge-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.challenge-item p {
    color: #d1d5db;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design for Project Pages */
@media (max-width: 768px) {
    .project-title {
        font-size: 2.5rem;
    }
    
    .project-meta {
        align-items: flex-start;
    }
    
    .project-gallery {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-details {
        grid-template-columns: 1fr;
    }
}

/* Image Grid Section */
.image-grid-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 0;
    background: #1f2937;
}

.image-grid-section .section-title {
    background: #374151;
    padding: 80px 0;
    margin-bottom: 0;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    width: 100%;
}

.grid-item {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

.grid-item .static-img {
    opacity: 1;
    z-index: 2;
}

.grid-item .gif-img {
    opacity: 0;
    z-index: 1;
    object-fit: contain;
    background-color: black;
}

.grid-item:hover .static-img {
    opacity: 0;
}

.grid-item:hover .gif-img {
    opacity: 1;
}

/* Grid overlay styles */
.grid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.grid-item:hover .grid-overlay {
    opacity: 1;
}

.grid-overlay h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.grid-overlay p {
    font-size: 0.9rem;
    color: #d1d5db;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.grid-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.grid-tech .tech-tag {
    background: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.grid-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.grid-link {
    color: #10b981;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    font-size: 0.85rem;
}

.grid-link a {
    color: #10b981;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.grid-link:hover,
.grid-link a:hover {
    color: #059669;
}

/* Mobile responsive - 1 per row */
@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    /* Timeline mobile styles */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 50px;
        padding-right: 0;
    }
    
    .timeline-item.expanded {
        width: 100%;
        left: 0 !important;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 50px;
        padding-right: 0;
    }
    
    .timeline-dot {
        left: 12px !important;
        right: auto !important;
    }
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #1f2937;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        border-top: 1px solid #374151;
    }

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

    .nav-toggle {
        display: flex;
    }

    .hero-container {
        text-align: left;
        justify-content: flex-start;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .timeline::before {
        left: 20px;
        background: #10b981;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 3rem !important;
        padding-right: 0 !important;
    }

    .timeline-dot {
        left: 12px !important;
        right: auto !important;
    }

    /* Mobile timeline playlist positioning */
    .timeline-playlist {
        position: static !important;
        width: 100% !important;
        height: 250px !important;
        margin-top: 1.5rem !important;
        opacity: 1 !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        order: 2;
    }

    .timeline-item:nth-child(odd) .timeline-playlist,
    .timeline-item:nth-child(even) .timeline-playlist {
        position: static !important;
        left: auto !important;
        right: auto !important;
    }

    .timeline-content {
        order: 1;
    }

    /* Hide playlist videos when minimized on mobile */
    .timeline-item.minimized .timeline-playlist {
        display: none !important;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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


}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .container {
        padding: 0 15px;
    }
}
