/* styles.css - Updated with better dark mode */
/* ===================================================
   RAJA EVIAN ADITYA — PORTFOLIO v2.0 (Mobile Optimized)
   Theme: Midnight Premium | Neon Accent
=================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    --bg-primary: #f7f8fc;
    --bg-secondary: #eef0f7;
    --text-primary: #1a1f2e;
    --text-secondary: #6b7280;
    --border-color: #e1e5ef;
    --card-bg: #ffffff;
    --navbar-bg: #ffffff;
    --footer-bg: #1a1f2e;
    --input-bg: #ffffff;

    --primary-color: #00d4aa;
    --secondary-color: #7c5cfc;
    --accent-color: #ff6b6b;
    --gold-color: #f5a623;

    --gradient: linear-gradient(135deg, #00d4aa 0%, #7c5cfc 100%);
    --gradient-warm: linear-gradient(135deg, #ff6b6b 0%, #f5a623 100%);
    --gradient-dark: linear-gradient(135deg, #080c14 0%, #0f1923 50%, #080c14 100%);
    --gradient-hover: linear-gradient(135deg, #7c5cfc 0%, #00d4aa 100%);

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.10);
    --shadow-xl: 0 24px 48px rgba(0,0,0,0.12);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

[data-theme="dark"] {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --border-color: #1f2937;
    --card-bg: #111827;
    --navbar-bg: #050810;
    --footer-bg: #050810;
    --input-bg: #1f2937;
}

/* ===================== RESET & BASE ===================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.6;
    width: 100%;
}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 3px;
}

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

p, span, li, a {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-secondary) !important;
}

/* ===================== NAVBAR ===================== */
.navbar {
    background: var(--navbar-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(0, 212, 170, 0.08);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

[data-theme="dark"] .navbar {
    background: var(--navbar-bg) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar-scrolled {
    padding: 0.5rem 0;
    background: var(--navbar-bg) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

[data-theme="dark"] .navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.brand-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.navbar-toggler {
    border-color: rgba(0,212,170,0.3);
    background: transparent;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,212,170,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%c/svg%3e");
}

.nav-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 4px;
    letter-spacing: 0.3px;
}

/* Light mode nav link color */
.nav-link {
    color: #4a5568 !important;
}

[data-theme="dark"] .nav-link {
    color: rgba(255,255,255,0.8) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .nav-link:hover, 
[data-theme="dark"] .nav-link.active {
    color: #ffffff !important;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 60%;
}

#darkModeToggle {
    background: rgba(0,212,170,0.1);
    border: 1px solid rgba(0,212,170,0.2);
    color: #00d4aa;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#darkModeToggle:hover {
    background: var(--primary-color);
    color: #080c14;
    border-color: var(--primary-color);
    transform: rotate(20deg);
}

/* ===================== HERO SECTION - WITH GRID PATTERN ===================== */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0 60px;
    /* Light mode background - clean white with soft gradient */
    background: linear-gradient(135deg, #f8f9fc 0%, #f0f2f8 50%, #e8edf5 100%);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0a0e1a 0%, #0f1622 50%, #0a0e1a 100%);
}

/* Grid pattern for light mode (same as dark mode but softer) */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(102,126,234,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102,126,234,0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
}

[data-theme="dark"] .hero::before {
    background-image:
        linear-gradient(rgba(0,212,170,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,170,0.06) 1px, transparent 1px);
    background-size: 56px 56px;
}

/* Soft radial glow */
.hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(102,126,234,0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(118,75,162,0.06) 0%, transparent 50%);
    pointer-events: none;
}

[data-theme="dark"] .hero-glow {
    background: radial-gradient(circle at 30% 40%, rgba(0,212,170,0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(124,92,252,0.08) 0%, transparent 50%);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.8rem, 6vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    color: #1a1f2e;
}

[data-theme="dark"] .hero-content h1 {
    color: #ffffff;
}

.hero-content .lead {
    font-size: clamp(0.95rem, 3vw, 1.15rem);
    max-width: 480px;
    line-height: 1.7;
    font-weight: 500;
    color: #4a5568;
}

[data-theme="dark"] .hero-content .lead {
    color: rgba(255,255,255,0.85);
}

.hero-content p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #5a6a7a;
}

[data-theme="dark"] .hero-content p {
    color: rgba(255,255,255,0.7);
}

/* Hero Buttons */
.hero-buttons {
    position: relative;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 1.5rem;
}

.btn-primary {
    border: none;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding: 14px 32px;
    border-radius: 50px;
    transition: all 0.35s ease;
    letter-spacing: 0.3px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.4);
    background: linear-gradient(135deg, #764ba2, #667eea);
    color: #ffffff;
}

[data-theme="dark"] .btn-primary {
    background: var(--gradient);
    color: #080c14;
}

[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(0,212,170,0.35);
    color: #080c14;
}

.btn-outline-light {
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.35s ease;
    font-size: 0.9rem;
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
}

.btn-outline-light:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-3px);
}

[data-theme="dark"] .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.05);
    color: #ffffff;
}

[data-theme="dark"] .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: #ffffff;
}

/* Social Links - FIXED: Better visibility for both modes */
.social-links {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 20;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.2rem;
    /* Light mode - dark background for better visibility */
    background: #1a1f2e;
    border: 1px solid rgba(255,255,255,0.1);
    color: #1e1e1e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.social-link i {
    font-size: 1.2rem;
    color: #121212;
}

.social-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Individual social link hover colors - Light mode */
.social-link:hover.github {
    background: #24292e;
    border-color: #24292e;
    color: #323232;
}

.social-link:hover.github i {
    color: #343434;
}

.social-link:hover.instagram {
    background: linear-gradient(45deg, #f09433, #d62976, #962fbf);
    border-color: transparent;
    color: #d000ff;
}

.social-link:hover.instagram i {
    color: #fa049c;
}

.social-link:hover.discord {
    background: #5865f2;
    border-color: #5865f2;
    color: #ffffff;
}

.social-link:hover.discord i {
    color: #ffffff;
}

.social-link:hover.linkedin {
    background: #0077b5;
    border-color: #0077b5;
    color: #ffffff;
}

.social-link:hover.linkedin i {
    color: #ffffff;
}

/* Dark mode social links */
[data-theme="dark"] .social-link {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #00d4aa;
    box-shadow: none;
}

[data-theme="dark"] .social-link i {
    color: #00d4aa;
}

[data-theme="dark"] .social-link:hover {
    transform: translateY(-4px);
}

[data-theme="dark"] .social-link:hover.github {
    background: #24292e;
    border-color: #24292e;
    color: #343434;
}

[data-theme="dark"] .social-link:hover.github i {
    color: #343434;
}

[data-theme="dark"] .social-link:hover.instagram {
    background: linear-gradient(45deg, #f09433, #d62976, #962fbf);
    color: #fa049c;
}

[data-theme="dark"] .social-link:hover.instagram i {
    color: #fa049c;
}

[data-theme="dark"] .social-link:hover.discord {
    background: #5865f2;
    color: #ffffff;
}

[data-theme="dark"] .social-link:hover.discord i {
    color: #ffffff;
}

[data-theme="dark"] .social-link:hover.linkedin {
    background: #0077b5;
    color: #ffffff;
}

[data-theme="dark"] .social-link:hover.linkedin i {
    color: #ffffff;
}

/* Hero Profile Image */
.hero-profile-image {
    text-align: center;
    position: relative;
}

.hero-profile-image img {
    width: clamp(220px, 50vw, 340px);
    height: clamp(220px, 50vw, 340px);
    object-fit: cover;
    border-radius: 30px;
    transition: all 0.4s ease;
    border: 4px solid #ffffff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 0 0 1px rgba(102,126,234,0.1);
    background: #ffffff;
}

.hero-profile-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

[data-theme="dark"] .hero-profile-image img {
    border: 4px solid rgba(0,212,170,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 5;
    pointer-events: none;
}

.hero-wave svg {
    width: 100%;
    height: auto;
}

.hero-wave svg path {
    fill: var(--bg-primary);
    transition: fill 0.4s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 50px;
        min-height: auto;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .hero-content .lead {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .hero-profile-image img {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 576px) {
    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline-light {
        padding: 10px 24px;
        font-size: 0.85rem;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .social-link i {
        font-size: 1rem;
    }
    
    .hero-profile-image img {
        width: 180px;
        height: 180px;
    }
}

/* ===================== ABOUT ===================== */
.about-image {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 3px solid var(--primary-color);
    width: 220px;
    height: 220px;
    object-fit: cover;
}

@media (min-width: 576px) {
    .about-image img {
        width: 260px;
        height: 260px;
    }
}

@media (min-width: 768px) {
    .about-image img {
        width: 280px;
        height: 280px;
    }
}

.about-content h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.about-content .lead {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

.stat-info h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    .stat-info h3 {
        font-size: 2rem;
    }
}

.stat-info p {
    color: var(--text-secondary);
    margin: 5px 0 0;
}

.info-list li {
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .info-list li {
        font-size: 0.9rem;
    }
}

.info-list i {
    width: 24px;
    color: var(--primary-color);
    margin-right: 8px;
}

.info-list a {
    color: var(--primary-color);
    text-decoration: none;
}

.info-list a:hover {
    text-decoration: underline;
}

.about-social-link {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    color: var(--primary-color);
    transition: all 0.3s ease;
    margin: 0 3px;
    text-decoration: none;
    border: 1px solid var(--border-color);
}

.about-social-link:hover {
    background: var(--primary-color);
    color: #080c14;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* ===================== SKILLS ===================== */
#skills {
    background: var(--bg-secondary);
}

.skill-item {
    margin-bottom: 1.2rem;
}

.skill-name {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .skill-name {
        font-size: 0.9rem;
    }
}

.skill-percent {
    color: var(--text-secondary);
}

.progress {
    height: 6px;
    border-radius: 6px;
    background: var(--border-color);
    overflow: visible;
    position: relative;
}

.progress-bar {
    background: var(--gradient);
    width: 0;
    transition: width 1.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
    position: relative;
}

/* ===================== SERVICES ===================== */
.service-card {
    background: var(--card-bg);
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    height: 100%;
}

@media (min-width: 768px) {
    .service-card {
        padding: 36px 28px;
    }
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0,212,170,0.1), rgba(124,92,252,0.1));
    border: 1px solid rgba(0,212,170,0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: all 0.4s ease;
}

@media (min-width: 768px) {
    .service-icon {
        width: 72px;
        height: 72px;
    }
}

.service-card:hover .service-icon {
    background: var(--gradient);
    border-color: transparent;
}

.service-card:hover .service-icon i {
    color: #080c14;
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .service-icon i {
        font-size: 1.7rem;
    }
}

.service-card h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .service-card h4 {
        font-size: 1.1rem;
    }
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .service-card p {
        font-size: 0.9rem;
    }
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: var(--secondary-color);
    gap: 10px;
}

/* ===================== PROJECTS ===================== */
#projects {
    background: var(--bg-secondary);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.filter-btn {
    padding: 5px 14px;
    border: 1.5px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-secondary);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.75rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

@media (min-width: 576px) {
    .filter-btn {
        padding: 6px 18px;
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) {
    .filter-btn {
        padding: 7px 22px;
        font-size: 0.85rem;
    }
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient);
    color: #080c14;
    border-color: transparent;
    transform: translateY(-2px);
}

.search-box { 
    max-width: 320px; 
    margin: 0 auto;
}

@media (min-width: 576px) {
    .search-box { 
        max-width: 380px; 
    }
}

.search-box .form-control {
    border-radius: 50px;
    padding: 9px 16px;
    border: 1.5px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
}

.search-box .form-control::placeholder {
    color: var(--text-secondary);
}

.search-box .btn-primary {
    border-radius: 50px;
    padding: 9px 18px;
    font-size: 0.85rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

@media (min-width: 576px) {
    .project-image {
        height: 200px;
    }
}

@media (min-width: 768px) {
    .project-image {
        height: 220px;
    }
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img { 
    transform: scale(1.08); 
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,212,170,0.88), rgba(124,92,252,0.88));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.35s ease;
    backdrop-filter: blur(4px);
}

.project-card:hover .project-overlay { 
    opacity: 1; 
}

.project-links { 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap;
    justify-content: center;
}

.project-links .btn {
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

@media (min-width: 576px) {
    .project-links .btn {
        padding: 7px 16px;
        font-size: 0.8rem;
    }
}

.project-links .btn-light {
    background: white;
    color: #080c14;
    border: none;
}

.project-content { 
    padding: 16px;
}

@media (min-width: 576px) {
    .project-content { 
        padding: 18px;
    }
}

@media (min-width: 768px) {
    .project-content { 
        padding: 20px 22px;
    }
}

.project-category {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(0,212,170,0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    border: 1px solid rgba(0,212,170,0.2);
}

@media (min-width: 576px) {
    .project-category {
        font-size: 0.7rem;
        padding: 3px 12px;
    }
}

.project-content h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

@media (min-width: 576px) {
    .project-content h4 {
        font-size: 1rem;
    }
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
}

@media (min-width: 576px) {
    .project-content p {
        font-size: 0.85rem;
    }
}

/* ===================== TESTIMONIALS ===================== */
.testimonial-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.35s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

@media (min-width: 576px) {
    .testimonial-card {
        padding: 24px;
    }
}

@media (min-width: 768px) {
    .testimonial-card {
        padding: 28px;
    }
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 8px;
    right: 16px;
    font-size: 4rem;
    line-height: 1;
    color: var(--primary-color);
    opacity: 0.08;
    font-family: Georgia, serif;
    pointer-events: none;
}

@media (min-width: 576px) {
    .testimonial-card::before {
        font-size: 5rem;
    }
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-rating { 
    margin-bottom: 12px; 
}
.testimonial-rating i { 
    color: #f5a623; 
    font-size: 0.8rem; 
    margin-right: 1px;
}

.testimonial-text {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 0.85rem;
}

@media (min-width: 576px) {
    .testimonial-text {
        font-size: 0.9rem;
    }
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.author-info h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.author-info small {
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.testimonial-form {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

@media (min-width: 576px) {
    .testimonial-form {
        padding: 30px;
    }
}

@media (min-width: 768px) {
    .testimonial-form {
        padding: 36px;
    }
}

/* ===================== FORM ELEMENTS ===================== */
.form-control, .form-select {
    background: var(--input-bg);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 9px 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .form-control, .form-select {
        padding: 11px 16px;
        font-size: 0.9rem;
    }
}

.form-control::placeholder { 
    color: var(--text-secondary); 
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,212,170,0.12);
    background: var(--input-bg);
    color: var(--text-primary);
    outline: none;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

/* ===================== CONTACT ===================== */
.contact-card {
    background: var(--card-bg);
    padding: 28px 20px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

@media (min-width: 576px) {
    .contact-card {
        padding: 35px 25px;
    }
}

@media (min-width: 768px) {
    .contact-card {
        padding: 44px;
    }
}

.contact-card h3 {
    color: var(--text-primary);
}

.contact-card p {
    color: var(--text-secondary);
}

.contact-icon-large {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

@media (min-width: 768px) {
    .contact-icon-large {
        width: 88px;
        height: 88px;
    }
}

.contact-icon-large i { 
    font-size: 1.8rem; 
    color: #080c14;
}

@media (min-width: 768px) {
    .contact-icon-large i { 
        font-size: 2.2rem; 
    }
}

.email-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0,212,170,0.08);
    border-radius: 50px;
    border: 1px solid rgba(0,212,170,0.2);
    transition: all 0.3s ease;
    word-break: break-all;
}

@media (min-width: 576px) {
    .email-link {
        font-size: 0.9rem;
        padding: 12px 24px;
    }
}

@media (min-width: 768px) {
    .email-link {
        font-size: 1rem;
    }
}

.email-link:hover {
    background: var(--primary-color);
    color: #080c14;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.social-media-section h4 {
    color: var(--text-primary);
}

.social-media-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
}

@media (min-width: 576px) {
    .social-media-link {
        padding: 12px 16px;
        gap: 14px;
    }
}

.social-media-link:hover { 
    transform: translateX(5px); 
}
.social-media-link.github:hover { 
    background: #24292e; 
    border-color: #24292e; 
}
.social-media-link.instagram:hover { 
    background: linear-gradient(45deg, #f09433, #d62976); 
    border-color: transparent; 
}
.social-media-link.discord:hover { 
    background: #5865f2; 
    border-color: #5865f2; 
}

.social-media-link:hover .social-icon i,
.social-media-link:hover .social-info strong,
.social-media-link:hover .social-info span { 
    color: white !important; 
}

.social-icon i { 
    font-size: 1.2rem; 
    color: var(--primary-color);
}

@media (min-width: 576px) {
    .social-icon i { 
        font-size: 1.4rem; 
    }
}

.social-info strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
}

.social-info span { 
    font-size: 0.7rem; 
    color: var(--text-secondary);
}

/* ===================== FOOTER ===================== */
.footer {
    background: var(--footer-bg);
    color: white;
    padding: 50px 0 20px;
    position: relative;
    transition: background 0.4s ease;
}

/* Light mode footer - dark background with lighter elements */
[data-theme="light"] .footer {
    background: #1a1f2e;
}

[data-theme="dark"] .footer {
    background: #050810;
}

@media (min-width: 768px) {
    .footer {
        padding: 72px 0 28px;
    }
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
}

.footer h5 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.footer-links { 
    list-style: none; 
    padding: 0; 
}

.footer-links li { 
    margin-bottom: 8px; 
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-links a:hover { 
    color: var(--primary-color); 
    padding-left: 4px; 
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.footer-social a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.08);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: #080c14;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-contact { 
    list-style: none; 
    padding: 0; 
}

.footer-contact li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    flex-wrap: wrap;
}

.footer-contact i { 
    width: 18px; 
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 32px;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { 
    animation: fadeInUp 0.5s ease forwards; 
}

/* ===================== ALERTS ===================== */
.alert {
    border-radius: var(--radius-md);
    border: none;
    font-size: 0.85rem;
    padding: 12px 16px;
}

.alert-success {
    background: rgba(0,212,170,0.12);
    color: #00a884;
    border-left: 3px solid #00d4aa;
}

.alert-danger {
    background: rgba(255,107,107,0.12);
    color: #e55555;
    border-left: 3px solid #ff6b6b;
}

/* ===================== RATING STARS ===================== */
.rating-stars label i { 
    cursor: pointer; 
    font-size: 1.3rem; 
    color: var(--border-color); 
    transition: color 0.2s ease; 
}

/* ===================== VISITOR COUNTER ===================== */
.visitor-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(0,212,170,0.08);
    border: 1px solid rgba(0,212,170,0.15);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* ===================== UTILITY ===================== */
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Container padding for mobile */
.container {
    padding-left: 16px;
    padding-right: 16px;
    width: 100%;
}

@media (min-width: 576px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (min-width: 768px) {
    .container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* Row gap adjustments */
.row {
    margin-left: -8px;
    margin-right: -8px;
}

.row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

@media (min-width: 576px) {
    .row {
        margin-left: -12px;
        margin-right: -12px;
    }
    .row > [class*="col-"] {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Image responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Touch-friendly button sizes for mobile */
@media (max-width: 576px) {
    .btn, 
    .filter-btn,
    .social-link,
    .nav-link {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .project-links .btn {
        min-height: 36px;
    }
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

.hero-wave svg {
    width: 100%;
    height: auto;
}

/* Dark mode specific overrides */
[data-theme="dark"] .bg-light {
    background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .text-secondary {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .border {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .alert-info {
    background: rgba(0,212,170,0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0,212,170,0.2);
}

/* ===================== ENHANCED ABOUT SECTION ===================== */

/* Stat Cards Modern */
.about-stats-grid {
    margin-bottom: 20px;
}

.stat-card-modern {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card-modern:hover::before {
    transform: scaleX(1);
}

.stat-card-modern:hover {
    transform: translateY(-8px);
    border-color: rgba(0,212,170,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

[data-theme="dark"] .stat-card-modern:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0,212,170,0.1), rgba(124,92,252,0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
}

.stat-card-modern:hover .stat-icon-wrapper {
    background: var(--gradient);
    transform: scale(1.05);
}

.stat-card-modern:hover .stat-icon-wrapper i {
    color: #080c14;
}

.stat-icon-wrapper i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.stat-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Quick Info Card */
.quick-info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
}

.quick-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.quick-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.quick-info-item:first-child {
    padding-top: 0;
}

.quick-info-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,212,170,0.1), rgba(124,92,252,0.1));
    border-radius: 12px;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.quick-info-item:hover i {
    background: var(--gradient);
    color: #080c14;
    transform: scale(1.05);
}

.quick-info-item div {
    flex: 1;
}

.quick-info-item strong {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.quick-info-item span,
.quick-info-item a {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.quick-info-item a:hover {
    color: var(--primary-color);
}

/* About Content Modern */
.about-content-modern {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 35px;
    height: 100%;
    transition: all 0.3s ease;
}

.about-content-modern:hover {
    border-color: rgba(0,212,170,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

[data-theme="dark"] .about-content-modern:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(0,212,170,0.1), rgba(124,92,252,0.1));
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-badge i {
    font-size: 0.9rem;
}

.about-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Skills Tags */
.skills-tags {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.skills-tags h6 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.skills-tags h6 i {
    color: var(--primary-color);
    margin-right: 8px;
}

.tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    padding: 5px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    background: var(--gradient);
    color: #080c14;
    border-color: transparent;
    transform: translateY(-2px);
}

/* About Buttons */
.about-buttons {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.btn-about-primary {
    background: var(--gradient);
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    color: #080c14;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-about-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,212,170,0.35);
    color: #080c14;
}

.btn-about-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    padding: 10px 26px;
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-about-outline:hover {
    background: var(--primary-color);
    color: #080c14;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,212,170,0.2);
}

.about-social-links {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon-btn:hover {
    transform: translateY(-3px);
}

.social-icon-btn.github:hover {
    background: #24292e;
    border-color: #24292e;
    color: white;
}

.social-icon-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433, #d62976, #962fbf);
    border-color: transparent;
    color: white;
}

.social-icon-btn.discord:hover {
    background: #5865f2;
    border-color: #5865f2;
    color: white;
}

.social-icon-btn.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .about-content-modern {
        padding: 25px;
    }
    
    .about-social-links {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .about-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .about-buttons .btn-about-primary,
    .about-buttons .btn-about-outline {
        text-align: center;
        justify-content: center;
    }
    
    .about-social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .stat-card-modern {
        padding: 18px 15px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .stat-icon-wrapper i {
        font-size: 1.4rem;
    }
    
    .quick-info-item {
        gap: 12px;
    }
    
    .quick-info-item i {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .quick-info-item span,
    .quick-info-item a {
        font-size: 0.85rem;
    }
    
    .about-content-modern {
        padding: 20px;
    }
    
    .skill-tag {
        padding: 4px 12px;
        font-size: 0.7rem;
    }
}