/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Syncopate:wght@400;700&display=swap');

:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-color: #ff0055;
    /* Vibrant Pink */
    --accent-gradient: linear-gradient(90deg, #ff0055, #ff00cc, #3333ff, #00ccff);
    /* Vibrant Gradient (Cyan end) */
    --font-primary: 'Space Grotesk', sans-serif;
    --font-display: 'Syncopate', sans-serif;
    --transition-speed: 0.3s;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 6rem);
    letter-spacing: -2px;
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    /* Ensure gradient works on text */
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #a0a0a0;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all var(--transition-speed) ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--accent-color);
    z-index: -1;
    transition: width var(--transition-speed) ease;
}

.btn:hover {
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.btn:hover::before {
    width: 100%;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: padding var(--transition-speed) ease, background-color var(--transition-speed) ease;
}

header.scrolled {
    padding: 1rem 0;
    background-color: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    /* Adjust based on actual logo */
    filter: brightness(0) invert(1);
    /* Ensure white logo on dark bg */
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: 2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    max-width: 600px;
    margin-bottom: 3rem;
}

/* Canvas Background */
#bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-speed) ease, border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    cursor: default;
}

.service-card .service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: float 6s ease-in-out infinite;
}

.service-card:nth-child(even) .service-icon {
    animation-delay: 2s;
    /* Desynchronize for organic feel */
}

.service-card:hover {
    transform: translateY(-10px);
    border-image: var(--accent-gradient) 1;
    box-shadow: 0 10px 30px rgba(112, 0, 255, 0.15);
    /* Purple shadow */
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.portfolio-item {
    position: relative;
    height: 300px;
    /* Placeholder height */
    background: #1a1a1a;
    overflow: hidden;
    border-radius: 4px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.contact-info h3 {
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-bottom: 1.5rem;
    font-family: var(--font-primary);
    transition: border-color var(--transition-speed) ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
        /* Add mobile menu later */
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Instagram Embeds */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    justify-items: center;
}

.instagram-media {
    min-width: 300px !important;
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: #fff;
    /* Ensure it looks okay before loading */
}

/* Social Icons Animation */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.social-icon:nth-child(2) {
    animation-delay: 1s;
    /* Stagger animations */
}

.social-icon:nth-child(3) {
    animation-delay: 2s;
}

.social-icon:hover {
    background: var(--accent-color);
    color: #000;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 20px var(--accent-color);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* --- Hero Updates --- */
@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Liquid Button */
.liquid-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    overflow: hidden;
    border-radius: 9999px;
    transition: transform 0.3s ease;
}

.liquid-button:hover {
    transform: scale(1.05);
}

.liquid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    box-shadow:
        0 0 6px rgba(0, 0, 0, 0.03),
        0 2px 6px rgba(0, 0, 0, 0.08),
        inset 3px 3px 0.5px -3px rgba(255, 255, 255, 0.09),
        inset -3px -3px 0.5px -3px rgba(255, 255, 255, 0.85),
        inset 1px 1px 1px -0.5px rgba(255, 255, 255, 0.6),
        inset -1px -1px 1px -0.5px rgba(255, 255, 255, 0.6),
        inset 0 0 6px 6px rgba(255, 255, 255, 0.12),
        inset 0 0 2px 2px rgba(255, 255, 255, 0.06),
        0 0 12px rgba(0, 0, 0, 0.15);
    z-index: 0;
}

.liquid-glass {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    backdrop-filter: url("#container-glass");
    z-index: -1;
}

.liquid-text {
    position: relative;
    z-index: 10;
}

/* --- AI Empowerment Section (Spline 3D Card) --- */
.spline-card {
    position: relative;
    width: 100%;
    min-height: 500px;
    background: rgba(0, 0, 0, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.spline-content-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 2;
    /* Above spotlight */
}

@media (min-width: 768px) {
    .spline-content-wrapper {
        flex-direction: row;
        align-items: center;
        height: 500px;
        /* Fixed height for desktop */
    }
}

.spline-text-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
}

@media (min-width: 768px) {
    .spline-text-content {
        padding: 4rem;
    }
}

.gradient-text {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom, #fafafa, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.spline-text-content p {
    color: #d4d4d4;
    max-width: 500px;
    font-size: 1.1rem;
}

.spline-scene-container {
    flex: 1;
    position: relative;
    height: 300px;
    /* Mobile height */
    width: 100%;
}

@media (min-width: 768px) {
    .spline-scene-container {
        height: 100%;
    }
}

spline-viewer {
    width: 100%;
    height: 100%;
}

/* Hide Spline Logo */
#logo {
    display: none !important;
}


/* Spotlight Effect */
.spotlight {
    pointer-events: none;
    position: absolute;
    width: 400px;
    /* Size */
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(230, 230, 230, 0.15), transparent 70%);
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translate(-50%, -50%);
    /* Center on mouse */
    z-index: 1;
    top: 0;
    left: 0;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    /* WhatsApp Brand Color */
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    /* Ensure text is readable over the effects */
}

/* Container for the glowing blobs */
.gradient-text-blobs {
    pointer-events: none;
    position: absolute;
    inset: 0;
    mix-blend-mode: lighten;
    /* or overlay depending on effect */
    z-index: 1;
}

.gradient-blob {
    pointer-events: none;
    position: absolute;
    width: 50%;
    height: 100%;
    /* Adjust size relative to text */
    mix-blend-mode: overlay;
    filter: blur(1rem);
    opacity: 0.8;
}

/* Blob 1 */
.gradient-blob:nth-child(1) {
    top: -50%;
    background: hsl(var(--color-1));
    animation: gradient-border 6s ease-in-out infinite, gradient-1 12s ease-in-out infinite alternate;
}

/* Blob 2 */
.gradient-blob:nth-child(2) {
    top: 0;
    right: 0;
    background: hsl(var(--color-2));
    animation: gradient-border 6s ease-in-out infinite, gradient-2 12s ease-in-out infinite alternate;
}

/* Blob 3 */
.gradient-blob:nth-child(3) {
    bottom: 0;
    left: 0;
    background: hsl(var(--color-3));
    animation: gradient-border 6s ease-in-out infinite, gradient-3 12s ease-in-out infinite alternate;
}

/* Blob 4 */
.gradient-blob:nth-child(4) {
    bottom: -50%;
    right: 0;
    background: hsl(var(--color-4));
    animation: gradient-border 6s ease-in-out infinite, gradient-4 12s ease-in-out infinite alternate;
}


/* Keyframes */
@keyframes gradient-border {

    0%,
    100% {
        border-radius: 37% 29% 27% 27% / 28% 25% 41% 37%;
    }

    25% {
        border-radius: 47% 29% 39% 49% / 61% 19% 66% 26%;
    }

    50% {
        border-radius: 57% 23% 47% 72% / 63% 17% 66% 33%;
    }

    75% {
        border-radius: 28% 49% 29% 100% / 93% 20% 64% 25%;
    }
}

@keyframes gradient-1 {

    0%,
    100% {
        top: 0;
        right: 0;
    }

    50% {
        top: 50%;
        right: 25%;
    }

    75% {
        top: 25%;
        right: 50%;
    }
}

@keyframes gradient-2 {

    0%,
    100% {
        top: 0;
        left: 0;
    }

    60% {
        top: 75%;
        left: 25%;
    }

    85% {
        top: 50%;
        left: 50%;
    }
}

@keyframes gradient-3 {

    0%,
    100% {
        bottom: 0;
        left: 0;
    }

    40% {
        bottom: 50%;
        left: 25%;
    }

    65% {
        bottom: 25%;
        left: 50%;
    }
}

@keyframes gradient-4 {

    0%,
    100% {
        bottom: 0;
        right: 0;
    }

    50% {
        bottom: 25%;
        right: 40%;
    }

    90% {
        bottom: 50%;
        right: 25%;
    }
}