:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent: #7b2cbf;
    --secondary: #4361ee;
    --font-head: 'Syne', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

/* Re-enable default cursor for touch devices */
@media (hover: none) {
    *, *::before, *::after {
        cursor: auto;
    }
    .cursor, .cursor-dot {
        display: none !important;
    }
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
}

.noise {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 999;
    opacity: 0.05;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
}
.hero-title {
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 5rem); /* Responsive scaling  */
  line-height: 1.1;
}
/* Custom Cursor */
.cursor {
    width: 20px; height: 20px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    position: fixed; pointer-events: none; z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}
.cursor-dot {
    width: 4px; height: 4px;
    background: white;
    border-radius: 50%;
    position: fixed; pointer-events: none; z-index: 10001;
    transform: translate(-50%, -50%);
}
body:hover .cursor.active {
    width: 50px; height: 50px;
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(2px); border-color: transparent;
}

/* Typography & Layout */
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 5vw; }
.section-padding { padding: 15vh 0; }

/* Loader */
.loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: #000; z-index: 99999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.loader-text { font-family: var(--font-head); font-size: 5vw; margin-bottom: 20px; }
.loader-bar { width: 200px; height: 2px; background: #222; overflow: hidden; }
.bar-fill { width: 0%; height: 100%; background: #fff; }

/* Navigation */
nav {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 2rem 5vw;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100; mix-blend-mode: difference;
}
.logo { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; }
.menu-btn { 
    width: 50px; height: 50px; 
    display: flex; align-items: center; justify-content: center; 
    position: relative; z-index: 102;
}
.menu-lines { pointer-events: none; }
.menu-lines span {
    display: block; width: 30px; height: 2px; background: #fff; margin: 6px 0;
    transition: 0.3s;
}

/* Mobile Menu Overlay */
.nav-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 101;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none;
    transition: 0.5s ease;
}
.nav-overlay.active { opacity: 1; pointer-events: auto; }
.nav-links { list-style: none; text-align: center; }
.nav-link {
    font-family: var(--font-head); font-size: 4rem; color: #fff;
    text-decoration: none; display: block; margin: 10px 0;
    transform: translateY(20px); opacity: 0; transition: 0.3s;
}
.nav-link:hover { color: var(--accent); letter-spacing: 2px; }

/* Menu Active State Animation */
.menu-btn.active .menu-lines span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-btn.active .menu-lines span:nth-child(2) { transform: rotate(-45deg) translate(5px, -6px); }

/* Blobs */
.blob {
    position: fixed; filter: blur(80px); z-index: -1; opacity: 0.6;
    animation: float 20s infinite alternate;
}
.blob-1 {
    top: -10%; left: -10%; width: 500px; height: 500px;
    background: radial-gradient(circle, var(--accent), transparent 70%);
}
.blob-2 {
    bottom: -10%; right: -10%; width: 600px; height: 600px;
    background: radial-gradient(circle, var(--secondary), transparent 70%);
}
@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 100px) scale(1.2); }
}

/* Hero */
.hero { height: 100vh; display: flex; align-items: center; position: relative; }
.hero-title {
    /* Fluid Typography: min 3rem, responsive 11vw, max 10rem */
    font-size: clamp(3rem, 11vw, 10rem); 
    line-height: 0.9; text-transform: uppercase;
}
.hero-title .line { overflow: hidden; }
.outline { -webkit-text-stroke: 1px #fff; color: transparent; transition: 0.3s; }
.hero-title:hover .outline { color: var(--accent); -webkit-text-stroke: 0; }

.hero-footer {
    position: absolute; bottom: 3rem; left: 0; width: 100%;
    padding: 0 5vw; display: flex; justify-content: space-between; align-items: center;
}
.btn-circle {
    width: 100px; height: 100px; border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%; display: flex; flex-direction: column;
    align-items: center; justify-content: center; font-size: 0.8rem;
    color: #fff; text-decoration: none; transition: 0.3s;
}
.btn-circle:hover { background: #fff; color: #000; }

/* About */
.grid-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-image-wrapper { width: 100%; height: 60vh; position: relative; }
.reveal-mask { width: 100%; height: 100%; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); }
.reveal-mask img { width: 100%; height: 100%; object-fit: cover; }
.split-text { font-size: 2.5rem; margin-bottom: 2rem; }

/* Services */
.cards-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 5rem; }
.tilt-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
    padding: 3rem 2rem; border-radius: 15px;
    transform-style: preserve-3d; transform: perspective(1000px);
    position: relative; overflow: hidden;
}
.card-content { transform: translateZ(20px); }
.card-icon { font-size: 2rem; color: var(--secondary); margin-bottom: 1.5rem; }
.card-shine {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(125deg, rgba(255,255,255,0.1) 0%, transparent 40%, transparent 60%, rgba(255,255,255,0.1) 100%);
    opacity: 0; transition: 0.5s;
}
.tilt-card:hover .card-shine { opacity: 1; }

/* Portfolio */
.portfolio-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4rem; flex-wrap: wrap; gap: 20px;}
.filters button { background: none; border: none; color: #666; font-size: 1rem; margin-left: 20px; transition: 0.3s; }
.filters button.active, .filters button:hover { color: #fff; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4rem; }
.work-item { position: relative; cursor: pointer; }
.work-item:nth-child(2) { margin-top: 8rem; } 
.work-img { overflow: hidden; border-radius: 8px; }
.work-img img { width: 100%; transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1); }
.work-item:hover img { transform: scale(1.1); }
.work-info { margin-top: 1rem; display: flex; justify-content: space-between; font-family: var(--font-head); }

/* Contact */
.big-cta { font-size: 8vw; line-height: 1; text-align: center; margin-bottom: 4rem; }
.center-col { display: flex; flex-direction: column; align-items: center; }
.minimal-form { width: 100%; max-width: 500px; }
.input-group { position: relative; margin-bottom: 2rem; }
.input-group input {
    width: 100%; background: none; border: none; border-bottom: 1px solid #333;
    padding: 10px 0; color: #fff; outline: none; font-size: 1.2rem;
}
.input-group label { position: absolute; left: 0; top: 10px; color: #666; pointer-events: none; transition: 0.3s; }
.input-group input:focus ~ label, .input-group input:valid ~ label { top: -20px; font-size: 0.8rem; color: var(--accent); }
.line-anim { position: absolute; bottom: 0; left: 0; width: 0%; height: 2px; background: var(--accent); transition: 0.4s; }
.input-group input:focus ~ .line-anim { width: 100%; }
.submit-btn { padding: 1rem 3rem; background: #fff; border: none; border-radius: 50px; font-weight: 700; margin-top: 2rem; }

/* Footer */
footer { padding: 2rem 5vw; border-top: 1px solid #222; margin-top: 5rem; }
.footer-inner { display: flex; justify-content: space-between; color: #666; flex-wrap: wrap; gap: 20px; }
.socials a { color: #666; margin-left: 1rem; text-decoration: none; }
.socials a:hover { color: #fff; }

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
    .cards-container { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 13vw; }
}

@media (max-width: 768px) {
    .grid-layout { grid-template-columns: 1fr; gap: 3rem; }
    .cards-container { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; gap: 3rem; }
    .work-item:nth-child(2) { margin-top: 0; }
    
    .hero-footer { bottom: 2rem; flex-direction: column; gap: 20px; align-items: flex-start; }
    .btn-circle { width: 80px; height: 80px; position: absolute; right: 5vw; bottom: 0; }
    
    .filters { width: 100%; margin-top: 1rem; }
    .filters button { margin-left: 0; margin-right: 15px; }
    
    .big-cta { font-size: 15vw; }
    .split-text { font-size: 1.8rem; }
    
    .footer-inner { flex-direction: column; text-align: center; }
    .socials { margin-top: 1rem; }
    .socials a { margin: 0 10px; }
}