@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

@font-face {
    font-family: 'Sifonn';
    src: url('../fonts/Sifonn.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #1C1C1C;
    --accent: #15DCFF;
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(28, 28, 28, 0.7);
    
    --font-heading: 'Outfit', 'Sifonn', 'League Spartan', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important; /* Hide default cursor to use custom */
}

/* Fallback for touch devices */
@media (pointer: coarse) {
    * {
        cursor: auto !important;
    }
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto !important;
    display: inline-block;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    width: 50px;
    height: 50px;
    background-color: rgba(21, 220, 255, 0.1);
    backdrop-filter: blur(2px);
}

@media (pointer: coarse) {
    .custom-cursor {
        display: none;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 { font-size: clamp(2rem, 12vw, 8rem); line-height: 0.95; font-weight: 800; letter-spacing: -2px; }
h2 { font-size: clamp(1.5rem, 6vw, 3rem); margin-bottom: 1.5rem; font-weight: 700; letter-spacing: -1.5px; }
h3 { font-size: clamp(1.25rem, 4vw, 2.2rem); margin-bottom: 1rem; font-weight: 600; letter-spacing: -0.5px; }
p { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 1.5rem; font-weight: 400; }

@media (max-width: 600px) {
    p { font-size: 1rem; }
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

/* Layout Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .section { padding: 70px 0; }
}

/* Three.js Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px; /* Rigid height to prevent half-screen glitch */
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(10, 10, 10, 0.7); /* Permanent glass effect */
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Soft separation */
}

.nav-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(21, 220, 255, 0.2); /* Accent border on scroll */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    height: 70px; /* Even slimmer on scroll */
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px; /* Rigidly sized for 80px bar */
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

nav.scrolled .logo img {
    height: 35px;
}

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

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.open {
    transform: translateY(0);
}

.mobile-nav a {
    font-family: var(--font-heading);
    font-size: 2.5rem;
}

@media (max-width: 1024px) {
    nav { height: 75px; }
    .nav-container { padding: 0 1.5rem; }
    .logo img { height: 38px; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
}

@media (max-width: 480px) {
    nav { height: 60px; }
    .logo img { height: 30px; }
    .nav-container { padding: 0 1.25rem; }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 6px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(21, 220, 255, 0);
}

.btn:hover {
    background: var(--accent);
    color: var(--bg-color);
    box-shadow: 0 8px 25px rgba(21, 220, 255, 0.4);
    transform: translateY(-3px) scale(1.02);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-color);
    box-shadow: 0 4px 15px rgba(21, 220, 255, 0.2);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
    box-shadow: 0 8px 25px rgba(21, 220, 255, 0.4);
    border: 1px solid var(--accent);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0px 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(37, 211, 102, 0.4);
    z-index: -1;
    animation: pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translate3d(0, 50px, 0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.reveal-left { transform: translate3d(-50px, 0, 0); }
.reveal-right { transform: translate3d(50px, 0, 0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Section Dots */
.section-dots {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.dot.active {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    transform: scale(1.3);
}

@media (max-width: 1024px) {
    .section-dots { display: none; }
    .whatsapp-float { bottom: 20px; right: 20px; }
}

/* Generic Cards */
.card {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.4), rgba(15, 15, 15, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
    .card { padding: 1.25rem; }
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(21, 220, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Footer */
footer {
    background: rgba(10, 10, 10, 0.9);
    padding: 80px 5% 40px;
    border-top: 1px solid var(--card-border);
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo img {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-icons a svg {
    width: 24px;
    height: 24px;
    fill: var(--text-muted);
    transition: var(--transition);
}

.social-icons a:hover svg {
    fill: var(--accent);
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 2rem;
}

.footer-contact p {
    margin-bottom: 1rem;
    overflow-wrap: break-word;
    word-break: break-word;
}

.footer-bottom {
    max-width: 1400px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* Page Specific Overrides will follow in respective sheets or inline below */
