/* ==========================================================================
   FERO PORTFOLIO - MASTER CSS STYLESHEET
   Design Language: Luxury, Cinematic, Dark Burgundy (#6E1022), Pure Black (#050505)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & THEMES
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --primary: #6E1022;            /* Deep Burgundy */
    --primary-hover: #8B152B;      /* Soft Burgundy Glow */
    --primary-glow: rgba(110, 16, 34, 0.5);
    --primary-subtle: rgba(110, 16, 34, 0.15);
    
    --bg-main: #050505;           /* Pure Black */
    --bg-secondary: #0D0D0D;      /* Matte Black */
    --bg-card: #141414;           /* Dark Card Surface */
    --bg-glass: rgba(20, 20, 20, 0.75);

    --text-primary: #F5F5F5;       /* Off-White */
    --text-secondary: #A0A0A0;     /* Muted Silver */
    --text-muted: #666666;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(110, 16, 34, 0.4);

    --white: #FFFFFF;
    --black: #000000;
    --whatsapp-green: #25D366;

    /* Typography */
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Shadows & Transitions */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px var(--primary-glow);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Navbar Height */
    --nav-height: 80px;
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-main: #F8F9FA;
    --bg-secondary: #EDEFF2;
    --bg-card: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.85);

    --text-primary: #121212;
    --text-secondary: #4A4A4A;
    --text-muted: #888888;

    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 15px rgba(110, 16, 34, 0.2);
}

/* --------------------------------------------------------------------------
   2. RESET & GLOBAL BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
    border: 2px solid var(--bg-main);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

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

button, input, textarea {
    font-family: inherit;
    outline: none;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

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

/* Container */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

.burgundy-text {
    color: var(--primary);
    background: linear-gradient(135deg, #A81B38, #6E1022);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.title-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), transparent);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   3. CUSTOM CURSOR & MOUSE SPOTLIGHT
   -------------------------------------------------------------------------- */
.custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(110, 16, 34, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, width 0.2s, height 0.2s, border-color 0.2s;
}

body.hovered .custom-cursor-dot {
    width: 14px;
    height: 14px;
    background-color: var(--white);
}

body.hovered .custom-cursor-ring {
    width: 56px;
    height: 56px;
    border-color: var(--primary);
    background-color: rgba(110, 16, 34, 0.1);
}

.mouse-spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(110, 16, 34, 0.12) 0%, rgba(5, 5, 5, 0) 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease;
}

/* --------------------------------------------------------------------------
   4. CINEMATIC PRELOADER INTRO (4 SECONDS TIMELINE)
   -------------------------------------------------------------------------- */
.preloader-overlay {
    position: fixed;
    inset: 0;
    background-color: #050505;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

#preloaderCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.preloader-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.scene {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.scene.active {
    opacity: 1;
    visibility: visible;
}

.intro-subtext {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 8px;
    color: #A0A0A0;
    text-transform: uppercase;
    animation: pulseLetter 1.5s infinite alternate;
}

@keyframes pulseLetter {
    from { opacity: 0.6; letter-spacing: 8px; }
    to { opacity: 1; letter-spacing: 12px; }
}

.impact-text {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    color: var(--white);
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(110, 16, 34, 0.8), 0 0 60px rgba(255, 255, 255, 0.4);
}

.scene-2.impact-anim .impact-text,
.scene-3.impact-anim .impact-text {
    animation: bulletImpact 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes bulletImpact {
    0% {
        transform: scale(3) rotate(-5deg);
        filter: blur(12px);
        opacity: 0;
    }
    50% {
        transform: scale(0.95) rotate(1deg);
        filter: blur(0);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.full-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    color: var(--white);
    letter-spacing: 3px;
    text-shadow: 0 0 40px rgba(110, 16, 34, 0.9);
}

.burgundy-accent {
    color: var(--primary);
    text-shadow: 0 0 30px var(--primary);
}

.tagline {
    font-size: 1.1rem;
    letter-spacing: 6px;
    color: var(--text-secondary);
    margin-top: 10px;
    font-weight: 600;
}

.preloader-progress-bar {
    position: absolute;
    bottom: 40px;
    width: 240px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.preloader-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   5. NAVBAR & HEADER
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: background-color var(--transition-smooth), backdrop-filter var(--transition-smooth), border-bottom var(--transition-smooth);
}

.navbar.scrolled {
    background-color: var(--bg-glass);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.logo-mark {
    color: var(--primary);
    font-size: 2.2rem;
    line-height: 1;
    margin-right: 2px;
    text-shadow: 0 0 15px var(--primary-glow);
}

.nav-links {
    display: flex;
    gap: 32px;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition-fast);
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Theme Toggle Button */
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.theme-toggle:hover {
    transform: scale(1.08);
    border-color: var(--primary);
    color: var(--primary);
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: calc(var(--nav-height) + 40px) 24px 60px;
    overflow: hidden;
}

#heroCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 30px;
    background: rgba(110, 16, 34, 0.15);
    border: 1px solid rgba(110, 16, 34, 0.3);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #25D366;
    box-shadow: 0 0 10px #25D366;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 12vw, 9.5rem);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 0.95;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.title-main {
    background: linear-gradient(180deg, #FFFFFF 0%, #B0B0B0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

[data-theme="light"] .title-main {
    background: linear-gradient(180deg, #111111 0%, #444444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.hero-description {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 40px;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* BUTTON STYLES */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
    color: var(--white);
    box-shadow: 0 6px 20px rgba(110, 16, 34, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(110, 16, 34, 0.7);
    background: linear-gradient(135deg, #A81B38, #6E1022);
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll-indicator a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.mouse-icon {
    width: 24px;
    height: 38px;
    border: 2px solid var(--border-glow);
    border-radius: 12px;
    position: relative;
    display: block;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.8s infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 22px; }
}

.scroll-text {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* --------------------------------------------------------------------------
   7. ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image-container {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.about-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.image-wrapper:hover .about-img {
    transform: scale(1.04);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(5, 5, 5, 0.8) 100%);
}

.experience-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.exp-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.exp-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.about-heading {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1rem;
}

.about-details-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 28px 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.detail-item i {
    font-size: 1.3rem;
    color: var(--primary);
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.detail-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Stats Counter Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 36px;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px 12px;
    text-align: center;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   8. SKILLS SECTION
   -------------------------------------------------------------------------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.skill-category-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px 28px;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.skill-category-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-hover);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--primary-subtle);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.skill-percent {
    color: var(--primary);
}

.skill-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-hover), var(--primary));
    border-radius: 3px;
    transition: width 1.2s ease-in-out;
}

/* Creative Badges */
.creative-skills-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px 32px;
    text-align: center;
}

.box-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.creative-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.creative-badge i {
    color: var(--primary);
}

.creative-badge:hover {
    border-color: var(--primary);
    background: var(--primary-subtle);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   9. EXPERIENCE SECTION (VERTICAL TIMELINE)
   -------------------------------------------------------------------------- */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, rgba(110, 16, 34, 0.2) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 45px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 45px;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 2px solid var(--primary);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    box-shadow: 0 0 15px var(--primary-glow);
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -22px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -22px;
}

.timeline-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 28px;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.timeline-content:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.timeline-date {
    display: inline-block;
    padding: 4px 14px;
    background-color: var(--primary-subtle);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 12px;
}

.timeline-role {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 12px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.timeline-responsibilities {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.timeline-responsibilities li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-item:nth-child(odd) .timeline-responsibilities li {
    justify-content: flex-end;
}

.timeline-responsibilities i {
    color: var(--primary);
    font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   10. PORTFOLIO SECTION (FILTERABLE MASONRY GRID)
   -------------------------------------------------------------------------- */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 45px;
}

.filter-btn {
    padding: 10px 22px;
    border-radius: 30px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.portfolio-card.hide {
    display: none;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-hover);
    box-shadow: var(--shadow-lg);
}

.card-media {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-card:hover .card-media img {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.portfolio-card:hover .card-overlay {
    opacity: 1;
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 0 25px var(--primary-glow);
    transition: transform var(--transition-bounce);
}

.play-btn:hover {
    transform: scale(1.15);
}

.card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 14px;
    background: rgba(5, 5, 5, 0.75);
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    backdrop-filter: blur(8px);
}

.card-body {
    padding: 24px;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.5;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tech span {
    font-size: 0.75rem;
    padding: 3px 10px;
    background-color: var(--bg-secondary);
    border-radius: 6px;
    color: var(--text-muted);
    font-weight: 500;
}

.view-project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    transition: gap var(--transition-fast);
}

.view-project-btn:hover {
    gap: 12px;
}

/* --------------------------------------------------------------------------
   11. SERVICES SECTION (GLASSMORPHISM CARDS)
   -------------------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px 28px;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-hover);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--primary-subtle);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    transition: transform var(--transition-bounce);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary);
    color: var(--white);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   12. CAREER OBJECTIVE SECTION
   -------------------------------------------------------------------------- */
.career-card {
    background: linear-gradient(135deg, rgba(110, 16, 34, 0.15) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border-glow);
    border-radius: 28px;
    padding: 60px 48px;
    text-align: center;
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.4;
    margin-bottom: 16px;
}

.career-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.career-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.career-text {
    font-size: 1.15rem;
    color: var(--text-primary);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 32px;
    font-weight: 400;
}

.career-author {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-name {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--primary);
}

.author-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --------------------------------------------------------------------------
   13. CONTACT & SOCIALS SECTION (INCLUDING WHATSAPP INTEGRATION)
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

.contact-info-column {
    display: flex;
    flex-direction: column;
}

.info-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.info-desc {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.contact-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 24px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.info-card:hover {
    transform: translateX(6px);
    border-color: var(--primary);
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-subtle);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.info-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Social Bar */
.social-bar {
    margin-top: auto;
}

.social-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    display: block;
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    gap: 14px;
}

.social-icon {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.social-icon:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* SPECIAL WHATSAPP ICON REQUIREMENT */
.social-icon.whatsapp-icon {
    border-color: rgba(37, 211, 102, 0.3);
}

.social-icon.whatsapp-icon:hover {
    border-color: var(--whatsapp-green);
    color: var(--whatsapp-green);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.6);
    background-color: rgba(37, 211, 102, 0.1);
}

.whatsapp-tooltip {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background-color: #0D0D0D;
    color: #FFFFFF;
    border: 1px solid var(--whatsapp-green);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--whatsapp-green) transparent transparent transparent;
}

.social-icon.whatsapp-icon:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Form Styling */
.glass-form {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 28px;
}

.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px 16px 48px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
}

.form-group label {
    position: absolute;
    left: 48px;
    top: 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all var(--transition-fast);
}

.form-icon {
    position: absolute;
    left: 18px;
    top: 18px;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.form-group input:focus ~ .form-icon,
.form-group textarea:focus ~ .form-icon {
    color: var(--primary);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 14px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background-color: var(--bg-card);
    padding: 0 6px;
    border-radius: 4px;
}

.form-status {
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.form-status.success { color: #25D366; }
.form-status.error { color: #FF4D4D; }

/* --------------------------------------------------------------------------
   14. FOOTER & MODAL
   -------------------------------------------------------------------------- */
.footer {
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.back-to-top {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-fast);
}

.back-to-top:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
}

/* Modal Lightbox */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 24px;
    max-width: 750px;
    width: 100%;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition-bounce);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-video-box {
    position: relative;
    width: 100%;
    height: 360px;
    background-color: #000;
}

.modal-video-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.simulated-player {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(110, 16, 34, 0.85);
    border-radius: 30px;
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 0 20px var(--primary-glow);
}

.modal-content {
    padding: 30px;
}

.modal-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    display: block;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.modal-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-tech-stack {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   15. REVEAL ANIMATIONS & RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal="up"] { transform: translateY(40px); }
[data-reveal="left"] { transform: translateX(40px); }
[data-reveal="right"] { transform: translateX(-40px); }

[data-reveal].revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background-color: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        transition: right var(--transition-smooth);
    }

    .nav-links.active {
        right: 0;
    }

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

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-dot {
        left: 0 !important;
        right: auto !important;
    }

    .timeline-item:nth-child(odd) .timeline-responsibilities li {
        justify-content: flex-start;
    }

    .career-card {
        padding: 40px 24px;
    }

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

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
