/* ===== NETFLIX THEME VARIABLES ===== */
:root {
    --netflix-red: #e50914;
    --netflix-red-dark: #b20710;
    --netflix-black: #000000;
    --netflix-dark-gray: #141414;
    --netflix-gray: #333333;
    --netflix-light-gray: #555555;
    --netflix-white: #ffffff;
    --netflix-text-light: #d4d4d4;  /* Improved readability */
    --netflix-text-medium: #a1a1a1;
    --netflix-text-dark: #f5f5f1;
    --netflix-background-soft: #1a1a1a;  /* Softer than pure black */
    --shadow-netflix: rgba(0, 0, 0, 0.75);
    --gradient-netflix: linear-gradient(135deg, #e50914, #b20710);
    --gradient-dark: linear-gradient(135deg, #000000, #141414);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Netflix Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.7;  /* Better readability */
    color: var(--netflix-text-dark);
    background: var(--netflix-background-soft);
    overflow-x: hidden;
    position: relative;
    font-size: 16px;  /* Ensure good base font size */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, var(--netflix-dark-gray) 0%, var(--netflix-background-soft) 70%);
    z-index: -1;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Netflix-style animations */
@keyframes netflixGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(229, 9, 20, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(229, 9, 20, 0.8);
    }
}

@keyframes netflixPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-delay {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.fade-in-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ===== NAVIGATION - NETFLIX STYLE ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--netflix-black) 0%, transparent 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 20px 0;
}

.navbar.scrolled {
    background: var(--netflix-black);
    box-shadow: 0 2px 20px var(--shadow-netflix);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--netflix-red);
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-logo a:hover {
    color: var(--netflix-red-dark);
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(229, 9, 20, 0.5);
}

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

.nav-link {
    text-decoration: none;
    color: var(--netflix-text-light);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--netflix-red);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--netflix-white);
}

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

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--netflix-white);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* ===== SECTIONS ===== */
.section {
    display: none !important;  /* Force hide inactive sections */
    min-height: 100vh;
    padding: 100px 0 60px;  /* Reduced top padding */
    background: var(--netflix-background-soft);
    position: relative;
}

.section.active {
    display: block !important;  /* Force show active section */
    animation: fadeIn 0.6s ease-in;
}

/* Make non-home sections start closer to top */
.section:not(.home-section) {
    padding-top: 140px; /* Account for navbar */
}

.section:not(.home-section) .section-header {
    margin-bottom: 3rem; /* Reduced margin for non-home sections */
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;  /* Reduced for better readability */
    font-weight: 700;   /* Reduced weight */
    color: var(--netflix-white);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);  /* Softer shadow */
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--netflix-text-light);
    max-width: 700px;  /* Wider for better reading */
    margin: 0 auto;
    line-height: 1.8;  /* Better line height for readability */
    font-weight: 400;
}

/* ===== HOME SECTION - NETFLIX STYLE ===== */
.home-section {
    display: flex;
    align-items: center;
    min-height: 100vh;
    background: 
        radial-gradient(circle at 20% 20%, rgba(229, 9, 20, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(178, 7, 16, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, var(--netflix-black) 0%, var(--netflix-dark-gray) 50%, var(--netflix-black) 100%),
        url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--netflix-white);
    position: relative;
    overflow: hidden;
}

.home-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 20, 0.6));
    backdrop-filter: blur(2px);
    z-index: 1;
}

/* Neural Network & Quant Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: float-particles 6s infinite linear;
}

.particle:nth-child(odd) {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.8) 0%, rgba(37, 99, 235, 0.3) 70%, transparent 100%);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.particle:nth-child(even) {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.8) 0%, rgba(5, 150, 105, 0.3) 70%, transparent 100%);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

/* Neural Network Connections */
.home-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, transparent 40%, rgba(59, 130, 246, 0.1) 41%, rgba(59, 130, 246, 0.1) 42%, transparent 43%),
        linear-gradient(-45deg, transparent 40%, rgba(16, 185, 129, 0.1) 41%, rgba(16, 185, 129, 0.1) 42%, transparent 43%),
        linear-gradient(90deg, transparent 40%, rgba(37, 99, 235, 0.05) 41%, rgba(37, 99, 235, 0.05) 42%, transparent 43%);
    background-size: 80px 80px, 60px 60px, 100px 100px;
    background-position: 0 0, 0 0, 40px 40px;
    animation: neural-network 20s linear infinite;
    z-index: 0;
}

@keyframes neural-network {
    0% { background-position: 0 0, 0 0, 40px 40px; }
    100% { background-position: 80px 80px, -60px -60px, 140px 140px; }
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; }
.particle:nth-child(5) { left: 50%; animation-delay: 4s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 0.5s; }
.particle:nth-child(8) { left: 80%; animation-delay: 1.5s; }
.particle:nth-child(9) { left: 90%; animation-delay: 2.5s; }
.particle:nth-child(10) { left: 15%; animation-delay: 3.5s; }

@keyframes float-particles {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* Financial Data Stream Animation */
.data-stream {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.1;
    overflow: hidden;
}

.data-row {
    position: absolute;
    right: -200px;
    color: rgba(59, 130, 246, 0.9);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    animation: scroll-data 15s linear infinite;
    text-shadow: 
        0 0 10px rgba(59, 130, 246, 0.8),
        0 0 20px rgba(59, 130, 246, 0.4),
        1px 1px 2px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(2px);
    background: linear-gradient(90deg, 
        rgba(15, 23, 42, 0.2) 0%, 
        rgba(30, 41, 59, 0.1) 50%, 
        rgba(15, 23, 42, 0.2) 100%);
    padding: 2px 8px;
    border-radius: 4px;
}

.data-row:nth-child(odd) {
    color: rgba(16, 185, 129, 0.9);
    text-shadow: 
        0 0 10px rgba(16, 185, 129, 0.8),
        0 0 20px rgba(16, 185, 129, 0.4),
        1px 1px 2px rgba(0, 0, 0, 0.8);
}

.data-row:hover {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
    transform: scale(1.02);
}

.data-row:nth-child(1) { top: 10%; animation-delay: 0s; }
.data-row:nth-child(2) { top: 20%; animation-delay: 2s; }
.data-row:nth-child(3) { top: 30%; animation-delay: 4s; }
.data-row:nth-child(4) { top: 40%; animation-delay: 6s; }
.data-row:nth-child(5) { top: 50%; animation-delay: 8s; }
.data-row:nth-child(6) { top: 60%; animation-delay: 10s; }
.data-row:nth-child(7) { top: 70%; animation-delay: 12s; }
.data-row:nth-child(8) { top: 80%; animation-delay: 14s; }

@keyframes scroll-data {
    0% {
        right: -100%;
        opacity: 0;
    }
    10%, 90% {
        opacity: 0.3;
    }
    100% {
        right: 100%;
        opacity: 0;
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(0, 0, 0, 0.8));
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 3rem;
    border: 1px solid rgba(229, 9, 20, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

.hero-title {
    font-size: 3.2rem;  /* More readable size */
    font-weight: 700;   /* Less heavy */
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--netflix-white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.highlight {
    background: var(--gradient-netflix);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.4rem;  /* Larger for better readability */
    margin-bottom: 2rem;
    color: var(--netflix-text-light);
    line-height: 1.7;   /* Better line spacing */
    max-width: 600px;   /* Limit width for better reading */
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--netflix-red);
    color: var(--netflix-white);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.btn-primary:hover {
    background: var(--netflix-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--netflix-white);
    border: 2px solid var(--netflix-light-gray);
}

.btn-secondary:hover {
    background: var(--netflix-white);
    color: var(--netflix-black);
    transform: translateY(-2px);
    border-color: var(--netflix-white);
}

.profile-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

.profile-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: 
        radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(16, 185, 129, 0.6) 0%, transparent 50%),
        linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(16, 185, 129, 0.4));
    border-radius: 50%;
    opacity: 0.9;
    animation: float 4s ease-in-out infinite reverse;
    box-shadow: 
        0 0 30px rgba(59, 130, 246, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.profile-decoration::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    animation: tech-pulse 3s ease-in-out infinite;
}

@keyframes tech-pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) rotate(45deg) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) rotate(45deg) scale(1.1); }
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--netflix-black) 0%, var(--netflix-dark-gray) 100%);
}

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

.project-card {
    background: var(--netflix-dark-gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid var(--netflix-gray);
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
    border-color: var(--netflix-red);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.95), rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

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

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--netflix-white);
    color: var(--netflix-black);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--netflix-white);
    margin-bottom: 0.5rem;
}

.project-description {
    color: var(--netflix-text-light);
    margin-bottom: 1rem;
    line-height: 1.7;  /* Better readability */
    font-size: 1rem;
    opacity: 0.95;     /* Slightly more prominent */
}

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

.tech-tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--netflix-gray);
    color: var(--netflix-text-light);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--netflix-background-soft) 0%, var(--netflix-dark-gray) 100%);
}

.about-content {
    display: block;
    max-width: 800px;
    margin: 0 auto;
}

.about-description p {
    margin-bottom: 1.8rem;  /* More breathing room */
    color: var(--netflix-text-light);
    font-size: 1.15rem;    /* Slightly larger for better readability */
    line-height: 1.8;      /* Better line spacing */
    max-width: 65ch;       /* Optimal reading width */
}

.skills-section {
    margin-top: 3rem;
}

.skills-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--netflix-white);
    margin-bottom: 1.5rem;
}

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

.skill-category h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--netflix-red);
    margin-bottom: 1rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.6rem 0;
    color: var(--netflix-text-light);
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.skill-category li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--netflix-red);
    font-weight: bold;
}

.about-img-container {
    position: relative;
}

.about-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ===== EXPERIENCE SECTION ===== */
.experience-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--netflix-dark-gray) 0%, var(--netflix-black) 100%);
    position: relative;
}

.experience-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23e2e8f0" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
    z-index: 0;
}

.experience-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Timeline Styles */
.experience-timeline {
    position: relative;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #2563eb, #3b82f6, #60a5fa);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInTimeline 0.8s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.3s; }
.timeline-item:nth-child(3) { animation-delay: 0.5s; }
.timeline-item:nth-child(4) { animation-delay: 0.7s; }

@keyframes slideInTimeline {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 
        0 8px 25px rgba(37, 99, 235, 0.3),
        0 0 0 4px rgba(255, 255, 255, 1),
        0 0 0 8px rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.timeline-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #2563eb, #3b82f6, #60a5fa, #2563eb);
    border-radius: 50%;
    z-index: -1;
    animation: rotate-border 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-item:hover .timeline-icon::before {
    opacity: 1;
}

@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.timeline-content {
    background: var(--netflix-dark-gray);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.6),
        0 16px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--netflix-gray);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-netflix);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.8),
        0 24px 48px rgba(0, 0, 0, 0.4);
    border-color: var(--netflix-red);
}

.timeline-item:hover .timeline-content::before {
    opacity: 1;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--netflix-white);
    margin: 0;
}

.timeline-date {
    background: var(--gradient-netflix);
    color: var(--netflix-white);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
}

.timeline-company {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--netflix-red);
    margin: 0 0 1rem 0;
}

.timeline-description {
    color: var(--netflix-text-light);
    line-height: 1.8;      /* Better spacing */
    margin-bottom: 1.5rem;
    font-size: 1.05rem;    /* Slightly larger */
    max-width: 60ch;       /* Optimal reading width */
}

.timeline-achievements {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
}

.timeline-achievements li {
    position: relative;
    padding: 0.7rem 0 0.7rem 1.8rem;  /* More spacing */
    color: var(--netflix-text-light);  /* Better contrast */
    line-height: 1.7;                 /* Better readability */
    font-size: 1rem;                  /* Consistent size */
}

.timeline-achievements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--netflix-red);         /* Netflix red for consistency */
    font-weight: bold;
    font-size: 1.1rem;
}

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

.skill-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
    color: #475569;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.skill-badge:hover {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Skills Progress Section */
.skills-progress {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: sticky;
    top: 120px;
    height: fit-content;
}

.skills-progress-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.skills-progress-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 2px;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.skill-item:nth-child(1) { animation-delay: 0.2s; }
.skill-item:nth-child(2) { animation-delay: 0.4s; }
.skill-item:nth-child(3) { animation-delay: 0.6s; }
.skill-item:nth-child(4) { animation-delay: 0.8s; }
.skill-item:nth-child(5) { animation-delay: 1s; }
.skill-item:nth-child(6) { animation-delay: 1.2s; }

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.skill-percentage {
    font-weight: 700;
    color: #2563eb;
    font-size: 0.9rem;
}

.skill-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6, #60a5fa);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease-out 0.5s;
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive Design for Experience Section */
@media (max-width: 968px) {
    .experience-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .skills-progress {
        position: relative;
        top: auto;
    }
}

@media (max-width: 768px) {
    .timeline-item {
        padding-left: 60px;
    }
    
    .experience-timeline::before {
        left: 20px;
    }
    
    .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-title {
        font-size: 1.2rem;
    }
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 120px 0;
    background: var(--netflix-dark-gray);
}

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

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--netflix-white);
    margin-bottom: 1rem;
}

.contact-info p {
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

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

.contact-method i {
    width: 45px;
    height: 45px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.contact-method h4 {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.contact-method a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-method a:hover {
    color: #1d4ed8;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

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

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

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

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

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

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

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

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

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

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

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

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

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 1rem 15px;
    }
}

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

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

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

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .profile-container {
        width: 250px;
        height: 250px;
    }

    .project-card {
        margin: 0 10px;
    }
}

/* ===== SMOOTH SCROLLING & PERFORMANCE ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}