/* ============================================
   PREMIUM REDESIGN — Portfolio Theme
   ============================================ */

/* --- 1. CSS Variables --- */
:root {
    --bg-main: #030305;
    --bg-secondary: #0a0a0f;
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.05);
    --card-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #f8f8f8;
    --text-secondary: #a0a0ab;
    --text-muted: #6b6b76;
    
    --accent-1: #3b82f6; /* Blue */
    --accent-2: #8b5cf6; /* Purple */
    --accent-gradient: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
    --nav-height: 80px;
    --container-width: 1200px;
}

[data-theme="light"] {
    --bg-main: #ffffff;
    --bg-secondary: #f8f9fa;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --card-hover: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    
    --accent-1: #2563eb;
    --accent-2: #7c3aed;
    --accent-gradient: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
    
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-mobile-bg: rgba(255, 255, 255, 0.98);
    --terminal-bg: #f8f9fa;
    --gallery-bg: #ffffff;
}

/* --- 2. Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
}

::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

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

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

/* Typography */
h1, h2, h3, h4, .logo, .nav-link, .btn {
    font-family: var(--font-heading);
}

.text-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- 3. Scroll Reveal Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: var(--nav-bg, rgba(3, 3, 5, 0.75));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
}

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

.logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-normal);
    opacity: 0;
}

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

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
    opacity: 1;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.btn-lang {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    color: var(--text-primary);
    padding: 0 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    font-weight: 600;
}

.btn-lang:hover {
    background: var(--card-hover);
    border-color: var(--accent-1);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    background: none;
    border: none;
    margin-left: 5px;
}

/* --- 4. Hero Slider Section --- */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: #000;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: var(--bg-main);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-1);
    animation: spin 1s ease-in-out infinite;
}

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

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #000;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Optional Ken Burns effect */
.slide .slide-bg {
    position: absolute;
    inset: -5%; /* slightly larger for scale */
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: center;
    transition: transform 6s ease-out;
    transform: scale(1);
}

.slide.active .slide-bg {
    transform: scale(1.05); /* slow zoom */
}

/* Dark Overlay on Slides to read text */
.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.slide-content {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    max-width: 800px;
    padding: 2rem;
}

.slide-content h2 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.slide-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.slide-content .btn {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.slide.active .slide-content h2,
.slide.active .slide-content p,
.slide.active .slide-content .btn {
    opacity: 1;
    transform: translateY(0);
}

.slider-controls {
    position: absolute;
    bottom: 50px;
    right: 5%;
    z-index: 10;
    display: flex;
    gap: 1rem;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.slider-btn:hover {
    background: var(--accent-1);
    border-color: var(--accent-1);
    transform: scale(1.1);
}

.slider-indicators {
    position: absolute;
    bottom: 50px;
    left: 5%;
    z-index: 10;
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    padding: 0;
}

.indicator.active {
    background: #fff;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Hero Fallback Overlay */
.hero-overlay-content {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.hero-overlay-content .hero-content-inner {
    max-width: 800px;
}

.hero-overlay-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero-overlay-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Scroll indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* --- 5. Main Content Styles --- */
.main-bg-effects {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.orb-1 {
    width: 60vw;
    height: 60vw;
    background: var(--accent-1);
    top: -10vw;
    right: -20vw;
}

.orb-2 {
    width: 50vw;
    height: 50vw;
    background: var(--accent-2);
    bottom: -10vw;
    left: -10vw;
}

.section {
    padding: 100px 0;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.about-text-col .section-title {
    justify-content: flex-start;
}

.section-title .text-accent {
    font-size: 1.2rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* --- 6. About Section --- */
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-col {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 30px;
    background: var(--card-bg);
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    position: relative;
    z-index: 2;
    transform: rotate(3deg);
    transition: var(--transition-normal);
}

.avatar-wrapper:hover .avatar {
    transform: rotate(0deg) scale(1.02);
}

.avatar-ring {
    position: absolute;
    inset: -15px;
    border-radius: 35px;
    border: 2px dashed rgba(255,255,255,0.1);
    z-index: 1;
    animation: spin 15s linear infinite;
}

.floating-badge {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-1);
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.badge-1 { top: 20px; right: -20px; }
.badge-2 { bottom: 30px; left: -20px; animation-delay: -3s; }

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

.personal-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

.personal-social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.personal-social-links a:hover {
    background: var(--accent-1);
    border-color: var(--accent-1);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.about-text-col .section-title {
    margin-bottom: 2rem;
}

.terminal-box {
    background: var(--terminal-bg, #09090c);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.terminal-header {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--card-border);
}

.btn-mac {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.btn-mac.red { background: #ff5f57; }
.btn-mac.yellow { background: #febc2e; }
.btn-mac.green { background: #28c840; }

.terminal-body {
    padding: 2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
}

.prompt { color: var(--accent-1); }
.command { color: var(--text-primary); }
.output { color: var(--text-secondary); display: block; margin-top: 0.5rem; margin-bottom: 1.5rem; }
.cursor-blink { color: var(--text-primary); animation: blink 1s step-end infinite; }

/* --- 7. Journey Timeline Section --- */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
}

/* Vertical center line */
.timeline-container::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent-1), var(--accent-2), transparent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    /* Default left side */
    left: 0;
    opacity: 0;
    transform: translateY(30px);
    animation: timelineReveal 0.6s forwards ease-out;
}

@keyframes timelineReveal {
    to { opacity: 1; transform: translateY(0); }
}

.timeline-item.right {
    left: 50%;
}

/* The circle on the line */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: var(--bg-main);
    border: 4px solid var(--accent-1);
    top: 24px;
    border-radius: 50%;
    z-index: 1;
    transition: var(--transition-normal);
}

.timeline-item.right::after {
    left: -10px;
    border-color: var(--accent-2);
}

.timeline-item:hover::after {
    background: var(--accent-1);
    box-shadow: 0 0 15px var(--accent-1);
}
.timeline-item.right:hover::after {
    background: var(--accent-2);
    box-shadow: 0 0 15px var(--accent-2);
}

.timeline-content {
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    position: relative;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.timeline-content:hover {
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.04);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(255,255,255,0.05);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--accent-1);
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.timeline-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Connecting arrows */
.left-arrow, .right-arrow {
    position: absolute;
    top: 24px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}
.left-arrow {
    right: 30px;
    border-left: 10px solid var(--card-border);
}
.right-arrow {
    left: 30px;
    border-right: 10px solid var(--card-border);
}
.timeline-content:hover .left-arrow { border-left-color: rgba(255,255,255,0.15); }
.timeline-content:hover .right-arrow { border-right-color: rgba(255,255,255,0.15); }


/* --- 8. Premium Grid (Skills) --- */
.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 50%);
    opacity: 0;
    transition: var(--transition-normal);
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

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

.skill-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-1);
    border: 1px solid rgba(255,255,255,0.05);
}

.skill-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- 9. Projects Grid --- */
.projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.repo-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
}

.repo-card:hover {
    border-color: var(--accent-1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

.repo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.repo-icon i {
    font-size: 1.8rem;
    color: var(--accent-2);
}

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

.repo-links a {
    color: var(--text-secondary);
    font-size: 1.2rem;
}
.repo-links a:hover {
    color: #fff;
}

.repo-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.repo-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 2rem;
}

.repo-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--card-border);
    padding-top: 1rem;
}

.repo-stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.lang-dot {
    width: 10px; height: 10px; border-radius: 50%;
}

/* --- 10. Events Gallery --- */
.events-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: var(--gallery-bg, #111);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.8;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
    opacity: 0.4;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.view-btn {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--accent-1);
    font-weight: 600;
}

/* --- 11. Contact Section --- */
.contact-box {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 4rem;
}

.contact-info .section-title { margin-bottom: 1rem; }
.contact-methods { margin-top: 3rem; display: flex; flex-direction: column; gap: 1.5rem; }

.method-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}
.method-item i {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-1);
}

.premium-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}
.form-group input, .form-group textarea {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition-normal);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-1);
    background: rgba(59, 130, 246, 0.05);
}

.btn {
    padding: 1rem 2rem;
    border-radius: 100px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-normal);
}
.btn-glow {
    background: var(--accent-gradient);
    color: #fff;
}
.btn-glow:hover {
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}
.w-full { width: 100%; }

/* --- 12. Footer --- */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

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

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-right { text-align: right; }
.footer .social-links { display: flex; gap: 1rem; justify-content: flex-end; margin-bottom: 1rem; }
.footer .social-links a { color: var(--text-muted); font-size: 1.2rem; }
.footer .social-links a:hover { color: #fff; }
.copyright { color: var(--text-muted); font-size: 0.85rem; }

/* --- 13. Lightbox Modal --- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition-normal);
}

.modal.show {
    visibility: visible;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transform: scale(0.95);
    transition: var(--transition-normal);
}
.modal.show .modal-content { transform: scale(1); }

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 20;
}

.modal-img-container {
    width: 100%;
    height: 60vh;
    background: #000;
}

.modal-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-body {
    padding: 2rem;
}
.modal-body h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.modal-body p { color: var(--text-secondary); }


/* --- 14. Responsive --- */
@media (max-width: 1200px) {
    .premium-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
    .projects-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    .events-gallery { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

@media (max-width: 992px) {
    .about-inner { grid-template-columns: 1fr; text-align: center; }
    .about-text-col .section-title { justify-content: center; }
    .contact-box { grid-template-columns: 1fr; padding: 2.5rem; }
    
    .timeline-container { padding-left: 20px; }
    .timeline-container::after { left: 41px; }
    .timeline-item { width: 100%; padding-left: 70px; left: 0 !important; }
    .timeline-item.right { left: 0 !important; }
    .timeline-item::after { left: 10px !important; right: auto !important; }
    .left-arrow, .right-arrow { display: none; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--nav-mobile-bg, rgba(3, 3, 5, 0.98));
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-150%);
        transition: var(--transition-normal);
        border-bottom: 1px solid var(--card-border);
        box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    }
    .nav-links.active { transform: translateY(0); }
    .menu-toggle { display: block; }
    
    .nav-controls { gap: 8px; margin-right: 0; display: flex; align-items: center; justify-content: center; }
    .btn-lang { padding: 0; width: 38px; height: 38px; justify-content: center; }
    .lang-text { display: none; }
    
    .nav-inner { padding: 0 5px; }
    .logo { font-size: 1.4rem; }
    
    .form-row { grid-template-columns: 1fr; }
    
    .slide-content { padding: 1.5rem; text-align: center; width: 100%; left: 0; top: 40%; transform: translateY(-40%); }
    .slide-content h2 { font-size: 2.5rem; text-shadow: 0 4px 10px rgba(0,0,0,0.8); }
    .slide-content p { font-size: 1rem; margin: 0 auto 1.5rem; text-shadow: 0 2px 5px rgba(0,0,0,0.8); }
    
    /* Center and fix slider controls for mobile */
    .slider-controls { right: 50%; transform: translateX(50%); bottom: 35px; width: auto; gap: 3rem; }
    .slider-indicators { left: 50%; transform: translateX(-50%); bottom: 100px; }
    .slider-btn { width: 45px; height: 45px; background: rgba(59, 130, 246, 0.5); }
    
    .hero-slider-section { height: 100vh; min-height: 100vh; }
    .section { padding: 70px 0; }
    .section-title { font-size: 2rem; flex-direction: column; gap: 0.5rem; text-align: center; }
    .section-subtitle { text-align: center; }
    
    .avatar-wrapper { width: 220px; height: 220px; margin: 0 auto; }
    .personal-social-links { justify-content: center; }
    
    .terminal-body { padding: 1.2rem; font-size: 0.85rem; }
    
    .timeline-container { padding-left: 0; margin-top: 3rem; }
    .timeline-container::after { left: 18px; top: 12px; }
    .timeline-item { padding-left: 55px; padding-right: 0; padding-bottom: 2rem; }
    .timeline-item::after { left: 8px !important; top: 22px; width: 16px; height: 16px; border-width: 3px; }
    
    .contact-box { padding: 1.5rem; gap: 2.5rem; }
    .footer-inner { flex-direction: column; text-align: center; gap: 1.5rem; }
    .footer-right { text-align: center; }
    .footer .social-links { justify-content: center; }
    
    .premium-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .events-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .slide-content h2 { font-size: 2rem; }
    .timeline-item { padding-left: 45px; }
    .timeline-content { padding: 1.5rem 1rem; }
    .avatar-wrapper { width: 180px; height: 180px; }
}