:root {
    /* Color Palette */
    --primary: #001f3f;
    --accent: #00bfff;
    --secondary: #007bff;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;

    /* Gradients */
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    --gradient-dark: linear-gradient(135deg, #001f3f 0%, #001220 100%);

    /* UI Tokens */
    --radius: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 20px rgba(0, 191, 255, 0.3);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--primary);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--light);
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--light);
}

.btn-primary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-accent {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: var(--shadow-glow);
    border: none;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.5);
}

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

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

/* --- Header --- */
.header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(0, 31, 63, 0.85);
    /* Glassmorphism */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: radial-gradient(circle at top right, rgba(0, 191, 255, 0.1), transparent 40%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 2rem;
    color: #aeb5bc;
    /* Lighter than gray for dark bg */
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.abstract-shape {
    width: 300px;
    height: 300px;
    background: var(--gradient-accent);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
    filter: blur(60px);
    opacity: 0.6;
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* --- Services Section --- */
.section {
    padding: 80px 0;
}

.services {
    background-color: #001830;
    /* Slightly darker than primary */
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header p {
    color: var(--gray);
    margin-top: 10px;
}

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

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: block;
    /* Ensure it behaves like a block */
    text-decoration: none;
    /* Remove default link underline */
    color: inherit;
    /* Inherit text color */
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(0, 191, 255, 0.1);
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

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

.service-card p {
    color: #aeb5bc;
    font-size: 0.95rem;
}

/* --- Connect/Contact Section --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: var(--gradient-dark);
    padding: 60px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--light);
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* --- Footer --- */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--gray);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
    filter: drop-shadow(0 0 10px var(--accent));
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 10px;
}

.footer-logo span {
    color: var(--accent);
}

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .header-container {
        padding: 0 20px;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 31, 63, 0.98);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 30px 20px;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }

    .nav.nav-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
        visibility: visible;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .nav-list a {
        font-size: 1.2rem;
    }

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

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 20px;
    }

    .hero-visual {
        display: none;
    }

    .hero-btns {
        justify-content: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
        padding: 30px;
    }
}

/* --- Animations --- */
.revealing {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.2, 1, 0.3, 1), transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

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

/* Directional Reveals */
.service-row .service-text.revealing {
    transform: translateX(-50px);
}

.service-row .service-image-box.revealing {
    transform: translateX(50px);
}

.service-row.reverse .service-text.revealing {
    transform: translateX(50px);
}

.service-row.reverse .service-image-box.revealing {
    transform: translateX(-50px);
}

.service-row .revealing.active {
    transform: translateX(0);
}

/* Staggered Delay */
.service-row .service-image-box.active {
    transition-delay: 0.2s;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 1rem;
}

.lang-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-muted, #aeb5bc);
    transition: color 0.3s ease;
    padding: 0;
}

.lang-btn.active {
    color: var(--accent);
    font-weight: 700;
}

.lang-btn:hover {
    color: var(--light);
}

.divider {
    color: var(--text-muted, #aeb5bc);
    font-size: 0.9rem;
    opacity: 0.5;
}

/* Adjust nav for mobile to accommodate lang switcher */
@media (max-width: 768px) {
    .lang-switch {
        margin-left: 0;
        margin-top: 1rem;
        justify-content: center;
    }
}

/* --- Web Development Header --- */
.web-dev-header {
    background: linear-gradient(rgba(0, 31, 63, 0.8), rgba(0, 31, 63, 0.8)), url('images/web-dev-header.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    position: relative;
}

/* --- Target Audience Section --- */
.target-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    margin-top: 40px;
    -webkit-overflow-scrolling: touch;
}

.target-card {
    flex: 0 0 300px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    scroll-snap-align: start;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.target-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.target-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.target-content {
    padding: 20px;
}

.target-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--accent);
}

.target-content p {
    font-size: 0.95rem;
    color: #aeb5bc;
    line-height: 1.6;
}

/* Desktop Grid Override */
@media (min-width: 992px) {
    .target-scroll-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow-x: visible;
        scroll-snap-type: none;
    }

    /* Center the last two items in the grid if needed, or just let them flow */
    .target-card:nth-child(4),
    .target-card:nth-child(5) {
        grid-column: span 1;
    }

    /* Center the last row if there are 5 items (3 top, 2 bottom) */
    .target-scroll-container {
        justify-content: center;
    }
}

@media (max-width: 991px) {
    .desktop-only-visual {
        display: none;
    }
}