/* --- Variables & Reset --- */
:root {
    --bg-dark: #050507;
    --bg-card: rgba(22, 22, 34, 0.4);
    --primary: #2DE1FC;
    /* Electric Blue */
    --secondary: #6366f1;
    /* Electric Violet */
    --accent: #FF2E63;
    /* Hot Pink */
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glow-shadow: 0 0 40px rgba(45, 225, 252, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* --- Organic Mesh Gradient (Design 2.0) --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 50%, rgba(45, 225, 252, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(99, 102, 241, 0.08), transparent 25%);
    /* Violet update */
    z-index: -1;
    filter: blur(40px);
}

/* Background Aura */
.hero-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(circle at 50% 50%, rgba(45, 225, 252, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(176, 38, 255, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

/* --- Typography & Utilities --- */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.highlight {
    color: var(--primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 5px;
}

/* Modern Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    border-radius: 100px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F7931E 0%, #FF6B35 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: transparent;
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 30px;
    /* Increased separation */
    justify-content: center;
    flex-wrap: wrap;
    /* Safe wrapping for mobile */
}

.btn-secondary:hover {
    background: rgba(45, 225, 252, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(45, 225, 252, 0.3);
}

.btn-block {
    width: 100%;
}

/* --- Urgency Badge --- */
.urgency-badge {
    display: inline-block;
    background: linear-gradient(90deg, rgba(255, 46, 99, 0.2), rgba(176, 38, 255, 0.2));
    border: 1px solid rgba(255, 46, 99, 0.4);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 25px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

/* --- Navigation --- */
.main-header {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1300px;
    z-index: 1000;
    padding: 12px 24px;
    border-radius: 100px;
    background: rgba(3, 3, 5, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.main-header.scrolled {
    background: rgba(3, 3, 5, 0.85);
    width: 92%;
    top: 15px;
    padding: 8px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary);
    padding: 8px 20px !important;
    border-radius: 50px;
    color: white !important;
    transition: 0.3s;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
}

.btn-nav:hover {
    background: var(--primary);
    color: var(--bg-dark) !important;
    box-shadow: 0 0 20px rgba(45, 225, 252, 0.4);
}

/* --- Hero Section (Massive Typography) --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 100px;
    position: relative;
}

.hero-content {
    max-width: 1100px;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 0.95;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Spotlight Effect Utility --- */
.spotlight-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.spotlight-card::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.spotlight-card:hover::before {
    opacity: 1;
}

/* Override existing border hover to use Spotlight instead */
.service-card:hover,
.project-card:hover {
    transform: translateY(-5px);
    /* border-color handled by spotlight or subtle glow */
    border-color: rgba(255, 255, 255, 0.1);
}

/* --- Services (Bento Grid) --- */
.services-section {
    padding: 150px 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-align: center;
    margin-bottom: 80px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 350px);
    gap: 20px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 50px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Bento Spanning logic */
.service-card:nth-child(1) {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(45, 225, 252, 0.05), var(--bg-card));
}

.service-card:nth-child(2) {
    grid-column: span 1;
}

.service-card:nth-child(3) {
    grid-column: span 1;
}

.service-card:nth-child(4) {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--bg-card), rgba(176, 38, 255, 0.05));
    justify-content: center;
    align-items: flex-start;
}


.service-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: white;
}

/* --- Trust / Social Proof Section --- */
.trust-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark), #0a0a14);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 80px;
    text-align: center;
}

.stat-item {
    padding: 30px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    position: relative;
}

.quote-icon {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: var(--text-muted);
}

.testimonial-author {
    font-size: 0.9rem;
    color: var(--text-main);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.badge-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Portfolio & Skeletons --- */
.portfolio-section {
    padding: 150px 0;
}

/* Skeleton Loading */
.skeleton {
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

.skeleton-card {
    background: var(--bg-card);
    border-radius: 20px;
    height: 450px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}

.skeleton-image {
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    width: 100%;
}

.skeleton-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.skeleton-text {
    height: 16px;
    width: 90%;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

@keyframes skeleton-pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
}

.card-image-wrapper {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover img {
    transform: scale(1.1);
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* --- Contact / CTA --- */
.cta-section {
    padding: 150px 0 100px;
}

.cta-content {
    background: linear-gradient(145deg, #10101a, #050508);
    border: 1px solid var(--glass-border);
    padding: 80px 40px;
    border-radius: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(45, 225, 252, 0.1), transparent 60%);
    pointer-events: none;
}

.contact-form {
    max-width: 800px;
    margin: 50px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Span full width elements */
.contact-form .form-group:nth-child(3),
.contact-form button,
.contact-form .form-disclaimer {
    grid-column: span 2;
}

.form-group input,
.form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    /* More visible background */
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 20px rgba(45, 225, 252, 0.2);
    outline: none;
}

.form-disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 15px;
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s;
    animation: floatPulse 3s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    color: white;
}

@keyframes floatPulse {

    0%,
    100% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 8px 40px rgba(37, 211, 102, 0.7);
    }
}

footer {
    border-top: 1px solid var(--glass-border);
    padding: 50px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
}

/* --- Mobile Navigation --- */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1002;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: white;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 3, 5, 0.98);
    backdrop-filter: blur(15px);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-links {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.mobile-nav-links a {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Active Hamburger State */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Responsive 2.0 --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .service-card:nth-child(n) {
        grid-column: span 1;
    }

    .hero-content h1 {
        font-size: 10vw;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-header {
        width: 100%;
        top: 0;
        border-radius: 0;
        padding: 20px;
    }

    .main-header.scrolled {
        width: 100%;
        top: 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .urgency-badge {
        font-size: 0.75rem;
        padding: 6px 15px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }

    /* Stack form on mobile */
    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-form .form-group:nth-child(n),
    .contact-form button,
    .contact-form .form-disclaimer {
        grid-column: span 1;
    }
}