/* ==========================================================================
   Aura Creative Tech Portfolio Style (Futuristic Neon Dark)
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
    --bg-dark: #050508;
    --bg-surface: rgba(10, 10, 18, 0.65);
    
    --neon-cyan: #06b6d4;
    --neon-purple: #a855f7;
    --neon-pink: #ec4899;
    --neon-green: #10b981;
    
    --border-dark: rgba(30, 27, 75, 0.5);
    --border-glow: rgba(6, 182, 212, 0.25);
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--neon-purple), var(--neon-cyan));
    border-radius: 4px;
}

body.portfolio-body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    cursor: none; /* Hide default cursor to enable custom cursor */
}

/* Enable default cursor fallback on touch screens */
@media (hover: none) and (pointer: coarse) {
    body.portfolio-body {
        cursor: default;
    }
    .custom-cursor, .custom-cursor-dot {
        display: none !important;
    }
}

/* ==========================================================================
   Custom Cursor
   ========================================================================== */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(6, 182, 212, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: 
        width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
        height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
        background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--neon-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    will-change: transform;
}

.custom-cursor.cursor-grow {
    width: 65px;
    height: 65px;
    background-color: rgba(6, 182, 212, 0.08);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

/* ==========================================================================
   Scanlines Overlay
   ========================================================================== */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    z-index: 98;
    pointer-events: none;
    opacity: 0.8;
}

/* Container */
.aura-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Header */
.header {
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-dark);
}

.home-nav-btn {
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.home-nav-btn:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo span {
    color: var(--neon-cyan);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--neon-cyan);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding: 8rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    filter: blur(40px);
}

.hero-content {
    max-width: 750px;
}

/* Avatar Ring */
.avatar-wrap {
    width: 110px;
    height: 110px;
    margin: 0 auto 2.5rem auto;
    border-radius: 50%;
    position: relative;
    padding: 5px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.25);
}

.avatar-inner {
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: var(--neon-cyan);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.gradient-accent {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-glow {
    text-shadow: 0 0 30px rgba(6, 182, 212, 0.25);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.typewriter {
    border-right: 2px solid var(--neon-cyan);
    padding-right: 4px;
    animation: blinkTypeCursor 0.8s infinite;
}

@keyframes blinkTypeCursor {
    50% { border-color: transparent; }
}

.hero-bio {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Button UI */
.btn {
    padding: 0.9rem 2.2rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.btn-neon {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35);
}

.btn-neon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--neon-cyan);
}

.btn-outline {
    border-color: var(--border-dark);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--neon-purple);
    color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border-dark);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 2rem;
    text-align: center;
}

/* Filter pills switch */
.filter-switch {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 4rem;
}

.filter-pill {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-dark);
    color: var(--text-secondary);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-pill:hover, .filter-pill.active {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    background-color: rgba(6, 182, 212, 0.05);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
}

/* Projects Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

/* Project Card */
.project-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.05);
}

.card-glow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle 200px at var(--mx, 50%) var(--my, 50%), var(--card-glow), transparent 75%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .card-glow-overlay {
    opacity: 1;
}

.project-visual {
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
}

/* Visual color backdrops */
.grad-cyan { background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(3, 7, 18, 0.8) 100%); color: var(--neon-cyan); }
.grad-purple { background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(3, 7, 18, 0.8) 100%); color: var(--neon-purple); }
.grad-pink { background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(3, 7, 18, 0.8) 100%); color: var(--neon-pink); }
.grad-green { background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(3, 7, 18, 0.8) 100%); color: var(--neon-green); }

.project-visual i {
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover .project-visual i {
    transform: scale(1.15) rotate(5deg);
}

.project-details {
    padding: 1.75rem;
    position: relative;
    z-index: 2;
}

.project-cat {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--text-muted);
}

.project-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0.35rem 0 0.75rem 0;
}

.project-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

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

.project-tags span {
    font-size: 0.72rem;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-dark);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    color: var(--text-secondary);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border-dark);
}

.contact-box {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-dark);
    border-radius: 24px;
    padding: 4rem 3rem;
    max-width: 750px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.contact-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.contact-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: opacity 0.4s;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 650px) {
    .form-row { grid-template-columns: 1fr; }
}

.input-group {
    position: relative;
    width: 100%;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    padding: 1.1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s;
}

.form-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.form-textarea {
    height: 150px;
    resize: none;
}

/* Floating labels magic */
.form-label {
    position: absolute;
    left: 1.1rem;
    top: 1.1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -10px;
    left: 10px;
    font-size: 0.75rem;
    background-color: var(--bg-dark);
    padding: 0 0.4rem;
    color: var(--neon-cyan);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    color: var(--bg-dark);
    border: none;
    padding: 1.1rem 0;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.2);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(6, 182, 212, 0.4);
}

.submit-btn.loading span {
    opacity: 0.5;
}

/* Success Card Overlay inside contact box */
.success-box {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.success-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--neon-cyan);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

/* Draw checkmark animation */
.draw-checkmark {
    width: 35px;
    height: 18px;
    border-left: 3px solid var(--neon-cyan);
    border-bottom: 3px solid var(--neon-cyan);
    transform: rotate(-45deg);
    margin-top: -5px;
    animation: checkdraw 0.4s ease forwards;
}

@keyframes checkdraw {
    0% { width: 0; height: 0; }
    50% { width: 0; height: 18px; }
    100% { width: 35px; height: 18px; }
}

.success-box h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    color: var(--neon-cyan);
}

.success-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 450px;
    margin-bottom: 2.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-dark);
    padding: 4rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive configurations */
@media (max-width: 768px) {
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.25rem; }
    .contact-box { padding: 3rem 1.5rem; }
}
