:root {
    /* Premium Color Palette */
    --bg-dark: #05080f;
    /* Deeper dark */
    --bg-card: rgba(22, 27, 34, 0.4);
    /* Glassmorphism */
    --card-border: rgba(255, 255, 255, 0.08);
    --primary: #00f0ff;
    /* Cyber cyan */
    --primary-glow: rgba(0, 240, 255, 0.6);
    --secondary: #1f2430;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #00ff88;
    /* Cyber green */
    --white: #ffffff;
    --container-width: 1100px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Global Breathing Frame */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10000;
    box-shadow: inset 0 0 120px rgba(0, 240, 255, 0.2);
    animation: frame-breathing 5s infinite alternate ease-in-out;
}

@keyframes frame-breathing {
    0% {
        box-shadow: inset 0 0 80px rgba(0, 240, 255, 0.15);
    }

    100% {
        box-shadow: inset 0 0 180px rgba(0, 240, 255, 0.35);
    }
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

h1,
h2,
h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--white);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Header & Nav */
header {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(5, 8, 15, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 90px;
    width: auto;
    vertical-align: middle;
    margin-right: 15px;
    border-radius: 50%;
    object-fit: cover;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo .it {
    color: var(--primary);
    margin-left: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.lang-selector {
    margin-left: 1rem;
}

#language-selector {
    background: rgba(20, 5, 10, 0.4);
    color: var(--white);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-family: 'Space Grotesk', sans-serif;
    outline: none;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

#language-selector:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

#language-selector option {
    background: #0a0e17;
    color: var(--white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-primary {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.btn-primary:hover {
    background-color: var(--primary);
    color: #000;
    box-shadow: 0 0 25px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    margin-left: 1rem;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 100px 0;
    scroll-margin-top: 80px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.bg-dark {
    background-color: #0d1117;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 80% 20%, rgba(0, 240, 255, 0.05), transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(0, 255, 136, 0.03), transparent 40%),
        var(--bg-dark);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Threat Landscape (Necessity Builder) */
.threat-landscape {
    padding: 120px 0;
    background: linear-gradient(to bottom, var(--bg-dark), #0a0e17, var(--bg-dark));
    position: relative;
}

.threat-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem;
    background: rgba(20, 5, 10, 0.4);
    border: 1px solid rgba(255, 50, 50, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(255, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.threat-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff3333, transparent);
    opacity: 0.8;
}

.threat-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 50, 50, 0.1);
    color: #ff5555;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 50, 50, 0.2);
}

.threat-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.threat-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 400;
}

.threat-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #a0a8b5;
    margin-bottom: 1.5rem;
}

.threat-content p strong {
    color: var(--white);
}

.alternative-text {
    margin-top: 2rem;
    font-size: 1.25rem !important;
    color: var(--white) !important;
    border-left: 3px solid var(--primary);
    padding-left: 1.5rem;
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.05), transparent);
}

.alternative-text strong {
    color: var(--primary) !important;
}

.threat-cta {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.manifesto {
    font-size: 1.4rem !important;
    color: var(--primary) !important;
    margin-bottom: 0 !important;
    font-weight: 300;
}

.manifesto strong {
    display: block;
    margin-top: 0.5rem;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.05);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition);
}

.service-card:hover .icon {
    transform: scale(1.1) translateY(-5px);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.card-list {
    font-size: 0.9rem;
}

.card-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.card-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Methodology */
.info-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.info-text p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.methodology-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.methodology-steps .step {
    padding-left: 1rem;
    border-left: 2px solid var(--primary);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.methodology-steps .step strong {
    display: block;
    color: var(--white);
    margin-bottom: 0.2rem;
}

.methodology-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--secondary);
    opacity: 0.85;
    /* Toning down the brightness */
    transition: var(--transition);
}

.methodology-image:hover {
    opacity: 1;
}

/* Contact */
/* Contact Section Redesign */
.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    border-color: rgba(0, 240, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.contact-card .icon {
    font-size: 3rem;
    margin-bottom: 2rem;
    display: inline-block;
}

.contact-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.contact-email a {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.address-box {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.secure-card {
    border-color: rgba(0, 255, 136, 0.1);
}

.secure-card:hover {
    border-color: var(--accent);
}

.secure-numbers {
    font-size: 1.2rem;
    color: var(--accent) !important;
}

.simplex-qr {
    margin-top: 2rem;
}

.simplex-qr img {
    margin-top: 0.5rem;
    width: 150px;
    height: 150px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.simplex-qr img:hover {
    transform: scale(1.1);
    border-color: var(--accent);
}

.contact-card strong {
    color: var(--white);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    background: var(--bg-card);
    border: 1px solid var(--secondary);
    padding: 1rem;
    color: var(--white);
    border-radius: 6px;
    outline: none;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--secondary);
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--cyan);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--cyan);
    transition: var(--transition);
}

footer a:hover {
    color: var(--white);
    text-shadow: 0 0 10px var(--cyan);
}

footer a:hover::after {
    width: 100%;
}

.learn-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.learn-more::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.learn-more:hover {
    color: var(--white);
    padding-left: 5px;
}

.learn-more:hover::after {
    width: 100%;
}

/* Scrolled Header */
header.scrolled {
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Subpage Styles */
.subpage header {
    background: rgba(10, 12, 16, 0.95);
}

.subpage-hero {
    padding: 160px 0 60px;
    background: linear-gradient(to bottom, #1d2b3a, var(--bg-dark));
    text-align: center;
}

.subpage-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.subpage-hero .hero-image {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    object-fit: contain;
    margin-bottom: 2rem;
    border-radius: 12px;
}

.content-section {
    padding: 60px 0 100px;
}

.detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.detailed-grid.single {
    grid-template-columns: 1fr;
}

.text-block h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.text-block p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.feature-card.wide {
    grid-column: 1 / -1;
}

.feature-card h2,
.feature-card h3 {
    margin-bottom: 1.5rem;
}

.feature-card ul {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.feature-card ul li {
    margin-bottom: 0.8rem;
}

.feature-card ul li strong {
    color: var(--white);
}

.disclaimer-box {
    margin-top: 4rem;
    padding: 2rem;
    background: #161b22;
    border-left: 4px solid var(--text-muted);
    border-radius: 8px;
}

.disclaimer-box.warning {
    border-left-color: #d29922;
}

.disclaimer-box h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.disclaimer-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
}


@media (max-width: 768px) {
    .detailed-grid {
        grid-template-columns: 1fr;
    }

    .subpage-hero h1 {
        font-size: 2.2rem;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
    }

    .menu-toggle span {
        width: 30px;
        height: 2px;
        background-color: var(--white);
        transition: var(--transition);
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
        border-bottom: 1px solid var(--secondary);
    }

    .nav-links.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .info-split,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.background-clip-fix {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Testimonials Paradox */
.testimonials-paradox {
    padding: 140px 0;
    background: #000;
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(0, 240, 255, 0.05);
}

.testimonials-paradox h2 {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.9;
}

.paradox-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.testimonials-paradox p {
    font-size: 1.3rem;
    line-height: 2;
    color: #a0a8b5;
    font-weight: 300;
    font-style: italic;
}

.testimonials-paradox strong {
    color: var(--white);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.testimonials-paradox::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--primary), transparent);
}

/* Testimonials Paradox */
.testimonials-paradox {
    padding: 140px 0;
    background: #000;
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(0, 240, 255, 0.05);
}

.testimonials-paradox h2 {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.9;
}

.paradox-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.testimonials-paradox p {
    font-size: 1.3rem;
    line-height: 2;
    color: #a0a8b5;
    font-weight: 300;
    font-style: italic;
}

.testimonials-paradox strong {
    color: var(--white);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.testimonials-paradox::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--primary), transparent);
}