:root {
    --bg-color: #f8f9fa;
    --text-primary: #212529;
    --accent-color: #007BFF;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 60px 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.8;
    max-width: 450px;
}

/* Landing Page Image */
.data-viz {
    position: relative;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.data-viz img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-primary);
    opacity: 0.7;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-indicator span {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.scroll-indicator::after {
    content: '↓';
    font-size: 1.5rem;
    color: var(--accent-color);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Shared Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Experience Section */
.experience {
    padding: 25px 0;
    position: relative;
}

.experience-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-color), rgba(0, 123, 255, 0.3));
    transform: translateX(-50%);
    z-index: 1;
}

.experience-item {
    position: relative;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease forwards;
}

.experience-item:nth-child(even) {
    animation-delay: 0.2s;
}

.experience-item:nth-child(odd) {
    animation-delay: 0.4s;
}

.experience-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-light);
    position: relative;
    width: calc(50% - 40px);
    transition: var(--transition);
}

.experience-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.1);
}

.experience-item:nth-child(odd) .experience-content {
    margin-left: auto;
}

.experience-item:nth-child(even) .experience-content {
    margin-right: auto;
}

/* Timeline Dot */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 30px;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border: 4px solid white;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.2);
    transition: var(--transition);
}

.experience-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 8px rgba(0, 123, 255, 0.3);
}

/* Content Arrow */
.experience-content::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 0;
    height: 0;
    border: 12px solid transparent;
}

.experience-item:nth-child(odd) .experience-content::before {
    left: -24px;
    border-right-color: white;
}

.experience-item:nth-child(even) .experience-content::before {
    right: -24px;
    border-left-color: white;
}

.experience-header {
    margin-bottom: 15px;
}

.experience-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.experience-company {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.experience-date {
    font-size: 0.9rem;
    color: var(--text-primary);
    opacity: 0.7;
    font-weight: 400;
}

.experience-description {
    color: var(--text-primary);
    opacity: 0.8;
    line-height: 1.6;
    margin-top: 15px;
}

.experience-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.experience-skill {
    background: rgba(0, 123, 255, 0.1);
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Photos Gallery for Experience Items */
.experience-photos {
    position: absolute;
    top: 0;
    width: calc(50% - 60px);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

.experience-item:nth-child(odd) .experience-photos {
    left: 0;
}

.experience-item:nth-child(even) .experience-photos {
    right: 0;
}

.experience-photo {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.experience-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 123, 255, 0.1);
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.experience-photo:hover::before {
    opacity: 1;
}

.experience-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.2);
}

.experience-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.experience-photo:hover img {
    transform: scale(1.1);
}

/* Projects Section */
.projects {
    padding: 25px 0 15px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.project-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
    position: relative;
    min-height: 280px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.project-card:hover::before {
    background: rgba(255, 255, 255, 0.85);
}

.project-content {
    padding: 30px;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.project-card p {
    font-weight: 400;
    opacity: 0.8;
    margin-bottom: 20px;
}

.project-details {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.demo-button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 15px;
}

.demo-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Project Card States */
.project-card.expanded {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.2);
    z-index: 10;
}

.project-card.expanded .project-details {
    opacity: 1;
    max-height: 250px;
}

.project-card.dimmed {
    transform: scale(0.95);
    opacity: 0.5;
}

.project-card.highlighted {
    box-shadow: 0 0 0 3px var(--accent-color);
    transform: translateY(-5px);
}

/* Skills Section */
.skills {
    padding: 25px 0;
}

.skill-constellation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.skill-node {
    background: white;
    border: 2px solid transparent;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.skill-node::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.skill-node:hover::before {
    left: 100%;
}

.skill-node:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.2);
}

/* Additional project card backgrounds */
.project-card:nth-child(1) {
    background-image: url('https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExd2ttMmZrb3Z0dGsyZTl1b3JyZWNoeGhqMnJoY2tvc2xzZmh4cHJ1ayZlcD12MV9naWZzX3NlYXJjaCZjdD1n/48tsaAibt19ldQyCby/giphy.gif');
}

.project-card:nth-child(2) {
    background-image: url('https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExNGhidW44dWpheWEzY2NpZzNvZTBrczd0dGJnejk2cnYzcXA0bXQyayZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/3kkPE0lVOKVNHWI5ET/giphy.gif');
}

.project-card:nth-child(3) {
    background-image: url('https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExcjBjdW01YzVwZDBpOTViMG1qY2FvZjJ5NTl3eG83ank0eWNoODR6NSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/XVaH9J3v0KskgxuWZK/giphy.gif');
}

/* Footer */
.footer {
    background: var(--bg-color);
    padding: 50px 0 30px;
    margin-top: 80px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.footer-info p {
    font-size: 0.95rem;
    color: var(--text-primary);
    opacity: 0.7;
    font-weight: 400;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    opacity: 0.8;
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
    opacity: 1;
    color: var(--accent-color);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.2), transparent);
    margin-bottom: 20px;
}

/* ----- Responsive Design ----- */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 50px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .data-viz {
        height: 250px;
    }

    .experience-timeline::before {
        left: 20px;
    }
    
    .experience-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
    }
    
    .experience-photos {
        display: none; /* Hide photos on mobile for better UX */
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .experience-content::before {
        left: -24px !important;
        right: auto !important;
        border-right-color: white !important;
        border-left-color: transparent !important;
    }
    
    .experience-title {
        font-size: 1.2rem;
    }
    
    .experience-company {
        font-size: 1rem;
    }
    
    .experience-item {
        margin-bottom: 40px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        min-height: 250px;
    }

    .skill-constellation {
        gap: 15px;
    }

    .skill-node {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .scroll-indicator span {
        font-size: 0.8rem;
    }
    
    .footer {
        padding: 40px 0 20px;
        margin-top: 60px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-info h3 {
        font-size: 1.3rem;
    }
    
    .social-links {
        gap: 16px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
}