/* ========================================
   THRESH LANTERN PORTFOLIO DESIGN - 2025
   Mystical Theme Inspired by Thresh's Lantern
   ======================================== */

/* ========== CSS Variables ========== */
:root {
    /* Thresh Theme - Light Mode (Mystical Day) */
    --bg-color: #0a1428;
    --text-color: #c8e6e8;
    --card-bg: #0f1b2e;
    --card-shadow: rgba(12, 229, 215, 0.15);
    --card-hover-shadow: rgba(12, 229, 215, 0.35);

    /* Thresh Lantern Colors */
    --lantern-glow: #0ce5d7;
    --lantern-core: #00ffd5;
    --lantern-dark: #0abdc6;
    --soul-green: #00d4a1;
    --shadow-depth: #050d1a;
    --accent-color: #0ce5d7;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0abdc6 0%, #0ce5d7 100%);
    --gradient-secondary: linear-gradient(135deg, #00d4a1 0%, #0ce5d7 100%);
    --gradient-hero: linear-gradient(135deg, #0a1428 0%, #0f1b2e 50%, #0a1428 100%);
    --gradient-glow: radial-gradient(circle, rgba(12, 229, 215, 0.3) 0%, transparent 70%);

    /* Navbar & Footer */
    --navbar-bg: rgba(10, 20, 40, 0.95);
    --navbar-text: #0ce5d7;
    --footer-bg: #050d1a;
    --footer-text: #7dc8c1;
    --hero-text: #c8e6e8;

    /* Effects */
    --blur-amount: 15px;
    --transition-speed: 0.4s;
    --border-radius: 12px;
    --glow-intensity: 0 0 20px rgba(12, 229, 215, 0.6),
                      0 0 40px rgba(12, 229, 215, 0.4),
                      0 0 60px rgba(12, 229, 215, 0.2);
}

[data-theme="dark"] {
    /* Thresh Theme - Dark Mode (Soul Night) */
    --bg-color: #050d1a;
    --text-color: #c8e6e8;
    --card-bg: #0a1428;
    --card-shadow: rgba(12, 229, 215, 0.2);
    --card-hover-shadow: rgba(12, 229, 215, 0.45);

    /* Enhanced Lantern Colors for Dark Mode */
    --lantern-glow: #0ce5d7;
    --lantern-core: #00ffd5;
    --lantern-dark: #0abdc6;
    --soul-green: #00d4a1;

    /* Navbar & Footer */
    --navbar-bg: rgba(5, 13, 26, 0.98);
    --footer-bg: #020610;
    --footer-text: #7dc8c1;
}

/* ========== Global Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 20% 50%, rgba(12, 229, 215, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 161, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(12, 229, 215, 0.02) 0%, transparent 50%);
    line-height: 1.6;
    transition: background-color var(--transition-speed) ease,
                color var(--transition-speed) ease;
    overflow-x: hidden;
    position: relative;
}

/* Mystical particle effect background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(12, 229, 215, 0.4), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(0, 212, 161, 0.4), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(12, 229, 215, 0.3), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(0, 255, 213, 0.4), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(12, 229, 215, 0.3), transparent),
        radial-gradient(1px 1px at 33% 80%, rgba(0, 212, 161, 0.4), transparent);
    background-size: 200% 200%, 150% 150%, 180% 180%, 220% 220%, 160% 160%, 190% 190%;
    background-position: 0% 0%, 50% 50%, 100% 0%, 0% 100%, 50% 0%, 100% 100%;
    animation: floatingSouls 30s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

@keyframes floatingSouls {
    0%, 100% {
        background-position: 0% 0%, 50% 50%, 100% 0%, 0% 100%, 50% 0%, 100% 100%;
        opacity: 0.6;
    }
    25% {
        background-position: 100% 50%, 0% 100%, 50% 50%, 100% 0%, 0% 50%, 50% 0%;
        opacity: 0.4;
    }
    50% {
        background-position: 50% 100%, 100% 0%, 0% 100%, 50% 50%, 100% 100%, 0% 50%;
        opacity: 0.7;
    }
    75% {
        background-position: 0% 50%, 50% 0%, 100% 100%, 0% 50%, 50% 100%, 100% 50%;
        opacity: 0.5;
    }
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* ========== Navbar Styles ========== */
.navbar {
    background: var(--navbar-bg) !important;
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    box-shadow: 0 4px 30px rgba(12, 229, 215, 0.2),
                0 0 50px rgba(12, 229, 215, 0.1);
    padding: 1rem 0;
    transition: all var(--transition-speed) ease;
    border-bottom: 1px solid rgba(12, 229, 215, 0.2);
    position: relative;
    z-index: 1000;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    box-shadow: var(--glow-intensity);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.6;
        box-shadow: 0 0 20px rgba(12, 229, 215, 0.4);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 30px rgba(12, 229, 215, 0.8);
    }
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--navbar-text) !important;
    transition: all var(--transition-speed) ease;
    text-shadow: 0 0 10px rgba(12, 229, 215, 0.5);
    position: relative;
}

.navbar-brand:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(12, 229, 215, 0.8),
                 0 0 40px rgba(12, 229, 215, 0.4);
}

.navbar-brand i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(12, 229, 215, 0.6));
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: var(--navbar-text) !important;
    position: relative;
    transition: all var(--transition-speed) ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--gradient-primary);
    box-shadow: 0 0 10px var(--lantern-glow);
    transition: transform var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link:hover {
    color: var(--lantern-core) !important;
    text-shadow: 0 0 10px rgba(12, 229, 215, 0.5);
}

/* Theme Toggle */
.theme-toggle {
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(12, 229, 215, 0.1);
    border: 1px solid rgba(12, 229, 215, 0.3);
    transition: all var(--transition-speed) ease;
}

.theme-toggle:hover {
    background: rgba(12, 229, 215, 0.2);
    border-color: rgba(12, 229, 215, 0.6);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(12, 229, 215, 0.4);
}

.theme-toggle i {
    font-size: 1.2rem;
    color: var(--lantern-glow);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 0 5px rgba(12, 229, 215, 0.6));
}

.theme-toggle:hover i {
    transform: rotate(360deg);
    filter: drop-shadow(0 0 10px rgba(12, 229, 215, 0.9));
}

/* ========== Hero Section ========== */
.hero-section {
    background: var(--gradient-hero);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    margin-top: 76px;
    border-bottom: 2px solid rgba(12, 229, 215, 0.3);
    box-shadow: inset 0 0 100px rgba(12, 229, 215, 0.1);
}

/* Lantern glow effect - right */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle,
        rgba(12, 229, 215, 0.25) 0%,
        rgba(0, 255, 213, 0.15) 30%,
        transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite, lanternPulse 4s ease-in-out infinite;
    filter: blur(40px);
}

/* Soul collection effect - left */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle,
        rgba(0, 212, 161, 0.2) 0%,
        rgba(12, 229, 215, 0.1) 30%,
        transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse, lanternPulse 5s ease-in-out infinite;
    filter: blur(40px);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

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

.hero-section h1,
.hero-section p,
.hero-section .lead {
    color: var(--hero-text);
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(12, 229, 215, 0.5),
                 0 0 60px rgba(12, 229, 215, 0.3),
                 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 30px rgba(12, 229, 215, 0.5),
                     0 0 60px rgba(12, 229, 215, 0.3),
                     0 4px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        text-shadow: 0 0 40px rgba(12, 229, 215, 0.7),
                     0 0 80px rgba(12, 229, 215, 0.5),
                     0 4px 20px rgba(0, 0, 0, 0.3);
    }
}

.hero-section .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 0 0 20px rgba(12, 229, 215, 0.3);
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.hero-buttons .btn {
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(12, 229, 215, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

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

.hero-buttons .btn-primary {
    background: rgba(12, 229, 215, 0.2);
    border: 2px solid rgba(12, 229, 215, 0.8);
    color: var(--lantern-core);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(12, 229, 215, 0.3);
    text-shadow: 0 0 10px rgba(12, 229, 215, 0.5);
}

.hero-buttons .btn-primary:hover {
    background: rgba(12, 229, 215, 0.3);
    border-color: var(--lantern-core);
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(12, 229, 215, 0.6),
                0 10px 30px rgba(12, 229, 215, 0.4);
    color: #ffffff;
}

.hero-buttons .btn-outline-light {
    border: 2px solid rgba(12, 229, 215, 0.5);
    color: var(--lantern-glow);
    background: rgba(10, 20, 40, 0.3);
    box-shadow: 0 0 15px rgba(12, 229, 215, 0.2);
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(12, 229, 215, 0.2);
    border-color: var(--lantern-glow);
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(12, 229, 215, 0.5),
                0 10px 30px rgba(12, 229, 215, 0.3);
    color: #ffffff;
}

/* ========== Section Styles ========== */
section {
    padding: 80px 0;
}

h2 {
    text-align: center;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 700;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 0 0 15px var(--lantern-glow);
    animation: pulseGlow 3s ease-in-out infinite;
}

/* ========== Card Styles ========== */
.card {
    background: var(--card-bg);
    border: 1px solid rgba(12, 229, 215, 0.2);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 30px var(--card-shadow),
                inset 0 0 30px rgba(12, 229, 215, 0.05);
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    box-shadow: 0 0 10px var(--lantern-glow);
    transform: scaleX(0);
    transition: transform var(--transition-speed) ease;
}

.card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
        rgba(12, 229, 215, 0.1) 0%,
        transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--card-hover-shadow),
                0 0 50px rgba(12, 229, 215, 0.3),
                inset 0 0 40px rgba(12, 229, 215, 0.1);
    border-color: rgba(12, 229, 215, 0.5);
}

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

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

.card-body {
    padding: 1.5rem;
    color: var(--text-color);
}

.card-title {
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.card-text {
    color: var(--text-color);
    opacity: 0.85;
    line-height: 1.6;
}

/* Project Cards */
.project-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .card-img-top {
    transform: scale(1.1);
}

.project-card .card-footer {
    background: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
}

/* Skill Cards */
.skill-card {
    text-align: center;
    padding: 2rem 1rem;
}

.skill-card i,
.skill-card img {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.skill-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.skill-card h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.skill-card .badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

/* ========== Buttons ========== */
.btn {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(12, 229, 215, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
    z-index: 0;
}

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

.btn > * {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    border: 1px solid var(--lantern-glow);
    color: white;
    box-shadow: 0 0 20px rgba(12, 229, 215, 0.4);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(12, 229, 215, 0.6),
                0 10px 25px rgba(12, 229, 215, 0.4);
    border-color: var(--lantern-core);
}

.btn-outline-primary {
    border: 2px solid var(--lantern-glow);
    color: var(--lantern-glow);
    background: rgba(10, 20, 40, 0.5);
    box-shadow: 0 0 15px rgba(12, 229, 215, 0.2);
}

.btn-outline-primary:hover {
    background: rgba(12, 229, 215, 0.2);
    border-color: var(--lantern-core);
    color: var(--lantern-core);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(12, 229, 215, 0.5);
}

/* ========== Forms ========== */
.form-control,
.form-select {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 2px solid rgba(12, 229, 215, 0.2);
    border-radius: 12px;
    padding: 12px 18px;
    transition: all var(--transition-speed) ease;
    box-shadow: inset 0 0 20px rgba(12, 229, 215, 0.05);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    border-color: rgba(12, 229, 215, 0.2);
    background-color: var(--card-bg);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-color: var(--lantern-glow);
    box-shadow: 0 0 0 4px rgba(12, 229, 215, 0.2),
                inset 0 0 30px rgba(12, 229, 215, 0.1),
                0 0 20px rgba(12, 229, 215, 0.3);
    outline: none;
}

.form-control::placeholder {
    color: rgba(200, 230, 232, 0.4);
}

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

/* ========== Footer ========== */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(12, 229, 215, 0.2);
    box-shadow: 0 -5px 30px rgba(12, 229, 215, 0.15);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    box-shadow: 0 0 20px var(--lantern-glow),
                0 0 40px rgba(12, 229, 215, 0.5);
    animation: pulseGlow 3s ease-in-out infinite;
}

footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle,
        rgba(12, 229, 215, 0.1) 0%,
        transparent 70%);
    pointer-events: none;
    animation: lanternPulse 5s ease-in-out infinite;
}

footer h5 {
    color: var(--lantern-glow);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-shadow: 0 0 15px rgba(12, 229, 215, 0.5);
}

footer a {
    color: var(--footer-text);
    transition: all var(--transition-speed) ease;
    text-decoration: none;
    position: relative;
}

footer a:hover {
    color: var(--lantern-core);
    text-shadow: 0 0 10px rgba(12, 229, 215, 0.5);
    transform: translateX(5px);
    display: inline-block;
}

footer .social-icons a {
    display: inline-block;
    margin-right: 1rem;
    transition: all var(--transition-speed) ease;
}

footer .social-icons a:hover {
    transform: translateY(-5px) scale(1.1);
    color: var(--lantern-core);
    text-shadow: 0 0 15px rgba(12, 229, 215, 0.6);
    filter: drop-shadow(0 0 10px rgba(12, 229, 215, 0.8));
}

/* ========== Alerts ========== */
.alert {
    border: 1px solid rgba(12, 229, 215, 0.3);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 15px rgba(12, 229, 215, 0.2),
                inset 0 0 30px rgba(12, 229, 215, 0.1);
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    box-shadow: 0 0 10px var(--lantern-glow);
}

.alert-success {
    background: linear-gradient(135deg,
        rgba(10, 189, 198, 0.2) 0%,
        rgba(12, 229, 215, 0.2) 100%);
    color: var(--lantern-core);
    border-color: rgba(12, 229, 215, 0.5);
}

.alert-danger {
    background: linear-gradient(135deg,
        rgba(189, 10, 100, 0.2) 0%,
        rgba(229, 12, 100, 0.2) 100%);
    color: #ff6b9d;
    border-color: rgba(229, 12, 100, 0.5);
}

.alert-danger::before {
    background: linear-gradient(135deg, #bd0a64 0%, #e50c64 100%);
    box-shadow: 0 0 10px #ff6b9d;
}

/* ========== Tables ========== */
.table {
    color: var(--text-color);
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    border-bottom: 2px solid var(--lantern-glow);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: var(--lantern-glow);
    text-shadow: 0 0 10px rgba(12, 229, 215, 0.4);
    background: rgba(12, 229, 215, 0.05);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(12, 229, 215, 0.03);
}

[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(12, 229, 215, 0.05);
}

.table-hover tbody tr {
    transition: all var(--transition-speed) ease;
}

.table-hover tbody tr:hover {
    background-color: rgba(12, 229, 215, 0.1);
    box-shadow: inset 0 0 20px rgba(12, 229, 215, 0.2);
}

/* ========== Dark Mode Overrides ========== */
[data-theme="dark"] .card {
    background: var(--card-bg);
    border: 1px solid rgba(12, 229, 215, 0.2);
    box-shadow: 0 8px 30px rgba(12, 229, 215, 0.2),
                inset 0 0 30px rgba(12, 229, 215, 0.08);
}

[data-theme="dark"] .list-group-item {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-color: rgba(12, 229, 215, 0.2);
    transition: all var(--transition-speed) ease;
}

[data-theme="dark"] .list-group-item:hover {
    background-color: rgba(12, 229, 215, 0.1);
    border-color: rgba(12, 229, 215, 0.4);
    box-shadow: 0 0 20px rgba(12, 229, 215, 0.2);
}

[data-theme="dark"] .modal-content {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid rgba(12, 229, 215, 0.3);
    box-shadow: 0 0 50px rgba(12, 229, 215, 0.3);
}

[data-theme="dark"] .skill-card img,
[data-theme="dark"] .contact-icon img {
    filter: brightness(1.1) drop-shadow(0 0 10px rgba(12, 229, 215, 0.5));
}

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

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Stagger animation delays */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .card {
        margin-bottom: 1.5rem;
    }
}

/* ========== Utility Classes ========== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(12, 229, 215, 0.5));
}

.glassmorphism {
    background: rgba(12, 229, 215, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(12, 229, 215, 0.3);
    box-shadow: 0 0 30px rgba(12, 229, 215, 0.2),
                inset 0 0 30px rgba(12, 229, 215, 0.1);
}

[data-theme="dark"] .glassmorphism {
    background: rgba(10, 20, 40, 0.4);
    border: 1px solid rgba(12, 229, 215, 0.3);
    box-shadow: 0 0 30px rgba(12, 229, 215, 0.25),
                inset 0 0 30px rgba(12, 229, 215, 0.15);
}

/* Lantern glow effect utility */
.lantern-glow {
    box-shadow: 0 0 20px rgba(12, 229, 215, 0.4),
                0 0 40px rgba(12, 229, 215, 0.2);
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Soul collector effect */
.soul-effect {
    position: relative;
    overflow: hidden;
}

.soul-effect::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle,
        rgba(12, 229, 215, 0.3) 0%,
        transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.soul-effect:hover::before {
    opacity: 1;
    animation: soulCollect 2s ease-in-out infinite;
}

@keyframes soulCollect {
    0%, 100% {
        transform: scale(0.8) translateY(0);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2) translateY(-10px);
        opacity: 0.6;
    }
}

/* Hexagonal frame effect (Thresh chains) */
.hex-frame {
    clip-path: polygon(
        30% 0%, 70% 0%,
        100% 30%, 100% 70%,
        70% 100%, 30% 100%,
        0% 70%, 0% 30%
    );
}

/* Content container to ensure proper z-index */
.content-wrapper {
    position: relative;
    z-index: 1;
}

/* ========== THRESH LANTERN DESIGN ========== */

.thresh-lantern {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Lantern Core - The glowing center */
.lantern-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle,
        rgba(0, 255, 213, 0.8) 0%,
        rgba(12, 229, 215, 0.6) 30%,
        rgba(10, 189, 198, 0.4) 60%,
        transparent 100%);
    border-radius: 50%;
    animation: coreGlow 3s ease-in-out infinite;
    filter: blur(20px);
    z-index: 1;
}

@keyframes coreGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

/* Lantern Frame */
.lantern-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Lantern Top */
.lantern-top {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 80px solid rgba(12, 229, 215, 0.15);
    filter: drop-shadow(0 0 20px rgba(12, 229, 215, 0.6));
}

.lantern-top::before {
    content: '';
    position: absolute;
    top: 80px;
    left: -120px;
    width: 240px;
    height: 3px;
    background: var(--gradient-primary);
    box-shadow: 0 0 20px var(--lantern-glow),
                0 0 40px rgba(12, 229, 215, 0.5);
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Lantern Middle (main body) */
.lantern-middle {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg,
        rgba(12, 229, 215, 0.05) 0%,
        rgba(10, 20, 40, 0.3) 50%,
        rgba(12, 229, 215, 0.05) 100%);
    border: 2px solid rgba(12, 229, 215, 0.4);
    border-radius: 50%;
    box-shadow:
        inset 0 0 60px rgba(12, 229, 215, 0.2),
        0 0 60px rgba(12, 229, 215, 0.3),
        0 0 100px rgba(12, 229, 215, 0.2);
    backdrop-filter: blur(5px);
    animation: lanternRotate 30s linear infinite;
}

.lantern-middle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    border: 1px solid rgba(12, 229, 215, 0.2);
    border-radius: 50%;
    box-shadow: inset 0 0 40px rgba(12, 229, 215, 0.15);
}

.lantern-middle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border: 1px solid rgba(12, 229, 215, 0.15);
    border-radius: 50%;
    box-shadow: inset 0 0 30px rgba(12, 229, 215, 0.1);
}

@keyframes lanternRotate {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }
    100% {
        transform: translateX(-50%) rotate(360deg);
    }
}

/* Lantern Bottom */
.lantern-bottom {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-top: 60px solid rgba(12, 229, 215, 0.15);
    filter: drop-shadow(0 0 20px rgba(12, 229, 215, 0.6));
}

.lantern-bottom::after {
    content: '';
    position: absolute;
    top: -63px;
    left: -100px;
    width: 200px;
    height: 3px;
    background: var(--gradient-primary);
    box-shadow: 0 0 20px var(--lantern-glow);
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Chains Effect */
.lantern-chain {
    position: absolute;
    top: 0;
    width: 3px;
    height: 15%;
    background: repeating-linear-gradient(
        0deg,
        rgba(12, 229, 215, 0.6) 0px,
        rgba(12, 229, 215, 0.6) 8px,
        transparent 8px,
        transparent 12px
    );
    box-shadow: 0 0 10px rgba(12, 229, 215, 0.5);
    animation: chainSwing 4s ease-in-out infinite;
    z-index: 3;
}

.chain-left {
    left: 25%;
    transform-origin: top center;
}

.chain-right {
    right: 25%;
    transform-origin: top center;
}

@keyframes chainSwing {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(2deg);
    }
    75% {
        transform: rotate(-2deg);
    }
}

/* Soul Particles */
.soul-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.soul-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle,
        rgba(12, 229, 215, 1) 0%,
        rgba(12, 229, 215, 0.8) 50%,
        transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(12, 229, 215, 0.8),
                0 0 30px rgba(12, 229, 215, 0.5);
    left: var(--x);
    top: var(--y);
    animation: soulFloat 4s ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0;
}

@keyframes soulFloat {
    0%, 100% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(
            calc(var(--x) * 0.3),
            calc(var(--y) * -0.3)
        ) scale(1.2);
    }
    90% {
        opacity: 0.3;
    }
}

/* Lantern Content */
.lantern-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    padding: 30px;
    text-align: center;
}

.lantern-content h1 {
    text-shadow:
        0 0 30px rgba(12, 229, 215, 0.6),
        0 0 60px rgba(12, 229, 215, 0.4),
        0 4px 20px rgba(0, 0, 0, 0.3);
    animation: titleGlow 3s ease-in-out infinite;
    margin-bottom: 1rem;
}

.lantern-content p {
    text-shadow: 0 0 20px rgba(12, 229, 215, 0.3);
}

.lantern-content .lead {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Responsive adjustments for lantern */
@media (max-width: 768px) {
    .thresh-lantern {
        padding: 40px 20px;
        min-height: 500px;
    }

    .lantern-middle {
        width: 300px;
        height: 300px;
    }

    .lantern-top,
    .lantern-bottom {
        transform: translateX(-50%) scale(0.7);
    }

    .lantern-core {
        width: 150px;
        height: 150px;
    }

    .lantern-content {
        padding: 20px;
    }

    .lantern-content h1 {
        font-size: 2rem;
    }

    .lantern-content .lead {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .thresh-lantern {
        min-height: 450px;
    }

    .lantern-middle {
        width: 250px;
        height: 250px;
    }

    .lantern-top,
    .lantern-bottom {
        transform: translateX(-50%) scale(0.5);
    }

    .lantern-core {
        width: 120px;
        height: 120px;
    }
}

/* ========== LANTERN NAVIGATION & CONTENT ========== */

/* Tab Navigation */
.lantern-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.lantern-tab {
    background: rgba(12, 229, 215, 0.15);
    border: 2px solid rgba(12, 229, 215, 0.4);
    color: var(--lantern-glow);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(12, 229, 215, 0.2);
    backdrop-filter: blur(10px);
}

.lantern-tab:hover {
    background: rgba(12, 229, 215, 0.25);
    border-color: var(--lantern-core);
    box-shadow: 0 0 25px rgba(12, 229, 215, 0.4);
    transform: translateY(-2px);
}

.lantern-tab.active {
    background: var(--gradient-primary);
    border-color: var(--lantern-core);
    color: white;
    box-shadow: 0 0 30px rgba(12, 229, 215, 0.6),
                0 0 60px rgba(12, 229, 215, 0.3);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.lantern-tab i {
    margin-right: 0.5rem;
}

/* Tab Content */
.lantern-tab-content {
    position: relative;
    z-index: 10;
    min-height: 400px;
}

.tab-pane {
    display: none;
    animation: fadeInTab 0.5s ease;
}

.tab-pane.active {
    display: block;
}

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

/* Skills Grid in Lantern */
.skills-grid {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.skills-grid::-webkit-scrollbar {
    width: 8px;
}

.skills-grid::-webkit-scrollbar-track {
    background: rgba(12, 229, 215, 0.1);
    border-radius: 10px;
}

.skills-grid::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(12, 229, 215, 0.5);
}

.skill-category {
    background: rgba(12, 229, 215, 0.05);
    border: 1px solid rgba(12, 229, 215, 0.2);
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(5px);
}

.skill-category h5.text-lantern {
    color: var(--lantern-glow);
    text-shadow: 0 0 10px rgba(12, 229, 215, 0.5);
    font-weight: 600;
    border-bottom: 2px solid rgba(12, 229, 215, 0.3);
    padding-bottom: 8px;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.skill-item {
    background: rgba(10, 20, 40, 0.5);
    border: 1px solid rgba(12, 229, 215, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    transition: all var(--transition-speed) ease;
    font-size: 0.9rem;
}

.skill-item:hover {
    background: rgba(12, 229, 215, 0.2);
    border-color: var(--lantern-glow);
    box-shadow: 0 0 15px rgba(12, 229, 215, 0.3);
    transform: translateY(-2px);
}

.skill-item i {
    color: var(--lantern-glow);
}

/* Projects Slider in Lantern */
.projects-slider {
    position: relative;
    min-height: 350px;
}

.project-item {
    display: none;
    text-align: center;
    animation: fadeInProject 0.5s ease;
}

.project-item.active {
    display: block;
}

@keyframes fadeInProject {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.project-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 12px;
    border: 2px solid rgba(12, 229, 215, 0.3);
    box-shadow: 0 0 20px rgba(12, 229, 215, 0.3);
    object-fit: cover;
}

.project-item h4 {
    color: var(--lantern-glow);
    text-shadow: 0 0 10px rgba(12, 229, 215, 0.4);
    font-weight: 600;
}

.project-desc {
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 10px;
}

.project-tech {
    color: var(--lantern-dark);
    font-style: italic;
}

/* Project Navigation Controls */
.project-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.btn-project-nav {
    background: rgba(12, 229, 215, 0.15);
    border: 2px solid rgba(12, 229, 215, 0.4);
    color: var(--lantern-glow);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 0 15px rgba(12, 229, 215, 0.2);
}

.btn-project-nav:hover {
    background: rgba(12, 229, 215, 0.3);
    border-color: var(--lantern-core);
    box-shadow: 0 0 25px rgba(12, 229, 215, 0.5);
    transform: scale(1.1);
}

.project-counter {
    color: var(--lantern-glow);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(12, 229, 215, 0.4);
    min-width: 60px;
    text-align: center;
}

/* Responsive adjustments for tabs */
@media (max-width: 768px) {
    .lantern-tab {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .lantern-tab i {
        display: none;
    }

    .skills-grid {
        max-height: 300px;
    }

    .skill-item {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .projects-slider {
        min-height: 300px;
    }

    .project-image {
        max-height: 150px;
    }
}

@media (max-width: 576px) {
    .lantern-nav {
        gap: 0.5rem;
    }

    .lantern-tab {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .lantern-tab-content {
        min-height: 350px;
    }
}
