:root {
    --primary-orange: #ef6d1f;
    --primary-orange-glow: rgba(239, 109, 31, 0.5);
    --dark-navy: #192555;
    --dark-navy-rgb: 25, 37, 85;
    --bg-dark: #0a0a0f;
    --bg-dark-rgb: 10, 10, 15;
    --light-gray: #a0a0b0;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body.dark-theme {
    background-color: var(--bg-dark);
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    cursor: none; /* Custom cursor */
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Outfit', sans-serif;
}

/* Custom Cursor */
#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-orange-glow) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    transition: width 0.3s, height 0.3s;
    opacity: 0.6;
}

/* Typography & Colors */
.text-primary-orange { color: var(--primary-orange) !important; }
.text-light-gray { color: var(--light-gray) !important; }
.bg-dark-navy { background-color: var(--dark-navy) !important; }

/* Buttons */
.btn-primary-orange {
    background-color: var(--primary-orange);
    color: var(--white);
    border: 1px solid var(--primary-orange);
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(239, 109, 31, 0.3);
}
.btn-primary-orange:hover {
    background-color: transparent;
    color: var(--primary-orange);
    box-shadow: 0 0 25px rgba(239, 109, 31, 0.6);
}
.btn-outline-light {
    border-color: rgba(255,255,255,0.2);
    transition: all 0.3s;
}
.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(255,255,255,0.5);
}

/* Navbar */
.glass-navbar {
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    padding: 15px 0;
}
.glass-navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
}
.nav-link-custom {
    position: relative;
    font-weight: 500;
    padding: 5px 15px;
}
.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-orange);
    transition: width 0.3s ease;
}
.nav-link-custom:hover::after, .nav-link-custom.active::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
#three-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.hero-content {
    z-index: 1;
    position: relative;
    pointer-events: none;
}
.hero-content * {
    pointer-events: auto;
}
.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #a0a0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--light-gray);
    max-width: 600px;
    margin-bottom: 40px;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
}
.glass-card:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
    border-color: rgba(239, 109, 31, 0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 20px rgba(239, 109, 31, 0.1);
}
.service-icon {
    font-size: 3rem;
    color: var(--primary-orange);
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 0 10px var(--primary-orange-glow));
}

/* Project Cards */
.project-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}
.project-img-wrapper {
    overflow: hidden;
    border-radius: 20px;
}
.project-img-wrapper img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.project-card:hover .project-img-wrapper img {
    transform: scale(1.08);
}
.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(10,10,15,0.9) 0%, rgba(10,10,15,0) 100%);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}
.project-card:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Forms */
.glass-form .form-control, .glass-form .form-select {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 10px;
    padding: 12px 20px;
}
.glass-form .form-control:focus, .glass-form .form-select:focus {
    background: rgba(255,255,255,0.08);
    border-color: var(--primary-orange);
    box-shadow: 0 0 10px rgba(239, 109, 31, 0.2);
    color: var(--white);
}
.glass-form label {
    color: var(--light-gray);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* Footer */
.glass-footer {
    background: rgba(25, 37, 85, 0.2);
    border-top: 1px solid var(--glass-border);
}
.footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    margin-bottom: 10px;
}
.footer-links a:hover {
    color: var(--primary-orange);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 5px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: transform 0.3s;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}
.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25d366;
    border-radius: 50px;
    z-index: -1;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 40px;
    right: 120px;
    display: none;
    z-index: 999;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 50px;
    height: 50px;
    transition: all 0.3s;
}
#back-to-top:hover {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
}

/* Sections */
.section-padding {
    padding: 100px 0;
}
.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.section-subtitle {
    color: var(--primary-orange);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

/* Utilities */
.reveal-text {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.8rem; }
    #cursor-glow { display: none; }
    body.dark-theme { cursor: auto; }
}
