/* Design System & Variables */
:root {
    /* Modern Hip Palette */
    --color-bg-dark: #0a0e17;
    /* Deep midnight blue */
    --color-bg-card: #151b2b;
    /* Slightly lighter for cards */
    --color-primary: #00f2ff;
    /* Electric Cyan */
    --color-secondary: #7000ff;
    /* Electric Purple */
    --color-accent: #ff0055;
    /* Neon Pink/Red for CTAs */
    --color-text-main: #ffffff;
    --color-text-muted: #94a3b8;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --blob-gradient: linear-gradient(45deg, var(--color-secondary), var(--color-primary));
    --glass-bg: rgba(21, 27, 43, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 20px rgba(0, 242, 255, 0.3);

    --radius-lg: 1rem;
    --radius-xl: 2rem;
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text-main);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    appearance: none;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 85, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 85, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-bg-dark);
    box-shadow: var(--shadow-glow);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -1px;
    background: linear-gradient(to right, #00f2ff, #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
}

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

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

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

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
    padding: 10px;
    margin-right: -10px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Nav Active State */
.nav-links.active {
    transform: translateX(0);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries for Mobile Nav */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        background: rgba(10, 14, 23, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }

    .nav-links a {
        font-size: 1.5rem;
    }
}

/* Home Section (formerly Hero) */
.home-section {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-image: linear-gradient(rgba(10, 14, 23, 0.7), rgba(10, 14, 23, 0.7)), url('assets/images/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Remove old pseudo-element if it exists or reset it */
/* Remove old pseudo-element if it exists or reset it */
.home-section::before {
    display: none;
}

.home-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
    margin: 0 auto;
}

.home-section h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.home-section h1 span {
    color: var(--color-primary);
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

.home-section p {
    font-size: 1.4rem;
    color: #e2e8f0;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Removed split layout styles */

/* Services / Categories Grid */
.categories {
    padding: 8rem 0;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--color-text-muted);
}

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

.card {
    background: var(--color-bg-card);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--color-primary);
}

.card-image {
    height: 240px;
    width: 100%;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

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

.card-content {
    padding: 2rem;
}

.card-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-bg-dark);
    background: var(--color-primary);
    border-radius: 50px;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--color-primary);
    font-weight: 600;
}

.link-arrow svg {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.card:hover .link-arrow svg {
    transform: translateX(5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 960px) {
    .home-section {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 80px;
    }

    .hero-image-wrapper {
        display: none;
        /* Hide if it still exists in old HTML */
    }

    .home-content {
        max-width: 90%;
        margin: 0 auto;
    }

    /* .hero-overlay deprecated */

    .home-section h1 {
        font-size: 3rem;
    }
}

/* Contact Section & Forms */
.contact-section {
    padding: 8rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 960px) {
    .contact-section {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box !important;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: white;
    font-family: var(--font-body);
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
    transition: all 0.3s ease;
}

input.form-control,
select.form-control {
    height: 56px;
    /* Forces exactly uniform height for all inputs */
}

input[type="datetime-local"].form-control {
    display: block;
    width: 100%;
    min-width: 0;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.1);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* Responsive Grid Utilities & Overrides */
.form-row,
.form-row-2-1,
.about-section {
    display: grid;
    gap: 1.5rem;
}

.form-row {
    grid-template-columns: 1fr 1fr;
}

.form-row-2-1 {
    grid-template-columns: 2fr 1fr;
}

.about-section {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.about-list {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.form-card {
    background: var(--color-bg-card);
    padding: 3rem;
    border-radius: var(--radius-xl);
    border: var(--glass-border);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 960px) {
    .about-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-list {
        display: inline-flex;
    }

    .about-image-wrapper {
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {

    .form-row,
    .form-row-2-1 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-card {
        padding: 1.5rem;
        overflow: hidden;
        /* Snips off any internal elements exceeding form width */
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .home-section h1 {
        font-size: 2.8rem;
    }

    h2,
    .section-header h2 {
        font-size: 2rem !important;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

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