/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-void: #050505;
    --bg-dark: #0a0f1c;
    --primary-neon: #00f3ff;
    --secondary-neon: #bc13fe;
    --matrix-green: #0aff00;
    --text-white: #ffffff;
    --text-dim: #a0a0c0;

    --font-heading: 'Orbitron', sans-serif;
    --font-ui: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(16px);

    --glow-primary: 0 0 20px rgba(0, 243, 255, 0.5);
    --glow-secondary: 0 0 20px rgba(188, 19, 254, 0.5);

    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-void);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   2. TYPOGRAPHY & UTILITIES
   ========================================= */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-neon {
    color: var(--primary-neon);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.7);
}

.text-purple {
    color: var(--secondary-neon);
    text-shadow: 0 0 10px rgba(188, 19, 254, 0.7);
}

.text-green {
    color: var(--matrix-green);
    text-shadow: 0 0 10px rgba(10, 255, 0, 0.7);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    display: inline-block;
    position: relative;
    z-index: 2;
}

.divider-line {
    width: 60px;
    height: 3px;
    background: var(--primary-neon);
    margin: 20px auto 0;
    box-shadow: var(--glow-primary);
}

/* =========================================
   3. COMPONENTS
   ========================================= */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    font-family: var(--font-ui);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--primary-neon);
    color: var(--primary-neon);
}

.btn-primary:hover {
    background: var(--primary-neon);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.6);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-white);
}

.btn-outline:hover {
    border-color: var(--text-white);
    background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* =========================================
   4. LAYOUT
   ========================================= */
/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 80px;
    z-index: 1000;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon i {
    color: var(--primary-neon);
    font-size: 1.8rem;
    filter: drop-shadow(0 0 5px var(--primary-neon));
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding: 5px 0;
    color: var(--text-dim);
}

.nav-link.active,
.nav-link:hover {
    color: var(--text-white);
}

.nav-link span {
    color: var(--primary-neon);
    font-size: 0.9rem;
    margin-right: 5px;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 110px;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    width: 90%;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    padding: 20px;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: all;
}

.mobile-links li {
    margin: 15px 0;
    text-align: center;
}

.mobile-links a {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    display: block;
}

/* Canvas Background */
#cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* Offset for navbar */
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(10, 255, 0, 0.1);
    border: 1px solid rgba(10, 255, 0, 0.3);
    color: var(--matrix-green);
    font-family: var(--font-ui);
    font-weight: 600;
    margin-bottom: 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--matrix-green);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px var(--matrix-green);
    animation: blink 2s infinite;
}

.hero-text h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 40px;
    border-left: 2px solid var(--primary-neon);
    padding-left: 20px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-family: var(--font-ui);
    color: var(--text-dim);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-top: 5px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 2px;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

/* Cards (Services) */
.card {
    padding: 40px 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-neon);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-neon);
    margin-bottom: 25px;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-dim);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.link-arrow {
    color: var(--primary-neon);
    font-family: var(--font-ui);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.link-arrow:hover {
    gap: 15px;
}

/* Project Cards */
.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 20px;
    left: 20px;
}

.project-cat {
    background: var(--bg-void);
    color: var(--primary-neon);
    font-family: var(--font-ui);
    font-weight: 700;
    padding: 4px 12px;
    font-size: 0.8rem;
    border: 1px solid var(--primary-neon);
}

.project-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.project-content p {
    color: var(--text-dim);
    margin-bottom: 20px;
    flex-grow: 1;
}

.tech-stack {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.tech-stack span {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 4px;
}

/* Blog/Feed */
.feed-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
}

.feed-card {
    min-width: 320px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.feed-card img {
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
}

.feed-content {
    padding: 25px;
}

.feed-date {
    font-family: var(--font-ui);
    color: var(--secondary-neon);
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.feed-content h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.read-more {
    font-family: var(--font-ui);
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.9rem;
}

.read-more:hover {
    color: var(--primary-neon);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
}

.contact-info {
    padding: 60px;
    background: rgba(0, 243, 255, 0.02);
    border-right: 1px solid var(--glass-border);
}

.contact-info p {
    color: var(--text-dim);
    margin-bottom: 40px;
    margin-top: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    color: var(--text-white);
}

.info-item i {
    color: var(--primary-neon);
    font-size: 1.2rem;
}

.social-hex {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.social-hex a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    transition: all 0.3s;
}

.social-hex a:hover {
    background: var(--primary-neon);
    color: var(--bg-void);
    border-color: var(--primary-neon);
}

.cyber-form {
    padding: 60px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 15px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-neon);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 80px;
    text-align: center;
}

.footer p {
    font-family: var(--font-ui);
    letter-spacing: 2px;
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--primary-neon);
}


/* =========================================
   5. ANIMATIONS
   ========================================= */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* =========================================
   6. RESPONSIVE
   ========================================= */
@media (max-width: 960px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
        color: var(--primary-neon);
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding: 40px;
    }

    .cyber-form {
        padding: 40px;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .navbar {
        width: 95%;
        padding: 0 15px;
        top: 10px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-section {
        padding-top: 140px;
        align-items: flex-start;
        height: auto;
        min-height: 100vh;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }

    .content-wrapper {
        padding: 30px 20px;
        margin-top: 130px;
        margin-bottom: 40px;
    }

    .content-wrapper h1 {
        font-size: 2.2rem;
    }
}

/* =========================================
   7. SUB-PAGE CONTENT
   ========================================= */
.content-wrapper {
    margin-top: 120px;
    padding: 60px;
    margin-bottom: 80px;
}

.content-wrapper h1 {
    font-size: 3rem;
    color: var(--primary-neon);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.content-wrapper h2 {
    font-size: 2rem;
    color: var(--text-white);
    margin-top: 50px;
    margin-bottom: 25px;
    border-left: 4px solid var(--secondary-neon);
    padding-left: 20px;
}

.content-wrapper h3 {
    font-size: 1.5rem;
    color: var(--text-dim);
    margin-top: 40px;
    margin-bottom: 20px;
}

.content-wrapper p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #cbd5e1;
}

.content-wrapper ul,
.content-wrapper ol {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 25px;
}

.content-wrapper li {
    margin-bottom: 10px;
    padding-left: 10px;
    color: #e2e8f0;
}

.post-meta {
    display: flex;
    gap: 20px;
    color: var(--text-dim);
    margin-bottom: 40px;
    font-family: var(--font-ui);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px;
}

.post-meta span i {
    color: var(--secondary-neon);
    margin-right: 8px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid var(--primary-neon);
    color: var(--primary-neon);
    font-size: 0.8rem;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-family: var(--font-ui);
}

.back-link {
    display: inline-block;
    margin-top: 40px;
    color: var(--text-dim);
    font-family: var(--font-ui);
    margin-bottom: 20px;
}

.back-link:hover {
    color: var(--primary-neon);
}

/* Grid fixes for subpages */
.grid-2>div,
.grid-3>div {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 30px;
        margin-top: 100px;
    }

    .content-wrapper h1 {
        font-size: 2rem;
    }
}