:root {
    --bg: #050505;
    --primary: #00f2ff;
    --secondary: #ff0055;
    --text: #ffffff;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* --- 3D Background --- */
#bg-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    z-index: -1; opacity: 0.6;
}

/* --- Custom Cursor --- */
.cursor {
    position: fixed; width: 8px; height: 8px; background: var(--primary);
    border-radius: 50%; pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%); mix-blend-mode: difference;
}
.cursor-follower {
    position: fixed; width: 40px; height: 40px; border: 1px solid var(--primary);
    border-radius: 50%; pointer-events: none; z-index: 9998;
    transform: translate(-50%, -50%); transition: transform 0.1s;
}

/* --- Navigation --- */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 2rem 5%; position: absolute; top: 0; left: 0; width: 100%; z-index: 100;
}
.logo {
    display: flex; align-items: center; gap: 15px;
    font-family: var(--font-heading); font-size: 1.5rem; font-weight: 900; letter-spacing: 2px;
}
.logo-img {
    height: 40px; width: auto; object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 242, 255, 0.5));
}
.logo a { text-decoration: none; color: white; display: flex; align-items: center; gap: 15px;}
.highlight { color: var(--primary); }

.menu a {
    color: var(--text); text-decoration: none; margin-left: 2rem;
    font-weight: 500; text-transform: uppercase; font-size: 0.9rem; transition: color 0.3s;
}
.menu a:hover { color: var(--primary); }

.btn-contact {
    border: 1px solid var(--text); padding: 0.5rem 1.5rem; border-radius: 50px;
}
.btn-contact:hover { background: var(--text); color: var(--bg) !important; }

/* --- Main Layout Fixes --- */
main {
    width: 100%;
}

/* --- Homepage Hero Section --- */
.hero {
    height: 100vh; /* Force full screen height */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    padding-top: 0; /* Reset padding */
}

/* Fix for Sub-pages (Work, Studio, Contact) */
.page-title {
    font-family: var(--font-heading); 
    font-size: 4rem; 
    text-align: center;
    margin-bottom: 3rem; 
    text-transform: uppercase;
    padding-top: 180px; /* This pushes content down ONLY on subpages */
}

/* --- Hero Text Styling --- */
h1 {
    font-family: var(--font-heading); font-size: 5rem; text-transform: uppercase;
    line-height: 1; margin-bottom: 1rem; position: relative; text-align: center;
}

/* Glitch CSS */
.glitch { position: relative; }
.glitch::before, .glitch::after {
    content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg);
}
.glitch::before {
    left: 2px; text-shadow: -1px 0 var(--secondary); clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px; text-shadow: -1px 0 var(--primary); clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}
@keyframes glitch-anim-1 { 0% { clip: rect(20px, 9999px, 15px, 0); } 100% { clip: rect(90px, 9999px, 100px, 0); } }
@keyframes glitch-anim-2 { 0% { clip: rect(120px, 9999px, 65px, 0); } 100% { clip: rect(10px, 9999px, 100px, 0); } }

.subtitle { 
    font-size: 1.2rem; letter-spacing: 4px; margin-bottom: 2rem; text-align: center; 
    max-width: 600px; line-height: 1.5;
}

.cta-btn {
    padding: 1rem 3rem; background: transparent; border: 1px solid var(--primary);
    color: var(--primary); font-family: var(--font-heading); font-size: 1rem;
    text-transform: uppercase; letter-spacing: 2px; transition: all 0.3s ease;
}
.cta-btn:hover { background: var(--primary); color: #000; box-shadow: 0 0 30px rgba(0, 242, 255, 0.6); }

/* Scroll Indicator Fixed Position */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}
.scroll-indicator .line {
    width: 1px; height: 50px; background: var(--text);
}

/* --- Showcase / Arsenal Section --- */
.showcase {
    min-height: 100vh; /* Ensures it takes up space */
    padding: 5rem 10%;
    background: linear-gradient(to bottom, var(--bg), #000); /* Smooth fade */
}

/* RESTORED: Section Header Styling */
.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
    display: inline-block; /* Crucial for border-bottom to work on text */
}

/* RESTORED: Card Styling (Glass effect) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.card {
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: transform 0.3s, border-color 0.3s;
    background: rgba(255, 255, 255, 0.03); /* Frosted glass background */
    backdrop-filter: blur(10px); /* Frosted glass blur */
}
.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}
.card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}
.card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
}


/* --- Work Page (Gallery) --- */
.work-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem; padding: 0 10% 5rem 10%;
}
.project-card {
    height: 300px; border: 1px solid rgba(255,255,255,0.1); position: relative;
    overflow: hidden; border-radius: 8px;
}
.project-card img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; opacity: 0.7;
}
.project-info {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 1.5rem;
    background: linear-gradient(to top, black, transparent);
    transform: translateY(100%); transition: transform 0.3s;
}
.project-card:hover img { transform: scale(1.1); opacity: 1; }
.project-card:hover .project-info { transform: translateY(0); }
.project-info h3 { font-family: var(--font-heading); color: var(--primary); }

/* --- Studio Page --- */
.studio-container {
    display: flex; flex-wrap: wrap; padding: 0 10% 5rem 10%; gap: 4rem; align-items: center;
}
.studio-text { flex: 1; min-width: 300px; }
.studio-text p { font-size: 1.2rem; line-height: 1.8; margin-bottom: 1.5rem; color: #ddd; }
.studio-stats {
    flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.stat-box {
    background: rgba(255,255,255,0.05); padding: 2rem; text-align: center;
    border: 1px solid rgba(0, 242, 255, 0.2);
}
.stat-number { font-family: var(--font-heading); font-size: 3rem; color: var(--primary); display: block; }

/* --- Contact Page --- */
.contact-container { max-width: 600px; margin: 0 auto; padding: 0 20px; }
.form-group { margin-bottom: 2rem; position: relative; }
input, textarea {
    width: 100%; background: rgba(255,255,255,0.05); border: none;
    border-bottom: 1px solid var(--text); padding: 1rem; color: white;
    font-family: var(--font-body); font-size: 1.1rem; transition: 0.3s;
}
input:focus, textarea:focus {
    outline: none; border-bottom-color: var(--primary); background: rgba(0, 242, 255, 0.05);
}
label {
    position: absolute; left: 1rem; top: 1rem; color: #888; pointer-events: none;
    transition: 0.3s; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px;
}
input:focus ~ label, input:valid ~ label,
textarea:focus ~ label, textarea:valid ~ label {
    top: -20px; left: 0; color: var(--primary); font-size: 0.7rem;
}
.submit-btn {
    width: 100%; padding: 1rem; background: var(--primary); color: black;
    font-family: var(--font-heading); font-weight: bold; text-transform: uppercase;
    border: none; letter-spacing: 2px; margin-top: 1rem;
}
.submit-btn:hover { background: white; }
/* --- FOOTER --- */
footer {
    background: #020202; /* Slightly darker than main bg */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 10% 2rem;
    position: relative;
    z-index: 10; /* Sits above the background canvas */
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.footer-brand p {
    color: #888;
    max-width: 300px;
    font-size: 0.9rem;
}

.footer-links, .footer-socials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-header {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

footer a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
    width: fit-content;
}

footer a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.6);
    padding-left: 5px; /* subtle shift effect */
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
    color: #555;
    font-size: 0.8rem;
}