/* =========================================
   1. FONTS & RESET
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Russo+One&display=swap');

:root {
    /* --- THEME COLORS (Based on Logo) --- */
    /* Deep Void Purple/Black Background */
    --bg-dark: #050011;

    /* Glass Effect: Tinted with Royal Purple */
    --glass-bg: rgba(40, 10, 80, 0.05);
    --glass-border: rgba(138, 43, 226, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);

    /* Gradients: Electric Violet -> Deep Blue */
    --primary-gradient: linear-gradient(135deg, #7b2ff7 0%, #2a00cc 100%);
    --secondary-gradient: linear-gradient(135deg, #d8b4fe 0%, #7b2ff7 100%);

    /* Text Colors */
    --text-main: #ffffff;
    --text-muted: #bda0e3; /* Lavender Grey */
    --logo-color: #e6e6e6; /* Silver (Like the 'B' in logo) */

    /* Accents */
    --accent-glow: #7b2ff7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif; /* Body font */
    cursor: none; /* Hide default cursor */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
}

/* =========================================
   2. CUSTOM CURSOR
   ========================================= */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0; left: 0;
    /* Removed translate here because JS handles it now */
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    /* This forces the GPU to handle the rendering */
    will-change: transform;
}

.cursor-dot {
    width: 8px; height: 8px;
    background-color: var(--logo-color);
}

.cursor-outline {
    width: 40px; height: 40px;
    border: 1px solid rgba(123, 47, 247, 0.5);
    /* Removed transition property to avoid conflict with JS loop */
}

/* Cursor expands on hover */
body.hovering .cursor-outline {
    width: 60px; height: 60px;
    background-color: rgba(123, 47, 247, 0.1);
    border-color: transparent;
    transition: width 0.2s, height 0.2s, background-color 0.2s; /* Only transition size/color */
}

/* =========================================
   3. BACKGROUND ORBS (The Purple Vibe)
   ========================================= */
.background-orbs {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: floatOrb 10s infinite alternate;
}

.orb-1 {
    width: 450px; height: 450px;
    background: #6200ea; /* Deep Purple */
    top: -100px; left: -100px;
}

.orb-2 {
    width: 350px; height: 350px;
    background: #30009c; /* Indigo */
    bottom: 5%; right: -50px;
    animation-delay: -2s;
}

.orb-3 {
    width: 250px; height: 250px;
    background: #aa00ff; /* Bright Electric Violet */
    top: 40%; left: 40%;
    opacity: 0.25;
    animation-delay: -5s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

/* =========================================
   4. PRELOADER
   ========================================= */
#preloader {
    position: fixed;
    width: 100%; height: 100vh;
    background: #02000a;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}
.loader-content { text-align: center; }
.loader-text {
    font-family: 'Russo One', sans-serif;
    color: var(--text-muted);
    letter-spacing: 5px;
    margin-bottom: 15px;
    display: block;
}
.progress-bar {
    width: 200px; height: 2px;
    background: #1a1a1a;
    overflow: hidden;
    margin: 0 auto;
}
.progress {
    width: 0%; height: 100%;
    background: var(--logo-color);
    animation: loadProgress 2s ease-in-out forwards;
}
@keyframes loadProgress { 100% { width: 100%; } }

/* =========================================
   5. NAVIGATION
   ========================================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: 0.3s;
}

/* Glass effect on scroll */
nav.scrolled {
    background: rgba(5, 0, 17, 0.85);
    backdrop-filter: blur(12px);
    padding: 15px 50px;
    border-bottom: 1px solid var(--glass-border);
}

.logo a {
    font-family: 'Russo One', sans-serif; /* MATCHING YOUR LOGO FONT */
    font-size: 2.2rem;
    letter-spacing: 1px;
    color: var(--logo-color);
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(123, 47, 247, 0.3);
}
.accent-dot { color: var(--accent-glow); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: 0.3s;
}
.nav-links a:hover { color: #fff; text-shadow: 0 0 10px var(--accent-glow); }

.btn-glow {
    padding: 8px 25px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    transition: 0.3s;
}
.btn-glow:hover {
    background: rgba(123, 47, 247, 0.2);
    border-color: var(--accent-glow);
    box-shadow: 0 0 15px rgba(123, 47, 247, 0.4);
    color: white !important;
}

/* Hamburger */
.hamburger { display: none; cursor: pointer; }
.line { width: 25px; height: 2px; background: white; margin: 5px; transition: 0.3s; }

/* =========================================
   6. HERO SECTION
   ========================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(123, 47, 247, 0.1);
    border: 1px solid rgba(123, 47, 247, 0.3);
    border-radius: 50px;
    color: #d8b4fe;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Typography */
.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 800;
}
.gradient-text {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.typewriter {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-family: monospace;
}
.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
}

/* Buttons */
.hero-buttons { display: flex; gap: 20px; }
.btn {
    padding: 14px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.primary-btn {
    background: var(--logo-color);
    color: #000;
}
.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}
.secondary-btn {
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}
.secondary-btn:hover { background: rgba(255,255,255,0.1); }

/* 3D Visual */
.hero-visual { perspective: 1000px; }
.float-animation { animation: floatCard 6s ease-in-out infinite; }
@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotateX(5deg) rotateY(-5deg); }
    50% { transform: translateY(-20px) rotateX(0deg) rotateY(0deg); }
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
}

.code-block {
    padding: 30px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #d4d4d4;
}
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 5px; margin-bottom: 20px;}
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }

/* Syntax Highlighting matching Purple Theme */
.c-purple { color: #d8b4fe; }
.c-blue { color: #5fb3ff; }
.c-yellow { color: #ffd700; }
.c-green { color: #50fa7b; }

/* =========================================
   7. SKILLS SECTION
   ========================================= */
.section-padding { padding: 100px 0; }
.section-heading {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: white;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.skill-card {
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s;
    transform-style: preserve-3d;
}
.skill-card:hover .icon-box {
    transform: scale(1.1) translateZ(20px);
    background: rgba(123, 47, 247, 0.2);
    box-shadow: 0 0 20px rgba(123, 47, 247, 0.4);
}
.icon-box {
    width: 70px; height: 70px;
    margin: 0 auto 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: #d8b4fe;
    transition: 0.3s;
}
.skill-card h3 { margin-bottom: 10px; color: white; }
.skill-card p { color: var(--text-muted); font-size: 0.9rem; }

/* =========================================
   8. PROJECTS SECTION
   ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.project-card {
    overflow: hidden;
    transition: 0.4s;
    background: rgba(10, 5, 20, 0.6); /* Slightly darker for contrast */
}
.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-glow);
}

.project-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

/* Gradient backgrounds adjusted to Purple Theme */
.dummy-bg-1 { background: linear-gradient(45deg, #4a00e0, #8e2de2); } /* Violet */
.dummy-bg-2 { background: linear-gradient(45deg, #240b36, #c31432); } /* Deep Red/Purple */
.dummy-bg-3 { background: linear-gradient(45deg, #0f0c29, #302b63, #24243e); } /* Night Sky */

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex; justify-content: center; align-items: center;
    opacity: 0;
    transition: 0.3s;
}
.overlay i { font-size: 3rem; color: var(--logo-color); transform: scale(0); transition: 0.3s; }
.project-card:hover .overlay { opacity: 1; }
.project-card:hover .overlay i { transform: scale(1); }

.project-info { padding: 25px; }
.project-info h3 { color: white; margin-bottom: 10px; }
.tags { margin: 10px 0; }
.tags span {
    font-size: 0.7rem;
    padding: 4px 12px;
    border: 1px solid rgba(123, 47, 247, 0.3);
    border-radius: 15px;
    margin-right: 5px;
    color: #d8b4fe;
    background: rgba(123, 47, 247, 0.05);
}
.project-links {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.link-text { color: #d8b4fe; text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.link-text:hover { color: white; text-shadow: 0 0 10px #d8b4fe; }
.link-icon { color: white; font-size: 1.2rem; transition: 0.3s; }
.link-icon:hover { color: var(--accent-glow); }

/* =========================================
   9. CONTACT & FOOTER
   ========================================= */
.contact-container { display: flex; justify-content: center; }
.contact-box {
    padding: 60px;
    text-align: center;
    max-width: 800px;
    width: 100%;
}
.contact-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    text-decoration: none;
    color: white;
    transition: 0.3s;
    border: 1px solid transparent;
}
.contact-item:hover {
    background: rgba(123, 47, 247, 0.1);
    border-color: var(--accent-glow);
}

.social-row { display: flex; gap: 20px; justify-content: center; }
.social-btn {
    width: 50px; height: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}
.social-btn:hover {
    background: var(--logo-color);
    color: black;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

footer {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    background: #020008;
    margin-top: 50px;
}

/* =========================================
   10. MEDIA QUERIES
   ========================================= */
@media (max-width: 768px) {
    .container { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-visual { display: none; }
    .hero-buttons { justify-content: center; }

    .nav-links {
        position: fixed;
        background: rgba(5, 0, 15, 0.95);
        top: 0; right: 0;
        height: 100vh; width: 70%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: 0.3s;
        backdrop-filter: blur(10px);
    }
    .nav-links.active { transform: translateX(0); }
    .hamburger { display: block; z-index: 2000; }
    .hamburger.active .line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active .line:nth-child(2) { opacity: 0; }
    .hamburger.active .line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}