/* ==========================================
   MODERN PORTFOLIO WEBSITE - PREMIUM STYLING
   2025 Design with Advanced Animations
   ========================================== */

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-light: #f1f5f9;
    --text-muted: #cbd5e1;
    --border-dark: #1e293b;
    
    --bg-light: #f8fafc;
    --bg-lighter: #ffffff;
    --text-dark: #1e293b;
    --text-semi-dark: #334155;
    --border-light: #e2e8f0;
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-xl: 2rem;
    
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s ease;
    --transition-slow: 0.6s ease;
    
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] {
    --bg: var(--bg-dark);
    --bg-secondary: var(--bg-darker);
    --text: var(--text-light);
    --text-secondary: var(--text-muted);
    --border: var(--border-dark);
}

[data-theme="light"] {
    --bg: var(--bg-light);
    --bg-secondary: var(--bg-lighter);
    --text: var(--text-dark);
    --text-secondary: var(--text-semi-dark);
    --border: var(--border-light);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background var(--transition-smooth), color var(--transition-smooth);
    overflow-x: hidden;
}

body[data-theme="dark"] {
    --bg: var(--bg-dark);
    --bg-secondary: var(--bg-darker);
    --text: var(--text-light);
    --text-secondary: var(--text-muted);
    --border: var(--border-dark);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body[data-theme="light"] {
    --bg: var(--bg-light);
    --bg-secondary: var(--bg-lighter);
    --text: var(--text-dark);
    --text-secondary: var(--text-semi-dark);
    --border: var(--border-light);
    --glass-bg: rgba(99, 102, 241, 0.05);
    --glass-border: rgba(99, 102, 241, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ==========================================
   NAVIGATION BAR
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all var(--transition-smooth);
}

html[data-theme="light"] .navbar {
    background: rgba(59, 130, 246, 0.9);
}

html[data-theme="light"] .nav-link {
    color: white;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    box-shadow: var(--shadow-glow);
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width var(--transition-smooth);
}

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

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

.theme-btn {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.theme-btn:hover {
    transform: rotate(20deg) scale(1.1);
    color: var(--primary);
}

/* ==========================================
   FLOATING BLOBS
   ========================================== */
.floating-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 100% 100% 100% 100% / 100% 100% 100% 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.1));
    filter: blur(60px);
    opacity: 0.5;
    animation: blob-animation 8s infinite ease-in-out;
}

.blob-1 { width: 400px; height: 400px; top: -10%; left: -10%; animation-delay: 0s; }
.blob-2 { width: 300px; height: 300px; bottom: -5%; right: -5%; animation-delay: 2s; }
.blob-3 { width: 350px; height: 350px; top: 50%; right: 10%; animation-delay: 4s; }

@keyframes blob-animation {
    0%, 100% { transform: translate(0, 0) scale(1); border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%; }
    25% { transform: translate(20px, -50px) scale(1.1); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { transform: translate(-20px, 20px) scale(0.9); border-radius: 30% 60% 70% 40% / 50% 50% 30% 50%; }
    75% { transform: translate(50px, 50px) scale(1.05); border-radius: 70% 30% 46% 54% / 30% 30% 70% 70%; }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px var(--spacing-md) var(--spacing-lg);
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
}

.hero-text {
    text-align: left;
}

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

.hero-photo::before {
    content: '';
    position: absolute;
    width: 410px;
    height: 410px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--primary), var(--secondary), var(--primary));
    animation: spinBorder 4s linear infinite;
    z-index: -1;
}

.profile-photo {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
    border: 3px solid var(--bg);
    object-fit: cover;
    object-position: center;
    transition: all var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 30px 80px rgba(99, 102, 241, 0.5);
}

.hero-text {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    margin-bottom: 0;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease infinite;
    display: inline-block;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.typewriter-container {
    height: auto;
    margin: 0.2rem 0 0 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
}

.typewriter {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 600;
    font-family: var(--font-mono);
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 30px;
    background: var(--primary);
    animation: cursor-blink 1s infinite;
}

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

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    font-size: 3rem;
    color: rgba(99, 102, 241, 0.2);
    animation: float-up 6s ease-in-out infinite;
    --delay: 0s;
    animation-delay: var(--delay);
}

.float-icon:nth-child(1) { top: 20%; left: 10%; }
.float-icon:nth-child(2) { top: 40%; right: 15%; }
.float-icon:nth-child(3) { top: 60%; left: 5%; }
.float-icon:nth-child(4) { top: 50%; right: 5%; }

@keyframes float-up {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.1; }
    50% { transform: translateY(-40px) rotate(10deg); opacity: 0.3; }
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-glow);
}

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

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

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

.btn-magnetic {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    border-radius: var(--radius-lg);
    z-index: -1;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.btn:hover .btn-magnetic {
    opacity: 0.2;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 1rem;
}

#resume-download {
    text-decoration: none !important;
}

#resume-download::after {
    display: none !important;
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 1.5rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all var(--transition-smooth);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* ==========================================
   SECTIONS
   ========================================== */
section {
    padding: 50px var(--spacing-md);
    position: relative;
}

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

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.title-underline {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 1rem auto 0;
    border-radius: 2px;
    animation: underline-expand 0.8s ease;
}

@keyframes underline-expand {
    from { width: 0; }
    to { width: 60px; }
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1);
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(236, 72, 153, 0.03));
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-stats {
    display: grid;
    gap: 1.5rem;
}

.stat-box {
    text-align: center;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-smooth);
}

.stat-box:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.5);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ==========================================
   PROJECTS SECTION
   ========================================== */
.projects {
    position: relative;
}

.parallax-bg {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.05));
    border-radius: 0 0 100% 100%;
    animation: parallax-float 10s ease-in-out infinite;
    z-index: 0;
}

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

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

.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-smooth);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.image-placeholder {
    font-size: 4rem;
    color: rgba(99, 102, 241, 0.3);
    animation: float-icons 3s ease-in-out infinite;
}

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

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.tech-tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all var(--transition-smooth);
}

.tech-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

.project-link {
    flex: 1;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.live-link {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: 2px solid transparent;
}

.live-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.github-link {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.github-link:hover {
    background: var(--primary);
    color: white;
}

/* ==========================================
   PROJECT FILTERS
   ========================================== */
.project-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    color: var(--text-light);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

[data-theme="light"] .filter-btn {
    color: var(--text-dark);
}

[data-theme="light"] .filter-btn.active {
    color: white;
}

.project-card.hidden {
    display: none;
}

.project-card.show {
    animation: slideInUp 0.5s ease;
}

/* ==========================================
   SKILLS SECTION
   ========================================== */
.skills {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(236, 72, 153, 0.03));
}

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

.skill-item {
    text-align: center;
    transition: all var(--transition-smooth);
}

.skill-item:hover {
    transform: translateY(-10px);
}

.skill-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    transition: all var(--transition-smooth);
    border: 2px solid rgba(99, 102, 241, 0.2);
}

.skill-item:hover .skill-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: scale(1.1) rotate(5deg);
}

.skill-item h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.skill-bars {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.skill-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.skill-percentage {
    color: var(--primary);
    font-weight: 700;
}

.skill-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

/* ==========================================
   EXPERIENCE / TIMELINE
   ========================================== */
.experience {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(236, 72, 153, 0.03));
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

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

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
    width: calc(50% - 30px);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    width: calc(50% - 30px);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    border: 4px solid var(--bg);
    box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.2);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.2); }
    50% { box-shadow: 0 0 0 15px rgba(99, 102, 241, 0.1); }
}

.timeline-date {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    transition: color var(--transition-smooth);
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color var(--transition-smooth);
}

.timeline-content {
    transition: all var(--transition-smooth);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

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

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
    border-color: var(--primary);
}

.timeline-item:hover .timeline-content::before {
    left: 100%;
}

.timeline-item:hover .timeline-content h3 {
    color: var(--primary);
}

/* ==========================================
   CATCH ME IF YOU CAN GAME SECTION
   ========================================== */
.catch-game-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05), rgba(99, 102, 241, 0.05));
    position: relative;
    overflow: hidden;
}

.game-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.game-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: rgba(99, 102, 241, 0.05);
    border: 2px solid var(--primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.moving-target {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    user-select: none;
    animation: floatTarget 4s ease-in-out infinite;
}

.moving-target:hover {
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
}

@keyframes floatTarget {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(360deg); }
}

@keyframes wiggle {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.game-instruction {
    position: absolute;
    font-size: 1.2rem;
    color: var(--text-secondary);
    animation: bounce 2s ease-in-out infinite;
}

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

/* Contact Modal Styles */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

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

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

.modal-content {
    background: var(--bg);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 90%;
    padding: 0;
    overflow: hidden;
    animation: slideUp 0.4s ease;
    border: 1px solid var(--border);
}

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

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.8rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.modal-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.contact-link-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text);
    text-decoration: none;
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.contact-link-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    border-color: var(--primary);
}

.contact-link-btn i {
    font-size: 1.5rem;
}

.contact-link-btn span {
    font-size: 0.95rem;
    font-weight: 600;
}

/* ==========================================
   RESPONSIVE DESIGN - GAME & MODAL
   ========================================== */

/* Tablets (768px and above) */
@media (max-width: 1024px) {
    .game-container {
        height: 350px;
    }

    .moving-target {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .game-instruction {
        font-size: 1rem;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .contact-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .contact-link-btn {
        padding: 1.25rem;
    }
}

/* Small Tablets & Large Phones (600px - 768px) */
@media (max-width: 768px) {
    .catch-game-section {
        padding: var(--spacing-lg) 0;
    }

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

    .game-container {
        height: 300px;
        border-width: 1.5px;
    }

    .moving-target {
        width: 65px;
        height: 65px;
        font-size: 1.8rem;
        box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    }

    .moving-target:hover {
        box-shadow: 0 12px 30px rgba(99, 102, 241, 0.5);
    }

    .game-instruction {
        font-size: 0.95rem;
    }

    .modal-content {
        max-width: 90vw;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.4rem;
    }

    .modal-close {
        font-size: 1.8rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

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

    .contact-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .contact-link-btn {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .contact-link-btn i {
        font-size: 1.3rem;
    }

    .contact-link-btn span {
        font-size: 0.85rem;
    }
}

/* Mobile Phones (480px - 600px) */
@media (max-width: 600px) {
    .catch-game-section {
        padding: var(--spacing-md) 0;
    }

    .game-subtitle {
        font-size: 0.95rem;
    }

    .game-container {
        height: 280px;
        border-width: 1.5px;
        margin-top: var(--spacing-md);
    }

    .moving-target {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        box-shadow: 0 6px 15px rgba(99, 102, 241, 0.25);
    }

    .moving-target:hover {
        box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    }

    .game-instruction {
        font-size: 0.9rem;
    }

    .modal-content {
        max-width: 95vw;
        border-radius: var(--radius-lg);
    }

    .modal-header {
        padding: 1.25rem;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    .modal-close {
        font-size: 1.5rem;
        padding: 0.25rem;
    }

    .modal-body {
        padding: 1.25rem;
    }

    .modal-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .contact-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .contact-link-btn {
        padding: 0.9rem;
        border-radius: var(--radius-md);
    }

    .contact-link-btn i {
        font-size: 1.2rem;
    }

    .contact-link-btn span {
        font-size: 0.8rem;
    }
}

/* Small Mobile Phones (Below 480px) */
@media (max-width: 480px) {
    .catch-game-section {
        padding: var(--spacing-md) 0;
    }

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

    .game-subtitle {
        font-size: 0.9rem;
    }

    .game-container {
        height: 250px;
        border-width: 1.5px;
    }

    .moving-target {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
        box-shadow: 0 5px 12px rgba(99, 102, 241, 0.2);
    }

    .moving-target:hover {
        box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
    }

    .game-instruction {
        font-size: 0.85rem;
    }

    .modal-content {
        max-width: 98vw;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-header h2 {
        font-size: 1.15rem;
    }

    .modal-close {
        font-size: 1.3rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .contact-links {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .contact-link-btn {
        padding: 0.8rem;
        flex-direction: row;
        justify-content: center;
        gap: 0.75rem;
    }

    .contact-link-btn i {
        font-size: 1.1rem;
    }

    .contact-link-btn span {
        font-size: 0.75rem;
    }
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(236, 72, 153, 0.03));
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 1.5rem;
}

.contact-item {
    text-align: center;
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    transition: all var(--transition-smooth);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(-10deg);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-secondary);
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition-smooth);
}

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

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

.form-group {
    position: relative;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(99, 102, 241, 0.05);
    border: 2px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    color: var(--text);
    font-family: var(--font-primary);
    transition: all var(--transition-smooth);
    font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-secondary);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    border-top: 1px solid var(--border);
    padding: 2rem var(--spacing-md);
}

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

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

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-smooth);
    font-size: 1.2rem;
    text-decoration: none;
}

.footer-social a:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: translateY(-5px) rotate(10deg);
}

/* ==========================================
   SCROLL TO TOP BUTTON
   ========================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
}

.scroll-top-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.6);
}

.scroll-top-btn.show {
    display: flex;
    animation: slideInUp 0.3s ease;
}

/* ==========================================
   EVENTS SECTION
   ========================================== */
.events {
    padding: var(--spacing-xl) 0;
    background: var(--bg-secondary);
}

.events-category {
    margin-bottom: var(--spacing-xl);
}

.category-title {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--primary);
}

.events-timeline {
    position: relative;
    padding: 0;
}

.events-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.event-timeline-item {
    position: relative;
    margin-bottom: var(--spacing-lg);
    padding-left: 80px;
}

.event-timeline-dot {
    position: absolute;
    left: 10px;
    top: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-smooth);
}

.event-timeline-item:hover .event-timeline-dot {
    background: var(--secondary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.event-timeline-item.hosted .event-timeline-dot {
    background: var(--secondary);
}

.event-timeline-content {
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition-smooth);
}

.event-timeline-content:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.event-timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text);
}

.event-date {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.event-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.hosted-event {
    border-left: 4px solid var(--secondary);
}

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

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

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

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

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    .nav-menu { gap: 1rem; font-size: 0.95rem; }
    .hero { padding-top: 80px; min-height: auto; }
    .hero-content { grid-template-columns: 1fr; gap: 2rem; }
    .hero-text { text-align: center; }
    .hero-photo { margin-top: 2rem; }
    .profile-photo { max-width: 300px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 300px; }
    .about-content { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .contact-content { grid-template-columns: 1fr; }
    .timeline::before { left: 15px; }
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }
    .timeline-dot { left: 0; }
}

@media (max-width: 480px) {
    .nav-menu { display: none; }
    .hero-title { font-size: 1.8rem; }
    .typewriter { font-size: 1.1rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 1.5rem; }
    .stat-number { font-size: 2rem; }
}

/* ==========================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ========================================== */

/* EXTRA LARGE TABLETS & SMALL LAPTOPS (1024px - 1440px) */
@media (max-width: 1440px) {
    :root {
        --spacing-xl: 60px;
        --spacing-lg: 40px;
    }

    .container {
        max-width: 1000px;
    }

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

    .btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }
}

/* TABLETS (768px - 1024px) */
@media (max-width: 1024px) {
    :root {
        --spacing-xl: 50px;
        --spacing-lg: 30px;
        --spacing-md: 20px;
    }

    .container {
        max-width: 900px;
        padding: 0 20px;
    }

    /* Navbar */
    .navbar {
        padding: 1rem 2rem;
    }

    .nav-logo {
        font-size: 1.3rem;
    }

    /* Hero Section */
    .hero {
        min-height: 500px;
        padding: 50px 0;
    }

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

    .hero-content {
        text-align: center;
    }

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

    .typewriter {
        font-size: 1.3rem;
    }

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

    .profile-photo {
        width: 200px;
        height: 200px;
    }

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

    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        order: 2;
    }

    .about-image {
        order: 1;
        max-width: 100%;
    }

    /* Projects Grid */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Skills Grid */
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .skill-item {
        padding: 1.5rem;
    }

    /* Experience */
    .experience-timeline {
        padding-left: 40px;
    }

    .timeline-dot {
        width: 14px;
        height: 14px;
        left: -47px;
    }

    /* Events */
    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-item {
        padding: 1.5rem;
    }

    /* Buttons */
    .btn {
        padding: 0.85rem 1.6rem;
        font-size: 0.9rem;
    }

    .btn-sm {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* LARGE PHONES (600px - 768px) */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 40px;
        --spacing-lg: 25px;
        --spacing-md: 15px;
    }

    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    /* Navbar */
    .navbar {
        padding: 0.75rem 1.5rem;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-toggle {
        display: flex;
    }

    /* Hero Section */
    .hero {
        min-height: 450px;
        padding: 40px 0;
    }

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

    .typewriter {
        font-size: 1.2rem;
    }

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

    .profile-photo {
        width: 180px;
        height: 180px;
    }

    .spin-border {
        width: 200px;
        height: 200px;
    }

    /* Section Title */
    .section-title {
        font-size: 2.2rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    /* About */
    .about-description {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* Projects Grid */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .project-card {
        padding: 1.25rem;
    }

    .project-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .skill-item {
        padding: 1.25rem;
        font-size: 0.95rem;
    }

    /* Experience */
    .experience-timeline {
        padding-left: 30px;
    }

    .timeline-item {
        margin-bottom: 2rem;
    }

    .timeline-dot {
        width: 12px;
        height: 12px;
        left: -39px;
    }

    .timeline-content {
        padding: 1.25rem;
    }

    .timeline-year {
        font-size: 0.9rem;
    }

    .timeline-title {
        font-size: 1.1rem;
    }

    /* Events */
    .events-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .event-item {
        padding: 1.25rem;
    }

    .event-category {
        font-size: 0.85rem;
    }

    .event-date {
        font-size: 0.9rem;
    }

    /* Contact Form */
    .contact-form {
        gap: 1.2rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.75rem 0.9rem;
        font-size: 0.95rem;
    }

    /* Buttons */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .btn-sm {
        padding: 0.55rem 1rem;
        font-size: 0.8rem;
    }

    /* Text */
    p {
        font-size: 0.95rem;
    }
}

/* MEDIUM PHONES (480px - 600px) */
@media (max-width: 600px) {
    :root {
        --spacing-xl: 30px;
        --spacing-lg: 20px;
        --spacing-md: 12px;
    }

    .container {
        max-width: 100%;
        padding: 0 12px;
    }

    html {
        scroll-behavior: smooth;
        font-size: 14px;
    }

    /* Navbar */
    .navbar {
        padding: 0.6rem 1rem;
        position: fixed;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .nav-toggle {
        font-size: 1.5rem;
    }

    body {
        padding-top: 60px;
    }

    /* Hero */
    .hero {
        min-height: 400px;
        padding: 30px 0;
        margin-top: 20px;
    }

    .hero-title {
        font-size: 1.9rem;
        line-height: 1.3;
    }

    .typewriter {
        font-size: 1rem;
        height: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-top: 0.8rem;
    }

    .profile-photo {
        width: 150px;
        height: 150px;
    }

    .spin-border {
        width: 170px;
        height: 170px;
    }

    .hero-buttons {
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .hero-social {
        gap: 1rem;
        margin-top: 1.5rem;
    }

    /* Section */
    .section {
        padding: 30px 0;
    }

    .section-title {
        font-size: 1.9rem;
        margin-bottom: 1.5rem;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    /* About */
    .about-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-box {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .project-card {
        padding: 1rem;
    }

    .project-image {
        height: 200px;
    }

    .project-tag {
        padding: 0.35rem 0.7rem;
        font-size: 0.7rem;
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .skill-item {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .skill-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    /* Experience */
    .experience-timeline {
        padding-left: 25px;
    }

    .timeline-item {
        margin-bottom: 1.5rem;
    }

    .timeline-dot {
        width: 11px;
        height: 11px;
        left: -32px;
        top: 5px;
    }

    .timeline-content {
        padding: 1rem;
        border-radius: 0.75rem;
    }

    .timeline-year {
        font-size: 0.85rem;
    }

    .timeline-title {
        font-size: 1rem;
    }

    .timeline-description {
        font-size: 0.85rem;
    }

    /* Events */
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .event-item {
        padding: 1rem;
    }

    .event-category {
        font-size: 0.8rem;
    }

    .event-date {
        font-size: 0.85rem;
    }

    .event-title {
        font-size: 1rem;
        margin: 0.5rem 0;
    }

    .event-description {
        font-size: 0.85rem;
    }

    /* Contact Form */
    .contact-form {
        gap: 1rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
        border-width: 1.5px;
    }

    .contact-form textarea {
        min-height: 120px;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.3rem;
        font-size: 0.85rem;
        border-radius: 0.6rem;
    }

    .btn-sm {
        padding: 0.5rem 0.9rem;
        font-size: 0.75rem;
    }

    /* Scroll to Top */
    .scroll-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        bottom: 20px;
        right: 20px;
    }

    /* Text */
    p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1.1rem; }
}

/* SMALL PHONES (Below 480px) - MOBILE OPTIMIZED */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    body {
        padding-top: 50px;
        margin: 0;
    }

    .container {
        max-width: 100% !important;
        padding: 0 15px !important;
        margin: 0 auto !important;
    }

    /* ========== NAVBAR ========== */
    .navbar {
        padding: 0.5rem 1rem;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .nav-toggle {
        font-size: 1.3rem;
    }

    /* ========== HERO SECTION ========== */
    .hero {
        min-height: auto;
        padding: 30px 0 8px 0;
        margin-top: 0;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .floating-icons {
        display: none !important;
    }

    .hero-text {
        order: 1;
        text-align: center;
        padding: 20px 0 8px 0;
    }

    .hero-photo {
        order: 2;
        text-align: center;
        width: 100%;
        background: transparent;
        padding: 8px 0;
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-photo::before {
        display: none !important;
    }

    .profile-photo {
        width: 250px;
        height: 250px;
        border-radius: 15px;
        object-fit: cover;
        border: 2px solid white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin: 3px 0;
        font-weight: 700;
    }

    .gradient-text {
        background: linear-gradient(135deg, #ec4899, #6366f1);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .typewriter-container {
        font-size: 2rem;
        margin: 2px 0;
        min-height: 2.4rem;
        display: block;
        text-align: center;
    }

    .typewriter {
        color: var(--secondary);
    }

    .cursor {
        animation: blink 0.7s infinite;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        margin: 4px 0 6px;
        line-height: 1.4;
        color: var(--text-secondary);
    }

    .hero-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
        margin: 6px 0;
    }

    .hero-buttons .btn {
        padding: 0.8rem 0.8rem;
        font-size: 1rem;
        width: 100%;
    }

    .hero-buttons .btn:nth-child(3) {
        grid-column: 1 / -1;
    }

    .social-icons {
        display: flex;
        justify-content: center;
        gap: 0.6rem;
        margin-top: 6px;
    }

    .social-link {
        font-size: 1.8rem;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .scroll-indicator {
        display: none !important;
    }

    /* ========== ABOUT SECTION ========== */
    .about {
        padding: 10px 0;
    }

    .about-grid {
        grid-template-columns: 1fr !important;
    }

    .about-content {
        order: 1;
    }

    .about-image {
        display: none !important;
    }

    .about-description {
        font-size: 0.8rem;
        line-height: 1.5;
        margin-bottom: 6px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-top: 6px;
    }

    .stat-box {
        padding: 0.6rem;
        border-radius: 0.3rem;
        text-align: center;
    }

    .stat-number {
        font-size: 1.3rem;
        font-weight: 700;
    }

    .stat-label {
        font-size: 0.65rem;
        margin-top: 2px;
    }

    /* ========== SECTIONS ========== */
    .section {
        padding: 20px 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        line-height: 1.25;
        font-weight: 700;
    }

    .section-header {
        margin-bottom: 1rem;
    }

    /* ========== ABOUT ========== */
    .about {
        padding: 30px 0;
    }

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

    .about-content {
        order: 1;
    }

    .about-image {
        order: 2;
        display: none;
    }

    .about-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin-top: 1.2rem;
    }

    .stat-box {
        padding: 0.9rem;
        border-radius: 0.5rem;
        text-align: center;
    }

    .stat-number {
        font-size: 1.6rem;
        font-weight: 700;
    }

    .stat-label {
        font-size: 0.8rem;
        margin-top: 0.3rem;
    }

    /* ========== PROJECTS ========== */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-card {
        padding: 1rem;
        border-radius: 0.6rem;
    }

    .project-card:hover {
        transform: none !important;
    }

    .project-image {
        height: 180px;
        border-radius: 0.5rem;
        margin-bottom: 0.8rem;
    }

    .project-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .project-description {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .project-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .project-tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }

    /* ========== SKILLS ========== */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.9rem;
    }

    .skill-item {
        padding: 0.9rem;
        font-size: 0.9rem;
        border-radius: 0.5rem;
        text-align: center;
    }

    .skill-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    /* ========== EXPERIENCE ========== */
    .experience-timeline {
        padding-left: 20px;
    }

    .timeline-item {
        margin-bottom: 1.2rem;
    }

    .timeline-dot {
        width: 11px;
        height: 11px;
        left: -26px;
        top: 5px;
    }

    .timeline-content {
        padding: 0.9rem;
        border-radius: 0.5rem;
    }

    .timeline-year {
        font-size: 0.85rem;
        font-weight: 600;
    }

    .timeline-title {
        font-size: 1rem;
        margin: 0.4rem 0;
        font-weight: 600;
    }

    .timeline-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* ========== EVENTS ========== */
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .event-item {
        padding: 1rem;
        border-radius: 0.5rem;
    }

    .event-category {
        font-size: 0.8rem;
        font-weight: 600;
    }

    .event-date {
        font-size: 0.9rem;
        margin: 0.3rem 0;
    }

    .event-title {
        font-size: 1rem;
        margin: 0.5rem 0;
        font-weight: 600;
    }

    .event-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* ========== GAME ========== */
    .game-container {
        height: 250px;
        margin-top: 1rem;
    }

    .moving-target {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }

    .game-instruction {
        font-size: 0.85rem;
    }

    /* ========== CONTACT FORM ========== */
    .contact-form {
        gap: 1rem;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        padding: 0.8rem;
        font-size: 1rem;
        border-radius: 0.5rem;
        border-width: 1.5px;
    }

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

    /* ========== BUTTONS ========== */
    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        border-radius: 0.5rem;
        display: inline-block;
    }

    .btn-primary {
        width: 100%;
    }

    .btn-sm {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }

    /* ========== SCROLL TO TOP ========== */
    .scroll-to-top {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }

    /* ========== FOOTER ========== */
    .footer-social a {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    /* ========== MODAL ========== */
    .contact-modal {
        padding: 0 10px;
    }

    .modal-content {
        max-width: 100%;
        width: 100%;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-header h2 {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .contact-links {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .contact-link-btn {
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    .contact-link-btn i {
        font-size: 1.1rem;
    }

    /* ========== TEXT ========== */
    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.1rem; }
    h4 { font-size: 1rem; }

    strong { font-weight: 600; }
}


.hidden { display: none; }
.visible { display: block; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
