/* Modern CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    padding-top: 100px; /* Account for fixed navigation */
    scroll-behavior: smooth;
}

/* Full Screen Sections */
.full-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 5rem 0;
}

/* Navigation Dots */
.nav-dots {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.nav-dot:hover,
.nav-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

.nav-dot::after {
    content: attr(data-section);
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.nav-dot:hover::after {
    opacity: 1;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: rgba(255, 255, 255, 0.8);
    margin: 0 auto 0.5rem;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
}

/* Section Transitions */
section {
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 1;
    transform: translateY(0);
}

section.active {
    opacity: 1;
    transform: translateY(0);
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.about-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 1000 1000"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23e2e8f0"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-text p {
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: slideInLeft 0.8s ease forwards;
}

.about-text p:nth-child(1) { animation-delay: 0.2s; }
.about-text p:nth-child(2) { animation-delay: 0.4s; }
.about-text p:nth-child(3) { animation-delay: 0.6s; }
.about-text p:nth-child(4) { animation-delay: 0.8s; }

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideInRight 0.8s ease forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.3s; }
.stat-item:nth-child(2) { animation-delay: 0.5s; }
.stat-item:nth-child(3) { animation-delay: 0.7s; }

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Resume Tabs */
.resume-tabs {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    border-bottom: 2px solid var(--border-color);
}

.resume-tab {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.resume-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.resume-tab.active {
    color: var(--primary-color);
}

.resume-tab.active::after {
    transform: scaleX(1);
}

.resume-tab:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

/* Section Subtitle */
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: slideInUp 0.8s ease 0.3s forwards;
}

/* Modern Navigation - Bjornflow Inspired */
.modern-nav {
    background: rgba(15, 15, 35, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-nav.scrolled {
    background: rgba(15, 15, 35, 0.98) !important;
    backdrop-filter: blur(30px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.15);
    padding: 0.5rem 0;
}

.logo-container {
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.025em;
}

.logo-sub {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-top: -2px;
}

.navbar-nav .nav-link {
    color: rgb(255, 255, 255) !important;
    font-weight: 500;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(237, 229, 229, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

.navbar-nav .nav-link:hover::before {
    left: 0;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.navbar-nav .nav-link i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover i {
    transform: scale(1.1);
}

/* Hero Section - Bjornflow Inspired */
.hero-section {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.hero-section::after {
    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 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.05"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="300" fill="url(%23a)"/><circle cx="800" cy="800" r="400" fill="url(%23a)"/><circle cx="500" cy="100" r="200" fill="url(%23a)"/></svg>');
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    opacity: 0;
    background: linear-gradient(135deg, #ffffff 0%, #a8a8ff 50%, #ffa8ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: 
        slideInUp 1s ease 0.5s forwards,
        gradientShift 3s ease-in-out infinite;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0;
    color: rgba(255, 255, 255, 0.8);
    animation: slideInUp 1s ease 0.7s forwards;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-xl);
    margin: 2rem auto;
    opacity: 0;
    animation: slideInUp 1s ease 0.9s forwards;
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.05);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    opacity: 0;
    animation: slideInUp 1s ease 1.1s forwards;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-lg);
    color: white;
}
social-links-list {
    display: flex;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  social-links-list social-link {
    list-style: none;
  }
  
  social-links-list social-link social-link-item {
    width: 80px;
    height: 80px;
    background-color: #fff;
    text-align: center;
    line-height: 80px;
    font-size: 35px;
    margin: 0 10px;
    display: block;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 3px solid #fff;
    z-index: 1;
  }
  
  social-links-list social-link social-link-item .icon {
    position: relative;
    color: #262626;
    transition: 0.5s;
    z-index: 3;
  }
  
  social-links-list social-link social-link-item:hover .icon {
    color: #fff;
    transform: rotateY(360deg);
  }
  
  social-links-list social-link social-link-item:before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f00;
    transition: 0.5s;
    z-index: 2;
  }
  
  social-links-list social-link social-link-item:hover:before {
    top: 0;
  }
  social-links-list social-link:nth-child(1) social-link-item:before {
    background: #000000;
  }
  
  social-links-list social-link:nth-child(2) social-link-item:before {
    background: #074de4;
  }
  
  social-links-list social-link:nth-child(3) social-link-item:before {
    background: #ff0000;
  }
  social-links-list social-link:nth-child(4) social-link-item:before {
    background: #dc08e3;
  }
  social-links-list social-link:nth-child(5) a:before {
    background: #191818;
  }

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    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);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Content Sections */
.content-section {
    padding: 5rem 0;
    position: relative;
    margin-top: 2rem;
}

.content-section:nth-child(even) {
    background: var(--bg-secondary);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Bio Section */
.bio-section {
    background: var(--bg-primary);
    padding: 5rem 0;
}

.bio-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.bio-text p {
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.bio-text p:nth-child(1) { animation-delay: 0.2s; }
.bio-text p:nth-child(2) { animation-delay: 0.4s; }
.bio-text p:nth-child(3) { animation-delay: 0.6s; }

/* Portfolio Section - Bjornflow Inspired */
.portfolio-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 8rem 0;
    position: relative;
}

.portfolio-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 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="%23e2e8f0" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    animation: slideInUp 0.8s ease forwards;
    position: relative;
    cursor: pointer;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }

.portfolio-item:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3);
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-video {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border: none;
    transition: transform 0.6s ease;
    position: relative;
    z-index: 2;
}

.portfolio-item:hover .portfolio-video {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.portfolio-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    background: linear-gradient(135deg, #1f2937 0%, #6366f1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-title {
    transform: translateX(10px);
}

.portfolio-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-description {
    color: var(--text-primary);
    transform: translateX(10px);
}

/* Project number indicator */
.portfolio-item::after {
    content: attr(data-project-number);
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(99, 102, 241, 0.6);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    z-index: 3;
    transition: all 0.3s ease;
}

.portfolio-item:hover::after {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Portfolio Tags */
.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tag {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tag:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a855f7 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Resume Section */
.resume-section {
    background: var(--bg-primary);
    padding: 5rem 0;
    min-height: 100vh;
    position: relative;
    opacity: 1;
    transform: translateY(0);
}

.resume-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    opacity: 1; /* Ensure container is visible */
    transform: translateY(0); /* Reset transform */
}

.resume-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

.resume-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.resume-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.resume-email {
    font-size: 1.2rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.resume-email:hover {
    color: var(--primary-dark);
}

.resume-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.resume-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.resume-download:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.resume-download i {
    font-size: 1.1rem;
}

.resume-section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
    position: relative;
    padding-left: 1rem;
}

.resume-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.resume-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.experience-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    opacity: 1; /* Ensure items are visible by default */
    transform: translateY(0); /* Reset transform */
}

.experience-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.experience-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.experience-company {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.experience-duration {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.experience-details ul {
    list-style: none;
    padding: 0;
}

.experience-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.experience-details li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch; /* Ensure all items stretch to same height */
}

.skill-category {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Take full height of grid cell */
    min-height: 400px; /* Set minimum height */
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.skill-category h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    flex-shrink: 0; /* Prevent title from shrinking */
}

.skill-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1; /* Take remaining space */
    overflow-y: auto; /* Add vertical scrolling */
    max-height: 300px; /* Limit max height before scrolling */
    scrollbar-width: thin; /* Thin scrollbar for Firefox */
    scrollbar-color: var(--primary-color) var(--bg-secondary); /* Custom scrollbar colors */
}

/* Custom scrollbar for Webkit browsers */
.skill-category ul::-webkit-scrollbar {
    width: 6px;
}

.skill-category ul::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.skill-category ul::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.skill-category ul::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.skill-category li {
    padding: 0.5rem;
    margin: 0.25rem 0;
    background: white;
    border-radius: 0.25rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    flex-shrink: 0; /* Prevent items from shrinking */
}

.skill-category li:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* Modern Footer */
.modern-footer {
    background: var(--bg-dark);
    color: white;
    padding: 2rem 0;
    margin-top: 5rem;
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-image {
        width: 250px;
        height: 250px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .resume-container {
        padding: 2rem 1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-category {
        min-height: 350px;
    }
    
    .skill-category ul {
        max-height: 250px;
    }
    
    .social-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-image {
        width: 200px;
        height: 200px;
    }
    
    .resume-name {
        font-size: 2rem;
    }
    
    .resume-download {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .resume-contact {
        gap: 0.8rem;
    }
    
    .bio-text {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}

/* Custom Cursor - Bjornflow Inspired */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: rgba(99, 102, 241, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s ease;
}

.cursor-hover {
    transform: scale(1.5);
    background: rgba(168, 85, 247, 0.9);
}

.cursor-follower-hover {
    transform: scale(1.2);
    border-color: rgba(168, 85, 247, 0.6);
}

/* Hide default cursor on interactive elements */
a, button, .portfolio-item, .social-link, .nav-link {
    cursor: none;
}

/* Utility Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.slide-in-left {
    opacity: 0;
    animation: slideInLeft 1s ease forwards;
}

.slide-in-right {
    opacity: 0;
    animation: slideInRight 1s ease forwards;
}

.slide-in-up {
    opacity: 0;
    animation: slideInUp 1s ease forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

.bounce {
    animation: bounce 2s infinite;
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::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: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Portfolio Wide-Frame Video Layout */
.portfolio-section {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.portfolio-header {
    position: relative;
    z-index: 10;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Video Carousel Anchor Point - Hidden */
.video-carousel-anchor {
    position: relative;
    z-index: 15;
    padding: 0;
    margin: 0;
    height: 0;
    overflow: hidden;
    visibility: hidden;
}

.anchor-indicator {
    display: none;
}

.anchor-line {
    display: none;
}

.anchor-text {
    display: none;
}

.portfolio-video-container {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: #000;
    display: block !important;
    opacity: 1 !important;
}

.portfolio-video-track {
    position: relative;
    height: 100%;
    width: 100%;
}

.portfolio-video-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
    display: block;
}

.portfolio-video-item.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* Fallback: Show first video by default */
.portfolio-video-item:first-child {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.portfolio-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7);
    transition: filter 0.3s ease;
}

.portfolio-video-item.active .portfolio-video {
    filter: brightness(1);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 4rem;
    z-index: 3;
}

.project-info {
    max-width: 600px;
    color: white;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-video-item.active .project-info {
    transform: translateY(0);
    opacity: 1;
}

.project-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.project-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-tags .tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.project-tags .tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.scroll-progress {
    width: 2px;
    height: 200px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1px;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 33.33%;
    background: linear-gradient(180deg, #6366f1 0%, #a855f7 100%);
    border-radius: 1px;
    transition: height 0.3s ease;
}

.scroll-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.1em;
}

/* Project Navigation */
.project-nav {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 200px;
}

.project-nav-item:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateX(10px);
}

.project-nav-item.active {
    background: rgba(99, 102, 241, 0.8);
    border-color: rgba(99, 102, 241, 1);
    transform: translateX(10px);
}

.nav-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    min-width: 2rem;
}

.project-nav-item.active .nav-number {
    color: white;
}

.nav-title {
    font-size: 1rem;
    font-weight: 500;
    color: white;
}

/* Mobile Carousel Adjustments */
@media (max-width: 768px) {
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-prev {
        left: 0.5rem;
    }
    
    .carousel-next {
        right: 0.5rem;
    }
    
    .portfolio-slide .portfolio-video {
        height: 250px;
    }
    
    .carousel-autoplay {
        width: 35px;
        height: 35px;
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* Mobile Portfolio Wide-Frame Adjustments */
@media (max-width: 768px) {
    
    .portfolio-video-container {
        height: 70vh;
    }
    
    .video-overlay {
        padding: 2rem;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .project-description {
        font-size: 1rem;
    }
    
    .project-nav {
        left: 1rem;
        gap: 0.5rem;
    }
    
    .project-nav-item {
        padding: 0.75rem 1rem;
        min-width: 150px;
    }
    
    .nav-number {
        font-size: 1.2rem;
        min-width: 1.5rem;
    }
    
    .nav-title {
        font-size: 0.9rem;
    }
    
    .scroll-indicator {
        right: 1rem;
    }
    
    .scroll-progress {
        height: 150px;
    }
    
    .scroll-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    
    .portfolio-video-container {
        height: 60vh;
    }
    
    .video-overlay {
        padding: 1rem;
    }
    
    .project-title {
        font-size: 1.5rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
    
    .project-tags .tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .project-nav {
        left: 0.5rem;
    }
    
    .project-nav-item {
        padding: 0.5rem 0.75rem;
        min-width: 120px;
    }
    
    .scroll-indicator {
        right: 0.5rem;
    }
}