:root {
    --primary: #00d4ff;
    --primary-glow: rgba(0, 212, 255, 0.4);
    --secondary: #7000ff;
    --secondary-glow: rgba(112, 0, 255, 0.3);
    --bg-dark: #050507;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --radius: 12px;
    --radius-xl: 24px;
    --purp: #a855f7;
    --slate: #1e293b;
    --brand: var(--primary);
    --glow: 0 0 20px rgba(168, 85, 247, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.3s;
    border-bottom: 1px solid transparent;
}

nav.scrolled {
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(20px);
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    opacity: 1;
}

.btn-contact {
    padding: 10px 24px;
    background: var(--primary);
    color: #000 !important;
    border-radius: 30px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s;
    opacity: 1 !important;
}

.btn-contact:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--primary-glow);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    transition: 0.3s;
    border-radius: 2px;
}

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

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

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

/* Hero Section */
.hero {
    padding: 200px 0 100px;
    background: radial-gradient(circle at 10% 10%, var(--secondary-glow), transparent 40%),
        radial-gradient(circle at 90% 90%, var(--primary-glow), transparent 40%);
    overflow: hidden;
    position: relative;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 80px;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 30px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

/* Floating Elements */
.floating-node {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.node-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-glow);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.node-2 {
    width: 250px;
    height: 250px;
    background: var(--secondary-glow);
    bottom: 10%;
    left: 20%;
    animation-delay: -5s;
}

.node-3 {
    width: 180px;
    height: 180px;
    background: var(--purp);
    opacity: 0.2;
    top: 40%;
    right: 20%;
    animation-delay: -10s;
}

.mesh-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(1000px) rotateX(60deg) rotateZ(15deg) translateY(-20%);
    z-index: -2;
    pointer-events: none;
    animation: meshScroll 40s linear infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -60px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

@keyframes meshScroll {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 500px;
    }
}

@media (max-width: 991px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-visual {
        height: 300px;
        order: -1;
    }

    .mesh-grid {
        width: 150%;
        height: 150%;
    }
}

/* Grid & Cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    margin: 60px 0;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.card-img-wrap {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s;
}

.card:hover .card-img-wrap img {
    transform: scale(1.1);
}

.card-body {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-cat {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 16px;
    transition: color 0.3s;
}

.card:hover .card-title {
    color: var(--primary);
}

.card-snip {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-link {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-link::after {
    content: '→';
    transition: transform 0.3s;
}

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

/* Article Layout */
.article-wrap {
    max-width: 900px;
    margin: 180px auto 100px;
}

.article-header {
    margin-bottom: 60px;
    text-align: center;
}

.article-title {
    font-size: 4rem;
    margin: 24px 0;
}

.article-content {
    font-size: 1.15rem;
    color: #cbd5e1;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 32px;
}

.article-content h2 {
    margin: 48px 0 24px;
    font-size: 2.2rem;
}

.article-content strong {
    color: var(--primary);
}

.author-box {
    margin-top: 80px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    gap: 24px;
    align-items: center;
}

.trust-badges {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Contact Styles */
.study-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 60px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

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

.form-label {
    display: block;
    font-family: 'Space Mono', monospace;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input {
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 20px;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--primary-glow);
}

/* Footer Section */
footer {
    background: #020204;
    padding: 100px 0 40px;
    border-top: 1px solid var(--border);
}

footer .logo {
    font-size: 1.8rem;
    margin-bottom: 24px;
    display: block;
}

footer h4 {
    color: #fff;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 12px;
}

footer ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}

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

.copyright {
    text-align: center;
    color: #475569;
    font-size: 0.9rem;
    padding-top: 60px;
    border-top: 1px solid var(--border);
    margin-top: 80px;
}

/* Responsive */
@media (max-width: 968px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        background: rgba(5, 5, 7, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        padding: 50px;
        transform: translateX(100%);
        transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero {
        padding: 150px 0 80px;
    }

    .study-box {
        padding: 30px;
    }

    .article-title {
        font-size: 2.5rem;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes scan {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}