/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Job-Chip Style Palette (High Contrast / Modern Dark) */
    --primary: #ffffff; 
    --accent: #ff4d4d; /* Default Red Theme */
    --bg-black: #000000;
    --bg-dark: #111111;
    --text-main: #ffffff;
    --text-dim: #888888;
    --border-dim: #222222;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --glow: rgba(255, 77, 77, 0.4);
}

/* Green Theme */
[data-theme="green"] {
    --accent: #4ade80;
    --glow: rgba(74, 222, 128, 0.4);
}

/* Max Theme (Vibrant Blue/Cyan) */
[data-theme="max"] {
    --accent: #38bdf8;
    --glow: rgba(56, 189, 248, 0.4);
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-black);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-black);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Live Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 77, 77, 0.1) 0%, 
        rgba(0, 0, 0, 0) 50%, 
        rgba(56, 189, 248, 0.1) 100%);
    z-index: -2;
    animation: gradientShift 15s ease infinite;
    background-size: 400% 400%;
}

/* Animated Particles */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 77, 77, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 40% 20%, rgba(74, 222, 128, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: particleMove 20s ease-in-out infinite;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header / Navbar */
.navbar {
    height: 70px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.95), rgba(15, 15, 20, 0.98));
    backdrop-filter: blur(25px) saturate(200%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 
                0 0 30px rgba(255, 77, 77, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: var(--transition), transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.navbar.scrolled {
    width: 85%;
    top: 10px;
    border-radius: 100px;
    background: rgba(10, 10, 15, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8), 
                0 0 25px var(--glow),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Navbar Liquid Animation Classes */
.navbar-liquid-enter {
    clip-path: circle(0% at 50% 50%);
}

.navbar-liquid-active {
    clip-path: circle(150% at 50% 50%);
    transition: clip-path 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-container {
    display: flex;
    align-items: center;
    padding: 0 2.5rem;
    width: 100%;
    gap: 2rem;
}

.logo {
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    color: #ffffff;
}

.logo span {
    color: var(--accent);
    margin-right: 0.2rem;
}

.ai-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.5rem;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 900;
    color: #38bdf8;
    margin-left: 0.8rem;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
    vertical-align: middle;
    position: relative;
    top: -2px;
}

.ai-chip::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: #38bdf8;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 5px #38bdf8;
}

.nav-separator {
    width: 1px;
    height: 25px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin-right: auto;
}

/* Theme Selector Refinement ("Work Less" - Smaller/Cleaner) */
.theme-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.theme-option-wrapper {
    position: relative;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

.theme-circle {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.theme-expand {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.theme-icon {
    position: relative;
    z-index: 2;
    font-size: 0.7rem;
    transition: color 0.3s;
}

/* Red Option */
.red-circle { background: rgba(255, 77, 77, 0.1); border: 1px solid rgba(255, 77, 77, 0.2); }
.red-expand { background: rgba(255, 77, 77, 0.2); }
.red-circle + .red-expand + .theme-icon { color: #ff4d4d; }

/* Green Option */
.green-circle { background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.2); }
.green-expand { background: rgba(74, 222, 128, 0.2); }
.green-circle + .green-expand + .theme-icon { color: #4ade80; }

/* Max Option */
.max-circle { background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.2); }
.max-expand { background: rgba(56, 189, 248, 0.2); }
.max-circle + .max-expand + .theme-icon { color: #38bdf8; }

/* Peer Checked Logic */
.peer:checked ~ .theme-circle {
    transform: scale(1.15);
    border-width: 2px;
}

.peer:checked ~ .theme-expand {
    transform: scale(5);
}

.peer:checked ~ .theme-icon {
    color: white;
}

/* Specific ring colors when checked */
#theme-red:checked ~ .theme-circle { border-color: #ff4d4d; }
#theme-green:checked ~ .theme-circle { border-color: #4ade80; }
#theme-max:checked ~ .theme-circle { border-color: #38bdf8; }

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: #888888;
    transition: var(--transition);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav-links a:hover {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 140px;
    padding-bottom: 60px;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hero-image {
    width: 320px;
    height: 320px;
    flex: 0 0 320px;
    border: 3px solid var(--accent);
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    position: relative;
    z-index: 100;
    opacity: 1 !important;
    display: block !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8),
                0 0 60px rgba(255, 77, 77, 0.3),
                inset 0 0 20px rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: var(--transition);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.hero-image:hover {
    transform: translateZ(20px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9),
                0 0 80px var(--glow),
                inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.img-nav-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.5;
    z-index: 101;
}

.img-nav-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
    opacity: 1 !important;
    pointer-events: none;
    filter: contrast(1.1) brightness(1.1);
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0;
    transition: var(--transition);
    box-shadow: 0 0 20px var(--accent);
}

.hero-image:hover::after {
    opacity: 1;
}

.hero-image:hover {
    border-color: var(--accent);
    box-shadow: 0 0 50px rgba(255, 77, 77, 0.4);
}

.hero-image:hover img {
    transform: scale(1.1);
}

/* Digital Tearing / Glitch Effect */
.glitch-tear {
    animation: glitch-skew 0.3s infinite linear alternate-reverse;
    position: relative;
    filter: hue-rotate(90deg) contrast(1.5);
}

.glitch-tear::before,
.glitch-tear::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
}

.glitch-tear::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip-path: inset(44% 0 1% 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-tear::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
    animation: glitch-anim2 1s infinite linear alternate-reverse;
    clip-path: inset(10% 0 80% 0);
}

@keyframes glitch-anim {
    0% { clip-path: inset(80% 0 1% 0); }
    20% { clip-path: inset(20% 0 60% 0); }
    40% { clip-path: inset(40% 0 40% 0); }
    60% { clip-path: inset(60% 0 20% 0); }
    80% { clip-path: inset(10% 0 80% 0); }
    100% { clip-path: inset(90% 0 10% 0); }
}

@keyframes glitch-anim2 {
    0% { clip-path: inset(10% 0 80% 0); }
    20% { clip-path: inset(60% 0 20% 0); }
    40% { clip-path: inset(20% 0 60% 0); }
    60% { clip-path: inset(80% 0 1% 0); }
    80% { clip-path: inset(40% 0 40% 0); }
    100% { clip-path: inset(90% 0 10% 0); }
}

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    20% { transform: skew(3deg); }
    40% { transform: skew(-3deg); }
    60% { transform: skew(10deg); }
    80% { transform: skew(-10deg); }
    100% { transform: skew(0deg); }
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-dim);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
}

.book-btn {
    background: rgba(255, 77, 77, 0.1);
    border-color: var(--accent);
    color: var(--accent);
    cursor: pointer;
}

.book-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.3);
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -4px;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}

.hero-title span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 500px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 1.25rem 2.5rem;
    border-radius: 4px;
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-black);
    box-shadow: 0 0 0px rgba(255, 77, 77, 0);
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: scale(1.05) translateY(-2px);
    background: var(--accent);
    color: white;
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.6);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    z-index: -1;
    filter: blur(15px);
    opacity: 0;
    transition: var(--transition);
}

.btn-primary:hover::after {
    opacity: 0.4;
}

.btn-secondary {
    border: 1px solid var(--border-dim);
    background: transparent;
    color: var(--text-dim);
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--text-main);
    background: rgba(255, 77, 77, 0.05);
}

/* Journey Section (Tree Visualization) */
.tree-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 0;
}

.tree-container::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--border-dim);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.tree-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: var(--line-height, 0%);
    background: var(--accent);
    transform: translateX(-50%);
    z-index: -1;
    box-shadow: 0 0 15px var(--accent);
}

.tree-item {
    padding: 20px 0;
    position: relative;
    width: 50%;
    display: flex;
}

.tree-item:nth-child(odd) {
    left: 0;
    padding-right: 60px;
    justify-content: flex-end;
}

.tree-item:nth-child(even) {
    left: 50%;
    padding-left: 60px;
    justify-content: flex-start;
}

.tree-marker {
    width: 16px;
    height: 16px;
    background: var(--accent);
    border: 4px solid var(--bg-black);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.tree-item:nth-child(odd) .tree-marker {
    right: -8px;
}

.tree-item:nth-child(even) .tree-marker {
    left: -8px;
}

.tree-item .card {
    width: 100%;
    padding: 3rem; /* Slightly reduced padding for tree look */
}

/* Responsive Tree */
@media (max-width: 1024px) {
    .tree-container::after {
        left: 31px;
    }
    
    .tree-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
        left: 0 !important;
        justify-content: flex-start !important;
    }
    
    .tree-item:nth-child(odd) .tree-marker,
    .tree-item:nth-child(even) .tree-marker {
        left: 23px;
        right: auto;
    }
}

/* Animation Base States */
.reveal {
    opacity: 0;
    transform: translateY(30px);
}

.hero-title span, .hero-title {
    overflow: hidden;
}

/* Page Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-black);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.loader-bar {
    width: 0;
    height: 2px;
    background: var(--accent);
}

/* Sections */
.section {
    padding: 120px 0;
}

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

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
}

/* Grid Layouts */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 1px solid var(--border-dim);
    padding: 2.2rem;
    position: relative;
    overflow: visible; /* Changed to visible for dropdowns */
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: radial-gradient(
        450px circle at var(--mouse-x) var(--mouse-y),
        var(--glow),
        transparent 40%
    );
    z-index: -1;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.card:hover {
    background: linear-gradient(145deg, #1f1f1f, #0f0f0f);
    transform: translateY(-10px) translateZ(15px);
    border-color: var(--accent);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8),
                0 0 40px var(--glow),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* 3 Dots Menu Button Styling */
.card-menu-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
    transition: var(--transition);
    z-index: 10;
}

.card-expand-btn {
    position: absolute;
    top: 2.1rem;
    right: 4.5rem;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem;
    transition: var(--transition);
    z-index: 10;
}

.card-expand-btn:hover {
    color: var(--accent);
}

.card.expanded .card-expand-btn {
    transform: rotate(180deg);
    color: var(--accent);
}

/* Sub-cards logic */
.sub-cards {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card.expanded .sub-cards {
    max-height: 1000px;
    opacity: 1;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-dim);
}

.sub-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.25rem;
    border-radius: 4px;
    border: 1px solid var(--border-dim);
    transition: var(--transition);
}

.sub-card:hover {
    border-color: var(--accent);
    background: rgba(255, 77, 77, 0.05);
    transform: translateX(10px);
}

.sub-card h4 {
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.sub-card p {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.dropdown-menu {
    position: absolute;
    top: 4.5rem;
    right: 2rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-dim);
    border-radius: 4px;
    padding: 0.5rem 0;
    min-width: 150px;
    display: none;
    z-index: 20;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.dropdown-menu.active {
    display: block;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--bg-black);
    color: var(--text-main);
}

.dropdown-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.card:hover {
    background: var(--bg-dark);
}

.card-num {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0;
    text-transform: uppercase;
    transition: var(--transition);
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-title,
.card.active .card-title,
.card.expanded .card-title {
    margin-bottom: 1rem;
    color: var(--accent);
}

.card:hover .card-desc,
.card.active .card-desc,
.card.expanded .card-desc {
    max-height: 500px;
    opacity: 1;
    margin-top: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-dim);
    color: var(--text-dim);
    font-size: 1.25rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-btn:hover {
    transform: translateY(-5px);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--glow);
}

.social-btn.linkedin:hover { background: #0077b5; border-color: #0077b5; }
.social-btn.tiktok:hover { background: #000000; border-color: #ffffff; }
.social-btn.whatsapp:hover { background: #25d366; border-color: #25d366; }
.social-btn.snapchat:hover { background: #fffc00; border-color: #fffc00; color: #000000; }
.social-btn.facebook:hover { background: #1877f2; border-color: #1877f2; }
.social-btn.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: #bc1888; }
.social-btn.github:hover { background: #333333; border-color: #ffffff; }

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-dim);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.version-tag {
    margin-left: 1rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--border-dim);
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 700;
}


.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--border-dim);
    padding: 3rem;
    width: 90%;
    max-width: 400px;
    position: relative;
    text-align: center;
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.modal-content span {
    color: var(--accent);
}

.modal-content input {
    width: 100%;
    background: var(--bg-black);
    border: 1px solid var(--border-dim);
    padding: 1rem;
    color: white;
    margin: 1.5rem 0;
    text-align: center;
    font-family: inherit;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* User Auth Modal */
.auth-container {
    max-width: 450px !important;
    border-radius: 20px;
    background: linear-gradient(135deg, #0a0f1e, #05050f);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 3rem !important;
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tab {
    background: none;
    border: none;
    color: var(--text-dim);
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: var(--transition);
    position: relative;
}

.auth-tab.active {
    color: var(--accent);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

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

.auth-form input {
    margin: 0.75rem 0 !important;
    text-align: left !important;
    padding: 1.25rem !important;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03) !important;
}

.auth-form .btn {
    width: 100%;
    margin-top: 1.5rem;
}

/* Existing Admin Modal Adjustments */
/* Admin Dashboard */
.admin-dashboard {
    position: fixed;
    inset: 0;
    background: var(--bg-black);
    z-index: 3000;
    display: none;
    flex-direction: column;
}

.admin-dashboard.active {
    display: flex;
}

/* Security Warning Modal */
.security-modal .modal-content {
    max-width: 500px;
    border: 2px solid var(--accent);
    box-shadow: 0 0 50px rgba(255, 77, 77, 0.3);
    animation: pulse-border 2s infinite;
}

.warning-icon {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    animation: shake 0.5s ease-in-out infinite;
}

.warning-content h3 {
    color: var(--accent);
    letter-spacing: 4px;
    font-weight: 900;
}

.warning-content p {
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 20px rgba(255, 77, 77, 0.2); }
    50% { box-shadow: 0 0 60px rgba(255, 77, 77, 0.5); }
    100% { box-shadow: 0 0 20px rgba(255, 77, 77, 0.2); }
}

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

.admin-nav {
    padding: 1.5rem 3rem;
    border-bottom: 1px solid var(--border-dim);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-main {
    flex: 1;
    display: flex;
}

.admin-sidebar {
    width: 250px;
    border-right: 1px solid var(--border-dim);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-tab {
    background: none;
    border: 1px solid transparent;
    color: var(--text-dim);
    padding: 1rem;
    text-align: left;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.8rem;
    transition: var(--transition);
}

.admin-tab.active, .admin-tab:hover {
    color: white;
    border-color: var(--border-dim);
    background: var(--bg-dark);
}

.admin-content {
    flex: 1;
    padding: 3rem;
    overflow-y: auto;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.admin-item {
    background: var(--bg-dark);
    border: 1px solid var(--border-dim);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-item button {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.admin-item button:hover {
    background: var(--accent);
    color: white;
}

/* Responsive Admin */
@media (max-width: 768px) {
    .admin-main {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-dim);
        flex-direction: row;
        overflow-x: auto;
    }
}



/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }
    .hero-content {
        text-align: center;
    }
    .hero-image {
        flex: 0 0 260px;
        height: 260px;
        width: 260px;
    }
    .nav-links {
        gap: 1.5rem;
        font-size: 0.85rem;
    }
    .section-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        width: 94%;
        top: 8px;
        padding: 0 0.8rem;
        height: auto;
        min-height: 64px;
    }
    .nav-container {
        padding: 0.8rem 0.9rem;
        gap: 0.8rem;
    }
    .nav-links {
        display: none;
    }
    .logo {
        font-size: 0.95rem;
        letter-spacing: 1px;
    }
    .theme-selector {
        gap: 0.35rem;
        padding: 0.2rem;
    }
    .theme-option-wrapper {
        width: 24px;
        height: 24px;
    }
    .hero {
        padding-top: 120px;
        padding-bottom: 40px;
        min-height: auto;
    }
    .hero-container {
        gap: 2rem;
        padding: 0 1rem;
    }
    .hero-image-wrapper {
        width: 100%;
        justify-content: center;
    }
    .hero-title {
        font-size: 2.6rem;
        line-height: 1;
        letter-spacing: -1px;
        margin-bottom: 1.4rem;
    }
    .hero-subtitle {
        font-size: 0.98rem;
        max-width: 100%;
        margin-bottom: 1.6rem;
    }
    .hero-tags-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    .hero-tag {
        font-size: 0.68rem;
        padding: 0.5rem 0.8rem;
        letter-spacing: 1px;
        text-align: center;
    }
    .hero-image {
        width: 220px;
        height: 220px;
        flex: 0 0 220px;
    }
    .grid-container {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .section {
        padding: 80px 0;
    }
    .section-header {
        margin-bottom: 2.5rem;
    }
    .section-title {
        font-size: 2rem;
        line-height: 1.05;
    }
    .social-links {
        gap: 0.9rem;
        flex-wrap: wrap;
    }
    .social-btn {
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
    }
    .footer {
        padding: 2rem 1rem;
        font-size: 0.75rem;
    }
    .version-tag {
        display: inline-block;
        margin: 0.5rem 0 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    .nav-container {
        padding: 0.7rem 0.75rem;
    }
    .logo {
        font-size: 0.9rem;
    }
    .hero {
        padding-top: 110px;
        padding-bottom: 28px;
    }
    .hero-title {
        font-size: 2rem;
        letter-spacing: -0.8px;
    }
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    .btn {
        padding: 0.9rem 1.4rem;
        font-size: 0.75rem;
    }
    .card {
        padding: 1.4rem;
    }
    .card-num {
        font-size: 0.68rem;
        margin-bottom: 0.8rem;
    }
    .card-title {
        font-size: 1.15rem;
    }
    .card-desc {
        font-size: 0.86rem;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .hero-image {
        width: 180px;
        height: 180px;
        flex: 0 0 180px;
    }
    .tree-item .card {
        padding: 1.4rem;
    }
}
