/* 
========================================================================
   HACKABLE (HAKABLE.COM) - MAIN STYLESHEET
   Description: Core design system, responsive grid layouts, animations,
                and micro-interactions for Cybersecurity + Law theme.
========================================================================
*/

/* ---------------------------------------------------------------------
   1. IMPORTS & VARIABLES
--------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Manrope:wght@400;500;600;700&family=Cairo:wght@300;400;500;600;700;800&display=swap');

:root {
    /* ── Brand Palette ── */
    --primary:   #071B3D;
    --secondary: #0A5BFF;
    --blue:      #154A9F;

    --dark:      #0B1020;
    --white:     #FFFFFF;

    --gray:      #6E7688;
    --light:     #E8ECF3;
    --border:    #D3D8E2;

    --success:   #16C784;
    --warning:   #F5A623;
    --danger:    #FF4D4F;

    /* ── Semantic Aliases — LIGHT MODE ── */
    --bg-primary:   #FFFFFF;
    --bg-secondary: #F0F4FF;
    --bg-tertiary:  #E8EEFF;
    --bg-card:      rgba(255, 255, 255, 0.95);
    --bg-glass:     rgba(255, 255, 255, 0.90);

    --text-primary:   #071B3D;
    --text-secondary: #2D3A52;
    --text-muted:     #6E7688;

    --accent-cyan:     #0A5BFF;
    --accent-cyan-rgb: 10, 91, 255;
    --accent-gold:     #154A9F;
    --accent-gold-rgb: 21, 74, 159;
    --accent-red:      #FF4D4F;

    --border-color:      rgba(7, 27, 61, 0.12);
    --border-glow-cyan:  rgba(10, 91, 255, 0.25);
    --border-glow-gold:  rgba(21, 74, 159, 0.20);

    /* ── Typography ── */
    --font-headings: 'Poppins', 'Space Grotesk', sans-serif;
    --font-body:     'Inter', 'Manrope', sans-serif;

    /* ── Gradients ── */
    --gradient-cyber:      linear-gradient(135deg, #0A5BFF, #154A9F);
    --gradient-law:        linear-gradient(135deg, #154A9F, #071B3D);
    --gradient-dark:       linear-gradient(180deg, #F0F4FF 0%, #FFFFFF 100%);
    --gradient-hero:       linear-gradient(180deg, #F0F4FF 0%, #FFFFFF 100%);
    --gradient-premium:    linear-gradient(135deg, #071B3D 0%, #154A9F 50%, #0A5BFF 100%);
    --gradient-cyber-glow: radial-gradient(circle, rgba(10, 91, 255, 0.10) 0%, transparent 70%);

    /* ── Layout & Animation ── */
    --max-width:        1200px;
    --header-height:    80px;
    --radius-sm:        4px;
    --radius-md:        8px;
    --radius-lg:        16px;
    --transition-fast:   0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-cyber:      0 0 25px rgba(10, 91, 255, 0.15);
    --shadow-gold:       0 0 25px rgba(21, 74, 159, 0.15);
    --shadow-card-hover: 0 20px 50px rgba(10, 91, 255, 0.12);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: #FFFFFF;
    background-image: 
        radial-gradient(at 0% 0%, rgba(10, 91, 255, 0.04) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(21, 74, 159, 0.03) 0, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: var(--primary);
}

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

ul {
    list-style: none;
}

/* Skip to Content for Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--secondary);
    color: var(--white);
    padding: 8px 16px;
    z-index: 9999;
    font-weight: bold;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* ---------------------------------------------------------------------
   3. REUSABLE COMPONENTS & UTILITIES
--------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 6rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }
}

.text-center { text-align: center; }
.text-cyan { color: var(--secondary); }
.text-gold { color: #7BA7FF; }

/* Accent Lines / Tech Details */
.cyber-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(7, 27, 61, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(7, 27, 61, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    font-family: var(--font-headings);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.badge-cyber {
    background: rgba(10, 91, 255, 0.10);
    color: var(--secondary);
    border: 1px solid rgba(10, 91, 255, 0.28);
    box-shadow: 0 0 10px rgba(10, 91, 255, 0.08);
}

.badge-gold {
    background: rgba(21, 74, 159, 0.12);
    color: #7BA7FF;
    border: 1px solid rgba(21, 74, 159, 0.30);
    box-shadow: 0 0 10px rgba(21, 74, 159, 0.08);
}

/* Title Styling */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-cyber);
    margin: 1.5rem 0;
    border-radius: 2px;
}

.section-title.center::after {
    margin: 1.5rem auto;
}

.section-subtitle {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-headings);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(10, 91, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--blue);
    box-shadow: 0 6px 20px rgba(10, 91, 255, 0.50), var(--shadow-cyber);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(7, 27, 61, 0.20);
}

.btn-gold {
    background: var(--gradient-law);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(21, 74, 159, 0.35);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 74, 159, 0.50), var(--shadow-gold);
    color: var(--white);
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: #FFFFFF;
    border: 1px solid rgba(7, 27, 61, 0.10);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 16px rgba(7, 27, 61, 0.06);
    display: flex;
    flex-direction: column;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transition: var(--transition-smooth);
}

.card-cyber::before { background: var(--gradient-cyber); transform: scaleX(0); transform-origin: left; }
.card-law::before { background: var(--gradient-law); transform: scaleX(0); transform-origin: left; }

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(10, 91, 255, 0.25);
    box-shadow: var(--shadow-card-hover);
}

.card-cyber:hover {
    border-color: rgba(10, 91, 255, 0.35);
    box-shadow: var(--shadow-cyber);
}

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

.card-law:hover {
    border-color: rgba(21, 74, 159, 0.35);
    box-shadow: var(--shadow-gold);
}

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

.card-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: inline-flex;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-text {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.card-link {
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link::after {
    content: '→';
    transition: var(--transition-fast);
}

.card-link:hover::after {
    transform: translateX(4px);
}

/* ---------------------------------------------------------------------
   4. HEADER & NAVIGATION
--------------------------------------------------------------------- */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(7, 27, 61, 0.10);
    box-shadow: 0 2px 20px rgba(7, 27, 61, 0.08);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header-wrapper.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 24px rgba(7, 27, 61, 0.12);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-headings);
    font-weight: 500;
    font-size: 0.95rem;
    color: #071B3D;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-cyber);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-fast) ease;
}

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

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Mobile Hamburger Menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1010;
}

.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    position: absolute;
    transition: var(--transition-fast);
}

.nav-toggle span {
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle span::before {
    content: '';
    top: -8px;
}

.nav-toggle span::after {
    content: '';
    top: 8px;
}

.nav-toggle.active span {
    background: transparent;
}

.nav-toggle.active span::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active span::after {
    top: 0;
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #FFFFFF;
        border-left: 1px solid rgba(7, 27, 61, 0.12);
        box-shadow: -10px 0 30px rgba(7, 27, 61, 0.15);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: var(--transition-smooth);
        z-index: 1005;
    }
    
    .nav-menu.active {
        right: 0;
    }
}

/* ---------------------------------------------------------------------
   5. HERO SECTION & CANVAS
--------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 2rem);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(160deg, #F0F4FF 0%, #FFFFFF 60%, #F8FAFF 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 5;
}

.hero-content {
    animation: fadeInUp 0.8s var(--transition-smooth);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 0.95;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title span {
    display: block;
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 600px;
}

/* Cyber Canvas Background & Overlay Visual */
.hero-visual {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #EEF2FF 0%, #F5F8FF 100%);
    border: 1px solid rgba(10, 91, 255, 0.20);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(10, 91, 255, 0.10);
    animation: fadeIn 1.2s var(--transition-smooth);
}

.cyber-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-media-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    color: var(--text-muted);
}

.hero-media-placeholder svg {
    margin-bottom: 1rem;
    opacity: 0.3;
}

@media (max-width: 992px) {
    .hero {
        padding-top: 7rem;
        padding-bottom: 4rem;
        min-height: auto;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .btn-group {
        justify-content: center;
    }
    
    .hero-visual {
        height: 350px;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ---------------------------------------------------------------------
   6. KEY PILLARS & CORE PAGE SECTIONS
--------------------------------------------------------------------- */
.features-section {
    position: relative;
}

.bullets-list {
    margin-top: 1.5rem;
}

.bullets-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.bullets-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary);
    font-weight: 700;
}

.why-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .why-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ---------------------------------------------------------------------
   7. ABOUT US
--------------------------------------------------------------------- */
.founder-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.founder-card {
    background: #FFFFFF;
    border: 1px solid rgba(7, 27, 61, 0.10);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(7, 27, 61, 0.07);
    transition: var(--transition-smooth);
}

.founder-card:hover {
    border-color: rgba(10, 91, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(10, 91, 255, 0.12);
}

.founder-img-wrapper {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E8FF 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.founder-img-wrapper svg {
    width: 120px;
    height: 120px;
    color: var(--text-muted);
}

/* Founder photo circle cropping - smaller circle within the square */
.founder-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 50%;
    border: 3px solid rgba(197, 168, 128, 0.3);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.1), 0 0 40px rgba(197, 168, 128, 0.08);
}

.founder-info {
    padding: 2rem;
}

.founder-name {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.founder-title {
    font-size: 0.875rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 1rem;
}

.founder-bio {
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .founder-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ---------------------------------------------------------------------
   8. SERVICES
--------------------------------------------------------------------- */
.services-container {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.services-block {
    background: #FFFFFF;
    border: 1px solid rgba(7, 27, 61, 0.10);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: 0 4px 24px rgba(7, 27, 61, 0.07);
}

.services-block-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .services-block {
        padding: 1.5rem;
    }
}

/* ---------------------------------------------------------------------
   9. BLOG & ARTICLE PAGES
--------------------------------------------------------------------- */
.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-meta {
    font-family: var(--font-headings);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.blog-title-link {
    color: var(--text-primary);
}

.blog-title-link:hover {
    color: var(--secondary);
}

/* Single Post Article */
.article-header {
    margin-bottom: 3rem;
    text-align: center;
}

.article-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2.25rem;
    }
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.article-content h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem 0;
}

.article-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
}

.article-content ul, .article-content ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.article-content blockquote {
    border-left: 4px solid var(--secondary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-primary);
    background: rgba(10, 91, 255, 0.05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1rem 1.5rem;
}

.article-footer {
    max-width: 800px;
    margin: 4rem auto 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* ---------------------------------------------------------------------
   10. CONTACT FORM & CTA
--------------------------------------------------------------------- */
.contact-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-list {
    margin-top: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: rgba(10, 91, 255, 0.08);
    border: 1px solid rgba(10, 91, 255, 0.25);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary);
    flex-shrink: 0;
}

.contact-info-detail h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-info-detail p, .contact-info-detail a {
    margin-bottom: 0;
    color: var(--text-secondary);
}

.contact-info-detail a:hover {
    color: var(--secondary);
}

/* Form Styles */
.contact-form {
    background: #FFFFFF;
    border: 1px solid rgba(7, 27, 61, 0.10);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: 0 4px 24px rgba(7, 27, 61, 0.07);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-group.checkbox-group label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
    cursor: pointer;
}

.form-label {
    display: block;
    font-family: var(--font-headings);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    background: #F8FAFF;
    border: 1px solid rgba(7, 27, 61, 0.15);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(10, 91, 255, 0.18);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

input[type="checkbox"] {
    accent-color: var(--secondary);
    margin-top: 3px;
    cursor: pointer;
}

/* Form Status Message */
.form-status {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 1.5rem;
    font-weight: 500;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(22, 199, 132, 0.1);
    color: var(--success);
    border: 1px solid rgba(22, 199, 132, 0.25);
}

.form-status.error {
    display: block;
    background: rgba(255, 77, 79, 0.1);
    color: var(--danger);
    border: 1px solid rgba(255, 77, 79, 0.2);
}

@media (max-width: 992px) {
    .contact-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
}

/* ---------------------------------------------------------------------
   11. FOOTER
--------------------------------------------------------------------- */
.footer {
    background: #FFFFFF;
    border-top: 1px solid rgba(7, 27, 61, 0.12);
    padding: 5rem 0 2rem 0;
    position: relative;
    z-index: 10;
    box-shadow: inset 0 1px 0 rgba(10, 91, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-info-col p {
    margin-top: 1rem;
    font-size: 0.95rem;
    max-width: 280px;
    color: #2D3A52;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    color: #071B3D;
}

.footer-col h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--gradient-cyber);
    margin-top: 0.5rem;
    border-radius: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #2D3A52;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(7, 27, 61, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    font-size: 0.875rem;
    color: #6E7688;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    font-size: 0.875rem;
    color: #6E7688;
}

.footer-legal-links a:hover {
    color: var(--secondary);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---------------------------------------------------------------------
   12. KEYFRAME ANIMATIONS
--------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes gridGlow {
    0% { opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { opacity: 0.3; }
}

/* Accessibility: respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================================================
   13. BILINGUAL RTL ADJUSTMENTS, ANIMATIONS, & UTILITIES
   ======================================================================== */

/* Arabic (RTL) Theme Adjustments */
html[lang="ar"] {
    --font-headings: 'Cairo', sans-serif;
    --font-body: 'Cairo', sans-serif;
}

html[lang="ar"] body {
    direction: rtl;
    text-align: right;
}

/* RTL Navigation */
html[lang="ar"] .logo-link {
    flex-direction: row;
}

html[lang="ar"] .bullets-list li {
    padding-left: 0;
    padding-right: 2rem;
}

html[lang="ar"] .bullets-list li::before {
    content: '✓';
    left: auto;
    right: 0;
}

/* Card link arrows in RTL */
html[lang="ar"] .card-link::after {
    content: '←';
}

html[lang="ar"] .card-link:hover::after {
    transform: translateX(-4px);
}

html[lang="ar"] .nav-toggle {
    margin-right: auto;
    margin-left: 0;
}

@media (max-width: 768px) {
    html[lang="ar"] .nav-menu {
        right: auto;
        left: -100%;
        border-left: none;
        border-right: 1px solid var(--border-color);
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }
    
    html[lang="ar"] .nav-menu.active {
        left: 0;
        right: auto;
    }
}

/* RTL Contact panel adjustments */
html[lang="ar"] .contact-split {
    grid-template-columns: 0.8fr 1.2fr;
}

html[lang="ar"] .contact-info-list {
    text-align: right;
}

html[lang="ar"] .contact-info-item {
    flex-direction: row;
}

/* Logo Styling */
.logo-image {
    height: 44px;
    width: 44px;
    object-fit: cover;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #0A5BFF;
    padding: 2px;
    filter: drop-shadow(0 0 8px rgba(10, 91, 255, 0.70)) drop-shadow(0 0 18px rgba(10, 91, 255, 0.35));
}

/* Logo Name */
.logo-name {
    font-family: 'Poppins', 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    color: var(--secondary);
    -webkit-text-fill-color: var(--secondary);
    white-space: nowrap;
}

/* Language Link in Nav Bar (after Contact Us) */
.lang-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 4px 14px;
    font-family: var(--font-headings);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: 1px solid var(--secondary);
    border-radius: 50px;
    background: rgba(10, 91, 255, 0.10);
    color: var(--secondary) !important;
    transition: var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
}

.lang-link:hover {
    background: rgba(10, 91, 255, 0.28);
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(10, 91, 255, 0.35);
    transform: translateY(-1px);
}

/* =============================================
   Social Media Footer Buttons
   ============================================= */
.footer-social {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.1rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(7, 27, 61, 0.05);
    border: 1px solid rgba(7, 27, 61, 0.15);
    color: #2D3A52;
    transition: var(--transition-fast);
    text-decoration: none;
    flex-shrink: 0;
}

.social-btn:hover {
    background: rgba(10, 91, 255, 0.12);
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(10, 91, 255, 0.22);
}

.social-btn svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* =============================================
   Messaging Buttons (Telegram / WhatsApp)
   ============================================= */
.messaging-btns {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.messaging-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1.35rem;
    border-radius: var(--radius-md);
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-fast);
    border: 1px solid;
    cursor: pointer;
}

.messaging-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.messaging-telegram {
    background: rgba(0, 136, 204, 0.08);
    border-color: rgba(0, 136, 204, 0.28);
    color: #29aee6;
}

.messaging-telegram:hover {
    background: rgba(0, 136, 204, 0.18);
    border-color: #29aee6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.22);
    color: #29aee6;
}

.messaging-whatsapp {
    background: rgba(37, 211, 102, 0.08);
    border-color: rgba(37, 211, 102, 0.28);
    color: #25d366;
}

.messaging-whatsapp:hover {
    background: rgba(37, 211, 102, 0.18);
    border-color: #25d366;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.22);
    color: #25d366;
}

/* legacy – kept for compatibility */
.logo-link span {
    font-family: 'Poppins', 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    color: var(--secondary);
    -webkit-text-fill-color: var(--secondary);
}

/* 1. Dynamic Hero Scales Animation */
.interactive-center-emblem {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(10, 91, 255, 0.06) 0%, transparent 70%);
}

.emblem-svg {
    width: 160px;
    height: 160px;
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.12));
    overflow: visible;
}

.emblem-shield {
    animation: shieldGlow 4s ease-in-out infinite alternate;
}

@keyframes shieldGlow {
    0% {
        stroke: #0A5BFF;
        filter: drop-shadow(0 0 6px rgba(10, 91, 255, 0.45));
    }
    100% {
        stroke: #154A9F;
        filter: drop-shadow(0 0 16px rgba(21, 74, 159, 0.55));
    }
}

.scale-beam {
    transform-origin: 0px -14px;
    animation: tiltScale 6s ease-in-out infinite alternate;
}

@keyframes tiltScale {
    0% { transform: rotate(-4deg); }
    100% { transform: rotate(4deg); }
}

.left-plate {
    animation: keepHorizontalLeft 6s ease-in-out infinite alternate;
}

.right-plate {
    animation: keepHorizontalRight 6s ease-in-out infinite alternate;
}

@keyframes keepHorizontalLeft {
    0% { transform: rotate(4deg) translate(-22px, -15px); transform-origin: -22px -15px; }
    100% { transform: rotate(-4deg) translate(-22px, -15px); transform-origin: -22px -15px; }
}

@keyframes keepHorizontalRight {
    0% { transform: rotate(4deg) translate(22px, -15px); transform-origin: 22px -15px; }
    100% { transform: rotate(-4deg) translate(22px, -15px); transform-origin: 22px -15px; }
}

/* 2. Why Choose Hackable - Tech-Legal Scale Shape */
.tech-legal-anim-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-scale-svg {
    width: 80%;
    height: 80%;
    max-width: 320px;
    max-height: 320px;
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.08));
    overflow: visible;
}

/* ── New animation classes for redesigned SVGs (300×300 viewBox) ── */
/* transform-box:fill-box makes transform-origin relative to each
   element's own bounding box, so rotations/tilts work when SVG is scaled. */
.cyber-ring-cw {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: rotateCW 28s linear infinite;
}

.cyber-ring-ccw {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: rotateCCW 20s linear infinite;
}

/* Hero emblem beam – pivots at top-center of its bounding box (beam midpoint) */
.hero-scale-beam {
    transform-box: fill-box;
    transform-origin: 50% 0%;
    animation: heroBeamTilt 5s ease-in-out infinite alternate;
}

@keyframes heroBeamTilt {
    0%   { transform: rotate(-4deg); }
    100% { transform: rotate(4deg); }
}

/* Why Hackable section beam – pivots at top-center of its bounding box */
.why-scale-beam {
    transform-box: fill-box;
    transform-origin: 50% 0%;
    animation: whyBeamTilt 5s ease-in-out infinite alternate;
}

@keyframes whyBeamTilt {
    0%   { transform: rotate(4deg); }
    100% { transform: rotate(-4deg); }
}

/* Pulsing data nodes (white glow) */
.data-pulse {
    animation: dataPulse 2.5s ease-in-out infinite alternate;
}

.data-pulse-d {
    animation: dataPulse 2.5s ease-in-out infinite alternate 1.25s;
}

@keyframes dataPulse {
    0%   { opacity: 0.25; }
    100% { opacity: 1; }
}

/* Hex node ring pulse */
.hex-node-pulse {
    animation: hexNodePulse 3s ease-in-out infinite alternate;
}

.hex-node-pulse-d {
    animation: hexNodePulse 3s ease-in-out infinite alternate 1.5s;
}

@keyframes hexNodePulse {
    0%   { opacity: 0.3; }
    100% { opacity: 0.75; }
}

/* Corner bracket pulse */
.corner-pulse {
    animation: dataPulse 3.5s ease-in-out infinite alternate;
}

.corner-pulse-d {
    animation: dataPulse 3.5s ease-in-out infinite alternate 1.75s;
}

/* Responsive animated shapes - consistent across viewports */
@media (max-width: 992px) {
    .tech-scale-svg {
        width: 70%;
        max-width: 260px;
        max-height: 260px;
    }
    .scanner-svg {
        width: 160px;
        height: 160px;
    }
    .emblem-svg {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 576px) {
    .tech-scale-svg {
        width: 60%;
        max-width: 200px;
        max-height: 200px;
    }
    .scanner-svg {
        width: 140px;
        height: 140px;
    }
    .emblem-svg {
        width: 120px;
        height: 120px;
    }
}

.rotating-ring {
    transform-origin: 60px 60px;
    animation: rotateCW 20s linear infinite;
}

.rotating-ring-rev {
    transform-origin: 60px 60px;
    animation: rotateCCW 15s linear infinite;
}

@keyframes rotateCW {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateCCW {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.scale-bar-tilt {
    transform-origin: 60px 59px;
    animation: tiltBar 5s ease-in-out infinite alternate;
}

.scale-plate-l {
    animation: keepHorizontalLeft2 5s ease-in-out infinite alternate;
}

.scale-plate-r {
    animation: keepHorizontalRight2 5s ease-in-out infinite alternate;
}

@keyframes tiltBar {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(5deg); }
}

@keyframes keepHorizontalLeft2 {
    0% { transform: rotate(5deg) translate(0, 0); transform-origin: 30px 59px; }
    100% { transform: rotate(-5deg) translate(0, 0); transform-origin: 30px 59px; }
}

@keyframes keepHorizontalRight2 {
    0% { transform: rotate(5deg) translate(0, 0); transform-origin: 90px 59px; }
    100% { transform: rotate(-5deg) translate(0, 0); transform-origin: 90px 59px; }
}

.pulse-dot {
    animation: pulseDot 2s ease-in-out infinite alternate;
}

.pulse-dot-delayed {
    animation: pulseDot 2s ease-in-out infinite alternate 1s;
}

@keyframes pulseDot {
    0% { opacity: 0.2; transform: scale(0.8); transform-origin: center; }
    100% { opacity: 1; transform: scale(1.2); transform-origin: center; }
}

/* 3. Forensic Scanner Animation */
.forensic-scanner-anim {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, rgba(10, 91, 255, 0.05) 0%, transparent 80%);
}

.scanner-svg {
    width: 180px;
    height: 180px;
    filter: drop-shadow(0 0 12px rgba(0, 242, 254, 0.2));
}

.scanner-laser {
    animation: laserScan 4s ease-in-out infinite;
}

@keyframes laserScan {
    0% { transform: translateY(5px); }
    50% { transform: translateY(55px); }
    100% { transform: translateY(5px); }
}

.scanned-shield {
    animation: shieldDetect 4s ease-in-out infinite;
}

@keyframes shieldDetect {
    0%, 100% { stroke: var(--blue); opacity: 0.7; }
    25%, 75% { stroke: var(--secondary); opacity: 1; filter: drop-shadow(0 0 8px var(--secondary)); }
    50% { stroke: var(--blue); opacity: 0.7; }
}

.scanning-ring {
    transform-origin: 50px 50px;
    animation: ringPulse 2s ease-in-out infinite alternate;
}

@keyframes ringPulse {
    0% { transform: scale(0.9); opacity: 0.4; }
    100% { transform: scale(1.15); opacity: 0.9; }
}

/* Founder Portrait Photos - overridden in .founder-img-wrapper context above */

/* Anti-spam hidden field */
.hidden-honeypot {
    display: none !important;
    visibility: hidden !important;
}

/* Unsure Help Intake Section CSS */
.help-intake-card {
    background: linear-gradient(135deg, #EEF2FF 0%, #E8F0FF 100%);
    border: 1px solid rgba(10, 91, 255, 0.20);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-top: 5rem;
    box-shadow: 0 8px 32px rgba(10, 91, 255, 0.10);
    text-align: center;
}

.help-intake-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #071B3D;
}

.help-intake-card p {
    max-width: 700px;
    margin: 0 auto 2rem auto;
    color: #2D3A52;
}

/* ---------------------------------------------------------------------
   14. CONTRIBUTIONS & TALKS SECTION (enable by uncommenting in index.html)
--------------------------------------------------------------------- */
.talks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.talk-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.talk-card:hover {
    border-color: rgba(10, 91, 255, 0.28);
    transform: translateY(-4px);
    box-shadow: var(--shadow-cyber);
}

.talk-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.talk-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.talk-info {
    padding: 1.5rem;
}

.talk-tag {
    display: inline-block;
    font-family: var(--font-headings);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--secondary);
    background: rgba(10, 91, 255, 0.08);
    border: 1px solid rgba(10, 91, 255, 0.18);
    border-radius: var(--radius-sm);
    padding: 3px 10px;
    margin-bottom: 0.75rem;
}

.talk-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.talk-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

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

/* =====================================================================
   DARK MODE — [data-theme="dark"] overrides
   All semantic variables flip here. No component rules are duplicated —
   only the tokens change, everything else inherits automatically.
===================================================================== */
[data-theme="dark"] {
    /* ── Semantic bg / surface ── */
    --bg-primary:   #0B1020;
    --bg-secondary: #111827;
    --bg-tertiary:  #162033;
    --bg-card:      rgba(17, 24, 39, 0.95);
    --bg-glass:     rgba(17, 24, 39, 0.90);

    /* ── Typography ── */
    --text-primary:   #F0F4FF;
    --text-secondary: #A8B8D8;
    --text-muted:     #64748B;

    /* ── Borders ── */
    --border-color:      rgba(10, 91, 255, 0.18);
    --border-glow-cyan:  rgba(10, 91, 255, 0.35);
    --border-glow-gold:  rgba(21, 74, 159, 0.30);

    /* ── Gradients flip to dark ── */
    --gradient-dark: linear-gradient(180deg, #0B1020 0%, #111827 100%);
    --gradient-hero: linear-gradient(180deg, #0B1020 0%, #0D1530 100%);

    /* ── Shadows ── */
    --shadow-cyber:      0 0 30px rgba(10, 91, 255, 0.20);
    --shadow-gold:       0 0 30px rgba(21, 74, 159, 0.20);
    --shadow-card-hover: 0 20px 50px rgba(10, 91, 255, 0.20);
}

/* ── Body overrides (background uses tokens but also needs pattern swap) ── */
[data-theme="dark"] body {
    background-color: #0B1020;
    background-image:
        radial-gradient(at 0% 0%,   rgba(10, 91, 255, 0.08) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(21, 74, 159, 0.06) 0, transparent 50%);
    color: var(--text-primary);
}

/* ── Cyber Grid Background ── */
[data-theme="dark"] .cyber-grid-bg {
    background-image:
        linear-gradient(to right, rgba(10, 91, 255, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(10, 91, 255, 0.06) 1px, transparent 1px);
}

/* ── Navigation ── */
[data-theme="dark"] .header-wrapper {
    background: rgba(11, 16, 32, 0.90);
    border-bottom-color: rgba(10, 91, 255, 0.15);
}

[data-theme="dark"] .header-wrapper.scrolled {
    background: rgba(11, 16, 32, 0.97);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.40);
}

[data-theme="dark"] .nav-link {
    color: #A8B8D8;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: #F0F4FF;
}

[data-theme="dark"] .logo-link {
    color: #F0F4FF;
}

/* Logo "Hackable" name text */
[data-theme="dark"] .logo-name {
    color: #F0F4FF;
    -webkit-text-fill-color: #F0F4FF;
}

/* Default link color in dark mode */
[data-theme="dark"] a {
    color: #F0F4FF;
}

/* Utility class */
[data-theme="dark"] .text-cyan {
    color: #F0F4FF;
}

/* ── Hero Section ── */
[data-theme="dark"] .hero {
    background: linear-gradient(160deg, #0B1020 0%, #0D1530 100%);
}

/* Fix inline color on hero title second line in dark mode */
[data-theme="dark"] .hero-title [data-i18n="idx.hero.title2"],
[data-theme="dark"] .hero-title [data-i18n="idx.hero.titleAr2"],
[data-theme="dark"] .hero-title span[style*="color:#071B3D"] {
    color: #F0F4FF !important;
    -webkit-text-fill-color: #F0F4FF !important;
}

/* Fix hero title first line (inherits var(--primary) which is dark navy) */
[data-theme="dark"] .hero-title span {
    color: #F0F4FF;
    -webkit-text-fill-color: #F0F4FF;
}

/* ── Cards ── */
[data-theme="dark"] .card,
[data-theme="dark"] .card-cyber {
    background: rgba(17, 24, 39, 0.95);
    border-color: rgba(10, 91, 255, 0.15);
}

[data-theme="dark"] .card:hover,
[data-theme="dark"] .card-cyber:hover {
    border-color: rgba(10, 91, 255, 0.35);
    box-shadow: 0 20px 50px rgba(10, 91, 255, 0.18);
}

/* ── Section Backgrounds ── */
[data-theme="dark"] section[style*="background: var(--bg-secondary)"],
[data-theme="dark"] .section-padding[style*="background: var(--bg-secondary)"] {
    background: #111827 !important;
}

/* ── Services ── */
[data-theme="dark"] .service-card {
    background: rgba(17, 24, 39, 0.95);
    border-color: rgba(10, 91, 255, 0.15);
}

[data-theme="dark"] .services-block {
    background: rgba(17, 24, 39, 0.95);
    border-color: rgba(10, 91, 255, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.30);
}

[data-theme="dark"] .services-block-title {
    color: #F0F4FF;
}

[data-theme="dark"] .services-block-header p {
    color: #A8B8D8;
}

[data-theme="dark"] .service-icon-wrapper {
    background: rgba(10, 91, 255, 0.12);
}

/* ── Pillars ── */
[data-theme="dark"] .pillar-card {
    background: rgba(17, 24, 39, 0.90);
    border-color: rgba(10, 91, 255, 0.15);
}

/* ── Stats ── */
[data-theme="dark"] .stat-number {
    color: #F0F4FF;
}

/* ── Why Hackable animated shape container ── */
[data-theme="dark"] div[style*="background:linear-gradient(160deg,#EEF2FF"] {
    background: linear-gradient(160deg, #111827 0%, #162033 100%) !important;
    border-color: rgba(10, 91, 255, 0.15) !important;
}

/* ── Founder / Team Cards ── */
[data-theme="dark"] .founder-card {
    background: rgba(17, 24, 39, 0.95);
    border-color: rgba(10, 91, 255, 0.15);
}

[data-theme="dark"] .founder-title {
    color: #F0F4FF;
}

/* ── Contact Form ── */
[data-theme="dark"] .contact-form-wrapper,
[data-theme="dark"] .contact-card {
    background: rgba(17, 24, 39, 0.95);
    border-color: rgba(10, 91, 255, 0.15);
}

[data-theme="dark"] .contact-form {
    background: rgba(17, 24, 39, 0.95);
    border-color: rgba(10, 91, 255, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.30);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-control {
    background: rgba(11, 16, 32, 0.80);
    border-color: rgba(10, 91, 255, 0.20);
    color: #F0F4FF;
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder,
[data-theme="dark"] .form-control::placeholder {
    color: #64748B;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-control:focus {
    border-color: rgba(10, 91, 255, 0.50);
    background: rgba(11, 16, 32, 0.95);
    box-shadow: 0 0 0 3px rgba(10, 91, 255, 0.15);
}

[data-theme="dark"] .form-label {
    color: #A8B8D8;
}

[data-theme="dark"] .form-group.checkbox-group label {
    color: #A8B8D8;
}

/* ── Blog Cards ── */
[data-theme="dark"] .blog-meta {
    color: #64748B;
}

[data-theme="dark"] .blog-title-link {
    color: #F0F4FF;
}

[data-theme="dark"] .blog-title-link:hover {
    color: #F0F4FF;
}

/* ── Talk Cards ── */
[data-theme="dark"] .talk-card {
    background: rgba(17, 24, 39, 0.95);
    border-color: rgba(10, 91, 255, 0.15);
}

[data-theme="dark"] .talk-tag {
    color: #F0F4FF;
}

/* ── Messaging Buttons (Telegram / WhatsApp) ── */
[data-theme="dark"] .messaging-telegram,
[data-theme="dark"] .messaging-telegram:hover {
    color: #F0F4FF;
}

/* ── Buttons ── */
[data-theme="dark"] .btn-secondary {
    border-color: rgba(240, 244, 255, 0.30);
    color: #F0F4FF;
}

[data-theme="dark"] .btn-secondary:hover {
    background: rgba(240, 244, 255, 0.10);
    border-color: #F0F4FF;
}

/* ── Lang Button ── */
[data-theme="dark"] .lang-link {
    border-color: var(--secondary);
    background: rgba(10, 91, 255, 0.15);
    color: #F0F4FF !important;
}

[data-theme="dark"] .lang-link:hover {
    background: rgba(10, 91, 255, 0.30);
    color: #ffffff !important;
}

/* ── Footer ── */
[data-theme="dark"] .footer {
    background: #071B3D;
    border-top-color: rgba(10, 91, 255, 0.20);
}

[data-theme="dark"] .footer-col h4 {
    color: #F0F4FF;
}

[data-theme="dark"] .footer-info-col p {
    color: #A8B8D8;
}

[data-theme="dark"] .footer-links a {
    color: #A8B8D8;
}

[data-theme="dark"] .footer-links a:hover {
    color: #F0F4FF;
}

[data-theme="dark"] .footer-copy,
[data-theme="dark"] .footer-legal-links a {
    color: #64748B;
}

[data-theme="dark"] .footer-legal-links a:hover {
    color: #F0F4FF;
}

[data-theme="dark"] .footer-bottom {
    border-top-color: rgba(10, 91, 255, 0.12);
}

/* ── Social Buttons in dark footer ── */
[data-theme="dark"] .social-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #A8B8D8;
}

[data-theme="dark"] .social-btn:hover {
    background: rgba(10, 91, 255, 0.15);
    border-color: var(--secondary);
    color: #F0F4FF;
}

/* ── Badge ── */
[data-theme="dark"] .badge-cyber {
    background: rgba(10, 91, 255, 0.15);
    border-color: rgba(10, 91, 255, 0.35);
    color: #F0F4FF;
}

[data-theme="dark"] .badge-gold {
    background: rgba(21, 74, 159, 0.20);
    border-color: rgba(21, 74, 159, 0.40);
    color: #F0F4FF;
}

/* ── Help Intake Card (services page) ── */
[data-theme="dark"] .help-intake-card {
    background: linear-gradient(135deg, #111827 0%, #162033 100%);
    border-color: rgba(10, 91, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.30);
}

[data-theme="dark"] .help-intake-card h3 {
    color: #F0F4FF;
}

[data-theme="dark"] .help-intake-card p {
    color: #A8B8D8;
}

/* ── Messaging Buttons ── */
[data-theme="dark"] .telegram-btn {
    background: rgba(0, 136, 204, 0.15);
    border-color: rgba(0, 136, 204, 0.30);
    color: #F0F4FF;
}

[data-theme="dark"] .whatsapp-btn {
    background: rgba(37, 211, 102, 0.10);
    border-color: rgba(37, 211, 102, 0.25);
    color: #7DDEA8;
}

/* ── Hero Visual Container (first animated shape) ── */
[data-theme="dark"] .hero-visual,
[data-theme="dark"] .interactive-center-emblem {
    filter: none;
}

/* ======================================================
   THEME TOGGLE BUTTON
====================================================== */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--text-secondary);
    flex-shrink: 0;
    padding: 0;
    outline: none;
    position: relative;
    overflow: hidden;
}

.theme-toggle-btn:hover {
    background: rgba(10, 91, 255, 0.10);
    border-color: var(--secondary);
    color: var(--secondary);
    transform: scale(1.08);
}

/* Icon visibility logic */
.theme-toggle-btn .icon-sun,
.theme-toggle-btn .icon-moon {
    width: 18px;
    height: 18px;
    position: absolute;
    transition: opacity 0.25s ease, transform 0.35s ease;
}

/* Light mode: show moon (to switch to dark) */
.theme-toggle-btn .icon-moon { opacity: 1; transform: scale(1) rotate(0deg); }
.theme-toggle-btn .icon-sun  { opacity: 0; transform: scale(0.5) rotate(-45deg); }

/* Dark mode: show sun (to switch to light) */
[data-theme="dark"] .theme-toggle-btn .icon-moon { opacity: 0; transform: scale(0.5) rotate(45deg); }
[data-theme="dark"] .theme-toggle-btn .icon-sun  { opacity: 1; transform: scale(1) rotate(0deg); }

[data-theme="dark"] .theme-toggle-btn {
    border-color: rgba(10, 91, 255, 0.25);
    color: #A8B8D8;
}

[data-theme="dark"] .theme-toggle-btn:hover {
    background: rgba(10, 91, 255, 0.15);
    border-color: var(--secondary);
    color: #F0F4FF;
}

/* ── Nav actions wrapper (lang + theme together) ── */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ======================================================
   RESPONSIVE DARK-MODE OVERRIDES
====================================================== */
/* Mobile nav menu in dark mode */
@media (max-width: 768px) {
    [data-theme="dark"] .nav-menu {
        background: rgba(11, 16, 32, 0.98);
        border-color: rgba(10, 91, 255, 0.20);
    }

    [data-theme="dark"] .nav-link {
        color: #A8B8D8;
        border-bottom-color: rgba(10, 91, 255, 0.10);
    }

    /* Theme toggle on mobile — make touch-friendly */
    .theme-toggle-btn {
        width: 42px;
        height: 42px;
    }
}

/* ── Animated Shape Container (Why Choose Hackable section) ── */
.anim-shape-container {
    background: linear-gradient(160deg, #EEF2FF 0%, #F5F8FF 100%);
    border: 1px solid rgba(10, 91, 255, 0.10);
    box-shadow: 0 0 40px rgba(10, 91, 255, 0.06);
}

[data-theme="dark"] .anim-shape-container {
    background: linear-gradient(160deg, #0D1530 0%, #111827 100%);
    border-color: rgba(10, 91, 255, 0.18);
    box-shadow: 0 0 40px rgba(10, 91, 255, 0.12);
}

/* ── Hero Visual Card (first animated shape) ── */
.hero-visual {
    background: rgba(10, 91, 255, 0.04);
    border: 1px solid rgba(10, 91, 255, 0.12);
    border-radius: var(--radius-lg);
}

[data-theme="dark"] .hero-visual {
    background: rgba(10, 91, 255, 0.06);
    border-color: rgba(10, 91, 255, 0.20);
}

/* ── Dark mode: article/blog inner sections ── */
[data-theme="dark"] .article-header,
[data-theme="dark"] .article-content {
    background: transparent;
}

[data-theme="dark"] blockquote {
    background: rgba(10, 91, 255, 0.08);
    border-left-color: var(--secondary);
    color: var(--text-secondary);
}

/* ── Smooth theme transition on all elements ── */
*, *::before, *::after {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.2s ease, box-shadow 0.3s ease;
}
/* Override transition for animated SVG elements to not break SMIL */
svg *, animate, animateTransform { transition: none !important; }


