/* ==========================================================================
   CSS VARIABLES & DESIGN SYSTEM
   ========================================================================== */
   :root {
    --bg-dark: #030305;
    --bg-card: rgba(20, 20, 25, 0.4);
    --neon-blue: #00f0ff;
    --neon-purple: #8a2be2;
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --font-heading: 'Syncopate', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, .logo, .huge-text {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: -1px;
}

.neon-text {
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text; /* This is the new line you added */
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.neon-dot {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--neon-blue);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 240, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
}

.cursor-follower.hover {
    width: 60px;
    height: 60px;
    background: rgba(0, 240, 255, 0.1);
    backdrop-filter: blur(2px);
}

/* ==========================================================================
   LOADING SCREEN
   ========================================================================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.loader-progress {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.loader-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--neon-blue);
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 60%; }
    100% { width: 100%; }
}

/* ==========================================================================
   UTILITY CLASSES (GLASSMORPHISM, BUTTONS, GRIDS)
   ========================================================================== */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

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

.section-padding {
    padding: 8rem 0;
}

.grid {
    display: grid;
    gap: 2rem;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-dark);
}
.btn-primary:hover {
    background: var(--neon-blue);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
}
.btn-secondary:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    transform: translateY(-3px);
}

/* ==========================================================================
   BACKGROUND GLOW EFFECTS
   ========================================================================== */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite alternate;
}
.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--neon-purple);
    top: -100px;
    left: -100px;
}
.orb-2 {
    width: 600px;
    height: 600px;
    background: var(--neon-blue);
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 1rem;
    left: 5%;
    right: 5%;
    z-index: 1000;
    border-radius: 50px;
    transition: transform 0.3s;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}
.logo {
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--text-main);
}
.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin: 0 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--neon-blue);
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}
.hamburger span {
    width: 30px;
    height: 2px;
    background: var(--text-main);
    transition: 0.3s;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
}
.badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: var(--glass-border);
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 2rem;
    background: rgba(255,255,255,0.02);
}
.hero-title {
    font-size: clamp(3rem, 6vw, 7rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.hero-subtitle {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.2rem;
    color: var(--text-muted);
}
.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* ==========================================================================
   MARQUEE (TRUSTED BRANDS)
   ========================================================================== */
.trusted-brands {
    border-top: var(--glass-border);
    border-bottom: var(--glass-border);
    padding: 2rem 0;
    background: rgba(0,0,0,0.3);
    text-align: center;
}
.brands-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}
.marquee {
    display: inline-block;
    animation: scrollMarquee 20s linear infinite;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: rgba(255,255,255,0.4);
}
.marquee span { margin: 0 2rem; }
@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   SERVICES CARDS
   ========================================================================== */
.section-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 4rem;
    text-align: center;
}
.service-card {
    padding: 3rem 2rem;
    transition: transform 0.4s, box-shadow 0.4s;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
}
.card-icon {
    font-size: 2.5rem;
    color: var(--neon-blue);
    margin-bottom: 1.5rem;
}
.service-card h3 { margin-bottom: 1rem; font-size: 1.2rem; }
.service-card p { color: var(--text-muted); margin-bottom: 2rem; }
.card-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.service-card:hover .card-link { color: var(--neon-blue); }

/* ==========================================================================
   PORTFOLIO PREVIEW
   ========================================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}
.project-card {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: white;
}
.project-image {
    height: 500px;
    position: relative;
    transition: transform 0.5s ease;
}
.project-card:hover .project-image {
    transform: scale(1.02);
}
.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.project-overlay h3 { font-size: 2rem; margin-bottom: 0.5rem; }
.project-overlay span { color: var(--neon-blue); font-size: 0.9rem; letter-spacing: 1px; }

/* ==========================================================================
   STATISTICS & CTA
   ========================================================================== */
.stat-item { text-align: center; }
.stat-number { font-size: 4rem; margin-bottom: 0.5rem; color: var(--neon-purple); }
.huge-text { font-size: clamp(3rem, 6vw, 6rem); margin-bottom: 1rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    border-radius: 50px 50px 0 0;
    padding: 6rem 5% 2rem 5%;
    border-bottom: none;
    margin-top: 4rem;
}
.footer h4 { margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}
.footer-col a:hover { color: var(--neon-blue); }
.footer-bottom {
    margin-top: 6rem;
    text-align: center;
    padding-top: 2rem;
    border-top: var(--glass-border);
    color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE-FIRST PRINCIPLES)
   ========================================================================== */
@media (max-width: 1024px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 4rem; }
}

@media (max-width: 768px) {
    .nav-links, .navbar .btn { display: none; }
    .hamburger { display: flex; }
    .hero-title { font-size: 2.5rem; }
    .hero-cta { flex-direction: column; }
    .cursor, .cursor-follower { display: none; } /* Disable custom cursor on mobile */
    body { cursor: auto; }
}
