/* Agency Grade Premium Theme */
:root {
    /* Palette: Deep, Rich, Glossy */
    --primary-bg: #0f172a;
    /* Deep Slate */
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);

    /* Gradients */
    --gradient-1: #4f46e5;
    /* Indigo */
    --gradient-2: #ec4899;
    /* Pink */
    --gradient-3: #06b6d4;
    /* Cyan */

    /* Text */
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    /* Brighter for better readability */
    --accent: #38bdf8;
    /* Sky Blue */

    /* Shadows */
    --glow: 0 0 80px rgba(56, 189, 248, 0.15);

    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.8;
    /* Increased line height */
}

h1,
h2,
h3,
h4 {
    font-family: 'Space Grotesk', sans-serif;
    /* We will add this font import */
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* --- Animated Mesh Background --- */
.mesh-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    filter: blur(80px);
    opacity: 0.6;
}

.blob {
    position: absolute;
    border-radius: 50%;
    animation: floating 20s infinite alternate;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-1);
    top: -10%;
    left: -10%;
    animation-duration: 25s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--gradient-2);
    bottom: -10%;
    right: -10%;
    animation-duration: 30s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: var(--gradient-3);
    top: 40%;
    left: 40%;
    animation-duration: 35s;
    opacity: 0.8;
}

@keyframes floating {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* --- Navbar --- */
.navbar {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: padding 0.3s;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(15, 23, 42, 0.9);
}

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

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    height: 45px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.brand-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

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

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

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

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text .subtitle {
    font-size: 1.3rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
}

.hero-text .description {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-image-container {
    position: relative;
    perspective: 1000px;
}

.hero-logo-card {
    background: var(--card-bg);
    border: var(--card-border);
    padding: 40px;
    border-radius: 30px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    /* Key for Tilt */
    transition: transform 0.1s;
    text-align: center;
}

.hero-logo-card img {
    transform: translateZ(50px);
    /* Pop out effect */
    max-width: 80%;
    margin: 0 auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}

/* --- Buttons --- */
.btn {
    padding: 18px 40px;
    border-radius: 100px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--accent);
    color: #0f172a;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #fff;
    transition: width 0.3s ease;
    z-index: -1;
    opacity: 0.2;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.6);
}

.btn-primary:hover::before {
    width: 100%;
}

/* --- Section Styling --- */
.section-padding {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 80px;
    text-align: center;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    display: inline-block;
    position: relative;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 50%;
    height: 4px;
    background: var(--accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- Stats Counter --- */
.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-box {
    background: var(--card-bg);
    border: var(--card-border);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    line-height: 1;
    margin-bottom: 5px;
    font-family: 'Space Grotesk', sans-serif;
}

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

/* --- Glass Cards (About & Services) --- */
.glass-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Very subtle */
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 60%);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card h3 {
    margin-bottom: 20px;
    font-size: 1.6rem;
    position: relative;
    padding-bottom: 10px;
}

.glass-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.glass-card:hover h3::after {
    width: 60px;
}

.glass-card ul li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    color: var(--text-muted);
    transition: color 0.3s, transform 0.2s;
}

.glass-card ul li:hover {
    color: #fff;
    transform: translateX(5px);
}

.glass-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Grid Layouts */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Contact */
.contact-wrapper {
    background: transparent;
    border: none;
    display: block;
    /* Removed previous grid */
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-info {
    padding: 50px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: var(--card-border);
    border-radius: 30px;
    height: 100%;
}

/* Form Styles */
.contact-form {
    padding: 50px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: var(--card-border);
    border-radius: 30px;
    height: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-text h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-text p,
.contact-text a {
    color: var(--text-muted);
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 30px;
    overflow: hidden;
    border: var(--card-border);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    /* Map Color Restored */
}

/* Footer */
footer {
    border-top: 1px solid var(--card-border);
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
}

/* Scroll Top */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

#scrollTopBtn.visible {
    opacity: 1;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    transform: translateY(-5px) scale(1.1);
}

/* Responsive */
@media (max-width: 900px) {

    .hero-content,
    .about-grid,
    .contact-grid {
        /* Updated selector */
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-image-container {
        order: -1;
        margin-bottom: 20px;
    }

    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 600px) {
    .section-header h2 {
        font-size: 2.2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text .description {
        font-size: 1.1rem !important;
        /* Override inline style */
    }

    .glass-card {
        padding: 30px 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .contact-info {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        padding: 40px;
        flex-direction: column;
        align-items: center;
        border-bottom: 1px solid var(--card-border);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }
}

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

.cursor2 {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, opacity 0.3s;
    transform: translate(-50%, -50%);
}

.cursor.active {
    transform: translate(-50%, -50%) scale(2);
    background: rgba(56, 189, 248, 0.1);
    border-color: transparent;
}

.cursor2.active {
    opacity: 0;
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    animation: pulse 2s infinite;
}

.preloader img {
    width: 80px;
    margin-bottom: 20px;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

/* --- Profile Image --- */
.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
    margin: 0 auto 25px auto;
    display: block;
    transition: var(--transition);
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.5);
    border-color: #fff;
}