/* ============================================
   🔥 VISHNU KUMAR - PROFESSIONAL PORTFOLIO CSS
   Full Stack Developer (Web + App)
   Version: 3.1 - Footer Mobile Fixed Edition
   ============================================ */

/* ============================================
   GOOGLE FONTS IMPORT
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Fira+Code:wght@400;500;600&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================ */
:root {
    /* === Color Palette - Dark Theme === */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #1a1a24;
    --bg-card: #16161e;
    --bg-card-hover: #1e1e28;
    
    /* Glass Effect */
    --glass-bg: rgba(22, 22, 30, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b4b4c0;
    --text-muted: #6b6b80;
    --text-dark: #0a0a0f;
    
    /* Accent Colors */
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #06b6d4;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-secondary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #111118 100%);
    --gradient-card: linear-gradient(145deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    
    /* Borders */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);
    --shadow-glow-lg: 0 0 60px rgba(99, 102, 241, 0.4);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Fira Code', 'Consolas', monospace;
    
    /* Spacing */
    --section-padding: 100px;
    --container-width: 1200px;
    --container-padding: 5%;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-fixed: 1000;
    --z-modal: 1500;
    --z-tooltip: 2000;
    --z-cursor: 9999;
    --z-preloader: 99999;
}

/* === Light Theme === */
body.light-mode {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --border-color: rgba(0, 0, 0, 0.1);
    --border-light: rgba(0, 0, 0, 0.05);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.2);
    
    --gradient-card: linear-gradient(145deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.04) 100%);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-secondary);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-slow), color var(--transition-slow);
}

::selection {
    background: var(--accent-primary);
    color: white;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-normal);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

input, textarea {
    font-family: inherit;
    outline: none;
    border: none;
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-preloader);
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    padding: 20px;
}

.preloader-logo {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.logo-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-right-color: var(--accent-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.preloader-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.preloader-progress {
    width: 200px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin: 0 auto 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.progress-percent {
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* ============================================
   CUSTOM CURSOR (Hidden on mobile)
   ============================================ */
.cursor-dot, .cursor-outline {
    display: none;
}

@media (min-width: 1024px) {
    .cursor-dot {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 8px;
        height: 8px;
        background: var(--accent-primary);
        border-radius: 50%;
        pointer-events: none;
        z-index: var(--z-cursor);
        transform: translate(-50%, -50%);
        transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
    }

    .cursor-outline {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 40px;
        height: 40px;
        border: 2px solid var(--accent-primary);
        border-radius: 50%;
        pointer-events: none;
        z-index: var(--z-cursor);
        transform: translate(-50%, -50%);
        transition: transform 0.15s ease-out, width 0.3s ease, height 0.3s ease;
        opacity: 0.5;
    }
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: var(--z-fixed);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    padding: 10px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

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

/* Premium Logo Icon */
.nav-logo {
    display: flex;
    align-items: center;
    transition: transform var(--transition-normal);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.logo-icon span {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    position: relative;
    z-index: 1;
}

/* Nav Menu */
.nav-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 80px 20px 20px;
    transition: right var(--transition-normal);
    box-shadow: var(--shadow-xl);
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: var(--glass-bg);
}

.nav-link i {
    font-size: 1rem;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.theme-toggle:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: rotate(180deg);
}

.nav-cta {
    display: none;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    height: 28px;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all var(--transition-normal);
}

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

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* Desktop Nav */
@media (min-width: 768px) {
    .nav-menu {
        position: static;
        display: flex;
        flex-direction: row;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .nav-cta {
        display: inline-block;
    }
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: calc(var(--z-fixed) + 1);
    width: 0%;
    transition: width 0.1s ease;
}

/* ============================================
   SECTION BASE STYLES
   ============================================ */
section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    position: relative;
}

/* Hero Background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 40%);
    animation: gradientRotate 30s linear infinite;
}

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

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: var(--accent-primary);
    top: 10%;
    left: 10%;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--accent-secondary);
    bottom: 20%;
    right: 10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: var(--accent-tertiary);
    top: 50%;
    left: 50%;
    animation-delay: -10s;
}

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

/* Hero Container - MOBILE FIRST */
.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-full);
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    margin-bottom: 20px;
}

.title-line {
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* FIXED: Name won't cut off */
.title-name {
    display: block;
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.title-role {
    display: block;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 600;
    color: var(--accent-tertiary);
    min-height: 40px;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 100%;
}

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

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 12px 15px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    min-width: 100px;
}

.stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Hero CTA */
.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    width: 100%;
    max-width: 280px;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px);
}

/* Hero Social */
.hero-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
}

/* Hero Visual - Profile Section */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-image-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
}

.hero-image-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: var(--gradient-primary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.3;
    animation: morphing 8s ease-in-out infinite;
}

@keyframes morphing {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-primary);
    box-shadow: var(--shadow-glow-lg);
    position: relative;
    background: var(--bg-card);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gradient-card);
    color: var(--accent-primary);
}

.photo-placeholder i {
    font-size: 4rem;
    margin-bottom: 10px;
}

.photo-placeholder span {
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-image-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.decoration-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed var(--border-color);
    border-radius: 50%;
}

.ring-1 {
    width: 110%;
    height: 110%;
    animation: rotateClockwise 30s linear infinite;
}

.ring-2 {
    width: 130%;
    height: 130%;
    animation: rotateCounterClockwise 25s linear infinite;
}

@keyframes rotateClockwise {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotateCounterClockwise {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-mouse {
    width: 22px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { top: 6px; opacity: 1; }
    50% { top: 16px; opacity: 0.3; }
}

/* TABLET HERO */
@media (min-width: 768px) {
    .hero-container {
        flex-direction: row;
        text-align: left;
        gap: 40px;
    }
    
    .hero-content {
        flex: 1;
    }
    
    .hero-stats {
        justify-content: flex-start;
    }
    
    .hero-cta {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .btn {
        width: auto;
    }
    
    .hero-social {
        justify-content: flex-start;
    }
    
    .hero-visual {
        flex: 0 0 320px;
    }
    
    .hero-image-wrapper {
        width: 320px;
        height: 320px;
    }
    
    .profile-photo {
        width: 260px;
        height: 260px;
    }
}

/* DESKTOP HERO */
@media (min-width: 1024px) {
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-container {
        gap: 60px;
    }
    
    .hero-visual {
        flex: 0 0 400px;
    }
    
    .hero-image-wrapper {
        width: 400px;
        height: 400px;
    }
    
    .profile-photo {
        width: 320px;
        height: 320px;
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 30px;
}

.about-intro h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.about-intro p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.highlight-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.highlight-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.highlight-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.highlight-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.highlight-content span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 25px;
}

.info-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.info-card h3 i {
    color: var(--accent-primary);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.service-icon {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.service-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.service-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.quick-facts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-facts-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.quick-facts-list li i {
    color: var(--accent-success);
}

@media (min-width: 768px) {
    .about-content {
        flex-direction: row;
        gap: 40px;
    }
    
    .about-text {
        flex: 1.2;
    }
    
    .about-info {
        flex: 1;
    }
    
    .about-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */
.experience {
    background: var(--bg-primary);
}

.experience-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-line {
    display: none;
}

.timeline-item {
    position: relative;
    padding: 0;
    margin-bottom: 30px;
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 25px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-badge {
    padding: 5px 12px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.timeline-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.timeline-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.timeline-title i {
    color: var(--accent-primary);
    margin-top: 4px;
}

.timeline-venue {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: var(--accent-tertiary);
    margin-bottom: 20px;
}

.timeline-content {
    text-align: left;
}

.problem-solution {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.ps-item {
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.ps-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.ps-item:first-child .ps-label {
    color: var(--accent-warning);
}

.ps-item:last-child .ps-label {
    color: var(--accent-success);
}

.ps-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.feature-item i {
    color: var(--accent-primary);
    font-size: 0.9rem;
}

.special-feature {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.special-feature i {
    color: var(--accent-warning);
    margin-top: 3px;
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tag {
    padding: 5px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 500;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .timeline-line {
        display: block;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 100%;
        background: var(--gradient-primary);
        border-radius: 2px;
    }
    
    .timeline-item {
        width: 50%;
        padding: 0 40px 0 0;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 50%;
        padding: 0 0 0 40px;
    }
    
    .timeline-item::before {
        content: '';
        position: absolute;
        top: 30px;
        width: 20px;
        height: 20px;
        background: var(--gradient-primary);
        border-radius: 50%;
        box-shadow: var(--shadow-glow);
        z-index: 2;
    }
    
    .timeline-item:nth-child(odd)::before {
        right: -10px;
    }
    
    .timeline-item:nth-child(even)::before {
        left: -10px;
    }
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills {
    background: var(--bg-secondary);
}

.skills-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 25px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.category-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.category-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.skill-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 20px 15px;
    text-align: center;
}

.skill-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.skill-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.skill-bar {
    width: 100%;
    height: 5px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    width: 0%;
    transition: width 1.5s ease;
}

/* Skill Icon Colors */
.html-icon i { color: #e34f26; }
.css-icon i { color: #1572b6; }
.js-icon i { color: #f7df1e; }
.react-icon i { color: #61dafb; }
.node-icon i { color: #68a063; }
.mongo-icon i { color: #4db33d; }
.firebase-icon i { color: #ffca28; }
.android-icon i { color: #3ddc84; }
.java-icon i { color: #f89820; }
.python-icon i { color: #3776ab; }

.flutter-icon {
    background: linear-gradient(135deg, #02569b 0%, #13b9fd 100%) !important;
    border: none !important;
}

.flutter-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
}

.cpp-icon {
    background: linear-gradient(135deg, #00599c 0%, #004482 100%) !important;
    border: none !important;
}

.cpp-text {
    font-size: 0.9rem;
    font-weight: 800;
    color: white;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.tool-item i {
    font-size: 1.1rem;
}

@media (min-width: 640px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    background: var(--bg-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.project-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.project-card.featured {
    grid-column: 1 / -1;
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-img-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.project-img-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-normal);
}

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

.overlay-content {
    display: flex;
    gap: 12px;
}

.overlay-btn {
    width: 45px;
    height: 45px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: all var(--transition-normal);
    transform: translateY(10px);
    opacity: 0;
}

.project-card:hover .overlay-btn {
    transform: translateY(0);
    opacity: 1;
}

.overlay-btn:hover {
    background: var(--accent-secondary);
    transform: scale(1.1);
}

.project-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.project-badge.live {
    background: var(--accent-success);
}

.project-content {
    padding: 20px;
}

.project-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-title i {
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.project-tagline {
    font-size: 0.95rem;
    color: var(--accent-tertiary);
    font-weight: 500;
    margin-bottom: 15px;
}

.project-description > p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-features h4 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.project-features h4 i {
    color: var(--accent-primary);
}

.project-features ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

.project-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-left: 18px;
    position: relative;
}

.project-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.project-link.primary {
    background: var(--gradient-primary);
    color: white;
}

.project-link.secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.projects-cta {
    text-align: center;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-card.featured {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    
    .project-card.featured .project-image {
        height: 100%;
        min-height: 350px;
    }
}

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

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info .info-card {
    height: 100%;
}

.contact-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact-info > .info-card > p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    gap: 15px;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.contact-text p, .contact-text a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.social-links-contact h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 42px;
    height: 42px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.social-icon:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 25px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input, .input-wrapper textarea {
    width: 100%;
    padding: 16px 16px 16px 45px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.input-wrapper textarea {
    resize: vertical;
    min-height: 120px;
}

.input-wrapper input:focus, .input-wrapper textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.input-wrapper label {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all var(--transition-normal);
}

.input-wrapper textarea + label {
    top: 20px;
    transform: none;
}

.input-wrapper input:focus + label,
.input-wrapper input:not(:placeholder-shown) + label,
.input-wrapper textarea:focus + label,
.input-wrapper textarea:not(:placeholder-shown) + label {
    top: 0;
    left: 12px;
    font-size: 0.75rem;
    background: var(--bg-card);
    padding: 0 6px;
    color: var(--accent-primary);
}

.input-wrapper textarea:focus + label,
.input-wrapper textarea:not(:placeholder-shown) + label {
    top: -8px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.input-wrapper textarea ~ .input-icon {
    top: 18px;
    transform: none;
}

.input-wrapper input:focus ~ .input-icon,
.input-wrapper textarea:focus ~ .input-icon {
    color: var(--accent-primary);
}

.btn-submit {
    position: relative;
    overflow: hidden;
}

.btn-submit .btn-loading {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.btn-submit.loading .btn-text,
.btn-submit.loading .btn-icon {
    opacity: 0;
}

.btn-submit.loading .btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 1;
}

@media (min-width: 768px) {
    .contact-content {
        flex-direction: row;
        gap: 40px;
    }
    
    .contact-info {
        flex: 1;
    }
    
    .contact-form-wrapper {
        flex: 1.5;
        padding: 35px;
    }
    
    .form-group {
        flex-direction: row;
    }
}

/* ============================================
   FOOTER - MOBILE RESPONSIVE FIXED
   ============================================ */
.footer {
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 15px;
}

.footer-logo .logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.footer-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-tagline {
    font-size: 0.95rem;
    color: var(--accent-primary);
    margin-bottom: 15px;
    font-weight: 500;
}

.footer-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.footer-column {
    text-align: center;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.footer-made {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.footer-made i {
    margin: 0 3px;
}

.footer-made i.fa-heart {
    color: #ef4444;
    animation: heartbeat 1.5s infinite;
}

.footer-made i.fa-mug-hot {
    color: #f59e0b;
}

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

/* Footer - Tablet (640px+) */
@media (min-width: 640px) {
    .footer-content {
        grid-template-columns: 1.5fr 1fr;
        text-align: left;
        gap: 50px;
    }
    
    .footer-brand {
        align-items: flex-start;
    }
    
    .footer-description {
        max-width: 100%;
    }
    
    .footer-links {
        gap: 40px;
    }
    
    .footer-column {
        text-align: left;
    }
    
    .footer-column h4::after {
        left: 0;
        transform: none;
    }
    
    .footer-column ul {
        align-items: flex-start;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Footer - Desktop (768px+) */
@media (min-width: 768px) {
    .footer {
        padding: 70px 0 35px;
    }
    
    .footer-container {
        padding: 0 5%;
    }
    
    .footer-content {
        gap: 60px;
    }
    
    .footer-links {
        gap: 60px;
    }
}

/* Footer - Large Desktop (1024px+) */
@media (min-width: 1024px) {
    .footer {
        padding: 80px 0 40px;
    }
    
    .footer-content {
        grid-template-columns: 1.5fr 1fr;
    }
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-fixed);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-glow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow-lg);
}

/* ============================================
   ANIMATION UTILITIES
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.hidden {
    display: none !important;
}

/* ============================================
   MOBILE HERO FIXES - Vishnu Special
   ============================================ */
@media (max-width: 767px) {
    .hero {
        min-height: auto;
        padding: 100px 0 40px;
        height: auto;
    }
    
    .hero-container {
        gap: 30px;
        padding: 0 4%;
    }
    
    .hero-visual {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }
    
    .hero-image-wrapper {
        width: 260px;
        height: 260px;
        max-width: 90vw;
    }
    
    .profile-photo {
        width: 200px;
        height: 200px;
        max-width: 80vw;
        max-height: 80vw;
    }
    
    .hero-content {
        text-align: center;
        width: 100%;
    }
    
    .title-name {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        line-height: 1.2;
        word-wrap: break-word;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 10px;
    }
    
    .stat-item {
        min-width: 85px;
        padding: 10px;
    }
    
    .hero-cta {
        align-items: center;
    }
    
    .btn {
        max-width: 260px;
        padding: 12px 24px;
    }
    
    .hero-social {
        justify-content: center;
    }
}

/* Very small phones (iPhone SE, etc) */
@media (max-width: 480px) {
    .hero {
        padding-top: 90px;
    }
    
    .hero-image-wrapper {
        width: 220px;
        height: 220px;
    }
    
    .profile-photo {
        width: 170px;
        height: 170px;
        border-width: 3px;
    }
    
    .title-name {
        font-size: 1.6rem;
    }
    
    .title-role {
        font-size: 1rem;
        min-height: 30px;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
}

/* Galaxy Fold jaise bahut chhote screens */
@media (max-width: 320px) {
    .hero-image-wrapper {
        width: 180px;
        height: 180px;
    }
    
    .profile-photo {
        width: 140px;
        height: 140px;
    }
    
    .title-name {
        font-size: 1.4rem;
    }
}

/* ============================================
   TABLET FIXES (768px - 1024px)
   ============================================ */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-container {
        gap: 30px;
    }
    
    .hero-visual {
        flex: 0 0 280px;
    }
    
    .hero-image-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .profile-photo {
        width: 220px;
        height: 220px;
    }
    
    .hero-content {
        flex: 1;
    }
}

/* ============================================
   IMAGE OVERFLOW FIX
   ============================================ */
.hero-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gradient-card);
    color: var(--accent-primary);
    font-size: 0.9rem;
}

.photo-placeholder i {
    font-size: 3rem;
    margin-bottom: 8px;
}