/* ============================================
   CSS Variables - Theme Colors
   ============================================ */
:root {
    /* Primary Colors */
    --primary-blue: #4A90E2;
    --primary-purple: #7B68EE;
    --primary-teal: #20B2AA;
    
    /* Neutral Colors */
    --bg-primary: #0A0E27;
    --bg-secondary: #141B2D;
    --bg-card: #1A2332;
    --bg-card-hover: #222B3D;
    
    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #B8C5D6;
    --text-muted: #8A95A8;
    
    /* Accent Colors */
    --accent-gradient: linear-gradient(135deg, #4A90E2 0%, #7B68EE 50%, #20B2AA 100%);
    --accent-gradient-hover: linear-gradient(135deg, #5BA0F2 0%, #8B78FE 50%, #30C2BA 100%);
    
    /* Spacing - Ultra Compact & Professional (20% compressed) */
    --spacing-xs: 0.2rem;
    --spacing-sm: 0.4rem;
    --spacing-md: 0.8rem;
    --spacing-lg: 1.2rem;
    --spacing-xl: 1.6rem;
    --spacing-2xl: 2.4rem;
    --spacing-3xl: 3.2rem;
    
    /* Border Radius (20% compressed) */
    --radius-sm: 0.4rem;
    --radius-md: 0.8rem;
    --radius-lg: 1.2rem;
    --radius-xl: 1.6rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(74, 144, 226, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Montserrat', 'Courier New', monospace;
    
    /* Enhanced Shadows */
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.4);
    --shadow-2xl: 0 20px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow-blue: 0 0 30px rgba(74, 144, 226, 0.4);
    --shadow-glow-purple: 0 0 30px rgba(123, 104, 238, 0.4);
    
    /* Focus States */
    --focus-ring: 0 0 0 3px rgba(74, 144, 226, 0.5);
    --focus-ring-offset: 0 0 0 3px rgba(74, 144, 226, 0.3);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base readable size */
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1;
}

/* Headings use Montserrat for professional look */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Enhanced Focus States for Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Smooth Scroll Behavior Enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-md);
}

@media (max-width: 768px) {
    .nav-wrapper {
        justify-content: space-between;
    }
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.35rem;
}

.logo-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    position: relative;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-family: var(--font-secondary);
    letter-spacing: 0.01em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(74, 144, 226, 0.1);
}

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

.nav-link.active {
    color: var(--primary-blue);
    background: rgba(74, 144, 226, 0.15);
}

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

.nav-link.resume-btn {
    background: var(--accent-gradient);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
}

.nav-link.resume-btn::after {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-md);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-blue);
    top: -160px;
    left: -160px;
    animation-delay: 0s;
}

.orb-2 {
    width: 320px;
    height: 320px;
    background: var(--primary-purple);
    bottom: -120px;
    right: -120px;
    animation-delay: 5s;
}

.orb-3 {
    width: 240px;
    height: 240px;
    background: var(--primary-teal);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-profile-wrapper {
    margin-bottom: var(--spacing-lg);
    display: flex;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3.5px solid transparent;
    background: var(--accent-gradient);
    padding: 3.5px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    animation: profileFloat 6s ease-in-out infinite;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(74, 144, 226, 0.5);
}

.profile-image-border {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: var(--accent-gradient);
    opacity: 0.3;
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.3);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-xl);
    margin: 0 auto var(--spacing-lg) auto;
    font-size: 0.85rem;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.hero-badge:hover {
    background: rgba(74, 144, 226, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.badge-icon {
    width: 16px;
    height: 16px;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.hero-title {
    margin: 0 auto var(--spacing-md) auto;
    text-align: center;
    width: 100%;
    font-family: var(--font-secondary);
}

.title-line {
    display: block;
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0 auto var(--spacing-xs) auto;
    text-align: center;
}

.title-name {
    display: block;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 auto var(--spacing-xs) auto;
    text-align: center;
    line-height: 1.1;
    letter-spacing: -0.02em;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
    font-family: var(--font-secondary);
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.title-tagline {
    display: block;
    font-size: clamp(1.1rem, 2.8vw, 1.8rem);
    font-weight: 600;
    color: var(--text-primary);
    margin: var(--spacing-sm) auto 0 auto;
    text-align: center;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 auto var(--spacing-lg) auto;
    line-height: 1.7;
    max-width: 700px;
    width: 100%;
    text-align: center;
}

.subtitle-highlight {
    color: var(--text-primary);
    font-weight: 600;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2) 0%, rgba(123, 104, 238, 0.2) 100%);
    padding: 1.6px 6.4px;
    border-radius: var(--radius-sm);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: var(--font-secondary);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-glow-blue), var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary svg {
    transition: transform var(--transition-fast);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left var(--transition-base);
}

.btn-secondary:hover::before {
    left: 0;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-md);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary svg {
    transition: transform var(--transition-fast);
}

.btn-secondary:hover svg {
    transform: translateY(-2px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
    margin: var(--spacing-lg) auto 0 auto;
    max-width: 900px;
    width: 100%;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-sm) var(--spacing-xs);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0.1;
    transition: left var(--transition-slow);
}

.stat-item:hover::before {
    left: 0;
}

.stat-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
    border-color: rgba(74, 144, 226, 0.3);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

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

/* ============================================
   Section Styles
   ============================================ */
section {
    padding: var(--spacing-lg) var(--spacing-md);
    position: relative;
}

section:first-of-type {
    padding-top: calc(var(--spacing-lg) + 70px);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.section-tag {
    display: inline-block;
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary-blue);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: clamp(1.6rem, 3.6vw, 2.2rem);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
    line-height: 1.2;
    font-family: var(--font-secondary);
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   About Section
   ============================================ */
.about {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.about .container {
    position: relative;
    z-index: 1;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.about-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.about-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

.about-text .lead {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    grid-column: 1 / -1;
}

.about-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    grid-column: 1 / -1;
}

.highlight-item {
    display: flex;
    gap: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.highlight-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.highlight-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 226, 0.08);
    border-radius: 8px;
    color: var(--primary-blue);
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 144, 226, 0.15);
}

.highlight-item h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.highlight-item p {
    font-size: 0.8rem;
    margin: 0;
}

.highlight-item:hover .highlight-icon {
    background: rgba(74, 144, 226, 0.15);
    border-color: rgba(74, 144, 226, 0.3);
}

.highlight-item h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.highlight-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   Skills Section
   ============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xl);
    }
}

.skill-category {
    background: rgba(26, 35, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.skill-category:hover {
    transform: translateY(-2px);
    border-color: rgba(74, 144, 226, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: rgba(26, 35, 50, 0.8);
}

.category-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 12px;
    color: var(--primary-blue);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.skill-category:hover .category-icon {
    background: rgba(74, 144, 226, 0.15);
    transform: scale(1.05);
}

.category-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    font-family: var(--font-secondary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    line-height: 1.6;
}

.skill-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 400;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    font-family: var(--font-primary);
}

.skill-tag:hover {
    background: rgba(74, 144, 226, 0.12);
    color: var(--primary-blue);
    border-color: rgba(74, 144, 226, 0.25);
    transform: translateY(-1px);
}

/* ============================================
   Projects Section
   ============================================ */
.projects {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(123, 104, 238, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.projects .container {
    position: relative;
    z-index: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out;
    justify-items: center;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
}

@media (min-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
    }
    
    .projects-grid.grid-2x2 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
}

@media (min-width: 1600px) {
    .projects-grid {
        max-width: 1400px;
    }
}

@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(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced Fade-in Animation */
.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Stagger Animation Utilities */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* Stagger animation for project cards */
.projects-grid .project-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.projects-grid .project-card:nth-child(1) { animation-delay: 0.1s; }
.projects-grid .project-card:nth-child(2) { animation-delay: 0.2s; }
.projects-grid .project-card:nth-child(3) { animation-delay: 0.3s; }
.projects-grid .project-card:nth-child(4) { animation-delay: 0.4s; }
.projects-grid .project-card:nth-child(5) { animation-delay: 0.5s; }
.projects-grid .project-card:nth-child(6) { animation-delay: 0.6s; }
.projects-grid .project-card:nth-child(n+7) { animation-delay: 0.7s; }

.project-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
    perspective: 1000px;
    width: 100%;
    max-width: 100%;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.project-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(123, 104, 238, 0.1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95) contrast(1.05);
}

.project-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(74, 144, 226, 0.1) 50%, transparent 70%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--spacing-md);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(2px);
}

.project-thumbnail .view-gallery-text {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.project-card:hover .project-thumbnail img {
    transform: scale(1.08) translateY(-2px);
    filter: brightness(1.05) contrast(1.1);
}

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

.project-card:hover .view-gallery-text {
    transform: translateY(0);
}

.project-card-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: var(--spacing-sm);
    position: relative;
    z-index: 1;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(74, 144, 226, 0.6);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
                0 0 0 1px rgba(74, 144, 226, 0.3),
                0 0 40px rgba(74, 144, 226, 0.2);
    background: rgba(26, 35, 50, 1);
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05) 0%, rgba(123, 104, 238, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    border-radius: 16px;
}

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

.project-card:active {
    transform: translateY(-4px) scale(0.99);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-header-compact {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.project-icon-compact {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 8px;
    color: var(--primary-blue);
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.project-card:hover .project-icon-compact {
    background: rgba(74, 144, 226, 0.15);
    transform: scale(1.05);
}

.project-title-group {
    flex: 1;
    min-width: 0;
}

.project-title-compact {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 2px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
    font-family: var(--font-secondary);
}

.project-card:hover .project-title-compact {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-subtitle-compact {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-description-compact {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: var(--spacing-xs) 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-features-compact {
    margin: var(--spacing-xs) 0;
}

.feature-item-compact {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.feature-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-teal);
    margin-top: 6px;
    flex-shrink: 0;
}

.project-tech-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: var(--spacing-xs) 0;
}

.tech-tag-compact {
    background: rgba(32, 178, 170, 0.08);
    color: var(--primary-teal);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid rgba(32, 178, 170, 0.2);
    font-family: var(--font-mono);
    transition: all 0.2s ease;
}

.tech-tag-compact:hover {
    background: rgba(32, 178, 170, 0.12);
    border-color: rgba(32, 178, 170, 0.35);
}

.tech-tag-more {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-mono);
}

.project-footer-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: var(--spacing-sm);
}

.project-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.project-date-compact {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.project-category-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 3px;
    color: var(--text-secondary);
}

.project-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.project-links-compact {
    display: flex;
    gap: 4px;
}

.project-link-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link-icon svg {
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
}

.project-link-icon:hover {
    background: rgba(74, 144, 226, 0.15);
    border-color: rgba(74, 144, 226, 0.3);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

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

.project-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 6px;
    color: var(--primary-blue);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.project-view-btn:hover {
    background: rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.5);
    transform: translateX(2px);
}

.project-view-btn svg {
    transition: transform 0.3s ease;
}

.project-view-btn:hover svg {
    transform: translateX(2px);
}

.project-card.featured {
    border-color: rgba(74, 144, 226, 0.25);
    background: rgba(26, 35, 50, 0.95);
}

.project-card.featured::before {
    height: 3px;
    background: linear-gradient(90deg, #4A90E2 0%, #7B68EE 100%);
}

.project-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: rgba(74, 144, 226, 0.2);
    color: var(--primary-blue);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    z-index: 3;
    border: 1px solid rgba(74, 144, 226, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.project-badge.achievement {
    background: rgba(255, 193, 7, 0.15);
    color: #FFC107;
    border-color: rgba(255, 193, 7, 0.3);
}

/* Old project card styles - kept for backward compatibility if needed */
.project-header:not(.project-header-compact) {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.project-icon:not(.project-icon-compact) {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 226, 0.08);
    border-radius: 8px;
    color: var(--primary-blue);
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(74, 144, 226, 0.15);
}

.project-card:hover .project-icon:not(.project-icon-compact) {
    background: rgba(74, 144, 226, 0.15);
    border-color: rgba(74, 144, 226, 0.3);
}

.project-title:not(.project-title-compact) {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
    letter-spacing: -0.01em;
    font-family: var(--font-secondary);
}

.project-subtitle:not(.project-subtitle-compact) {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.4;
}

.project-date:not(.project-date-compact) {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-mono);
    font-weight: 400;
    opacity: 0.7;
}

.project-description:not(.project-description-compact) {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.project-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

.project-features {
    margin-bottom: var(--spacing-md);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.feature-icon {
    color: var(--primary-teal);
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(32, 178, 170, 0.08);
    border-radius: 3px;
    font-size: 0.65rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.tech-tag {
    background: rgba(32, 178, 170, 0.08);
    color: var(--primary-teal);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(32, 178, 170, 0.2);
    font-family: var(--font-mono);
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: rgba(32, 178, 170, 0.12);
    border-color: rgba(32, 178, 170, 0.35);
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.project-achievement {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-achievement::before {
    content: '🏆';
    font-size: 0.85rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.project-link svg {
    transition: transform 0.2s ease;
}

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

.project-link:hover svg {
    transform: translateX(3px);
}

/* ============================================
   Education Section
   ============================================ */
#education {
    position: relative;
    overflow: hidden;
}

#education::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(123, 104, 238, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

#education .container {
    position: relative;
    z-index: 1;
}

.education-timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding-left: var(--spacing-xl);
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, 
        rgba(74, 144, 226, 0.3) 0%, 
        rgba(74, 144, 226, 0.6) 50%, 
        rgba(123, 104, 238, 0.6) 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-2xl);
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInTimeline 0.6s ease-out forwards;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.3s;
}

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

.timeline-marker {
    position: absolute;
    left: calc(-1 * var(--spacing-xl) - 10px);
    top: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.2),
                0 4px 12px rgba(74, 144, 226, 0.4);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(74, 144, 226, 0.3),
                0 6px 20px rgba(74, 144, 226, 0.5);
}

.timeline-content {
    background: rgba(26, 35, 50, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid transparent;
    border-radius: 16px;
    padding: var(--spacing-lg);
    margin-left: var(--spacing-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-gradient);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.timeline-content:hover {
    transform: translateX(8px) translateY(-2px);
    border-color: rgba(74, 144, 226, 0.3);
    border-left-color: var(--primary-blue);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(74, 144, 226, 0.1);
    background: rgba(26, 35, 50, 0.9);
}

.timeline-content:hover::before {
    transform: scaleY(1);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-header-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1;
    flex-wrap: wrap;
}

.timeline-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    flex: 1;
    min-width: 200px;
}

.timeline-logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 50%;
    padding: var(--spacing-xs);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(74, 144, 226, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-logo-img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-logo {
    background: #FFFFFF;
    border-color: rgba(74, 144, 226, 0.4);
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
}

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

.timeline-item:hover .timeline-logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.timeline-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-secondary);
}

.timeline-content:hover .timeline-header h3 {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    background: rgba(74, 144, 226, 0.12);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    border: 1px solid rgba(74, 144, 226, 0.2);
    white-space: nowrap;
    font-weight: 500;
}

.timeline-institution {
    font-size: 1.05rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.timeline-institution::before {
    content: '🏛️';
    font-size: 1rem;
}

.timeline-major {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    padding-left: 1.5rem;
    position: relative;
}

.timeline-major::before {
    content: '📚';
    position: absolute;
    left: 0;
    font-size: 1rem;
}

.timeline-stats {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    padding: var(--spacing-md);
    background: rgba(74, 144, 226, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.stat-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    min-width: 100px;
}

.stat-badge:hover {
    background: rgba(74, 144, 226, 0.1);
    border-color: rgba(74, 144, 226, 0.2);
    transform: translateY(-2px);
}
    background: rgba(74, 144, 226, 0.1);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(74, 144, 226, 0.3);
    min-width: 100px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
}

.timeline-coursework {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-coursework h4 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.timeline-coursework h4::before {
    content: '📖';
    font-size: 1rem;
}

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

.coursework-tags span {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    font-weight: 400;
}

.coursework-tags span:hover {
    background: rgba(74, 144, 226, 0.12);
    color: var(--primary-blue);
    border-color: rgba(74, 144, 226, 0.25);
    transform: translateY(-1px);
}

/* ============================================
   Certifications Section
   ============================================ */
.certifications {
    background: var(--bg-secondary);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    max-width: 1100px;
    margin: 0 auto;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    display: flex;
    gap: var(--spacing-sm);
    transition: all var(--transition-base);
}

.cert-card:hover {
    transform: translateY(-4px);
    border-color: rgba(74, 144, 226, 0.5);
    box-shadow: var(--shadow-md);
}

.cert-icon {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 50%;
    padding: var(--spacing-sm);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cert-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(74, 144, 226, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-icon-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.cert-card:hover .cert-icon {
    background: #FFFFFF;
    border-color: rgba(74, 144, 226, 0.4);
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
}

.cert-card:hover .cert-icon::before {
    opacity: 1;
}

.cert-card:hover .cert-icon-img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.cert-content {
    flex: 1;
}

.cert-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.cert-org {
    font-size: 1rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.cert-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-bottom: var(--spacing-sm);
}

.cert-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.cert-status {
    display: flex;
    gap: var(--spacing-xs);
}

.status-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.in-progress {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-badge.completed {
    background: rgba(40, 167, 69, 0.2);
    color: #28A745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

/* ============================================
   Activities Section
   ============================================ */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.activity-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-base);
}

.activity-card:hover {
    transform: translateY(-4px);
    border-color: rgba(74, 144, 226, 0.5);
    box-shadow: var(--shadow-md);
}

.activity-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 50%;
    padding: var(--spacing-sm);
    border: 2px solid rgba(74, 144, 226, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.activity-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(74, 144, 226, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activity-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-blue);
    stroke: currentColor;
    fill: none;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.activity-card:hover .activity-icon {
    background: rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.4);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.3);
}

.activity-card:hover .activity-icon::before {
    opacity: 1;
}

.activity-card:hover .activity-icon svg {
    color: var(--primary-blue);
    transform: scale(1.1);
}

.activity-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.activity-title {
    font-size: 0.85rem;
}

.activity-date {
    font-size: 0.8rem;
    margin-bottom: var(--spacing-xs);
}

.activity-desc {
    font-size: 0.8rem;
    line-height: 1.5;
}

.activity-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.activity-title {
    font-size: 1rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.activity-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-bottom: var(--spacing-sm);
}

.activity-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--spacing-md) 0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    max-width: 900px;
    margin: 0 auto;
}

/* Standardized Contact Item Styles - All Same Size */
.contact-item {
    grid-column: span 1;
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    padding: var(--spacing-lg);
    background: rgba(26, 35, 50, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.contact-item:hover::before {
    transform: scaleX(1);
}

.contact-item:hover {
    transform: translateY(-6px);
    border-color: rgba(74, 144, 226, 0.4);
    box-shadow: 0 12px 32px rgba(74, 144, 226, 0.2),
                0 0 0 1px rgba(74, 144, 226, 0.1);
    background: rgba(26, 35, 50, 0.9);
}

.contact-details {
    flex: 1;
    min-width: 0;
}

.contact-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-secondary);
    letter-spacing: -0.01em;
}

.contact-item a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 0.85rem;
    word-break: break-word;
    display: inline-block;
    line-height: 1.5;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--primary-purple);
    text-decoration: underline;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 226, 0.12);
    border-radius: 11.2px;
    color: var(--primary-blue);
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 1.6px solid rgba(74, 144, 226, 0.2);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: var(--accent-gradient);
    color: var(--text-primary);
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    border-color: rgba(74, 144, 226, 0.5);
}

.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: var(--spacing-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--focus-ring);
    transform: translateY(-1px);
}

.form-group input:hover:not(:focus),
.form-group textarea:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

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

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

.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: var(--spacing-xs);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-xl) var(--spacing-md);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.footer-brand h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--accent-gradient);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom p {
    margin-bottom: var(--spacing-xs);
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

/* Remove duplicate fadeInUp keyframe if exists */

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================
   Responsive Design
   ============================================ */
/* ============================================
   Enhanced Mobile Responsiveness
   ============================================ */
@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }
    
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
        width: 100%;
        max-width: 100%;
    }
    
    /* Header/Navbar fixes */
    .navbar {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .nav-wrapper {
        justify-content: space-between;
        padding: var(--spacing-sm) var(--spacing-md);
        width: 100%;
        max-width: 100%;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        z-index: 1001;
        position: relative;
    }
    
    .mobile-menu-toggle.active {
        z-index: 1001;
    }
    
    .mobile-menu-toggle.active:hover {
        background: rgba(255, 255, 255, 0.15);
    }
    
    /* Mobile Menu Backdrop */
    .nav-menu-backdrop {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.6) !important;
        backdrop-filter: blur(4px);
        z-index: 999 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.35s ease, visibility 0.35s ease !important;
        pointer-events: none !important;
    }
    
    .nav-menu-backdrop.active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    /* Slide-in Navigation Menu - Opens from LEFT, Closes to LEFT */
    .nav-menu {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 280px !important;
        max-width: 85vw !important;
        background: rgba(10, 14, 39, 0.98) !important;
        backdrop-filter: blur(20px);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 4px 0 32px rgba(0, 0, 0, 0.5);
        z-index: 1000 !important;
        display: flex !important;
        flex-direction: column !important;
        padding: var(--spacing-md) 0 !important;
        margin: 0 !important;
        /* CLOSED: Hidden completely to the left (off-screen) */
        transform: translateX(-100%) !important;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        pointer-events: none !important;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        list-style: none;
    }
    
    /* OPEN: Slides to the RIGHT (revealing menu) */
    .nav-menu.active {
        transform: translateX(0) !important;
        pointer-events: auto !important;
    }
    
    .nav-menu li {
        list-style: none;
        width: 100%;
        margin: 0;
        padding: 0 var(--spacing-md);
    }
    
    .nav-link {
        width: 100%;
        padding: var(--spacing-sm) var(--spacing-md);
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
        border-radius: var(--radius-md);
        margin-bottom: 2px;
        transition: all 0.25s ease;
        font-size: 0.9rem;
        min-height: 44px;
        height: 44px;
        position: relative;
        color: var(--text-secondary);
        text-decoration: none;
        box-sizing: border-box;
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 0;
        background: var(--accent-gradient);
        border-radius: 0 2px 2px 0;
        transition: height 0.3s ease;
    }
    
    .nav-link:hover,
    .nav-link:active {
        background: rgba(74, 144, 226, 0.15);
        transform: translateX(4px);
        padding-left: calc(var(--spacing-lg) + 4px);
    }
    
    .nav-link:hover::before,
    .nav-link:active::before {
        height: 60%;
    }
    
    .nav-link.active {
        background: rgba(74, 144, 226, 0.2);
        color: var(--primary-blue);
        font-weight: 600;
    }
    
    .nav-link.active::before {
        height: 60%;
    }
    
    .nav-link.resume-btn {
        margin-top: var(--spacing-xs);
        background: var(--accent-gradient);
        color: var(--text-primary);
        justify-content: center;
        font-weight: 600;
        border: none;
        min-height: 48px;
        height: 48px;
    }
    
    .nav-link.resume-btn:hover {
        transform: translateX(4px) scale(1.02);
        box-shadow: 0 4px 16px rgba(74, 144, 226, 0.4);
    }
    
    .nav-link.resume-btn::before {
        display: none;
    }
    
    .nav-link:hover,
    .nav-link:active {
        background: rgba(74, 144, 226, 0.15);
        color: var(--text-primary);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-thumbnail {
        height: 160px;
    }
    
    .project-card-content {
        padding: var(--spacing-sm);
    }
    
    .project-footer-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
    
    .project-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .about-text {
        grid-template-columns: 1fr;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    .education-timeline {
        padding-left: var(--spacing-sm);
    }
    
    .timeline-content {
        margin-left: var(--spacing-sm);
    }
    
    .timeline-marker {
        left: calc(-1 * var(--spacing-sm) - 8px);
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .contact-item {
        grid-column: span 1;
    }
    
    .fyp-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .fyp-tab {
        min-width: 100px;
        font-size: 0.8rem;
        padding: var(--spacing-sm);
    }
    
    .fyp-content {
        padding: var(--spacing-sm);
    }
    
    .fyp-hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fyp-content-modern {
        grid-template-columns: 1fr;
    }
    
    .fyp-features-list {
        grid-template-columns: 1fr;
    }
    
    .fyp-thumbnails {
        gap: var(--spacing-xs);
    }
    
    .fyp-thumbnail-item {
        width: 90px;
        height: 60px;
        flex-shrink: 0;
        min-width: 90px;
    }
    
    .fyp-thumbnails {
        padding: var(--spacing-xs) var(--spacing-sm);
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .fyp-main-visual {
        border-radius: 12px;
        min-height: 300px;
        max-height: 500px;
        padding: var(--spacing-sm);
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .fyp-main-image {
        min-height: 250px;
        max-height: 450px;
        padding: var(--spacing-sm);
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    .fyp-content-modern,
    .fyp-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: var(--spacing-md);
        margin: 0;
    }
    
    .fyp-poster,
    .fyp-video,
    .fyp-pdf {
        max-width: 100%;
        width: 100%;
        height: auto;
        box-sizing: border-box;
    }
    
    .project-filters {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-btn {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 6px 16px;
    }
    
    .modal-content {
        max-height: 95vh;
        margin: var(--spacing-sm);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
    }
    
    .modal-body {
        padding: var(--spacing-md);
        padding-bottom: var(--spacing-2xl);
        overflow-y: visible;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .modal-project-images {
        grid-template-columns: 1fr;
        margin-bottom: var(--spacing-md);
    }
    
    .modal-project-image {
        max-height: 280px;
        height: auto;
    }
    
    .modal-project-header {
        margin-bottom: var(--spacing-md);
        padding-bottom: var(--spacing-md);
    }
    
    .modal-project-title {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
    }
    
    .modal-project-content {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
        flex: 1;
        min-height: 0;
    }
    
    .modal-description-section {
        margin-bottom: var(--spacing-sm);
    }
    
    .modal-project-content .fyp-features {
        padding: var(--spacing-md);
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .modal-project-content .fyp-features ul {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }
    
    .modal-project-content .fyp-features li {
        font-size: 0.85rem;
        padding: var(--spacing-xs);
    }
    
    /* Ensure Technologies section is visible on mobile */
    .modal-project-content .fyp-tech {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100%;
        max-width: 100%;
        padding: var(--spacing-md);
        margin-top: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
        box-sizing: border-box;
        flex-shrink: 0;
        order: 3;
    }
    
    .modal-project-content .fyp-tech h4 {
        font-size: clamp(1rem, 4vw, 1.1rem);
        display: flex !important;
        visibility: visible !important;
        margin-bottom: var(--spacing-sm);
    }
    
    .modal-project-content .tech-tags {
        display: flex !important;
        visibility: visible !important;
        width: 100%;
        flex-wrap: wrap;
        gap: var(--spacing-xs);
        justify-content: flex-start;
        margin-top: var(--spacing-xs);
    }
    
    .modal-project-content .tech-tag {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 0.8rem;
        padding: var(--spacing-xs) var(--spacing-sm);
        white-space: nowrap;
    }
    
    .modal-project-links {
        margin-top: var(--spacing-md);
        padding-top: var(--spacing-md);
        flex-shrink: 0;
        order: 4;
    }
    
    .fyp-content-modern {
        grid-template-columns: 1fr;
    }
    
    .fyp-thumbnails {
        gap: var(--spacing-xs);
    }
    
    .fyp-thumbnail-item {
        width: 100px;
        height: 70px;
    }
    
    .fyp-main-visual {
        border-radius: 12px;
    }
    
    .fyp-pdf-viewer {
        height: 500px;
    }
    
    .fyp-stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .fyp-stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.35rem;
    }
    
    .project-filters {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-btn {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: var(--spacing-xs) var(--spacing-md);
    }
    
    .modal-content {
        max-height: 95vh;
        margin: var(--spacing-sm);
    }
    
    .modal-body {
        padding: var(--spacing-md);
    }
    
    .modal-project-images {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 13px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .fyp-main-visual {
        min-height: 250px;
        max-height: 400px;
    }
    
    .fyp-main-image {
        min-height: 200px;
        max-height: 350px;
        padding: var(--spacing-xs);
    }
    
    .fyp-thumbnail-item {
        width: 70px;
        height: 50px;
        min-width: 70px;
    }
    
    .fyp-hero-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .modal-project-image {
        max-height: 250px;
    }
    
    .modal-project-content .fyp-tech {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: var(--spacing-sm);
        margin-top: var(--spacing-sm);
        margin-bottom: var(--spacing-lg);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        flex-shrink: 0;
    }
    
    .modal-project-content .fyp-tech h4 {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-xs);
        display: flex !important;
        visibility: visible !important;
    }
    
    .modal-project-content .tech-tags {
        display: flex !important;
        visibility: visible !important;
        width: 100%;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: var(--spacing-xs);
    }
    
    .modal-project-content .tech-tag {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 0.7rem;
        padding: 4px 8px;
        white-space: nowrap;
    }
    
    .modal-body {
        padding-bottom: var(--spacing-3xl);
        min-height: auto;
    }
    
    .modal-project-content {
        padding-bottom: var(--spacing-lg);
    }
    
    .modal-project-content .fyp-features {
        padding: var(--spacing-sm);
        margin-top: var(--spacing-sm);
    }
    
    .modal-project-content .fyp-features h4 {
        font-size: 1rem;
    }
    
    .modal-project-content .fyp-features li {
        font-size: 0.85rem;
        padding: var(--spacing-xs);
    }
    
    .section-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 10vw, 3rem);
    }
    
    .project-card {
        margin: 0;
        width: 100%;
    }
    
    .skills-grid,
    .projects-grid,
    .contact-info,
    .cert-grid {
        gap: var(--spacing-sm);
    }
}

/* ============================================
   FYP Showcase Section - Professional Redesign
   ============================================ */
.fyp-showcase {
    background: var(--bg-secondary);
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.fyp-decorative-overlay {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%) rotate(-15deg);
    width: 600px;
    height: 400px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.12;
    filter: blur(20px) brightness(1.2);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 0 80px rgba(74, 144, 226, 0.3);
}

.fyp-overlay-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 30px rgba(74, 144, 226, 0.4));
}

.fyp-showcase .container {
    position: relative;
    z-index: 1;
}

.fyp-showcase:hover .fyp-decorative-overlay {
    opacity: 0.18;
    transform: translateY(-50%) rotate(-12deg) scale(1.05);
    filter: blur(15px) brightness(1.3);
    box-shadow: 0 0 100px rgba(74, 144, 226, 0.4);
}

@media (max-width: 1024px) {
    .fyp-decorative-overlay {
        width: 400px;
        height: 300px;
        right: -15%;
        opacity: 0.08;
    }
}

@media (max-width: 768px) {
    .fyp-decorative-overlay {
        width: 300px;
        height: 200px;
        right: -20%;
        opacity: 0.06;
        filter: blur(25px);
    }
}

.fyp-container {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 100%;
    box-sizing: border-box;
}

/* FYP Hero Stats */
.fyp-hero {
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.08) 0%, rgba(123, 104, 238, 0.08) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fyp-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.fyp-stat-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.fyp-stat-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(74, 144, 226, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.fyp-stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.15) 0%, rgba(123, 104, 238, 0.15) 100%);
    border-radius: 12px;
    flex-shrink: 0;
    color: var(--primary-blue);
    border: 1px solid rgba(74, 144, 226, 0.2);
    transition: all 0.3s ease;
}

.fyp-stat-card:hover .fyp-stat-icon {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.25) 0%, rgba(123, 104, 238, 0.25) 100%);
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(74, 144, 226, 0.4);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.fyp-stat-content {
    flex: 1;
}

.fyp-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2px;
    line-height: 1.2;
}

.fyp-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* FYP Tabs */
.fyp-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.fyp-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: var(--spacing-md) var(--spacing-lg);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 3px solid transparent;
    font-family: var(--font-primary);
    white-space: nowrap;
    position: relative;
}

.fyp-tab svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.fyp-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.fyp-tab:hover svg {
    transform: scale(1.1);
}

.fyp-tab.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    background: rgba(74, 144, 226, 0.08);
}

.fyp-tab.active svg {
    color: var(--primary-blue);
}

.fyp-content {
    padding: var(--spacing-lg);
}

.fyp-tab-content {
    display: none;
    animation: fadeInUp 0.4s ease-out;
}

.fyp-tab-content.active {
    display: block;
}

/* Modern Overview Layout */
.fyp-overview-modern {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Hero Image Showcase */
.fyp-hero-showcase {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

/* Image Stack Effect for PNGs */
.fyp-main-visual {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

.fyp-main-visual::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: -8px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: calc(100% - 16px);
}

.fyp-main-visual:hover::after {
    opacity: 1;
}

.fyp-main-visual {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05) 0%, rgba(123, 104, 238, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.fyp-main-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(74, 144, 226, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.fyp-main-visual:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.3);
}

.fyp-main-visual:hover::before {
    opacity: 1;
}

.fyp-main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: transparent;
    min-height: 400px;
    max-height: 600px;
    padding: var(--spacing-lg);
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
    transition: opacity 0.3s ease;
    opacity: 1;
    max-width: 100%;
    box-sizing: border-box;
}

.fyp-main-visual:hover .fyp-main-image {
    filter: drop-shadow(0 12px 32px rgba(74, 144, 226, 0.2));
    transform: scale(1.02);
}

.fyp-thumbnails {
    display: flex;
    gap: var(--spacing-sm);
    overflow-x: auto;
    padding: var(--spacing-xs) 0;
    -webkit-overflow-scrolling: touch;
}

.fyp-thumbnail-item {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    opacity: 0.6;
    position: relative;
    -webkit-tap-highlight-color: rgba(74, 144, 226, 0.3);
    touch-action: manipulation;
}

.fyp-thumbnail-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 144, 226, 0);
    transition: background 0.3s ease;
    border-radius: 6px;
}

.fyp-thumbnail-item:hover {
    opacity: 1;
    transform: translateY(-2px) scale(1.05);
    border-color: rgba(74, 144, 226, 0.4);
}

.fyp-thumbnail-item:hover::after {
    background: rgba(74, 144, 226, 0.1);
}

.fyp-thumbnail-item.active {
    opacity: 1;
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    transform: scale(1.05);
}

.fyp-thumbnail-item:active {
    transform: scale(0.95);
}

@media (hover: none) and (pointer: coarse) {
    .fyp-thumbnail-item:hover {
        transform: none;
    }
    
    .fyp-thumbnail-item:active {
        transform: scale(0.95);
        opacity: 1;
        border-color: var(--primary-blue);
    }
}

.fyp-thumbnail-item.active::after {
    background: rgba(74, 144, 226, 0.15);
}

.fyp-thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: transparent;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.fyp-thumbnail-item:active img {
    transform: scale(0.95);
}

/* Content Grid */
.fyp-content-modern {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
}

.fyp-left-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.fyp-right-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.fyp-modern-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    position: relative;
    padding-left: var(--spacing-md);
}

.fyp-modern-title::before {
    content: '';
    position: absolute;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* Description Modern */
.fyp-description-modern {
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.fyp-description-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.fyp-description-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Features Modern */
.fyp-features-modern {
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.fyp-features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xs);
}

.fyp-feature-modern {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.fyp-feature-modern:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(74, 144, 226, 0.2);
    transform: translateX(4px);
}

.fyp-feature-icon-modern {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.15) 0%, rgba(123, 104, 238, 0.15) 100%);
    border-radius: 10px;
    color: var(--primary-blue);
    flex-shrink: 0;
    border: 1px solid rgba(74, 144, 226, 0.2);
    transition: all 0.3s ease;
}

.fyp-feature-modern:hover .fyp-feature-icon-modern {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.25) 0%, rgba(123, 104, 238, 0.25) 100%);
    transform: scale(1.05);
    border-color: rgba(74, 144, 226, 0.4);
}

.fyp-feature-content {
    flex: 1;
}

.fyp-feature-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.fyp-feature-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Tech Modern */
.fyp-tech-modern {
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.fyp-tech-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.fyp-tech-modern-tag {
    background: rgba(32, 178, 170, 0.1);
    color: var(--primary-teal);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(32, 178, 170, 0.2);
    font-family: var(--font-mono);
    transition: all 0.2s ease;
    text-align: center;
}

.fyp-tech-modern-tag:hover {
    background: rgba(32, 178, 170, 0.15);
    border-color: rgba(32, 178, 170, 0.35);
    transform: translateX(4px);
}

/* Achievement Modern */
.fyp-achievement-modern {
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 165, 0, 0.1) 100%);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.fyp-achievement-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 193, 7, 0.2);
    border-radius: 12px;
    color: #FFC107;
    flex-shrink: 0;
}

.fyp-achievement-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.fyp-achievement-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Poster Tab */
.fyp-poster-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.fyp-poster-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.fyp-poster-frame {
    position: relative;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.fyp-poster {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.fyp-poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fyp-poster-frame:hover .fyp-poster-overlay {
    opacity: 1;
}

.fyp-poster-frame:hover .fyp-poster {
    transform: scale(1.05);
}

.fyp-poster-zoom {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--bg-primary);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.fyp-poster-zoom:hover {
    transform: scale(1.1);
    background: var(--text-primary);
}

.fyp-poster-actions {
    display: flex;
    justify-content: center;
}

.fyp-action-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.fyp-action-btn.primary {
    background: var(--accent-gradient);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.fyp-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

/* Presentation Tab */
.fyp-presentation-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.fyp-pdf-viewer {
    width: 100%;
    height: 700px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.fyp-pdf {
    width: 100%;
    height: 100%;
    border: none;
}

.fyp-presentation-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Video Tab */
.fyp-video-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.fyp-video-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.02);
}

.fyp-video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 80vh;
}

.fyp-video-info {
    text-align: center;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.fyp-video-info h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.fyp-video-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   Project Filters
   ============================================ */
.project-filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-btn {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-primary);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0.1;
    transition: left 0.3s ease;
    z-index: 0;
}

.filter-btn:hover::before {
    left: 0;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-color: rgba(74, 144, 226, 0.3);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: var(--accent-gradient);
    color: var(--text-primary);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    transform: translateY(-1px);
}

.filter-btn.active::before {
    display: none;
}

/* ============================================
   Project Modal
   ============================================ */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.project-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(74, 144, 226, 0.1);
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(74, 144, 226, 0.3);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 144, 226, 0.5);
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: var(--spacing-xl);
}

.modal-project-header {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid rgba(74, 144, 226, 0.2);
}

.modal-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.modal-project-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-secondary);
    line-height: 1.2;
    flex: 1;
}

.modal-achievement-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 152, 0, 0.2) 100%);
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: var(--radius-md);
    color: #FFC107;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.modal-project-subtitle {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    font-family: var(--font-secondary);
}

.modal-project-meta {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.modal-date-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: var(--radius-md);
    color: var(--primary-blue);
    font-size: 0.9rem;
    font-weight: 500;
}

.modal-project-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.modal-description-section {
    margin-bottom: var(--spacing-lg);
}

.modal-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-secondary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.modal-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.modal-project-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

.modal-project-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.modal-project-images.grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto var(--spacing-lg) auto;
}

.modal-project-images.single-image {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto var(--spacing-lg) auto;
}

@media (max-width: 768px) {
    .modal-project-images.grid-2x2 {
        grid-template-columns: 1fr;
    }
}

.modal-project-image {
    width: 100%;
    height: 450px;
    object-fit: contain;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
    display: block;
}

.modal-project-images.single-image .modal-project-image {
    max-width: 500px;
    height: 400px;
    width: auto;
}

.modal-project-image::after {
    content: '🔍 Click to enlarge';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: var(--spacing-sm);
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.modal-project-image:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 12px 32px rgba(74, 144, 226, 0.3),
                0 0 0 2px rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.4);
}

.modal-project-image:hover::after {
    opacity: 1;
}

.modal-project-content .fyp-features {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.modal-project-content .fyp-features h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-secondary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.modal-project-content .fyp-features h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.modal-project-content .fyp-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-sm);
}

.modal-project-content .fyp-features li {
    padding: var(--spacing-sm);
    background: rgba(74, 144, 226, 0.05);
    border-left: 3px solid var(--primary-blue);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    padding-left: var(--spacing-md);
}

.modal-project-content .fyp-features li::before {
    content: '✓';
    position: absolute;
    left: var(--spacing-sm);
    color: var(--primary-blue);
    font-weight: 700;
}

.modal-project-content .fyp-tech {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.modal-project-content .fyp-tech h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-secondary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.modal-project-content .fyp-tech h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.modal-project-content .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.modal-project-content .tech-tag {
    background: rgba(32, 178, 170, 0.12);
    color: var(--primary-teal);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(32, 178, 170, 0.25);
    transition: all 0.3s ease;
}

.modal-project-content .tech-tag:hover {
    background: rgba(32, 178, 170, 0.18);
    border-color: rgba(32, 178, 170, 0.4);
    transform: translateY(-2px);
}

.modal-project-links {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 2px solid rgba(74, 144, 226, 0.2);
    justify-content: center;
    align-items: center;
}

.modal-link-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(74, 144, 226, 0.12);
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: var(--radius-md);
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.modal-link-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.modal-link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    transition: left 0.3s ease;
    z-index: -1;
}

.modal-link-btn:hover {
    background: rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
    color: var(--text-primary);
}

.modal-link-btn:hover svg {
    transform: scale(1.1);
}

.modal-link-btn:hover::before {
    left: 0;
}

.project-links {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: var(--radius-sm);
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.project-link-btn:hover {
    background: rgba(74, 144, 226, 0.15);
    border-color: rgba(74, 144, 226, 0.4);
}

/* ============================================
   Loading States & Skeleton Screens
   ============================================ */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: var(--radius-sm);
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(74, 144, 226, 0.3);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Button Loading State */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============================================
   Enhanced Mobile Experience
   ============================================ */
@media (max-width: 768px) {
    /* Touch-friendly tap targets */
    .btn,
    .nav-link,
    .project-card,
    .skill-tag {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better spacing on mobile */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Improved project card spacing */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Better form inputs on mobile */
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Enhanced skill categories */
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    /* Better section padding */
    section {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    /* Improved navigation - styles already defined above at @media (max-width: 768px) */
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .navbar,
    .hero-buttons,
    .scroll-indicator,
    .contact-form-wrapper,
    .footer,
    .project-modal {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
    }
}

