/* -------------------------------------------------------------------------- */
/*                                 Variables                                  */
/* -------------------------------------------------------------------------- */
:root {
    --bg-dark: #0a0e17;
    --bg-card: #131b2e;
    --bg-card-hover: #1c263b;
    --primary-green: #4ade80;
    /* Bright green accent */
    --primary-green-hover: #22c55e;
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-hero: radial-gradient(circle at top left, #1e1b4b, #0f172a, #000000);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --bg-light: #f3f4f6;
    --text-dark: #111827;
    --text-body-dark: #4b5563;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-pill: 50px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(74, 222, 128, 0.15);
}

/* -------------------------------------------------------------------------- */
/*                                   Reset                                    */
/* -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    margin-bottom: 1rem;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-md);
}

/* -------------------------------------------------------------------------- */
/*                                  Utilities                                 */
/* -------------------------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-green);
    color: #000;
    border-color: var(--primary-green);
}

.btn-primary:hover {
    background-color: var(--primary-green-hover);
    border-color: var(--primary-green-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text-white);
    color: var(--text-white);
}

.btn-outline:hover {
    background-color: var(--text-white);
    color: #000;
}

.btn-pill-white {
    background-color: var(--text-white);
    color: #000;
    padding: 10px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-pill-white:hover {
    transform: scale(1.05);
}

.btn-text {
    color: var(--primary-green);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-green);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Pure CSS Toggle Logic */
.nav-toggle-checkbox {
    display: none;
}

/* -------------------------------------------------------------------------- */
/*                                   Header                                   */
/* -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* Ensure relative positioning for absolute children if needed */
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    font-family: var(--font-heading);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: var(--text-white);
    font-weight: 500;
    opacity: 0.8;
}

.nav-links li a:hover {
    opacity: 1;
    color: var(--primary-green);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    margin-left: auto;
    /* Push to the right */
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* -------------------------------------------------------------------------- */
/*                                Hero Section                                */
/* -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    padding: 160px 0 100px;
    background: var(--gradient-hero);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Background Blobs */
.background-blobs .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #4f46e5;
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #0284c7;
    bottom: -100px;
    right: -100px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-heading-group h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero-heading-group h2 {
    font-size: 2.8rem;
    color: var(--text-gray);
    font-weight: 500;
}

.icon-deco {
    color: var(--primary-green);
    font-size: 0.8em;
    vertical-align: middle;
    margin-left: 10px;
}

.hero-description {
    font-size: 1.1rem;
    margin: 20px 0 30px;
    max-width: 500px;
}

.hero-list {
    margin-bottom: 30px;
}

.hero-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--text-white);
}

.hero-list li i {
    color: var(--primary-green);
    margin-right: 12px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* 3D Tech Visual Container */
.hero-image {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

/* The Canvas itself */
#tech-canvas {
    width: 100%;
    height: 100%;
    /* Optional: Add a subtle backdrop glow */
    filter: drop-shadow(0 0 30px rgba(74, 222, 128, 0.2));
}

/* Floating Code/Data card overlay (Optional for later) */
.floating-card {
    position: absolute;
    background: rgba(19, 27, 46, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #4ade80;
    font-family: monospace;
    font-size: 0.8rem;
    pointer-events: none;
    animation: float 4s ease-in-out infinite;
}

/* -------------------------------------------------------------------------- */
/*                            Grids & Common Cards                            */
/* -------------------------------------------------------------------------- */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.card:hover {
    background-color: var(--bg-card-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* -------------------------------------------------------------------------- */
/*                                Why Choose Us                               */
/* -------------------------------------------------------------------------- */
.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* -------------------------------------------------------------------------- */
/*                                What We Do                                  */
/* -------------------------------------------------------------------------- */
.service-icon {
    font-size: 2rem;
    color: var(--text-white);
    margin-bottom: 20px;
    transition: 0.3s;
}

.service-card:hover .service-icon {
    color: var(--primary-green);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* -------------------------------------------------------------------------- */
/*                             Digital Marketing                              */
/* -------------------------------------------------------------------------- */
.digital-marketing {
    background-color: #0f1623;
}

.dm-content {
    text-align: center;
}

.dm-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.dm-services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.dm-services li {
    background: var(--bg-card);
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.dm-services li i {
    color: var(--primary-green);
}

.dm-icons {
    display: flex;
    gap: 25px;
}

.dm-icons i {
    font-size: 2rem;
    color: var(--text-gray);
    transition: 0.3s;
    cursor: pointer;
}

.dm-icons i:hover {
    color: var(--primary-green);
    transform: scale(1.2);
}

/* -------------------------------------------------------------------------- */
/*                                  Projects                                  */
/* -------------------------------------------------------------------------- */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    height: 250px;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .overlay {
    opacity: 1;
}

/* -------------------------------------------------------------------------- */
/*                                Testimonials                                */
/* -------------------------------------------------------------------------- */
.testimonial-card {
    text-align: center;
}

.client-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 2px solid var(--primary-green);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: #cbd5e1;
}

.testimonial-card h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.testimonial-card .company {
    font-size: 0.9rem;
    color: var(--primary-green);
}

/* -------------------------------------------------------------------------- */
/*                                CTA Question                                */
/* -------------------------------------------------------------------------- */
.cta-question {
    background: linear-gradient(to right, #111827, #1e1b4b);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* -------------------------------------------------------------------------- */
/*                                  Contact                                   */
/* -------------------------------------------------------------------------- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form-wrapper {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    background: #0a0e17;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.btn-block {
    width: 100%;
}

.map-wrapper {
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.map-placeholder {
    flex-grow: 1;
    background: #1f2937;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.address-text {
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--text-white);
}

.address-text i {
    color: var(--primary-green);
    margin-right: 10px;
}

/* -------------------------------------------------------------------------- */
/*                                   Footer                                   */
/* -------------------------------------------------------------------------- */
.newsletter-section {
    background: #0f172a;
    border-bottom: 1px solid var(--border-color);
}

.newsletter-form {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background: #0a0e17;
    color: var(--text-white);
    width: 300px;
}

.footer {
    background: #05080f;
    padding-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 60px 20px;
}

.footer-col h4 {
    color: var(--text-white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: var(--primary-green);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--primary-green);
    color: #000;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

/* -------------------------------------------------------------------------- */
/*                            Responsive Design                               */
/* -------------------------------------------------------------------------- */
@media (max-width: 992px) {

    .hero-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero-image {
        /* order: -1; Removed to keep Text first on mobile */
        margin-top: 50px;
        margin-bottom: 30px;
        /* Constrain image width on tablets */
        display: flex;
        justify-content: center;
    }

    .hero-image img {
        max-width: 80%;
    }

    .hero-heading-group h1 {
        font-size: 2.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 14, 23, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        padding: 15px 0;
        width: 100%;
    }

    /* Show Menu when Checkbox is Checked */
    .nav-toggle-checkbox:checked~.navbar .nav-links {
        max-height: 400px;
        /* Adjust based on content */
    }

    .mobile-menu-toggle {
        display: block;
        font-size: 1.5rem;
        color: var(--text-white);
        cursor: pointer;
    }

    .header-btn {
        display: none;
    }

    .header-container {
        padding: 0 20px;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-heading-group h1 {
        font-size: 2.2rem;
    }

    .hero-heading-group h2 {
        font-size: 1.5rem;
    }

    .search-wrapper {
        margin: 20px 0;
    }

    .hero-section {
        padding-top: 120px;
        /* Reduced padding for mobile */
    }

    .newsletter-form input {
        width: 100%;
    }

    .hero-image img {
        max-width: 100%;
        margin-top: 30px;
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .section-padding {
        padding: 50px 0;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* -------------------------------------------------------------------------- */
/*                           New Page Styles (Light)                          */
/* -------------------------------------------------------------------------- */
.bg-light {
    background-color: var(--bg-light);
    color: var(--text-body-dark);
}

.bg-white {
    background-color: #ffffff;
    color: var(--text-body-dark);
}

.text-dark-heading {
    color: var(--text-dark);
}

/* Centered Hero */
.hero-centered {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    padding-top: 180px;
    /* More space for header */
}

.hero-centered h1 {
    max-width: 800px;
    margin: 0 auto 20px;
}

/* Service Tabs */
.service-tabs-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.tab-pill {
    padding: 12px 30px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.tab-pill:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tab-pill.active {
    background: var(--text-white);
    color: var(--bg-dark);
    border-color: var(--text-white);
}

/* Curved Separator */
.curve-separator {
    position: relative;
    height: 60px;
    background: var(--bg-light);
    border-top-left-radius: 50% 100%;
    border-top-right-radius: 50% 100%;
    margin-top: -60px;
    z-index: 10;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
}

.about-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-green);
    margin-top: 10px;
    border-radius: 2px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-image img {
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-md);
}

/* Hero Social Icons (About Page) */
.hero-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.hero-social a {
    color: var(--text-white);
    font-size: 1.5rem;
    opacity: 0.8;
}

.hero-social a:hover {
    opacity: 1;
    color: var(--primary-green);
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }
}

/* -------------------------------------------------------------------------- */
/*                              Projects Page Styles                          */
/* -------------------------------------------------------------------------- */
.search-wrapper {
    max-width: 600px;
    margin: 30px auto;
    position: relative;
    z-index: 10;
}

.search-input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    font-family: var(--font-body);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-body-dark);
}

.filter-pills-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
    /* Fix for mobile */
}

.filter-pill {
    padding: 10px 25px;
    border-radius: 50px;
    background: #ffffff;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.filter-pill:hover {
    transform: translateY(-2px);
}

.filter-pill.active {
    background: #4c1d95;
    /* Dark purple */
    color: #ffffff;
}

/* Portfolio Card (Grid Style) */
.portfolio-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-image-wrapper {
    height: 200px;
    overflow: hidden;
}

.portfolio-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    /* Override generic img radius */
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image-wrapper img {
    transform: scale(1.05);
    /* Slight zoom on hover */
}

.portfolio-content {
    padding: 20px;
    border-top: 1px solid #f1f5f9;
}

.portfolio-content h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0;
    font-weight: 600;
}

/* Floating Squares */
.floating-square {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    animation: float 6s ease-in-out infinite;
    z-index: 0;
}

.square-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.square-2 {
    bottom: 30%;
    right: 15%;
    width: 80px;
    height: 80px;
    animation-delay: 2s;
}

.square-3 {
    top: 60%;
    left: 20%;
    width: 50px;
    height: 50px;
    animation-delay: 4s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}