:root {
    /* High Contrast Cyberpink Palette */
    --bg-dark: #050005;
    /* Near Pitch Black */
    --bg-card: #120014;
    /* Very Dark Purple/Black */
    --text-main: #e0ccff;
    --text-bright: #ffffff;
    --primary: #ff00ff;
    /* Magenta */
    --secondary: #d900ff;
    /* Electric Purple */
    --accent: #ff0a85;
    /* Hot Pink */
    --cyan: #00f3ff;
    --neon-blue: #4361ee;
    --neon-pink: #ff00ff;
    --neon-green: #39ff14;
    /* Neon Green */

    --font-heading: 'Jura', sans-serif;
    --font-body: 'Rajdhani', sans-serif;

    --spacing-md: 2rem;
    --spacing-lg: 4rem;
}



.light-theme {
    --bg-dark: #e1e2e7;
    --bg-card: #ffffff;
    --text-main: #565f89;
    --text-bright: #3763f4;
    /* Bright Blue */
    --primary: #3d59a1;
    --secondary: #9d7cd8;
    --accent: #f52a8c;
    --neon-blue: #0075ff;
    --neon-pink: #d900d9;
}

* {
    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;
}

canvas#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 90%);
    pointer-events: none;
    z-index: -1;
}

/* Tech / HUD Layout Decoration */
.layout-frame {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(255, 0, 255, 0.1);
    /* Subtle pink border */
    pointer-events: none;
    z-index: 50;
}

.corner-tl,
.corner-tr,
.corner-bl,
.corner-br {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
}

.corner-tl {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.corner-tr {
    top: -1px;
    right: -1px;
    border-left: none;
    border-bottom: none;
}

.corner-bl {
    bottom: -1px;
    left: -1px;
    border-right: none;
    border-top: none;
}

.corner-br {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.side-text-left,
.side-text-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--primary);
    opacity: 0.7;
}

.side-text-left {
    left: -40px;
}

.side-text-right {
    right: -40px;
    transform: translateY(-50%) rotate(90deg);
}

/* Typography & Layout */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--text-bright);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    backdrop-filter: blur(10px);
    background: rgba(26, 27, 38, 0.8);
    z-index: 100;
    border-bottom: 1px solid rgba(122, 162, 247, 0.1);
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.dot {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary);
}

/* Sections */
main {
    padding-top: 80px;
}

.section {
    padding: 6rem 10%;
    min-height: 60vh;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.highlight {
    color: var(--primary);
}

/* Hero */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    /* Ensure vertical stacking */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 0;
    position: relative;
}

.tech-badge {
    font-size: 0.8rem;
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    background: rgba(57, 255, 20, 0.1);
}

.hero-decoration-line {
    width: 100px;
    height: 2px;
    background: var(--primary);
    margin: 1rem auto;
    position: relative;
}

.hero-decoration-line::after {
    content: '';
    position: absolute;
    right: -10px;
    top: -4px;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.tech-stats {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* Glitch Effect Removed - Futuristic Clean Style */
.hero-content h1 {
    font-size: 6.5rem;
    /* Larger for that magazine impact */
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
    text-transform: uppercase;
    position: relative;
    color: var(--text-bright);
    letter-spacing: -2px;
    /* Tighter letter spacing for impact */
    text-shadow: 0 0 30px rgba(255, 0, 255, 0.4);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--secondary);
}

/* 
   Previous Glitch keyframes removed
*/

/* Cards */
.card {
    background: rgba(36, 40, 59, 0.7);
    border: 1px solid rgba(122, 162, 247, 0.2);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(5px);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.15);
    border-color: var(--primary);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tags span {
    display: inline-block;
    background: rgba(122, 162, 247, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-top: 1rem;
    border: 1px solid rgba(122, 162, 247, 0.2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(122, 162, 247, 0.5);
}

.btn-outline {
    border: 1px solid var(--text-main);
    color: var(--text-main);
    margin-left: 1rem;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        background: rgba(26, 27, 38, 0.95);
    }

    .hero-content h1 {
        font-size: 3rem;
        /* Scaled down from 6.5rem */
        letter-spacing: -1px;
    }

    .hero-section {
        padding: 0 1rem;
    }

    /* Hide decorative side text on small screens as it overlaps content */
    .side-text-left,
    .side-text-right {
        display: none;
    }

    .layout-frame {
        top: 10px;
        bottom: 10px;
        left: 10px;
        right: 10px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .tech-stats {
        font-size: 0.8rem;
        padding: 0 1rem;
        line-height: 1.6;
    }

    .tech-stats span {
        display: inline-block;
        margin: 0 0.25rem;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
        width: 100%;
    }

    .section {
        padding: 4rem 5%;
    }
}