/* Ultra Modern Portfolio Design - Bishal Neupane */
/* Optimized font loading for better performance */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700;800&display=swap&subset=latin');

/* CSS Reset & Premium Variables - Optimized for Performance */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Performance optimizations */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* GPU acceleration for smooth animations */
.hero-photo-section,
.photo-container,
.showcase-item,
.skill-category,
.certification-card,
.timeline-item {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

/* GitHub Pages Performance Optimizations */
html {
    scroll-behavior: smooth;
}

/* Critical resource hints for GitHub Pages */
img {
    loading: lazy;
    decoding: async;
}

/* Optimize for GitHub Pages CDN */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    /* Agricultural Data Science Color Palette */
    --primary: #2E7D32; /* Forest Green - Agriculture */
    --primary-dark: #1B5E20;
    --primary-light: #66BB6A;
    --secondary: #1976D2; /* Data Blue - Analytics */
    --secondary-dark: #0D47A1;
    --accent: #FF8F00; /* Harvest Gold - Remote Sensing */
    --accent-dark: #E65100;
    --success: #2E7D32;
    --satellite: #4A148C; /* Deep Purple - Satellite */
    --ndvi: #388E3C; /* NDVI Green */
    --ndwi: #0277BD; /* NDWI Blue */
    --soil: #8D6E63; /* Soil Brown */
    --pink: #E91E63;
    
    /* Modern Neutral Colors */
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    
    --white: #FFFFFF;
    
    /* Modern Agriculture-Focused Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', 'Inter', serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
    --font-accent: 'Inter', 'Space Grotesk', sans-serif;
    
    /* Advanced Spacing System */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    
    /* Modern Border Radius */
    --radius-xs: 0.25rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;
    
    /* Premium Shadow System */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Colored Shadows */
    --shadow-primary: 0 10px 15px -3px rgb(99 102 241 / 0.4), 0 4px 6px -4px rgb(99 102 241 / 0.1);
    --shadow-secondary: 0 10px 15px -3px rgb(6 182 212 / 0.4), 0 4px 6px -4px rgb(6 182 212 / 0.1);
    --shadow-accent: 0 10px 15px -3px rgb(245 158 11 / 0.4), 0 4px 6px -4px rgb(245 158 11 / 0.1);
    
    /* Advanced Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typewriter Colors */
    --typewriter-primary: var(--primary);
    --typewriter-secondary: var(--secondary);
    --typewriter-accent: var(--accent);
    
    /* Layout */
    --max-width: 1400px;
    --header-height: 85px;
    
    /* Enhanced Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-dark));
    --gradient-secondary: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    --gradient-agriculture: linear-gradient(90deg, var(--ndvi), var(--primary), var(--ndwi), var(--satellite));
    --gradient-data: linear-gradient(135deg, var(--secondary), var(--satellite), var(--ndwi));
    --gradient-earth: linear-gradient(180deg, var(--ndvi) 0%, var(--primary) 30%, var(--soil) 60%, var(--gray-800) 100%);
    --gradient-satellite: radial-gradient(circle, var(--satellite) 0%, var(--primary-dark) 40%, var(--gray-900) 100%);
    --gradient-mesh: 
        radial-gradient(ellipse at 20% 80%, rgba(46, 125, 50, 0.08) 0%, transparent 50%), 
        radial-gradient(ellipse at 80% 20%, rgba(25, 118, 210, 0.06) 0%, transparent 50%), 
        radial-gradient(ellipse at 40% 40%, rgba(255, 143, 0, 0.04) 0%, transparent 50%),
        linear-gradient(45deg, rgba(56, 142, 60, 0.02) 0%, rgba(2, 119, 189, 0.02) 100%);
    
    /* New Eye-catching Gradients */
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-data: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-tech: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-glow: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-aurora: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --gradient-cosmic: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-neon: linear-gradient(135deg, #ff006e 0%, #8338ec 50%, #3a86ff 100%);
}

/* Global Styles with Modern Typography */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: var(--header-height);
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    background-image: 
        radial-gradient(circle at 90% 10%, rgba(46, 125, 50, 0.015) 0%, transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(25, 118, 210, 0.015) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 143, 0, 0.01) 0%, transparent 40%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
    /* Mobile-first responsive font sizing */
    font-size: clamp(14px, 2.5vw, 16px);
}

/* Improved container responsiveness */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    width: 100%;
}


/* Advanced Typography System - Mobile-First Responsive */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--gray-900);
    letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h3 { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 600; }
h4 { font-size: clamp(1.25rem, 3vw, 1.875rem); font-weight: 600; }

p {
    margin-bottom: var(--space-md);
    max-width: 70ch;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* Premium Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-2xl);
    border: none;
    border-radius: var(--radius-xl);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    min-height: 50px;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary), var(--shadow-2xl);
    color: var(--white);
    scale: 1.02;
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-primary), var(--shadow-xl);
    scale: 1.02;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
    box-shadow: 
        0 8px 25px rgba(255, 143, 0, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    font-weight: 700;
    animation: heroBtnPulse 2.5s ease-in-out infinite;
}

.btn-accent:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-accent), var(--shadow-2xl);
    color: var(--white);
}

.btn-accent::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.btn-accent:hover::after {
    left: 100%;
}

/* Small button variant */
.btn-small {
    padding: var(--space-sm) var(--space-lg) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    min-height: auto !important;
}

.btn-small i {
    font-size: 0.875rem !important;
    margin-right: 0.5rem !important;
}

@keyframes heroBtnPulse {
    0%, 100% { 
        box-shadow: 
            0 8px 25px rgba(255, 143, 0, 0.4),
            0 4px 15px rgba(0, 0, 0, 0.1);
        transform: scale(1);
    }
    50% { 
        box-shadow: 
            0 12px 35px rgba(255, 143, 0, 0.6),
            0 6px 25px rgba(0, 0, 0, 0.15);
        transform: scale(1.02);
    }
}

/* Ultra Modern Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(24px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.05em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo::after {
    content: '.';
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
}

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

.nav-menu a {
    position: relative;
    padding: var(--space-sm) var(--space-md);
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transform: translateX(-50%);
    transition: width var(--transition-normal);
}

.nav-menu a:hover {
    color: var(--primary);
    background: var(--gray-50);
    transform: translateY(-1px);
}

.nav-menu a:hover::before {
    width: 80%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: var(--space-xs);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.hamburger:hover {
    background: var(--gray-100);
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: var(--gray-700);
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
}

/* Stunning Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
    background: var(--white);
    background-image: var(--gradient-mesh);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: var(--gradient-rainbow);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    animation: float 20s ease-in-out infinite;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
}

.hero-main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    width: 100%;
}

.hero-text-section {
    text-align: left;
    position: relative;
    z-index: 3;
}

.hero-photo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.photo-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-frame {
    position: relative;
    width: 300px !important;
    height: 300px !important;
    z-index: 2;
}

/* FORCE PHOTO SIZE - OVERRIDE ALL CONFLICTS */
.photo-placeholder img {
    width: 300px !important;
    height: 300px !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 300px !important;
    min-height: 300px !important;
    object-fit: cover !important;
    object-position: center !important;
    transform: none !important;
    border-radius: inherit;
    position: relative;
    z-index: 10;
    transition: all var(--transition-normal);
}

/* SLIGHTLY BIGGER ON LARGE DESKTOP */
@media (min-width: 1200px) {
    .photo-frame {
        width: 350px !important;
        height: 350px !important;
    }
    
    .photo-placeholder img {
        width: 350px !important;
        height: 350px !important;
        min-width: 350px !important;
        min-height: 350px !important;
    }
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-3xl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-2xl);
    position: relative;
    overflow: hidden;
    border: 6px solid var(--white);
    transition: all var(--transition-normal);
}

.photo-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        var(--ndvi) 0deg,
        var(--secondary) 60deg,
        var(--accent) 120deg,
        var(--satellite) 180deg,
        var(--ndwi) 240deg,
        var(--primary) 300deg,
        var(--ndvi) 360deg
    );
    animation: photoRotatingBackground 12s linear infinite;
    z-index: 1;
    opacity: 1;
}

.photo-placeholder::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    background: var(--white);
    border-radius: calc(var(--radius-3xl) - 6px);
    z-index: 2;
}

@keyframes photoRotatingBackground {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.05); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1); }
}

.photo-placeholder:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-primary), var(--shadow-2xl);
}

.photo-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-rainbow);
    opacity: 0.15;
    border-radius: inherit;
}

/* Photo image styles cleaned up - see forced rules above */

.photo-placeholder i {
    font-size: 6.5rem;
    color: var(--white);
    z-index: 1;
}

.photo-decoration {
    position: absolute;
    inset: -6px;
    background: var(--gradient-rainbow);
    border-radius: var(--radius-3xl);
    z-index: -1;
    opacity: 0.9;
    animation: rotate 12s linear infinite;
}

.photo-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, var(--primary)/20, transparent 70%);
    border-radius: 50%;
    z-index: -2;
    animation: pulse 3s ease-in-out infinite;
}

.hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
    margin-bottom: var(--space-md);
    position: relative;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.hero h2 {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 600;
    line-height: 1.3;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(46, 125, 50, 0.3);
    margin-bottom: var(--space-lg);
    position: relative;
    font-family: var(--font-primary);
    letter-spacing: -0.01em;
}

.hero h1::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: textGlow 4s ease-in-out infinite;
}

/* Hero h3 styles removed - now using h1 and h2 structure */

.hero p {
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: var(--space-2xl);
}

.hero p + p {
    margin-top: var(--space-md);
}

/* Enhanced hero text spacing */
.hero-text-section > * {
    margin-bottom: var(--space-lg);
}

.hero-text-section > *:last-child {
    margin-bottom: 0;
}

/* Better visual hierarchy */
.hero h1 + h2 {
    margin-top: var(--space-sm);
}

.hero h2 + p {
    margin-top: var(--space-lg);
}

.cta-buttons {
    display: flex;
    gap: var(--space-lg);
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    animation: float 15s ease-in-out infinite;
}

.element-1 {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    opacity: 0.1;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 150px;
    height: 150px;
    background: var(--gradient-secondary);
    opacity: 0.1;
    top: 60%;
    right: 15%;
    animation-delay: -5s;
}

.element-3 {
    width: 80px;
    height: 80px;
    background: var(--gradient-rainbow);
    opacity: 0.15;
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
}

/* Enhanced Section Styling */
section {
    padding: var(--space-5xl) 0;
    position: relative;
}

section h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    font-family: var(--font-display);
    margin-bottom: var(--space-3xl);
    position: relative;
    background: var(--gradient-agriculture);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--gradient-rainbow);
    border-radius: var(--radius-full);
}

/* Premium About Section */
.about {
    background: var(--gray-50);
    background-image: var(--gradient-mesh);
}

/* New About Section Layout */
.about-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto var(--space-4xl);
}

.about-description {
    font-size: 1.25rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 0;
    font-weight: 400;
}

/* Stats Section */
.about-stats-section {
    margin: var(--space-4xl) 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2xl);
    max-width: 1000px;
    margin: 0 auto;
}

/* Expertise Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    max-width: 1200px;
    margin: 0 auto;
}

.stat {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-rainbow);
}

.stat:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.stat h3 {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.stat p {
    color: var(--gray-500);
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

/* Redesigned Expertise Highlights */
.expertise-highlight {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-3xl);
    padding: var(--space-3xl);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.expertise-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-rainbow);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.expertise-highlight::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.expertise-highlight:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 30px 70px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.6),
        0 0 50px rgba(99, 102, 241, 0.15);
}

.expertise-highlight:hover::after {
    opacity: 1;
    transform: rotate(45deg) scale(1.2);
}

/* Expertise Icon */
.expertise-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 15px 40px rgba(99, 102, 241, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    justify-self: center;
}

.expertise-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.expertise-highlight:hover .expertise-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 
        0 20px 50px rgba(99, 102, 241, 0.5),
        inset 0 3px 0 rgba(255, 255, 255, 0.4);
}

.expertise-highlight:hover .expertise-icon::before {
    opacity: 1;
}

.expertise-icon i {
    font-size: 2.5rem;
    color: white;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.expertise-highlight:hover .expertise-icon i {
    transform: scale(1.2);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Expertise Content */
.expertise-content {
    position: relative;
    z-index: 2;
}

.expertise-content h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-lg);
    position: relative;
}

.expertise-content h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.expertise-highlight:hover .expertise-content h4::after {
    transform: scaleX(1);
}

.expertise-content p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: var(--space-lg);
}

/* Expertise Tags */
.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.expertise-tags span {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-mono);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.expertise-highlight:hover .expertise-tags span {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.expertise-highlight p strong {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    position: relative;
}

.expertise-highlight p strong::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-secondary);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.expertise-highlight:hover p strong::after {
    transform: scaleX(1);
}

/* Agriculture Showcase Section */
.agriculture-showcase {
    background: var(--white);
    background-image: var(--gradient-mesh);
    position: relative;
    overflow: hidden;
}

.agriculture-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Satellite Grid Pattern */
        linear-gradient(90deg, rgba(46, 125, 50, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(46, 125, 50, 0.03) 1px, transparent 1px),
        /* Remote Sensing Dots */
        radial-gradient(circle at 20% 20%, rgba(25, 118, 210, 0.05) 2px, transparent 2px),
        radial-gradient(circle at 80% 40%, rgba(255, 143, 0, 0.05) 2px, transparent 2px),
        radial-gradient(circle at 40% 80%, rgba(56, 142, 60, 0.05) 2px, transparent 2px);
    background-size: 
        60px 60px,
        60px 60px,
        120px 120px,
        100px 100px,
        80px 80px;
    animation: satellitePattern 20s linear infinite;
    z-index: 0;
}

@keyframes satellitePattern {
    0% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-30px) translateY(-20px); }
    100% { transform: translateX(0) translateY(0); }
}

/* Enhanced LinkedIn Button Styling */
.showcase-item .project-link .btn {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.1rem;
    font-weight: 700;
    min-height: 50px;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    border-radius: var(--radius-2xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    z-index: 100;
    text-decoration: none;
    border: 2px solid transparent;
    pointer-events: all;
    -webkit-tap-highlight-color: transparent;
}

.showcase-item .project-link .btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(0, 123, 255, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.showcase-item .project-link .btn i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.showcase-item .project-link .btn:hover i {
    transform: scale(1.2);
}

/* Primary button specific styling */
.showcase-item .project-link .btn-primary {
    background: linear-gradient(135deg, #0077B5, #005885);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.3);
}

.showcase-item .project-link .btn-primary:hover {
    background: linear-gradient(135deg, #005885, #004066);
    box-shadow: 
        0 15px 35px rgba(0, 119, 181, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Secondary button specific styling */
.showcase-item .project-link .btn-secondary {
    background: linear-gradient(135deg, #0077B5, #005885);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.3);
}

.showcase-item .project-link .btn-secondary:hover {
    background: linear-gradient(135deg, #005885, #004066);
    box-shadow: 
        0 15px 35px rgba(0, 119, 181, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Project Link Container */
.showcase-item .project-link {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--space-lg);
}

/* Featured Project LinkedIn Button Enhancement */
.featured-project .project-link .btn {
    padding: var(--space-xl) var(--space-3xl);
    font-size: 1.3rem;
    font-weight: 800;
    min-height: 65px;
    min-width: 300px;
    background: linear-gradient(135deg, #0077B5, #005885, #003d5c);
    color: white;
    border-radius: var(--radius-3xl);
    box-shadow: 
        0 12px 30px rgba(0, 119, 181, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    gap: var(--space-lg);
    position: relative;
    overflow: hidden;
    z-index: 200;
}

.featured-project .project-link .btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.featured-project .project-link .btn:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

.featured-project .project-link .btn:hover {
    transform: translateY(-6px) scale(1.08);
    box-shadow: 
        0 20px 45px rgba(0, 119, 181, 0.6),
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.featured-project .project-link .btn i {
    font-size: 1.6rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.featured-project .project-link .btn:hover i {
    transform: scale(1.3) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.data-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 40%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    animation: showcaseBackground 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes showcaseBackground {
    0%, 100% { transform: translateX(0px) translateY(0px) rotate(0deg); }
    33% { transform: translateX(20px) translateY(-15px) rotate(1deg); }
    66% { transform: translateX(-15px) translateY(20px) rotate(-1deg); }
}

.section-intro {
    text-align: center;
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: var(--space-4xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-accent);
    font-weight: 400;
    line-height: 1.6;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: var(--space-3xl);
    position: relative;
    z-index: 2;
}

.showcase-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-3xl);
    padding: var(--space-3xl);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.showcase-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-rainbow);
    border-radius: var(--radius-3xl) var(--radius-3xl) 0 0;
}

.showcase-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(99, 102, 241, 0.1) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.showcase-item:hover {
    transform: translateY(-12px) rotateX(8deg) rotateY(5deg) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.6),
        0 0 40px rgba(99, 102, 241, 0.2);
}

.showcase-item:hover::after {
    opacity: 1;
}

.showcase-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xl);
    box-shadow: 
        0 10px 30px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.showcase-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.showcase-item:hover .showcase-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 15px 40px rgba(99, 102, 241, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

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

.showcase-icon i {
    font-size: 2.5rem;
    color: white;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.showcase-item:hover .showcase-icon i {
    transform: scale(1.2);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.showcase-item h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-lg);
    position: relative;
}

.showcase-item h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.showcase-item:hover h3::after {
    transform: scaleX(1);
}

.showcase-item p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    font-size: 1rem;
}

.showcase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
}

.showcase-tags span {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-mono);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.showcase-item:hover .showcase-tags span {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.showcase-demo {
    height: 120px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

/* Demo Chart Styles */
.demo-chart {
    width: 80%;
    height: 80%;
}

.chart-bars {
    display: flex;
    align-items: end;
    justify-content: space-around;
    height: 100%;
    gap: var(--space-sm);
}

.bar {
    flex: 1;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    animation: barGrow 2s ease-out forwards;
    transform-origin: bottom;
    position: relative;
    overflow: hidden;
}

.bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent);
    border-radius: inherit;
}

@keyframes barGrow {
    from { 
        height: 0; 
        opacity: 0;
    }
    to { 
        height: var(--height);
        opacity: 1;
    }
}

.showcase-item:nth-child(1) .bar:nth-child(1) { animation-delay: 0.2s; }
.showcase-item:nth-child(1) .bar:nth-child(2) { animation-delay: 0.4s; }
.showcase-item:nth-child(1) .bar:nth-child(3) { animation-delay: 0.6s; }
.showcase-item:nth-child(1) .bar:nth-child(4) { animation-delay: 0.8s; }
.showcase-item:nth-child(1) .bar:nth-child(5) { animation-delay: 1.0s; }

/* Demo Graph Styles */
.demo-graph {
    width: 100%;
    height: 100%;
}

.trend-line {
    width: 100%;
    height: 100%;
}

.trend-line path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawLine 3s ease-out forwards;
    filter: drop-shadow(0 2px 10px rgba(99, 102, 241, 0.3));
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* Demo Pipeline Styles */
.demo-pipeline {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.pipeline-step {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.step-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.step-icon:nth-child(1) { animation-delay: 0s; }
.step-icon:nth-child(2) { animation-delay: 0.5s; }
.step-icon:nth-child(3) { animation-delay: 1s; }

.step-arrow {
    width: 20px;
    height: 2px;
    background: var(--gradient-accent);
    position: relative;
}

.step-arrow::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -3px;
    width: 0;
    height: 0;
    border-left: 8px solid var(--accent);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

/* Agriculture-Specific Demo Styles */
.demo-satellite {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
}

.satellite-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    width: 80px;
    height: 40px;
}

.pixel {
    border-radius: 2px;
    animation: pixelPulse 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

/* Enhanced Agricultural Satellite Pixel Colors */
.pixel[data-class="forest"] { 
    background: linear-gradient(45deg, var(--ndvi), #4CAF50); 
    box-shadow: 0 0 8px rgba(56, 142, 60, 0.4);
    animation-delay: 0s; 
}
.pixel[data-class="cropland"] { 
    background: linear-gradient(45deg, var(--accent), #FFA726); 
    box-shadow: 0 0 8px rgba(255, 143, 0, 0.4);
    animation-delay: 0.2s; 
}
.pixel[data-class="irrigated"] { 
    background: linear-gradient(45deg, var(--ndwi), #29B6F6); 
    box-shadow: 0 0 8px rgba(2, 119, 189, 0.4);
    animation-delay: 0.4s; 
}
.pixel[data-class="barren"] { 
    background: linear-gradient(45deg, var(--soil), #A1887F); 
    box-shadow: 0 0 8px rgba(141, 110, 99, 0.4);
    animation-delay: 0.6s; 
}
.pixel[data-class="grazing"] { 
    background: linear-gradient(45deg, var(--primary-light), #81C784); 
    box-shadow: 0 0 8px rgba(102, 187, 106, 0.4);
    animation-delay: 0.8s; 
}
.pixel[data-class="water"] { 
    background: linear-gradient(45deg, var(--secondary), #2196F3); 
    box-shadow: 0 0 8px rgba(25, 118, 210, 0.4);
    animation-delay: 1s; 
}

@keyframes pixelPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.indices-display {
    display: flex;
    gap: var(--space-md);
}

.index {
    background: var(--gray-800);
    color: var(--white);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-family: var(--font-mono);
    font-weight: 500;
}

/* NDVI Time Series Chart */
.demo-timeseries {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ndvi-chart {
    width: 90%;
    height: 80%;
}

.ndvi-chart path {
    filter: drop-shadow(0 2px 8px rgba(76, 175, 80, 0.3));
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawNDVI 4s ease-out forwards;
}

.ndvi-chart path:nth-child(2) {
    animation-delay: 1s;
    filter: drop-shadow(0 2px 8px rgba(33, 150, 243, 0.3));
}

@keyframes drawNDVI {
    to { stroke-dashoffset: 0; }
}

/* R Programming Demo */
.demo-r-analysis {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs);
    padding: var(--space-sm);
}

.r-code {
    background: var(--gray-900);
    border-radius: var(--radius-sm);
    padding: var(--space-xs);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.code-line {
    color: #4CAF50;
    font-size: 0.6rem;
    font-family: var(--font-mono);
    opacity: 0;
    animation: typeCode 0.5s ease forwards;
}

.code-line:nth-child(1) { animation-delay: 0.5s; }
.code-line:nth-child(2) { animation-delay: 1s; }
.code-line:nth-child(3) { animation-delay: 1.5s; }

@keyframes typeCode {
    to { opacity: 1; }
}

.r-output {
    background: var(--white);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}

.plot-area {
    position: relative;
    width: 100%;
    height: 100%;
}

.scatter-point {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, var(--secondary), var(--ndwi));
    border-radius: 50%;
    animation: scatterAppear 0.5s ease forwards;
    opacity: 0;
    transform: scale(0);
    box-shadow: 
        0 0 8px rgba(25, 118, 210, 0.6),
        0 0 4px rgba(2, 119, 189, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.scatter-point:nth-child(1) { animation-delay: 2s; }
.scatter-point:nth-child(2) { animation-delay: 2.2s; }
.scatter-point:nth-child(3) { animation-delay: 2.4s; }
.scatter-point:nth-child(4) { animation-delay: 2.6s; }

@keyframes scatterAppear {
    to { 
        opacity: 1; 
        transform: scale(1);
    }
}

/* Featured Project Section */
.featured-project {
    margin-top: var(--space-4xl);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-3xl);
    padding: var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.featured-project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-tech);
    border-radius: var(--radius-3xl) var(--radius-3xl) 0 0;
}

.project-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.project-header h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
}

.project-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
    font-style: italic;
}

.project-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-2xl);
}

.insight-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-aurora);
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

.insight-icon {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
    display: block;
}

.insight-card h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
}

.insight-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* Enhanced Timeline Design */
.education-timeline, .experience-timeline, .projects-timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.timeline-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-4xl);
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 220px;
    top: 0;
    bottom: -var(--space-4xl);
    width: 3px;
    background: var(--gradient-primary);
    margin-left: calc(-1.5 * var(--space-lg));
    border-radius: var(--radius-full);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: calc(220px - 1.5 * var(--space-lg) - 8px);
    top: var(--space-lg);
    width: 18px;
    height: 18px;
    background: var(--gradient-primary);
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.timeline-date {
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-2xl);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-primary);
    transform: translateY(0);
    transition: all var(--transition-normal);
}

.timeline-date:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary), var(--shadow-xl);
}

.timeline-date::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid var(--primary-dark);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

.timeline-content {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-rainbow);
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
    font-weight: 700;
}

.institution, .project-type {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
}

.timeline-content ul {
    list-style: none;
    margin-top: var(--space-lg);
}

.timeline-content li {
    position: relative;
    padding-left: var(--space-xl);
    margin-bottom: var(--space-sm);
    color: var(--gray-600);
}

.timeline-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    background: var(--success)/10;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* Project-specific styling */
.projects {
    background: var(--white);
    background-image: var(--gradient-mesh);
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.project-technologies span {
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.project-technologies span:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-primary);
}

.project-link {
    margin-top: var(--space-lg);
}

.project-link a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--primary);
    font-weight: 600;
    padding: var(--space-sm) var(--space-lg);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.project-link a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

/* Premium Skills Section */
.skills {
    background: var(--gray-50);
    background-image: var(--gradient-mesh);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-2xl);
}

.skill-category {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-rainbow);
}

.skill-category:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.skill-category h3 {
    font-size: 1.375rem;
    color: var(--gray-900);
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-weight: 700;
}

.skill-category h3 i {
    font-size: 1.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.skill-category li {
    padding: var(--space-md) 0;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
    transition: all var(--transition-fast);
    position: relative;
    font-weight: 500;
}

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

.skill-category li::before {
    content: '◆';
    position: absolute;
    left: -var(--space-md);
    color: var(--primary);
    font-weight: 700;
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-normal);
}

.skill-category li:hover {
    color: var(--primary);
    padding-left: var(--space-xl);
    font-weight: 600;
}

.skill-category li:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Enhanced Experience Section */
.experience {
    background: var(--gray-50);
    background-image: var(--gradient-mesh);
}

/* Premium Certifications Section - 2x2 Grid */
.certifications {
    background: var(--white);
    background-image: var(--gradient-mesh);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
    max-width: 900px;
    margin: 0 auto;
}

.certification-card {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-rainbow);
}

.certification-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.cert-icon {
    margin-bottom: var(--space-xl);
}

.cert-icon i {
    font-size: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.certification-card h3 {
    font-size: 1.375rem;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
    font-weight: 700;
}

.issuer {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    font-size: 1rem;
}

.certification-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Enhanced Involvement Section */
.involvement {
    background: var(--gray-50);
    background-image: var(--gradient-mesh);
}

.involvement-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
    gap: var(--space-4xl);
}

.involvement-section h3 {
    font-size: 1.75rem;
    color: var(--gray-900);
    margin-bottom: var(--space-2xl);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-weight: 700;
}

.involvement-section h3 i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
}

.involvement-item, .achievement-item {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-2xl);
    margin-bottom: var(--space-xl);
    border-left: 6px solid var(--primary);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.involvement-item:hover, .achievement-item:hover {
    transform: translateX(8px) translateY(-2px);
    box-shadow: var(--shadow-2xl);
    border-left-color: var(--secondary);
}

.involvement-item h4, .achievement-item h4 {
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
    font-weight: 700;
    font-size: 1.25rem;
}

.organization, .period {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: var(--space-xs);
}

/* Premium Contact Section */
.contact {
    background: var(--white);
    background-image: var(--gradient-mesh);
    text-align: center;
}


.contact p {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: var(--space-4xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-4xl);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.contact-item {
    background: var(--white);
    padding: var(--space-4xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: var(--space-3xl);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    min-height: 140px;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-rainbow);
}

.contact-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.contact-item i {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-color: var(--primary)/10;
    padding: var(--space-xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
}

.contact-item h3 {
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
    font-size: 1.375rem;
    font-weight: 700;
}

.contact-item p {
    color: var(--gray-600);
    margin: 0;
    text-align: left;
    font-weight: 500;
    font-size: 1.25rem;
    word-break: keep-all;
    white-space: nowrap;
    line-height: 1.6;
    flex: 1;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: var(--radius-2xl);
    text-decoration: none;
    transition: all var(--transition-normal);
    font-size: 1.8rem;
    position: relative;
    overflow: hidden;
    border: 3px solid transparent;
    background-clip: padding-box;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 3px;
    background: var(--gradient-rainbow);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    z-index: -1;
}

.social-link.linkedin {
    background: linear-gradient(135deg, #0077B5, #005885);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(0, 119, 181, 0.3);
}

.social-link.github {
    background: linear-gradient(135deg, #333, #24292e);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(51, 51, 51, 0.3);
}

.social-link.facebook {
    background: linear-gradient(135deg, #1877F2, #166FE5);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(24, 119, 242, 0.3);
}

.social-link:hover {
    transform: translateY(-8px) scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-2xl);
}

.social-link.linkedin:hover {
    box-shadow: 0 20px 40px rgba(0, 119, 181, 0.4);
}

.social-link.github:hover {
    box-shadow: 0 20px 40px rgba(51, 51, 51, 0.4);
}

.social-link.facebook:hover {
    box-shadow: 0 20px 40px rgba(24, 119, 242, 0.4);
}

.social-label {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: var(--space-xs);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-link:hover .social-label {
    opacity: 1;
    transform: translateY(0);
}

/* Resume Section */
.resume-section {
    background: var(--gray-50);
    background-image: var(--gradient-mesh);
}

.resume-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.resume-card {
    background: var(--white);
    padding: var(--space-4xl);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--gray-100);
    text-align: center;
    max-width: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.resume-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-rainbow);
}

.resume-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl), 0 30px 60px rgba(99, 102, 241, 0.2);
}

.resume-icon {
    margin-bottom: var(--space-xl);
    position: relative;
}

.resume-icon i {
    font-size: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.resume-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--primary)/10;
    border-radius: 50%;
    z-index: 1;
}

.resume-card h3 {
    font-size: 2rem;
    color: var(--gray-900);
    margin-bottom: var(--space-lg);
    font-weight: 700;
}

.resume-card > p {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-2xl);
    max-width: none;
}

.resume-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
    padding: var(--space-xl);
    background: var(--gray-50);
    border-radius: var(--radius-xl);
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 500;
    color: var(--gray-700);
}

.feature i {
    color: var(--success);
    font-size: 1.1rem;
}

.resume-actions {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.resume-download {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.resume-preview:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

/* Centered Footer */
footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-4xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-rainbow);
}

footer .container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer p {
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
    color: var(--gray-400);
}

footer p:last-child {
    margin-bottom: 0;
    color: var(--gray-500);
}

/* Advanced Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

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

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

@keyframes textGlow {
    0%, 100% {
        opacity: 0;
        filter: blur(10px);
    }
    50% {
        opacity: 0.5;
        filter: blur(5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Premium Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 var(--space-xl);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
        text-align: center;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 968px) {
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 1024px) {
    .hero-main-content {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
        text-align: center;
    }
    
    .hero-text-section {
        text-align: center;
        order: 2;
    }
    
    /* Tablet About Section */
    .expertise-highlight {
        grid-template-columns: 80px 1fr;
        gap: var(--space-2xl);
        padding: var(--space-2xl);
    }
    
    .expertise-icon {
        width: 70px;
        height: 70px;
    }
    
    .expertise-icon i {
        font-size: 2.2rem;
    }
    
    .hero-photo-section {
        order: 1;
    }
    
    /* h3::before styles removed - using h1/h2 structure */
    
    .cta-buttons {
        justify-content: center;
    }
    
    .photo-frame {
        width: 260px;
        height: 260px;
    }
    
    .photo-placeholder i {
        font-size: 5.5rem;
    }
    
    .photo-placeholder img {
        width: 250px !important;
        height: 250px !important;
        object-fit: cover !important;
        object-position: center !important;
    }
}

/* Enhanced Mobile Navigation and Responsive Design */
@media (max-width: 768px) {
    /* Mobile small button optimization */
    .btn-small {
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
    }
    
    .btn-small i {
        font-size: 0.8rem !important;
        margin-right: 0.4rem !important;
    }
    
    /* Better hamburger menu */
    .hamburger {
        display: flex;
        z-index: 1001;
        position: relative;
        padding: 8px;
        border-radius: 8px;
        transition: background-color 0.2s ease;
    }
    
    .hamburger:active {
        background-color: rgba(0, 0, 0, 0.1);
        transform: scale(0.95);
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    /* Improved mobile navigation */
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: var(--space-2xl) 0;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-2xl);
        z-index: 1000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu.active {
        left: 0;
        animation: slideInRight 0.3s ease-out;
    }
    
    /* Better mobile navigation links */
    .nav-menu li {
        width: 100%;
        margin: 0;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        width: 100%;
        padding: 1rem 2rem;
        margin: 0;
        font-size: 1.1rem;
        font-weight: 500;
        border-radius: 0;
        transition: all 0.2s ease;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu a:hover,
    .nav-menu a:focus {
        background: rgba(46, 125, 50, 0.1);
        color: var(--primary);
        transform: none;
    }
    
    .nav-menu a:active {
        background: rgba(46, 125, 50, 0.2);
        transform: scale(0.98);
    }
    
    /* Hero section mobile optimizations */
    .hero {
        min-height: 85vh;
        padding: calc(var(--header-height) + 1rem) 0 2rem;
    }
    
    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 0.5rem;
    }
    
    .hero h2 {
        font-size: clamp(1rem, 4vw, 1.2rem);
        margin-bottom: 0.75rem;
    }
    
    /* h3 styles removed - using h1/h2 structure */
    
    .hero p {
        font-size: clamp(0.9rem, 4vw, 1rem);
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    /* Better button layout on mobile */
    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        font-weight: 600;
        min-height: 48px; /* Better touch target */
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    /* Photo section mobile optimization */
    .photo-frame {
        width: clamp(200px, 45vw, 260px);
        height: clamp(200px, 45vw, 260px);
    }
    
    /* Cards and content mobile optimization */
    .showcase-grid,
    .skills-grid,
    .certifications-grid,
    .projects-timeline {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .showcase-item,
    .skill-category,
    .certification-card {
        padding: 1.5rem;
        margin: 0;
    }
    
    /* Stats section mobile */
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat h3 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    
    /* Timeline mobile optimization */
    .timeline-item {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .timeline-date {
        position: relative;
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
    }
    
    /* Contact section mobile */
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .social-links {
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }
    
    .social-link {
        flex: 0 0 calc(33.33% - 0.5rem);
        max-width: 120px;
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Animation for mobile menu slide in */
    @keyframes slideInRight {
        from {
            transform: translateX(-100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
}

/* Additional mobile breakpoints for better responsiveness */
@media (max-width: 480px) {
    .hero {
        min-height: 80vh;
        padding: calc(var(--header-height) + 0.5rem) 0 1.5rem;
    }
    
    .hero h1 {
        font-size: clamp(1.5rem, 10vw, 2.2rem);
    }
    
    .hero h2 {
        font-size: clamp(0.9rem, 5vw, 1.1rem);
    }
    
    /* h3 styles removed - using h1/h2 structure */
    
    .hero p {
        font-size: clamp(0.85rem, 4.5vw, 0.95rem);
        line-height: 1.5;
    }
    
    .photo-frame {
        width: clamp(180px, 40vw, 220px);
        height: clamp(180px, 40vw, 220px);
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat {
        padding: 1rem;
    }
    
    .showcase-item,
    .skill-category,
    .certification-card {
        padding: 1.25rem;
    }
    
    .social-link {
        flex: 0 0 100%;
        max-width: none;
    }
}

/* Tablet landscape optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 clamp(1.5rem, 5vw, 2.5rem);
    }
    
    .hero-main-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }
    
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Critical Performance Optimizations */
/* Reduce repaints and reflows */
.btn, .social-link, .showcase-item, .skill-category, .certification-card {
    contain: layout style paint;
}

/* Optimize animations for 60fps */
@media (prefers-reduced-motion: no-preference) {
    .photo-container,
    .showcase-item,
    .skill-category {
        animation-duration: var(--transition-normal, 0.25s);
        animation-fill-mode: both;
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Battery optimization - disable animations on low battery */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Final mobile touch optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Better touch targets */
    .btn,
    .social-link,
    .nav-menu a {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Remove hover states on touch devices */
    .btn:hover,
    .social-link:hover,
    .skill-category:hover,
    .certification-card:hover,
    .timeline-content:hover {
        transform: none;
        box-shadow: initial;
    }
    
    /* Optimize for touch interaction */
    .showcase-item:active,
    .btn:active,
    .social-link:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}
        margin: var(--space-xs) 0;
    }
    
    .hero {
        padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
    }
    
    .photo-frame {
        width: 200px;
        height: 200px;
    }
    
    .photo-placeholder i {
        font-size: 4.5rem;
    }
    
    .photo-placeholder img {
        width: 250px !important;
        height: 250px !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
    }
    
    .btn {
        width: 220px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .contact-item p {
        white-space: normal;
        word-break: break-word;
    }
    
    .social-links {
        gap: var(--space-lg);
    }
    
    .social-link {
        width: 70px;
        height: 70px;
        font-size: 1.4rem;
    }
    
    .resume-features {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .resume-actions {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
    }
    
    section {
        padding: var(--space-4xl) 0;
    }
    
    .timeline-item {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .timeline-item::before,
    .timeline-item::after {
        display: none;
    }
    
    .timeline-date::after {
        display: none;
    }
    
    .timeline-date {
        justify-self: center;
        max-width: 200px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .involvement-content {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .contact-item p {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 var(--space-lg);
    }
    
    .nav-container {
        padding: 0 var(--space-lg);
    }
    
    .hero {
        padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-xl);
    }
    
    .photo-frame {
        width: 180px;
        height: 180px;
    }
    
    .photo-placeholder i {
        font-size: 4rem;
    }
    
    .photo-placeholder img {
        width: 250px !important;
        height: 250px !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    section {
        padding: var(--space-3xl) 0;
    }
    
    .about-stats {
        gap: var(--space-lg);
    }
    
    .skill-category,
    .certification-card,
    .timeline-content,
    .involvement-item,
    .achievement-item {
        padding: var(--space-xl);
    }
    
    .social-link {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }
    
    .resume-card {
        padding: var(--space-2xl);
    }
    
    .project-technologies {
        gap: var(--space-xs);
    }
    
    .project-technologies span {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    .contact-item {
        padding: var(--space-2xl);
        min-height: 100px;
        gap: var(--space-lg);
    }
}

/* Ultra Small Screens */
@media (max-width: 480px) {
    .hero-wrapper {
        padding: 0 var(--space-md);
    }
    
    .photo-frame {
        width: 150px;
        height: 150px;
    }
    
    .photo-placeholder i {
        font-size: 3.5rem;
    }
    
    .photo-placeholder img {
        width: 250px !important;
        height: 250px !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    .btn {
        width: 180px;
        padding: var(--space-sm) var(--space-lg);
    }
    
    .timeline-content,
    .skill-category,
    .certification-card,
    .involvement-item,
    .achievement-item {
        padding: var(--space-lg);
    }
    
    .social-links {
        gap: var(--space-md);
    }
    
    .contact-item {
        padding: var(--space-lg);
        min-height: 80px;
        gap: var(--space-md);
    }
    
    .contact-item p {
        font-size: 1rem;
    }
}

/* Accessibility & Performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Premium Focus Styles */
.btn:focus,
.nav-menu a:focus,
.social-link:focus {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    :root {
        --primary: #0000CC;
        --gray-600: #000000;
        --gray-700: #000000;
    }
}

/* Print Optimization */
@media print {
    .navbar,
    .hamburger,
    .cta-buttons,
    .social-links,
    .hero-decoration {
        display: none;
    }
    
    .hero {
        min-height: auto;
        page-break-after: avoid;
    }
    
    section {
        page-break-inside: avoid;
        padding: var(--space-lg) 0;
    }
    
    .timeline-item::before,
    .timeline-item::after {
        display: none;
    }
}

/* Enhanced Mobile Animation Keyframes */
@keyframes mobileHeroSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes photoSlideDown {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Scroll-triggered Animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Elements Animation Enhancement */
@keyframes enhancedFloating {
    0%, 100% { 
        transform: translateY(0px) rotateZ(0deg);
    }
    25% { 
        transform: translateY(-20px) rotateZ(5deg);
    }
    50% { 
        transform: translateY(-10px) rotateZ(-3deg);
    }
    75% { 
        transform: translateY(-30px) rotateZ(2deg);
    }
}

/* Enhanced Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.animate-fade-in {
    opacity: 0;
    transition: all 1s ease;
}

.animate-fade-in.animate {
    opacity: 1;
}

/* Staggered Animation Delays */
.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.5s; }

/* ==========================================
   TYPEWRITER ANIMATION EFFECTS
   ========================================== */

.typewriter-container {
    display: inline-block;
    position: relative;
    min-width: 300px;
    height: 1.5em;
    vertical-align: top;
    white-space: nowrap;
    overflow: visible;
}

/* Mobile optimization for typewriter */
@media (max-width: 768px) {
    .typewriter-container {
        min-width: 250px;
        max-width: 250px;
        width: 250px;
        height: 1.8em;
        display: block;
        margin: 0;
        overflow: visible;
    }
}

@media (max-width: 480px) {
    .typewriter-container {
        min-width: 200px;
        max-width: 200px;
        width: 200px;
        height: 2em;
        overflow: visible;
    }
}

#typewriter {
    font-weight: 600;
    background: linear-gradient(135deg, var(--typewriter-primary), var(--typewriter-secondary), var(--typewriter-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-mono);
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    max-width: 100%;
    line-height: 1.4;
    overflow: visible;
}

/* Mobile typography adjustments */
@media (max-width: 768px) {
    #typewriter {
        font-size: 0.9em;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    #typewriter {
        font-size: 0.8em;
        line-height: 1.4;
    }
}

/* Hide scroll-to-top button on mobile for better performance */
@media (max-width: 768px) {
    .scroll-to-top {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    /* Fixed navbar on mobile - no animations for better performance */
    .navbar {
        background: #ffffff !important;
        backdrop-filter: none !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
        transition: none !important;
        transform: none !important;
    }
    
    /* COMPLETELY REMOVE ALL ANIMATIONS FROM MOBILE NAVIGATION */
    .hamburger,
    .hamburger *,
    .hamburger::before,
    .hamburger::after {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        -webkit-transition: none !important;
        -webkit-animation: none !important;
        -webkit-transform: none !important;
    }
    
    .hamburger span,
    .hamburger.active span,
    .hamburger.active span:nth-child(1),
    .hamburger.active span:nth-child(2),
    .hamburger.active span:nth-child(3) {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        -webkit-transition: none !important;
        -webkit-animation: none !important;
        -webkit-transform: none !important;
        opacity: 1 !important;
    }
    
    .hamburger:active,
    .hamburger:hover,
    .hamburger:focus {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        background-color: transparent !important;
        scale: none !important;
    }
    
    .nav-menu,
    .nav-menu.active,
    .nav-menu *,
    .nav-menu::before,
    .nav-menu::after {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        -webkit-transition: none !important;
        -webkit-animation: none !important;
        -webkit-transform: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: #ffffff !important;
    }
    
    .nav-menu a,
    .nav-menu li,
    .nav-menu a::before,
    .nav-menu a::after {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        -webkit-transition: none !important;
        -webkit-animation: none !important;
        -webkit-transform: none !important;
    }
    
    .nav-menu a:hover,
    .nav-menu a:active,
    .nav-menu a:focus {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        background: rgba(46, 125, 50, 0.1) !important;
        scale: none !important;
    }
    
    /* Override keyframe animations specifically */
    @keyframes slideInRight {
        from, to { 
            transform: none !important;
            opacity: 1 !important;
        }
    }
    
    /* Global animation disable for mobile performance */
    *, *::before, *::after {
        animation-duration: 0s !important;
        animation-delay: 0s !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
    
    /* Ensure navigation stays in place */
    .nav-menu {
        left: -100% !important;
    }
    
    .nav-menu.active {
        left: 0 !important;
        transform: translateX(0) !important;
        animation: none !important;
    }
}

.cursor {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: blink 1s infinite;
    font-weight: 600;
    margin-left: 2px;
    position: absolute;
    top: 0;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

/* ==========================================
   3D VISUAL ENHANCEMENTS & MODERN GRAPHICS
   ========================================== */

/* 3D Card Hover Effects */
.skill-category,
.certification-card,
.timeline-content,
.about-stats .stat,
.resume-card {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-category:hover,
.certification-card:hover,
.timeline-content:hover,
.about-stats .stat:hover,
.resume-card:hover {
    transform: translateY(-8px) rotateX(5deg) rotateY(5deg);
    box-shadow: 
        0 20px 40px -10px rgba(99, 102, 241, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Enhanced Agricultural Data Science Background with Animations */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* NDVI Gradient */
        radial-gradient(circle at 20% 30%, rgba(56, 142, 60, 0.1) 0%, transparent 60%),
        /* Satellite Data Blue */
        radial-gradient(circle at 80% 70%, rgba(25, 118, 210, 0.08) 0%, transparent 50%),
        /* Remote Sensing Orange */
        radial-gradient(circle at 40% 80%, rgba(255, 143, 0, 0.06) 0%, transparent 50%),
        /* Data Grid Pattern */
        linear-gradient(90deg, rgba(46, 125, 50, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(46, 125, 50, 0.03) 1px, transparent 1px),
        /* Floating Data Points */
        radial-gradient(circle at 60% 20%, rgba(74, 20, 140, 0.04) 3px, transparent 3px),
        radial-gradient(circle at 30% 70%, rgba(2, 119, 189, 0.04) 3px, transparent 3px);
    background-size: auto, auto, auto, 40px 40px, 40px 40px, 200px 200px, 150px 150px;
    animation: agricultureDataFlow 25s ease-in-out infinite;
    z-index: 0;
}

@keyframes agricultureDataFlow {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        background-position: 0% 0%, 100% 100%, 50% 50%, 0px 0px, 0px 0px;
    }
    25% { 
        transform: translateY(-10px) rotate(1deg);
        background-position: 10% 10%, 90% 80%, 60% 40%, -10px -10px, -10px -10px;
    }
    50% { 
        transform: translateY(-5px) rotate(-1deg);
        background-position: 20% 20%, 80% 60%, 70% 30%, -20px -20px, -20px -20px;
    }
    75% { 
        transform: translateY(-15px) rotate(0.5deg);
        background-position: 30% 10%, 70% 90%, 40% 70%, -30px -30px, -30px -30px;
    }
}

/* Enhanced 3D Hero Photo with Mobile Support */
.hero-photo-section {
    perspective: 1200px;
    transform-style: preserve-3d;
    position: relative;
}

.photo-container {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    animation: photoFloat 6s ease-in-out infinite;
    position: relative;
}

.photo-container:hover {
    transform: rotateY(15deg) rotateX(5deg) translateZ(30px) scale(1.05);
    animation-play-state: paused;
}

/* Enhanced Mobile Photo Animation */
@media (hover: none) and (pointer: coarse) {
    .photo-container {
        animation: mobilePhotoFloat 8s ease-in-out infinite;
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    .photo-container:active {
        transform: rotateY(10deg) rotateX(3deg) translateZ(20px) scale(1.02);
        transition: all 0.3s ease;
    }
    
    /* Mobile Performance Optimizations */
    .hero::before {
        will-change: transform, background-position;
        transform: translateZ(0);
        backface-visibility: hidden;
    }
    
    .agriculture-showcase::before {
        will-change: transform;
        transform: translateZ(0);
    }
}

@keyframes photoFloat {
    0%, 100% { 
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
    }
    25% { 
        transform: translateY(-10px) rotateX(3deg) rotateY(2deg);
    }
    50% { 
        transform: translateY(-5px) rotateX(-2deg) rotateY(-1deg);
    }
    75% { 
        transform: translateY(-15px) rotateX(1deg) rotateY(3deg);
    }
}

@keyframes mobilePhotoFloat {
    0%, 100% { 
        transform: translateY(0px) rotateX(0deg) rotateY(0deg) scale(1);
    }
    33% { 
        transform: translateY(-12px) rotateX(2deg) rotateY(3deg) scale(1.02);
    }
    66% { 
        transform: translateY(-8px) rotateX(-1deg) rotateY(-2deg) scale(1.01);
    }
}

/* Animated Skill Bars */
.skill-category ul li {
    position: relative;
    padding-left: 20px;
    margin: 8px 0;
}

.skill-category ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    transform: translateY(-50%) scale(0);
    animation: skillPulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.skill-category:nth-child(1) ul li::before { animation-delay: 0.1s; }
.skill-category:nth-child(2) ul li::before { animation-delay: 0.2s; }
.skill-category:nth-child(3) ul li::before { animation-delay: 0.3s; }

@keyframes skillPulse {
    0% { transform: translateY(-50%) scale(0); opacity: 0; }
    50% { transform: translateY(-50%) scale(1.2); opacity: 1; }
    100% { transform: translateY(-50%) scale(1); opacity: 0.8; }
}

/* 3D Timeline Enhancement */
.timeline-item::before {
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
    box-shadow: 
        0 0 20px rgba(99, 102, 241, 0.5),
        0 4px 15px rgba(0, 0, 0, 0.2);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    transform: rotate(45deg) scale(1.3);
    box-shadow: 
        0 0 30px rgba(99, 102, 241, 0.7),
        0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Interactive Button 3D Effects */
.btn {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-4px) translateZ(15px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(46, 125, 50, 0.25),
        0 5px 20px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    animation: btnPulse 2s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% { 
        box-shadow: 
            0 15px 40px rgba(46, 125, 50, 0.25),
            0 5px 20px rgba(0, 0, 0, 0.1),
            0 0 0 1px rgba(255, 255, 255, 0.15),
            inset 0 2px 0 rgba(255, 255, 255, 0.3);
    }
    50% { 
        box-shadow: 
            0 20px 50px rgba(46, 125, 50, 0.35),
            0 8px 30px rgba(0, 0, 0, 0.15),
            0 0 0 1px rgba(255, 255, 255, 0.2),
            inset 0 3px 0 rgba(255, 255, 255, 0.4);
    }
}

/* Parallax Section Backgrounds */
.about,
.skills,
.experience,
.projects,
.certifications {
    position: relative;
    overflow: hidden;
}

.about::before,
.skills::before,
.experience::before,
.projects::before,
.certifications::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateX(0px) translateY(0px) rotate(0deg); }
    33% { transform: translateX(-20px) translateY(-10px) rotate(1deg); }
    66% { transform: translateX(20px) translateY(10px) rotate(-1deg); }
}

/* Modern Glass Morphism Effects */
.cert-icon,
.stat h3 {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Animated Progress Indicators */
.about-stats {
    position: relative;
}

.about-stats::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 2px;
    transform: translateX(-50%);
    animation: progressGlow 3s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% { opacity: 0.5; box-shadow: 0 0 10px rgba(99, 102, 241, 0.3); }
    50% { opacity: 1; box-shadow: 0 0 20px rgba(99, 102, 241, 0.6); }
}

/* 3D Certification Badge Effect */
.cert-icon i {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.certification-card:hover .cert-icon i {
    transform: rotateY(360deg) scale(1.2);
    color: var(--accent);
    text-shadow: 
        0 0 20px rgba(245, 158, 11, 0.5),
        0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Interactive Social Links 3D */
.social-link {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.social-link::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-link:hover::after {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-5px) rotateY(15deg) scale(1.1);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Morphing Background Shapes */
.container {
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: 50%;
    filter: blur(60px);
    animation: morphShape 12s ease-in-out infinite;
    z-index: -1;
}

@keyframes morphShape {
    0%, 100% { 
        border-radius: 50%; 
        transform: rotate(0deg) scale(1); 
    }
    25% { 
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; 
        transform: rotate(90deg) scale(1.2); 
    }
    50% { 
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; 
        transform: rotate(180deg) scale(0.8); 
    }
    75% { 
        border-radius: 30% 70% 30% 70% / 70% 30% 70% 30%; 
        transform: rotate(270deg) scale(1.1); 
    }
}

/* Modern Geometric Shapes Animation */
.geometric-shape {
    position: absolute;
    animation: floatGeometric 8s ease-in-out infinite;
    opacity: 0.7;
    filter: blur(0.5px);
    transition: all 0.3s ease;
}

.shape-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    top: 60%;
    right: 15%;
    animation-delay: -2s;
}

.shape-3 {
    bottom: 25%;
    left: 5%;
    animation-delay: -4s;
}

.geometric-shape:hover {
    transform: scale(1.2) rotate(15deg);
    opacity: 1;
    filter: blur(0px);
}

@keyframes floatGeometric {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.7; 
    }
    25% { 
        transform: translateY(-15px) rotate(5deg); 
        opacity: 0.9; 
    }
    50% { 
        transform: translateY(-10px) rotate(-3deg); 
        opacity: 0.6; 
    }
    75% { 
        transform: translateY(-20px) rotate(2deg); 
        opacity: 0.8; 
    }
}

/* Enhanced Navigation with 3D Effects */
.nav-menu a {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 1px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

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

.nav-menu a:hover {
    transform: translateY(-2px);
    color: var(--primary);
    text-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

/* Modern Data Visualization Effects */
.about-stats .stat {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.about-stats .stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    transition: left 0.6s ease;
}

.about-stats .stat:hover::before {
    left: 100%;
}

/* Interactive Project Timeline Enhancement */
.timeline-content {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-technologies span,
.timeline-content .project-technologies span {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    margin: 2px 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.project-technologies span:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, var(--secondary), var(--accent));
}

/* Futuristic Contact Section */
.contact-info .contact-item {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.contact-info .contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.contact-info .contact-item:hover::before {
    transform: translateX(100%);
}

.contact-info .contact-item:hover {
    transform: translateY(-5px) rotateX(5deg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.contact-info .contact-item i {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    transform: translateZ(10px);
    transition: all 0.3s ease;
}

.contact-info .contact-item:hover i {
    transform: translateZ(20px) rotate(5deg) scale(1.1);
}

/* Animated Section Headers */
.container h2 {
    position: relative;
    text-align: center;
    margin-bottom: var(--space-2xl);
    transform-style: preserve-3d;
}

.container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 2px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    animation: headerUnderline 1s ease-out forwards;
}

@keyframes headerUnderline {
    to { transform: translateX(-50%) scaleX(1); }
}

/* Responsive 3D Effects for Mobile */
@media (max-width: 768px) {
    .skill-category:hover,
    .certification-card:hover,
    .timeline-content:hover,
    .about-stats .stat:hover,
    .resume-card:hover {
        transform: translateY(-4px) rotateX(2deg) rotateY(2deg);
    }
    
    .photo-container:hover {
        transform: rotateY(8deg) rotateX(3deg) translateZ(10px);
    }
    
    .geometric-shape {
        display: none; /* Hide on mobile for performance */
    }
    
    .hero::before {
        animation-duration: 20s; /* Slower on mobile */
    }
    
    /* Additional Mobile Performance Optimizations */
    * {
        will-change: auto;
    }
    
    /* Optimize transforms for mobile */
    .btn:hover,
    .social-link:hover,
    .skill-category:hover {
        will-change: transform;
    }
    
    /* Optimize image rendering */
    img {
        image-rendering: -webkit-optimize-contrast;
    }
    
    /* Prevent zoom on input focus (iOS) */
    input,
    textarea,
    select {
        font-size: 16px !important;
    }
    
    /* Improve scroll performance */
    .nav-menu {
        transform: translateZ(0);
        backface-visibility: hidden;
    }
    
    /* Optimize fixed elements */
    .navbar {
        transform: translateZ(0);
    }
}

/* Landscape orientation optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 70vh;
        padding: calc(var(--header-height) + var(--space-sm)) 0 var(--space-lg);
    }
    
    .photo-frame {
        width: 160px;
        height: 160px;
    }
    
    section {
        padding: var(--space-2xl) 0;
    }
    
    .nav-menu {
        height: calc(100vh - var(--header-height));
        padding: var(--space-lg) 0;
    }
    
    .nav-menu a {
        padding: var(--space-sm) var(--space-lg);
        margin: 2px 0;
    }
}

/* High DPI displays optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .photo-placeholder img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Touch device specific styles */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .btn:hover,
    .social-link:hover,
    .skill-category:hover,
    .certification-card:hover,
    .timeline-content:hover {
        transform: none;
    }
    
    /* Use active states instead */
    .btn:active {
        transform: scale(0.95);
    }
    
    .social-link:active {
        transform: scale(0.9);
    }
    
    /* Better touch feedback */
    .skill-category:active,
    .certification-card:active,
    .timeline-content:active {
        background: var(--gray-100);
    }
    
    /* Mobile Data Showcase Optimizations */
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .showcase-item {
        padding: var(--space-xl);
    }
    
    .showcase-item:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .showcase-icon {
        width: 60px;
        height: 60px;
    }
    
    .showcase-icon i {
        font-size: 2rem;
    }
    
    .showcase-item h3 {
        font-size: 1.3rem;
    }
    
    .showcase-demo {
        height: 100px;
    }
    
    .expertise-highlight {
        padding: var(--space-lg);
        margin: var(--space-md) 0;
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .expertise-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }
    
    .expertise-icon i {
        font-size: 2rem;
    }
    
    .expertise-highlight h4 {
        font-size: 1.1rem;
    }
    
    /* Mobile Agriculture Showcase */
    .featured-project {
        padding: var(--space-xl);
        margin-top: var(--space-2xl);
    }
    
    /* Mobile LinkedIn Button Enhancement */
    .showcase-item .project-link .btn {
        min-height: 60px;
        min-width: 280px;
        padding: var(--space-xl) var(--space-2xl);
        font-size: 1.2rem;
        gap: var(--space-lg);
        margin: var(--space-lg) auto;
        display: flex;
        width: fit-content;
    }
    
    .showcase-item .project-link .btn i {
        font-size: 1.4rem;
    }
    
    /* Featured Project Mobile Enhancement */
    .featured-project .project-link .btn {
        min-height: 75px;
        min-width: 320px;
        padding: var(--space-2xl) var(--space-3xl);
        font-size: 1.4rem;
        gap: var(--space-xl);
        margin: var(--space-xl) auto;
        display: flex;
        width: fit-content;
    }
    
    .featured-project .project-link .btn i {
        font-size: 1.8rem;
    }
    
    .project-header h3 {
        font-size: 1.4rem;
    }
    
    /* Enhanced Mobile Hero Section */
    .hero-main-content {
        animation: mobileHeroSlideUp 1.2s ease-out;
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
        text-align: center;
    }
    
    .hero-photo-section {
        order: -1;
        margin-bottom: var(--space-2xl);
        animation: photoSlideDown 1s ease-out 0.2s both;
    }
    
    .photo-container {
        max-width: 300px;
        margin: 0 auto;
        animation: mobilePhotoFloat 8s ease-in-out infinite 1s;
    }
    
    .hero h1 {
        font-size: clamp(2.2rem, 8vw, 3rem);
        line-height: 1.1;
        animation: textReveal 1s ease-out 0.6s both;
    }
    
    .hero h2 {
        font-size: clamp(1.1rem, 4vw, 1.3rem);
        line-height: 1.2;
        animation: textReveal 1s ease-out 0.8s both;
    }
    
    /* h3 styles removed - using h1/h2 structure */
    
    .hero p {
        font-size: 1.1rem;
        line-height: 1.65;
        animation: textReveal 1s ease-out 1s both;
    }
    
    .cta-buttons {
        animation: textReveal 1s ease-out 1.2s both;
        gap: var(--space-xl);
    }
    
    
    .project-insights {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .insight-card {
        padding: var(--space-lg);
    }
    
    .insight-icon {
        font-size: 2.5rem;
    }
    
    .satellite-grid {
        width: 60px;
        height: 30px;
    }
    
    .demo-r-analysis {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
    }
    
    .r-code, .r-output {
        height: 40px;
    }
    
    .code-line {
        font-size: 0.55rem;
    }
}