/* =========================
   RESET & VARIABLES
========================= */
:root {
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --bg-card: #ffffff;
    --bg-overlay: rgba(255, 255, 255, 0.9);

    --primary: #2563eb;
    --secondary: #1e40af;
    --accent: #0ea5e9;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #f8fafc;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================
   TYPOGRAPHY
========================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

.text-gradient {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================
   LAYOUT UTILITIES
========================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }
}

/* =========================
   BUTTONS
========================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* =========================
   HEADER
========================= */
/* =========================
   HEADER & NAVIGATION
========================= */
header {
    padding: 20px 0;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    /* Increased z-index */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    z-index: 1001;
    /* Ensure logo stays above menu overlay if needed */
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

/* HAMBURGER MENU */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1002;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 3px 0;
    transition: 0.4s;
    border-radius: 2px;
}

/* Menu Toggle Animation */
.menu-toggle.is-active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    background-color: var(--primary);
}

.menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    background-color: var(--primary);
}

/* =========================
   HERO SECTION
========================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-alt);
    margin-bottom: 0;
    background-image: url('../images/hero-new.jpg');
    background-size: cover;
    background-position: center;
    padding-top: 80px;
    /* Add padding for header space on mobile */
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: var(--text-main);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.badges {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.badge {
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
}

/* =========================
   SERVICES
========================= */
#services {
    position: relative;
    background-color: #ffffff;
    background-image:
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.1) 0px, transparent 55%),
        radial-gradient(at 100% 100%, rgba(14, 165, 233, 0.12) 0px, transparent 55%);
    overflow: hidden;
}

#services::after {
    content: '';
    position: absolute;
    bottom: 50px;
    left: -50px;
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, var(--primary), transparent);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.08;
    animation: floatShape 20s infinite linear;
    z-index: 0;
    pointer-events: none;
}

@keyframes floatShape {
    0% {
        transform: rotate(0deg) translate(0, 0);
    }

    50% {
        transform: rotate(180deg) translate(20px, 20px);
    }

    100% {
        transform: rotate(360deg) translate(0, 0);
    }
}

#services .container {
    position: relative;
    z-index: 1;
}

.service-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 0;
    mix-blend-mode: normal;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary);
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.6));
    transition: var(--transition);
}

.service-card:hover .service-icon svg {
    stroke: var(--accent);
    filter: drop-shadow(0 0 12px rgba(14, 165, 233, 0.8));
    transform: scale(1.1);
}

.service-card .service-icon {
    box-shadow: none;
    mix-blend-mode: normal;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================
   UPDATED INDUSTRY CARDS
========================= */
.industry-tag {
    background: var(--bg-card);
    padding: 40px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 200px;
}

.industry-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.industry-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary);
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 5px rgba(37, 99, 235, 0.4));
    transition: var(--transition);
}

.industry-tag:hover .industry-icon svg {
    stroke: var(--accent);
    filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.7));
    transform: scale(1.1);
}

.industry-tag:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: #eff6ff;
}

.industry-tag h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.industry-tag:hover h4 {
    color: var(--primary);
}

/* =========================
   ABOUT SECTION
========================= */
.about-start {
    padding: 100px 0;
    position: relative;
    background-color: #ffffff;
    background-image: radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.06) 0%, transparent 40%);
    overflow: hidden;
}

.about-start::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.04) 0%, transparent 70%);
    z-index: 0;
    border-radius: 50%;
}

.about-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 5px solid white;
    width: 100%;
    /* Removing crop as requested */
    height: auto;
    display: block;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    left: auto;
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.1;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.about-text p {
    margin-bottom: 20px;
    color: black;
    /* Changed to black */
    font-size: 1.05rem;
}

/* =========================
   CONTACT SECTION
========================= */
.contact-section {
    position: relative;
    padding: 80px 0;
    background-image: url('../images/contact-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact-overlay {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 50px;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-lg);
}

.contact-overlay h2 {
    color: var(--text-main);
}

.contact-overlay p {
    color: var(--text-muted) !important;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Contact Details */
.contact-details {
    padding-right: 20px;
}

.contact-details h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 20px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-item:hover .icon-box {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.icon-box svg {
    width: 24px;
    height: 24px;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-text strong {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text-main);
}

.contact-text a,
.contact-text span {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.contact-text a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .contact-details {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }

    .contact-item {
        flex-direction: column;
        /* Stack icon and text on mobile for centered look? Or keep row? */
        align-items: center;
        text-align: center;
    }
}

/* =========================
   FOOTER
========================= */
footer {
    border-top: 1px solid #e2e8f0;
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: var(--bg-alt);
}

/* =========================
   WHATSAPP & CALL FLOATS
========================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

.call-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.call-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
    background-color: #0056b3;
}

/* =========================
   MEDIA QUERIES (RESPONSIVENESS)
========================= */

@media (max-width: 992px) {

    /* Mobile Navigation */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        text-align: center;
        gap: 20px;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .about-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }

    .about-image::before {
        right: 10px;
        top: 10px;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        margin-left: 0 !important;
        text-align: center;
    }

    .contact-overlay {
        padding: 30px;
    }

    .whatsapp-float,
    .call-float {
        width: 50px;
        height: 50px;
        right: 20px;
    }

    .call-float {
        bottom: 85px;
    }

    .whatsapp-float {
        bottom: 25px;
    }
}