/* ===== CYBERPUNK THEME CSS ===== */

/* ===== CUSTOM FONTS ===== */
@font-face {
    font-family: 'Receiptional Receipt';
    src: url('../fonts/Receiptional Receipt.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CayanoPro';
    src: url('../fonts/CayanoPro-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'UnifontExMono';
    src: url('../fonts/UnifontExMono.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cyber-purple: #534789;
    --cyber-pink: #657DAA;
    --cyber-cyan: #65B1C9;
    --cyber-blue: #405580;
    --cyber-teal: #87DDDD;
    --dark-bg: #0A0A0F;
    --darker-bg: #050508;
    --card-bg: #1A1A2E;
    --text-primary: #FFFFFF;
    --text-secondary: #A8A8B3;
    --border-color: rgba(101, 177, 201, 0.2);
}

body {
    font-family: 'CayanoPro', 'Rajdhani', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.glow-text {
    color: var(--cyber-teal);
    text-shadow: 0 0 10px var(--cyber-teal),
                 0 0 20px var(--cyber-teal),
                 0 0 30px var(--cyber-teal);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        text-shadow: 0 0 10px var(--cyber-teal),
                     0 0 20px var(--cyber-teal);
    }
    50% { 
        text-shadow: 0 0 15px var(--cyber-teal),
                     0 0 30px var(--cyber-teal),
                     0 0 40px var(--cyber-cyan);
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    position: relative;
    letter-spacing: 1px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyber-purple), var(--cyber-cyan));
    transition: width 0.3s;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 2rem;
    overflow: hidden;
    perspective: 1000px;
}

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

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
}

/* Screen reader only - for SEO */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Hero main text - simple & clean */
.hero-main-text {
    margin-bottom: 2rem;
}

.hero-tagline {
    font-family: 'Receiptional Receipt', 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: normal;
    line-height: 1.5;
    color: var(--text-primary);
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    word-spacing: normal;
}

.cyber-gradient {
    background: linear-gradient(135deg, var(--cyber-purple), var(--cyber-pink), var(--cyber-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--cyber-cyan);
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: 2px;
    font-family: 'CayanoPro', 'Rajdhani', sans-serif;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    font-family: 'CayanoPro', 'Rajdhani', sans-serif;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cyber-button {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    letter-spacing: 1px;
    font-family: 'CayanoPro', 'Orbitron', sans-serif;
}

.cyber-button span {
    position: relative;
    z-index: 2;
}

.cyber-button.primary {
    background: linear-gradient(135deg, var(--cyber-purple), var(--cyber-pink));
    border-color: var(--cyber-purple);
    color: white;
}

.cyber-button.secondary {
    background: transparent;
    color: var(--cyber-cyan);
    border-color: var(--cyber-cyan);
}

.cyber-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cyber-button:hover::before {
    width: 300px;
    height: 300px;
}

.cyber-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(189, 0, 255, 0.5);
}

.cyber-button.secondary:hover {
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.5);
}

/* Animated Grid Background - MATHEMATICALLY PERFECT SQUARES */
.cyber-grid {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(to bottom, rgba(101, 177, 201, 0.45) 3px, transparent 3px),
        linear-gradient(to right, rgba(101, 177, 201, 0.45) 3px, transparent 3px);
    /* 
    MATH: rotateX(60deg) makes vertical lines appear cos(60°) = 0.5 shorter
    To get VISUAL squares (not actual squares):
    - Horizontal spacing: 180px
    - Vertical spacing: 180px ÷ 0.5 = 360px
    Result: When tilted, 180×360 looks like 180×180!
    */
    background-size: 180px 360px;
    z-index: 1;
    will-change: transform, background-position;
    transform-style: preserve-3d;
    transform: perspective(1200px) rotateX(60deg) translateZ(-400px);
    transform-origin: center center;
    /* Very fast - 2s per cycle */
    animation: grid-move-forward 2s linear infinite;
    /* Anti-flicker */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    image-rendering: crisp-edges;
}

@keyframes grid-move-forward {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 360px;
    }
}

/* Floating Elements */
.floating-element {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--cyber-purple), var(--cyber-cyan));
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(40px);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

/* ===== TERMINAL CONTACT PAGE (WITH GRID SCAN CANVAS) ===== */
.terminal-body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'UnifontExMono', 'Lucida Console', 'Courier New', 'Monaco', monospace;
    font-size: 26.1px;
    line-height: 26.1px;
    padding: 3rem 2rem;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Grid Scan Canvas Background */
.grid-scan-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.terminal-container {
    max-width: 650px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.terminal-content {
    margin-block-end: 26.1px;
    margin-block-start: 26.1px;
    margin-inline-end: 0px;
    margin-inline-start: 0px;
}

.terminal-content p {
    margin: 0;
    line-height: 26.1px;
}

.terminal-content br {
    line-height: 26.1px;
}

.terminal-content a {
    color: #3dd6d0;
    text-decoration: none;
}

.terminal-content a:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
    .terminal-body {
        padding: 2rem 1rem;
        font-size: 18px;
        line-height: 18px;
    }
    
    .terminal-content {
        margin-block-end: 18px;
        margin-block-start: 18px;
    }
    
    .terminal-content p {
        line-height: 18px;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 2rem;
        padding: 0 1rem;
        line-height: 1.4;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .cyber-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    /* Contact Page Mobile */
    .contact-page {
        padding: 2rem 1.5rem;
    }
    
    .contact-container {
        max-width: 100%;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-section .contact-title {
        font-size: 1.8rem;
    }
    
    .about-text {
        font-size: 1.1rem;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .quick-info {
        flex-direction: column;
        gap: 1.5rem;
    }
}
/* ===== PROJECTS PAGE (WITH LIQUID ETHER BACKGROUND) ===== */
.projects-body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'UnifontExMono', 'Lucida Console', 'Courier New', 'Monaco', monospace;
    font-size: 26.1px;
    line-height: 26.1px;
    padding: 3rem 2rem;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.liquid-ether-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.projects-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.projects-content {
    padding: 2rem 0;
}

.projects-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: #65B1C9;
    margin-bottom: 3rem;
    letter-spacing: 2px;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-item {
    background: rgba(26, 29, 36, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(101, 177, 201, 0.3);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
}

.project-item:hover {
    border-color: #65B1C9;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(101, 177, 201, 0.2);
}

.project-item h2 {
    font-size: 1.8rem;
    color: #87DDDD;
    margin-bottom: 0.8rem;
}

.project-description {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(101, 177, 201, 0.2);
    color: #87DDDD;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(101, 177, 201, 0.3);
}

.projects-content a {
    color: #3dd6d0;
    text-decoration: none;
}

.projects-content a:hover {
    text-decoration: underline;
}

/* Projects Page Mobile */
@media (max-width: 768px) {
    .projects-body {
        padding: 2rem 1rem;
        font-size: 18px;
        line-height: 18px;
    }
    
    .projects-title {
        font-size: 2rem;
    }
    
    .project-item h2 {
        font-size: 1.4rem;
    }
}