/* 
   Theme: Deep Space 3D
   Fonts: Orbitron (Headings), Exo 2 (Body)
*/

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Exo+2:wght@300;400;600&display=swap');

:root {
    --bg-color: #000000;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --highlight: #00fff2; /* Cyan */
    --highlight-glow: rgba(0, 255, 242, 0.5);
    --secondary: #ff0055; /* Neon Red/Pink */
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor */
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Exo 2', sans-serif;
    overflow-x: hidden;
}

/* --- 3D Background Canvas --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* --- Custom Cursor --- */
#cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--highlight);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
    box-shadow: 0 0 10px var(--highlight);
}

#cursor-blur {
    position: fixed;
    width: 50px;
    height: 50px;
    border: 1px solid var(--highlight-glow);
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out;
}

/* --- Typography --- */
h1, h2, h3, .logo, .badge, .btn {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.highlight {
    color: var(--highlight);
    text-shadow: 0 0 10px var(--highlight-glow);
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: fixed;
    width: 100%;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.dot {
    color: var(--secondary);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--highlight);
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

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

/* --- Sections --- */
.section {
    padding: 100px 10%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s forwards;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    perspective: 1000px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--highlight);
    color: var(--highlight);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    background: rgba(0, 255, 242, 0.05);
    box-shadow: 0 0 15px rgba(0, 255, 242, 0.1);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.typing-container {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-family: 'Exo 2', sans-serif;
}

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

.btn {
    padding: 1rem 2rem;
    border: none;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.btn-primary {
    background: var(--highlight);
    color: #000;
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 30px var(--highlight-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--highlight);
    color: var(--highlight);
    background: rgba(0, 255, 242, 0.05);
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-primary);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--highlight);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

/* --- 3D Cards (About) --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card-3d {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 2px; /* For border gradient simulation */
    border-radius: 15px;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.card-content {
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 13px;
    height: 100%;
    text-align: center;
    transform: translateZ(20px);
    transition: var(--transition);
}

.card-3d:hover .card-content {
    background: rgba(10, 10, 15, 0.8);
    box-shadow: 0 0 30px rgba(0, 255, 242, 0.1);
}

.icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 0, 85, 0.5));
}

/* --- Skills (Glass Panels) --- */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--highlight), transparent);
}

.skill-bar {
    margin-bottom: 1.5rem;
}

.skill-bar span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--highlight);
    box-shadow: 0 0 10px var(--highlight);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tags span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.skill-tags span:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.3);
}

/* --- Contact Form (Futuristic) --- */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
    text-align: left;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'Exo 2', sans-serif;
    outline: none;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 1rem 0;
    pointer-events: none;
    color: var(--text-secondary);
    transition: var(--transition);
}

.input-group input:focus ~ label,
.input-group input:valid ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:valid ~ label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--highlight);
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom-color: var(--highlight);
    box-shadow: 0 1px 0 var(--highlight-glow);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
    }

    .nav-links.active {
        right: 0;
    }
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}
