/* ===================== */
/* Variables & Reset     */
/* ===================== */
:root {
    --primary: #ff4231;
    --primary-hover: #e63528;
    --primary-glow: rgba(255, 66, 49, 0.18);
    --bg-dark: #0b1a12;
    --bg-deeper: #060e0a;
    --glass-bg: rgba(255, 255, 255, 0.035);
    --glass-bg-hover: rgba(255, 255, 255, 0.065);
    --glass-border: rgba(255, 255, 255, 0.09);
    --glass-border-hover: rgba(255, 66, 49, 0.35);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    --glass-shadow-hover: 0 25px 60px rgba(0, 0, 0, 0.6);
    --text: #f0f0f0;
    --text-muted: #8a8a8a;
    --font-main: 'Outfit', sans-serif;
    --ease-smooth: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --cursor-dot-size: 8px;
    --cursor-ring-size: 38px;
}

*, *::before, *::after { box-sizing: border-box; }

/* ===================== */
/* Scrollbar             */
/* ===================== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deeper); }
::-webkit-scrollbar-thumb { background: #2a4d3d; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ===================== */
/* Progress Bar          */
/* ===================== */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #ff8a7a, var(--primary));
    background-size: 200%;
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px rgba(255, 66, 49, 0.8);
    animation: shimmer-bar 3s linear infinite;
}
@keyframes shimmer-bar { to { background-position: 200%; } }

/* ===================== */
/* Page Loader           */
/* ===================== */
#page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-deeper);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-content { text-align: center; }
.loader-ring {
    width: 56px;
    height: 56px;
    border: 2px solid rgba(255, 66, 49, 0.12);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    margin: 0 auto 1.5rem;
}
.loader-text {
    font-family: var(--font-main);
    font-size: 0.75rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--text-muted);
    animation: pulse-op 1.4s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-op { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ===================== */
/* Custom Cursor         */
/* ===================== */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--cursor-dot-size);
    height: var(--cursor-dot-size);
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease;
    mix-blend-mode: screen;
}
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--cursor-ring-size);
    height: var(--cursor-ring-size);
    border: 1.5px solid rgba(255, 66, 49, 0.55);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99997;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}
.cursor-dot.cursor-hover { width: 5px; height: 5px; opacity: 0.7; }
.cursor-ring.cursor-hover { width: 58px; height: 58px; border-color: rgba(255, 66, 49, 0.25); }
@media (pointer: coarse) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* ===================== */
/* Background Blobs      */
/* ===================== */
.bg-blobs {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}
.blob {
    position: absolute;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.07;
    filter: blur(100px);
    border-radius: 50%;
    animation: blob-float 28s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
}
.blob:nth-child(1) { top: -15%; left: -15%; animation-duration: 30s; }
.blob:nth-child(2) { bottom: -15%; right: -15%; background: radial-gradient(circle, #3b82f6 0%, transparent 70%); animation-delay: -8s; animation-duration: 36s; opacity: 0.055; }
.blob:nth-child(3) { top: 45%; left: 35%; background: radial-gradient(circle, #8b5cf6 0%, transparent 70%); animation-delay: -15s; animation-duration: 42s; opacity: 0.045; }
@keyframes blob-float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(9vw, 13vh) scale(1.12); }
    66% { transform: translate(-6vw, 20vh) scale(0.92); }
    100% { transform: translate(4vw, -4vh) scale(1.05); }
}

/* ===================== */
/* Mouse Glow            */
/* ===================== */
.mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    filter: blur(60px);
    opacity: 0.55;
}

/* ===================== */
/* Body & Base           */
/* ===================== */
body {
    font-family: var(--font-main);
    background: radial-gradient(ellipse at top left, #162b1f 0%, var(--bg-dark) 45%, var(--bg-deeper) 100%);
    background-attachment: fixed;
    color: var(--text);
    padding-top: 80px;
    overflow-x: hidden;
    line-height: 1.7;
    min-height: 100vh;
}
@media (pointer: fine) { body { cursor: none; } }
@media (pointer: fine) { a, button, [role="button"], input, select, textarea, label { cursor: none; } }
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.5px; line-height: 1.2; margin-bottom: 1rem; }
p { margin-bottom: 1.5rem; font-weight: 300; }
a { text-decoration: none; color: inherit; transition: all 0.3s var(--ease-smooth); }
.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--primary) !important; }

/* ===================== */
/* Gradient Text         */
/* ===================== */
.text-gradient {
    background: linear-gradient(135deg, #ffffff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================== */
/* Navbar                */
/* ===================== */
.navbar {
    background: rgba(11, 26, 18, 0.55);
    backdrop-filter: blur(22px) saturate(1.6);
    -webkit-backdrop-filter: blur(22px) saturate(1.6);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s var(--ease-smooth);
    padding: 1rem 0;
}
.navbar.scrolled {
    background: rgba(6, 14, 10, 0.94);
    padding: 0.55rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.navbar-brand img {
    border-radius: 12px;
    width: 44px;
    height: 44px;
    object-fit: cover;
    transition: transform 0.5s var(--ease-spring);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.navbar-brand:hover img { transform: scale(1.1) rotate(8deg); }
.navbar-nav .nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.9rem;
    opacity: 0.75;
    transition: opacity 0.3s ease, color 0.3s ease;
    letter-spacing: 0.2px;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { opacity: 1; color: white; }
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 2px;
    left: 50%;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transition: width 0.3s ease, left 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { width: 65%; }
.dropdown-menu {
    background: rgba(12, 24, 16, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.65);
    padding: 0.5rem;
    margin-top: 0.75rem;
    animation: fadeSlideDown 0.22s var(--ease-smooth) forwards;
}
.dropdown-item {
    color: var(--text-muted);
    border-radius: 10px;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}
.dropdown-item:hover { background: rgba(255, 255, 255, 0.07); color: white; transform: translateX(4px); }
@keyframes fadeSlideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ===================== */
/* Buttons               */
/* ===================== */
.btn-custom {
    background: linear-gradient(135deg, var(--primary), #d62d1d);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.8rem;
    transition: all 0.35s var(--ease-smooth);
    box-shadow: 0 4px 20px rgba(255, 66, 49, 0.32);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-custom::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -120%;
    width: 60px;
    height: 200%;
    background: rgba(255, 255, 255, 0.13);
    transform: skewX(-25deg);
    transition: left 0.55s ease;
}
.btn-custom:hover { transform: translateY(-3px); box-shadow: 0 10px 35px rgba(255, 66, 49, 0.52); color: white; }
.btn-custom:hover::after { left: 160%; }
.btn-custom:active { transform: translateY(-1px); }

/* ===================== */
/* Cards (Glassmorphism) */
/* ===================== */
.card, .glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text);
    box-shadow: var(--glass-shadow);
    transition: all 0.5s var(--ease-smooth);
    overflow: hidden;
    position: relative;
}
.card::before, .glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.card > *, .glass-card > * { position: relative; z-index: 1; }
.card:hover, .glass-card-hover:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 66, 49, 0.22);
    background: var(--glass-bg-hover);
    box-shadow: var(--glass-shadow-hover), 0 0 0 1px rgba(255,66,49,0.08);
}
.card img { transition: transform 0.7s var(--ease-smooth); }
.card:hover img { transform: scale(1.06); }

/* 3D Tilt Support */
.tilt-card { transform-style: preserve-3d; }

/* ===================== */
/* Section Title         */
/* ===================== */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    text-align: center;
    width: 100%;
    letter-spacing: -1px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 3px;
}

/* ===================== */
/* Hero / Welcome Screen */
/* ===================== */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.42), rgba(0,0,0,0.72)),
                url("../images/da/backgound.jpg") center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1000;
    transition: opacity 0.9s cubic-bezier(0.77, 0, 0.175, 1),
                transform 0.9s cubic-bezier(0.77, 0, 0.175, 1);
}
.welcome-screen::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(to top, rgba(11,26,18,0.95), transparent);
    pointer-events: none;
}
.welcome-screen.hidden {
    opacity: 0;
    transform: translateY(-100vh);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; padding: 0 1rem; }

/* Hero badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 66, 49, 0.1);
    border: 1px solid rgba(255, 66, 49, 0.28);
    color: #ff7a6a;
    padding: 0.5rem 1.3rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
}
.hero-badge .pulse-dot {
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-green 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
}

/* Hero title */
.hero-title {
    font-size: clamp(3.2rem, 8.5vw, 6.5rem);
    letter-spacing: -3px;
    line-height: 1.0;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

/* Typewriter */
.hero-subtitle-wrap {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255,255,255,0.65);
    margin-bottom: 2rem;
    font-weight: 300;
    min-height: 2.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.typewriter-cursor {
    display: inline-block;
    width: 2.5px;
    height: 1.1em;
    background: var(--primary);
    margin-left: 3px;
    vertical-align: middle;
    animation: blink 0.8s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Hero tags */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}
.hero-tag {
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.11);
    padding: 0.38rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.72);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}
.hero-tag:hover {
    background: rgba(255, 66, 49, 0.1);
    border-color: rgba(255, 66, 49, 0.3);
    color: #ff8a7a;
    transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.35);
    font-size: 0.7rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}
.scroll-indicator-line {
    width: 1px;
    height: 42px;
    background: linear-gradient(180deg, rgba(255,66,49,0.9), transparent);
    animation: line-pulse 2s ease-in-out infinite;
}
@keyframes line-pulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.7); opacity: 0.5; }
}
.scroll-indicator-bounce {
    animation: bounce-up 2s ease-in-out infinite;
}
@keyframes bounce-up {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ===================== */
/* Stats Counter Grid    */
/* ===================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin: 0;
}
.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.stat-card:hover { transform: translateY(-5px); border-color: rgba(255,66,49,0.18); background: var(--glass-bg-hover); }
.stat-card:hover::before { opacity: 1; }
.stat-icon { font-size: 1.4rem; color: var(--primary); opacity: 0.6; margin-bottom: 0.75rem; display: block; }
.stat-number {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.4rem;
    background: linear-gradient(135deg, #ffffff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}
.stat-label {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 500;
}
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stat-number { font-size: 2.5rem; }
}

/* ===================== */
/* Tools Marquee         */
/* ===================== */
.tools-marquee {
    overflow: hidden;
    padding: 1.6rem 0;
    background: rgba(255, 255, 255, 0.018);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}
.tools-marquee::before,
.tools-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 160px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.tools-marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-dark), transparent); }
.tools-marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg-dark), transparent); }
.marquee-content {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: marquee-scroll 32s linear infinite;
}
.tools-marquee:hover .marquee-content { animation-play-state: paused; }
.tool-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    padding: 0.45rem 0.9rem;
    border-radius: 50px;
}
.tool-item:hover { color: white; background: rgba(255,66,49,0.07); }
.tool-item i { font-size: 1.3rem; color: var(--primary); opacity: 0.72; transition: all 0.3s ease; }
.tool-item:hover i { opacity: 1; filter: drop-shadow(0 0 5px var(--primary)); }
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 1.5rem)); }
}

/* ===================== */
/* Bento Grid            */
/* ===================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1.25rem;
}
.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; }
@media (max-width: 992px) { .bento-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-large, .bento-wide { grid-column: span 1; grid-row: span 1; }
}

/* ===================== */
/* Timeline              */
/* ===================== */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), rgba(255,66,49,0.08));
}
.timeline-item { position: relative; padding-bottom: 2.5rem; padding-left: 1.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: -2.42rem;
    top: 0.3rem;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,66,49,0.18), 0 0 16px rgba(255,66,49,0.45);
}

/* ===================== */
/* Profile ring          */
/* ===================== */
.profile-img-wrap {
    position: relative;
    display: inline-block;
}
.profile-img-wrap::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) 0deg, #ff8a7a 120deg, transparent 180deg, var(--primary) 360deg);
    animation: spin-ring 10s linear infinite;
    opacity: 0.7;
}
.profile-img-wrap::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background: var(--bg-dark);
}
.profile-img-wrap img { position: relative; z-index: 1; }
@keyframes spin-ring { to { transform: rotate(360deg); } }

/* ===================== */
/* Footer                */
/* ===================== */
footer {
    background: rgba(6, 14, 10, 0.98);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 70px 0 30px;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 1rem;
}
.footer-section { flex: 1; min-width: 220px; margin: 1rem; }
.footer-section h4 {
    color: white;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.75rem;
    position: relative;
    display: inline-block;
}
.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}
.footer-links a { display: block; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 0.55rem; transition: all 0.3s ease; }
.footer-links a:hover { color: var(--primary); transform: translateX(5px); }
.footer-link { color: var(--text-muted); font-size: 0.88rem; transition: color 0.3s ease; }
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-right: 0.6rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    transition: all 0.3s var(--ease-smooth);
}
.social-icons a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255,66,49,0.35);
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.8rem;
    color: #4a4a4a;
    letter-spacing: 0.5px;
}
@media (max-width: 768px) {
    .footer-container { flex-direction: column; text-align: center; }
    .footer-section h4::after { left: 50%; transform: translateX(-50%); }
    .footer-links a:hover { transform: none; }
}

/* ===================== */
/* Animations & Utils    */
/* ===================== */
.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.85s var(--ease-smooth), transform 0.85s var(--ease-smooth);
}
.visible { opacity: 1 !important; transform: translateY(0) !important; }
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}
.project-block {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.75s var(--ease-smooth);
}
.project-block.visible { opacity: 1; transform: translateY(0); }

/* Stagger delays */
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }

/* ===================== */
/* Carousel              */
/* ===================== */
.carousel-img-standard { height: 450px; width: 100%; object-fit: cover; }
.glass-item {
    background: rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
@media (max-width: 768px) { .carousel-img-standard { height: 250px !important; } }

/* ===================== */
/* Misc & Page-specific  */
/* ===================== */
.bg-gradient-dark-to-top {
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, transparent 100%);
}
#tech-hardware .col-md-8 { padding-right: 3rem; }
@media (max-width: 768px) { #tech-hardware .col-md-8 { padding-right: 0.75rem; } }

/* Section divider */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin: 5rem 0;
}

/* Skill tag */
.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-muted);
    transition: all 0.25s ease;
    gap: 0.4rem;
}
.skill-tag:hover {
    background: rgba(255,66,49,0.09);
    border-color: rgba(255,66,49,0.3);
    color: #ff8a7a;
    transform: translateY(-2px);
}

/* Responsive base */
@media (max-width: 768px) {
    .welcome-screen h1 { font-size: 2.8rem; letter-spacing: -1px; }
    .section-title { font-size: 2rem; }
    .card-body { padding: 1.5rem; }
    body { padding-top: 72px; }
}

/* Accordion custom */
.accordion-button {
    background: var(--glass-bg) !important;
    color: white !important;
    border-radius: 12px !important;
    transition: all 0.3s ease;
}
.accordion-button:not(.collapsed) {
    background: rgba(255,66,49,0.08) !important;
    color: white !important;
    box-shadow: none !important;
}
.accordion-button::after { filter: invert(1) sepia(0) saturate(0) brightness(2); }
.accordion-body {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    color: var(--text-muted);
}

/* ===================== */
/* Grain / Film Noise    */
/* ===================== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.028;
    pointer-events: none;
    z-index: 9001;
}
html[data-theme="light"] body::before { opacity: 0.018; }

/* ===================== */
/* Light Mode Variables  */
/* ===================== */
html[data-theme="light"] {
    --bg-dark: #eef2ef;
    --bg-deeper: #e4eae6;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-bg-hover: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(0, 0, 0, 0.07);
    --glass-border-hover: rgba(220, 45, 30, 0.22);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.09);
    --glass-shadow-hover: 0 25px 60px rgba(0, 0, 0, 0.15);
    --text: #1c1c1c;
    --text-muted: #636363;
    --primary-glow: rgba(220, 45, 30, 0.1);
}
html[data-theme="light"] body {
    background: radial-gradient(ellipse at top left, #d8ede0 0%, #eef2ef 45%, #f4f7f4 100%);
    color: #1c1c1c;
}
html[data-theme="light"] .navbar {
    background: rgba(238, 242, 239, 0.88);
    border-color: rgba(0,0,0,0.07);
}
html[data-theme="light"] .navbar.scrolled {
    background: rgba(228, 234, 230, 0.97);
    box-shadow: 0 4px 20px rgba(0,0,0,0.09);
}
html[data-theme="light"] .navbar-nav .nav-link { color: #333; }
html[data-theme="light"] .navbar-toggler-icon { filter: invert(1) hue-rotate(180deg); }
html[data-theme="light"] .dropdown-menu { background: rgba(244, 247, 244, 0.98); }
html[data-theme="light"] .dropdown-item { color: #555; }
html[data-theme="light"] .dropdown-item:hover { background: rgba(0,0,0,0.05); color: #1c1c1c; }
html[data-theme="light"] footer { background: rgba(228, 234, 230, 0.98); border-top-color: rgba(0,0,0,0.07); }
html[data-theme="light"] .footer-bottom { color: #9a9a9a; }
html[data-theme="light"] .blob { opacity: 0.11; }
html[data-theme="light"] .mouse-glow { opacity: 0.35; }
html[data-theme="light"] .stat-card { background: rgba(255,255,255,0.82); }
html[data-theme="light"] .tools-marquee { background: rgba(0,0,0,0.02); }
html[data-theme="light"] .hero-tag { color: rgba(0,0,0,0.72); background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.11); }
html[data-theme="light"] .hero-subtitle-wrap { color: rgba(0,0,0,0.62); }
html[data-theme="light"] .skill-tag { color: #555; border-color: rgba(0,0,0,0.09); background: rgba(0,0,0,0.04); }
html[data-theme="light"] .text-gradient {
    background: linear-gradient(135deg, #111 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
html[data-theme="light"] .skill-bar-track { background: rgba(0,0,0,0.08); }
html[data-theme="light"] .quote-block { background: rgba(220,45,30,0.04); color: #555; }
html[data-theme="light"] .glass-item { background: rgba(0,0,0,0.03) !important; border-color: rgba(0,0,0,0.07) !important; }
html[data-theme="light"] .accordion-button { background: rgba(0,0,0,0.03) !important; color: #222 !important; }
html[data-theme="light"] .accordion-button:not(.collapsed) { background: rgba(220,45,30,0.06) !important; }
html[data-theme="light"] .accordion-body { background: rgba(0,0,0,0.02); color: #555; }
html[data-theme="light"] .table-dark { --bs-table-bg: transparent; --bs-table-color: #333; }
html[data-theme="light"] .hero-badge { background: rgba(220,45,30,0.08); border-color: rgba(220,45,30,0.22); color: #c0281a; }

/* ===================== */
/* Theme Toggle Button   */
/* ===================== */
.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: all 0.3s var(--ease-smooth);
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-shrink: 0;
    padding: 0;
}
.theme-toggle:hover { background: var(--glass-bg-hover); color: var(--primary); border-color: rgba(255,66,49,0.3); transform: rotate(20deg); }

/* ===================== */
/* Page Transitions      */
/* ===================== */
#page-transition {
    position: fixed;
    inset: 0;
    background: var(--bg-deeper);
    z-index: 99990;
    transform: translateY(100%);
    pointer-events: none;
    will-change: transform;
}

/* ===================== */
/* CV Download Button    */
/* ===================== */
.btn-cv {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    color: var(--text);
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.3s var(--ease-smooth);
    white-space: nowrap;
}
.btn-cv:hover { background: rgba(255,66,49,0.1); border-color: rgba(255,66,49,0.3); color: #ff8a7a; transform: translateY(-2px); }
html[data-theme="light"] .btn-cv { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.1); color: #333; }
html[data-theme="light"] .btn-cv:hover { background: rgba(220,45,30,0.07); border-color: rgba(220,45,30,0.22); color: var(--primary); }

/* ===================== */
/* Skills Section        */
/* ===================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 2.5rem;
}
@media (max-width: 768px) { .skills-grid { grid-template-columns: 1fr; } }
.skill-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}
.skill-item.visible { opacity: 1; transform: translateX(0); }
.skill-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.skill-name { font-size: 0.85rem; font-weight: 500; color: var(--text); display: flex; align-items: center; gap: 0.5rem; }
.skill-pct { font-size: 0.76rem; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.skill-bar-track { height: 4px; background: rgba(255,255,255,0.07); border-radius: 10px; overflow: hidden; }
.skill-bar-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--primary), #ff8a7a);
    width: 0%;
    transition: width 1.3s var(--ease-smooth);
    box-shadow: 0 0 8px rgba(255,66,49,0.35);
}

/* ===================== */
/* Quote / Accroche      */
/* ===================== */
.quote-block {
    border-left: 3px solid var(--primary);
    padding: 1.1rem 1.4rem;
    background: rgba(255,66,49,0.04);
    border-radius: 0 12px 12px 0;
    font-size: 1rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ======================================== */
/* MODERN MOBILE & COMPATIBILITY LAYER      */
/* ======================================== */

/* ── Global scroll behaviour ────────────── */
html {
    overscroll-behavior-y: none;
    -webkit-text-size-adjust: 100%;
}

/* ── iOS background-attachment fix ─────── */
/* background-attachment:fixed is broken in iOS Safari */
@media (max-width: 768px) {
    body { background-attachment: scroll; }
    .welcome-screen {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center top !important;
    }
}

/* ── iOS notch / safe-area support ─────── */
@supports (padding: env(safe-area-inset-top)) {
    .navbar {
        padding-top: max(0.75rem, calc(0.4rem + env(safe-area-inset-top)));
    }
    footer {
        padding-bottom: calc(30px + env(safe-area-inset-bottom));
    }
}

/* ── Navbar toggler — touch-friendly ───── */
.navbar-toggler {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 0;
    transition: background 0.2s ease;
    flex-shrink: 0;
}
.navbar-toggler:hover { background: var(--glass-bg); }
.navbar-toggler:focus { box-shadow: none; }

/* ── Mobile navbar collapse menu ────────── */
@media (max-width: 991.98px) {
    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        background: rgba(6, 14, 10, 0.97);
        backdrop-filter: blur(24px) saturate(1.6);
        -webkit-backdrop-filter: blur(24px) saturate(1.6);
        border: 1px solid var(--glass-border);
        border-top: none;
        border-radius: 0 0 20px 20px;
        padding: 0.75rem 1rem 1.25rem;
        margin-top: 0.5rem;
        box-shadow: 0 20px 40px rgba(0,0,0,0.45);
    }
    .navbar-collapse .navbar-nav { gap: 0.2rem; }
    .navbar-nav .nav-link {
        padding: 0.65rem 0.9rem !important;
        border-radius: 10px;
        transition: background 0.2s ease, opacity 0.2s ease;
    }
    .navbar-nav .nav-link:hover { background: rgba(255,255,255,0.05); }
    .navbar-nav .nav-link::after { display: none; }
    .nav-item.ms-lg-1, .nav-item.ms-lg-2 { margin-left: 0 !important; margin-top: 0.4rem; }
    .btn-cv { display: flex; justify-content: center; }
    .navbar-nav .btn-custom.btn-sm { width: 100%; justify-content: center; }
}
html[data-theme="light"] .navbar-collapse.show,
html[data-theme="light"] .navbar-collapse.collapsing {
    background: rgba(238, 242, 239, 0.97) !important;
}

/* ── Touch targets (min 44×44 px) ───────── */
@media (pointer: coarse) {
    .theme-toggle { width: 44px; height: 44px; font-size: 1rem; }
    .social-icons a { width: 48px; height: 48px; }
    .dropdown-item { min-height: 44px; display: flex; align-items: center; }
    .btn-cv { min-height: 44px; }
    .hero-tag { min-height: 40px; display: inline-flex; align-items: center; }
    .stat-card { min-height: 120px; }
}

/* ── Disable hover transforms on touch ──── */
/* Hover effects look broken on tap devices */
@media (hover: none) {
    .card:hover, .glass-card-hover:hover {
        transform: none !important;
        border-color: var(--glass-border) !important;
        background: var(--glass-bg) !important;
        box-shadow: var(--glass-shadow) !important;
    }
    .card:hover img { transform: none !important; }
    .stat-card:hover {
        transform: none !important;
        border-color: var(--glass-border) !important;
        background: var(--glass-bg) !important;
    }
    .stat-card:hover::before { opacity: 0 !important; }
    .hero-tag:hover {
        transform: none !important;
        background: rgba(255,255,255,0.055) !important;
        border-color: rgba(255,255,255,0.11) !important;
        color: rgba(255,255,255,0.72) !important;
    }
    .skill-tag:hover {
        transform: none !important;
        background: var(--glass-bg) !important;
        border-color: var(--glass-border) !important;
        color: var(--text-muted) !important;
    }
    .btn-custom:hover {
        transform: none !important;
        box-shadow: 0 4px 20px rgba(255,66,49,0.32) !important;
    }
    .btn-cv:hover { transform: none !important; }
    .social-icons a:hover { transform: none !important; }
    .footer-links a:hover { transform: none !important; }
    .dropdown-item:hover { transform: none !important; }
    .tool-item:hover { background: none !important; color: var(--text-muted) !important; }
    .tool-item:hover i { filter: none !important; opacity: 0.72 !important; }
    .navbar-brand:hover img { transform: none !important; }
    .theme-toggle:hover { transform: none !important; }
    .skill-tag:hover { transform: none !important; }
}

/* ── Active / tap feedback on touch ─────── */
@media (pointer: coarse) {
    .card:active { transform: scale(0.985) !important; transition: transform 0.12s ease !important; }
    .btn-custom:active { transform: scale(0.96) !important; transition: transform 0.1s ease !important; }
    .btn-cv:active { transform: scale(0.96) !important; }
    .hero-tag:active {
        background: rgba(255,66,49,0.1) !important;
        border-color: rgba(255,66,49,0.3) !important;
        transition: background 0.1s ease !important;
    }
    .stat-card:active { transform: scale(0.975) !important; transition: transform 0.1s ease !important; }
}

/* ── Bento grid — tablet (577–991px) ─────── */
@media (min-width: 577px) and (max-width: 991px) {
    .bento-large {
        grid-column: span 2 !important;
        grid-row: span 1 !important;
        min-height: 220px;
    }
}

/* ── Small screen fixes (< 380px) ──────── */
@media (max-width: 380px) {
    .hero-title { font-size: clamp(2.2rem, 13vw, 3.2rem) !important; letter-spacing: -1.5px; }
    .hero-badge { font-size: 0.72rem; padding: 0.35rem 0.9rem; }
    .hero-tag { font-size: 0.71rem; padding: 0.28rem 0.65rem; }
    .stat-number { font-size: 2rem; }
    .stat-card { padding: 1.5rem 0.75rem; }
    .section-title { font-size: 1.7rem !important; }
    .d-flex.gap-3 { gap: 0.75rem !important; }
    .btn-lg { padding: 10px 20px; font-size: 0.85rem; }
    .scroll-indicator { display: none; }
}

/* ── Reduced motion support ─────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.15ms !important;
        scroll-behavior: auto !important;
    }
    .blob { animation: none !important; }
    .marquee-content { animation-play-state: paused; }
    .profile-img-wrap::before { animation: none !important; }
    .scroll-indicator-line,
    .scroll-indicator-bounce { animation: none !important; }
    .hero-badge .pulse-dot { animation: none !important; }
    .loader-ring { animation: none !important; border-color: var(--primary); }
    #scroll-progress { animation: none !important; }
}
