/* ==========================================
   DESIGN SYSTEM - COSMIC GLASSMORPHISM
   ========================================== */

:root {
    /* Harmonious Color Palette */
    --color-bg: #030611;
    --color-bg-darker: #010207;
    --color-text-primary: #f0f4f9;
    --color-text-secondary: #a0aec0;
    
    /* Neon Accents */
    --color-accent-cyan: #00f0ff;
    --color-accent-purple: #bd00ff;
    --color-accent-pink: #ff007a;
    
    /* Neon Gradients */
    --gradient-neon: linear-gradient(135deg, var(--color-accent-cyan) 0%, var(--color-accent-purple) 100%);
    --gradient-cosmic: linear-gradient(180deg, var(--color-bg) 0%, #0d1226 100%);
    
    /* Glassmorphism Tokens */
    --glass-bg: rgba(6, 11, 30, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(0, 240, 255, 0.12);
    --glass-shadow: rgba(0, 0, 0, 0.45);
    
    /* Border Radius & Transitions */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .nav-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Canvas background stays underneath everything */
#space-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ==========================================
   GLASSMORPHISM BASE CLASS
   ========================================== */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 36px var(--glass-shadow);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow: 0 20px 48px rgba(0, 240, 255, 0.08), 0 8px 16px var(--glass-shadow);
    transform: translateY(-4px);
}

/* ==========================================
   NAVIGATION BAR
   ========================================== */

.navbar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition-smooth);
}

/* Add background blur when scrolled */
.navbar-container.scrolled {
    padding: 12px 0;
    background: rgba(3, 6, 17, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.nav-logo {
    font-size: 26px;
    font-weight: 800;
    text-decoration: none;
    color: var(--color-text-primary);
    letter-spacing: -0.5px;
    position: relative;
    transition: var(--transition-fast);
}

.nav-logo::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--color-accent-cyan);
    border-radius: 50%;
    bottom: 6px;
    right: -10px;
    box-shadow: 0 0 10px var(--color-accent-cyan);
}

.nav-logo:hover {
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-item {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-fast);
    position: relative;
    padding: 6px 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-neon);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.nav-item:hover {
    color: var(--color-text-primary);
}

.nav-item:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-text-primary);
    transition: var(--transition-smooth);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-section {
    min-height: 95vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
    padding-top: 100px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-glow {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--color-accent-cyan);
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
    margin-bottom: 24px;
    animation: pulseGlow 3s infinite alternate;
}

.hero-title {
    font-size: clamp(48px, 6vw, 76px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 16px;
}

.neon-text {
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.2));
}

.hero-subtitle {
    font-size: clamp(20px, 3.2vw, 28px);
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-desc {
    color: var(--color-text-secondary);
    font-size: 17px;
    max-width: 540px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition-smooth);
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-neon);
    color: #030611;
    box-shadow: 0 8px 24px rgba(0, 240, 255, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 12px 36px rgba(0, 240, 255, 0.45);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Hero 3D floating visual mockups */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 450px;
}

.floating-glass-sphere {
    position: relative;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15) 0%, rgba(0, 240, 255, 0.04) 60%, rgba(189, 0, 255, 0.12) 100%);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), inset 0 8px 16px rgba(255, 255, 255, 0.25), 0 0 40px rgba(0, 240, 255, 0.1);
    animation: floatAnim 6s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wireframe-cube {
    width: 120px;
    height: 120px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 12s linear infinite;
    border: 2px solid var(--color-accent-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5), inset 0 0 20px rgba(0, 240, 255, 0.3);
    border-radius: 8px;
}

.wireframe-cube::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 80px;
    height: 80px;
    border: 2px solid var(--color-accent-purple);
    box-shadow: 0 0 20px rgba(189, 0, 255, 0.5);
    border-radius: 6px;
}

/* ==========================================
   SECTION HEADER UTILITY
   ========================================== */

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
    padding-top: 100px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 12px;
    text-align: center;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--gradient-neon);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* ==========================================
   ABOUT SECTION
   ========================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.about-card {
    padding: 40px;
}

.about-card h3 {
    font-size: 22px;
    margin-bottom: 18px;
    color: var(--color-text-primary);
}

.about-card p {
    color: var(--color-text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

/* ==========================================
   CREATIONS SECTION
   ========================================== */

.creations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-image-wrapper {
    position: relative;
    height: 260px;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}

/* Premium Visual Mockups created with CSS */
.project-mockup-bg {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-mockup {
    background: radial-gradient(circle at center, #0e1635 0%, #030612 100%);
}

.app-mockup {
    background: radial-gradient(circle at center, #1b0e35 0%, #030612 100%);
}

.glowing-orb {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
}

.glowing-orb.cyan {
    background-color: var(--color-accent-cyan);
    top: -20px;
    left: -20px;
    animation: orbMove1 8s ease-in-out infinite alternate;
}

.glowing-orb.purple {
    background-color: var(--color-accent-purple);
    bottom: -20px;
    right: -20px;
    animation: orbMove2 8s ease-in-out infinite alternate;
}

.glowing-orb.pink {
    background-color: var(--color-accent-pink);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.25;
}

/* Voxel Cyber Neon Grid Graphic */
.isometric-grid {
    position: absolute;
    width: 160%;
    height: 160%;
    background-size: 30px 30px;
    background-image: 
        linear-gradient(to right, rgba(0, 240, 255, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 240, 255, 0.08) 1px, transparent 1px);
    transform: rotateX(60deg) rotateZ(-45deg);
    top: -30%;
    left: -30%;
}

.mockup-ui {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.mockup-hud {
    background: rgba(6, 11, 30, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
}

.mockup-hud.status {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
    color: var(--color-accent-cyan);
}

/* Phone Mockup Graphic */
.phone-frame {
    width: 140px;
    height: 220px;
    background: #0d1226;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(189, 0, 255, 0.15);
    padding: 8px;
    position: relative;
    transform: translateY(20px) rotate(-5deg);
    transition: var(--transition-smooth);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #040714;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    overflow: hidden;
}

.phone-header {
    width: 40px;
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    align-self: center;
}

.phone-chart {
    height: 70px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bar-chart {
    width: 18px;
    border-radius: 4px;
    background: var(--gradient-neon);
}

.bar-chart.chart-1 { height: 40px; }
.bar-chart.chart-2 { height: 55px; filter: hue-rotate(45deg); }
.bar-chart.chart-3 { height: 28px; filter: hue-rotate(-30deg); }

.phone-list-item {
    height: 22px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border-left: 3px solid var(--color-accent-pink);
}

/* Card Information */
.project-info {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}

.project-info h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--color-text-primary);
}

.project-info p {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.project-status {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent-cyan);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Rotate Mockup on Project Hover */
.project-card:hover .phone-frame {
    transform: translateY(12px) rotate(0deg) scale(1.05);
    border-color: rgba(0, 240, 255, 0.4);
}

/* ==========================================
   SKILLS SECTION
   ========================================== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.skill-card {
    padding: 32px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.skill-icon {
    font-size: 32px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.skill-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--color-text-primary);
}

.skill-card p {
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Custom glow borders on individual cards */
#skill-godot:hover { border-color: rgba(0, 240, 255, 0.4); }
#skill-app:hover { border-color: rgba(189, 0, 255, 0.4); }
#skill-design:hover { border-color: rgba(255, 0, 122, 0.4); }
#skill-python:hover { border-color: rgba(255, 208, 0, 0.4); }

/* ==========================================
   CONTACT SECTION
   ========================================== */

.contact-section {
    padding-top: 100px;
    padding-bottom: 100px;
    display: flex;
    justify-content: center;
}

.contact-container {
    max-width: 800px;
    width: 100%;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Cosmic light beam effect behind contact card */
.contact-container::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: pulseBeam 4s infinite alternate;
}

.contact-title {
    font-size: clamp(24px, 3.5vw, 36px);
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.contact-desc {
    color: var(--color-text-secondary);
    font-size: 16px;
    max-width: 580px;
    margin: 0 auto 36px auto;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
}

.contact-link-item:hover {
    color: var(--color-accent-cyan);
    border-color: rgba(0, 240, 255, 0.4);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
    transform: translateY(-2px);
}

.icon-svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
}

/* ==========================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================== */

@media (max-width: 992px) {
    .navbar {
        padding: 0 20px;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        min-height: auto;
        padding-top: 140px;
        padding-bottom: 60px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-visual {
        height: 320px;
    }
    
    .floating-glass-sphere {
        width: 220px;
        height: 220px;
    }
    
    .wireframe-cube {
        width: 90px;
        height: 90px;
    }
    
    .wireframe-cube::before {
        width: 60px;
        height: 60px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .creations-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 10px;
    }
    
    .navbar-container {
        padding: 15px 0;
    }
    
    .mobile-toggle {
        display: block;
        z-index: 101;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(3, 6, 17, 0.98);
        backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 100;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-item {
        font-size: 18px;
    }
    
    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .main-content {
        padding: 0 20px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        padding: 40px 20px;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 12px;
    }
    
    .contact-link-item {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   ANIMATIONS & KEYFRAMES
   ========================================== */

@keyframes floatAnim {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px rgba(0, 240, 255, 0.1); border-color: rgba(0, 240, 255, 0.2); }
    100% { box-shadow: 0 0 25px rgba(0, 240, 255, 0.25); border-color: rgba(0, 240, 255, 0.5); }
}

@keyframes pulseBeam {
    0% { opacity: 0.4; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes orbMove1 {
    0% { transform: translate(0px, 0px) scale(1); }
    100% { transform: translate(25px, 15px) scale(1.15); }
}

@keyframes orbMove2 {
    0% { transform: translate(0px, 0px) scale(1); }
    100% { transform: translate(-20px, -15px) scale(1.1); }
}
