/* --- 1. FONTS & VARIABLES (MATCHING ABOUT PAGE) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700&family=Orbitron:wght@500;700&display=swap');

:root {
    /* Theme Colors */
    --bg-dark: #0a0e17;        /* Deep Navy/Black */
    --bg-panel: #111625;       /* Card Background */
    --input-bg: #0d121f;       /* Darker for inputs */
    --primary-cyan: #00f0ff;   /* Neon Cyan Accent */
    --accent-purple: #bd00ff; 
    
    /* Neon Purple Accent */
    --neon-blue: #00C6FF;
    --neon-purple: #9D00FF;
    /* Text Colors */
    --text-white: #ffffff;
    --text-gray: #a0a8b8;
    --text-dark: #000000;

    /* Fonts */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Dimensions */
    --border-radius: 4px; /* Sharper corners for tech look */
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --glow: 0 0 15px rgba(0, 240, 255, 0.3);
}

/* --- 2. GLOBAL RESET --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- 3. NAVBAR (Glassmorphism Style) --- */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0 30px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    background: rgb(230 233 243 / 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.4s ease;
    z-index: 999;
}

.sticky {
    background: rgba(203, 205, 211, 0.95);
    border-bottom: 1px solid rgba(0, 198, 255, 0.2);
}

/* LOGO */
.logo img {
    width: 80px;
    height: 60px;
}

/* NAV CENTER */
.nav-middle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    color: black;
    padding-bottom: 5px;
    transition: 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: blue;
    text-shadow: 0 0 10px rgba(0, 198, 255, 0.5);
}

/* CONTACT BUTTON */
.contact-right a {
    text-decoration: none;
    font-weight: bold;
    padding: 10px 18px;
    border-radius: 6px;
    color: white;
    background: linear-gradient(90deg, var(--neon-blue), #3530bf);
    transition: 0.3s;
}

.contact-right a:hover {
    background: linear-gradient(90deg, #3530bf, var(--neon-blue));
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.4);
}

/* HAMBURGER */
.mobile-menu-toggle {
    display: none;
}

/* =========================================
   MEGA DROPDROPS
========================================= */
.mega-dropdown-parent {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}


/* SOLUTION HUB SPECIFIC */
.mega-solution .mega-menu-container {
    width: 350px;
    padding: 16px 22px;
}

.mega-solution .mega-content-grid {
    grid-template-columns: 1fr;
    gap: 12px;
}

.mega-solution .mega-col ul {
    gap: 6px;
}


.mega-menu-container {
    position: absolute;
    top: 170%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: min(750px, 92vw);
    background: rgb(230 233 243 / 90%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-top: 1px solid var(--neon-blue);
    border-radius: 0 0 10px 10px;
    padding: 18px 28px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
}

.mega-dropdown-parent:hover .mega-menu-container {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* GRID */
.mega-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

/* COLUMN HEADER */
.mega-col h4.neon-title {
    color: #000;
    font-size: 0.9rem;
    font-weight: bolder;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 22px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 10px;
    cursor: pointer;
}

.mega-col h4 i {
    color: var(--neon-purple);
    margin-right: 8px;
}

/* LIST */
.mega-col ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mega-col ul li a {
    text-decoration: none;
    color: #333333;
    font-weight: bold;
    margin-left: 22px;
    font-size: 0.95rem;
    display: block;
    transition: 0.2s;
}

.mega-col ul li a:hover {
    color: blue;
    text-shadow: 0 0 10px rgba(0, 198, 255, 0.5);
    transform: translateX(5px);
}

/* Arrow rotate */
.arrow-icon {
    margin-left: 6px;
    transition: 0.3s;
}

.mega-dropdown-parent:hover .arrow-icon {
    transform: rotate(180deg);
    color: blue;
}
/* --- 4. CONTACT SECTION LAYOUT --- */
.contact-section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-white);
    border-bottom: 2px solid var(--primary-cyan);
    display: inline-block;
    padding-bottom: 10px;
}

/* --- GRID LAYOUT: Your Custom 3+1 Layout --- */
.contact-grid {
    display: grid;
    /* 3 columns equal, 4th column double width */
    grid-template-columns: repeat(3, 1fr) 2fr; 
    gap: 30px;
    align-items: start;
}

/* --- 5. CARDS & 3D FLIP STYLING --- */
.card {
    background-color: var(--bg-panel);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
    position: relative; 
    overflow: hidden;
    height: 100%; /* Ensure uniform height */
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-cyan);
    box-shadow: var(--glow);
}

.card-icon {
    font-size: 3em;
    color: var(--primary-cyan);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px rgba(0,240,255,0.5));
}

.card h3 {
    font-family: var(--font-heading);
    margin-bottom: 15px;
    font-size: 1.3em;
    color: var(--text-white);
}

/* Standard Button inside Card */
.btn-primary {
    background-color: transparent;
    color: var(--primary-cyan);
    border: 1px solid var(--primary-cyan);
    padding: 10px 25px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    transition: 0.3s;
    margin-top: 15px;
}

.btn-primary:hover {
    background-color: var(--primary-cyan);
    color: var(--text-dark);
    box-shadow: var(--glow);
}

/* --- 3D OVERLAY (The Back of the Card) --- */
.contact-details-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%;
    padding: 20px;
    /* Cyberpunk Gradient Background */
    background: linear-gradient(135deg, var(--bg-panel) 0%, #0b1d2e 100%);
    border: 1px solid var(--primary-cyan);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* 3D Properties */
    opacity: 0;
    transform: rotateY(-90deg);
    transform-origin: left; 
    transition: opacity 0.4s, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
    border-radius: var(--border-radius);
    z-index: 10;
}

.contact-details-3d.active {
    opacity: 1;
    transform: rotateY(0deg); 
}

.detail-option {
    margin: 10px 0;
    font-size: 1em;
    color: var(--text-gray);
    font-family: var(--font-body);
}

.detail-option strong {
    color: var(--primary-cyan);
    display: block;
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

/* --- 6. MAP & ADDRESS SECTION --- */
.map-and-addresses {
    grid-column: 4 / 5;
    background: var(--bg-panel);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.05);
}

#map {
    width: 100%;
    height: 350px; 
    background-color: #1a2236; /* Placeholder color before map loads */
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    filter: grayscale(100%) invert(90%); /* Makes generic maps look dark/techy */
    border: 1px solid var(--primary-cyan);
}

.address-group {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    text-align: left;
}

.address-box {
    flex: 1;
    padding: 15px;
    background-color: var(--input-bg);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--accent-purple);
}

.address-box h4 {
    color: var(--text-white);
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-size: 0.9em;
}

.address-box p {
    font-size: 0.85em;
    color: var(--text-gray);
}

/* --- 7. BOTTOM CONTACT FORM --- */
.bottom-contact-form {
    background: radial-gradient(circle at center, #1a2236 0%, var(--bg-dark) 80%);
    padding: 80px 5%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.bottom-contact-form h2 {
    font-family: var(--font-heading);
    margin-bottom: 40px;
}

.bottom-contact-form form {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Input Styling */
input, textarea, select {
    width: 100%;
    padding: 15px;
    background-color: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-white);
    font-family: var(--font-body);
    transition: 0.3s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.bottom-contact-form textarea {
    grid-column: 1 / -1;
    min-height: 150px;
    resize: vertical;
}

.bottom-contact-form button {
    grid-column: 1 / -1;
    max-width: 300px;
    margin: 20px auto 0;
    background: var(--primary-cyan);
    color: var(--text-dark);
    border: none;
    padding: 15px 30px;
    font-family: var(--font-heading);
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    border-radius: var(--border-radius);
}

.bottom-contact-form button:hover {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}

/* --- 8. MODAL (POP UP) --- */
.modal {
    display: none; /* JS will change to flex */
    position: fixed;
    inset: 0;
    z-index: 2000;

    justify-content: center;
    align-items: center;

    background: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(124,58,237,0.15));
    backdrop-filter: blur(8px);
    padding: 20px;
}

/* =========================================
   MODAL CONTENT (GLASS PANEL)
========================================= */

.modal-content {
    background: black;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 30px;
    border-radius: 18px;
    position: relative;
    animation: scaleIn 0.35s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* Gradient Glow Border */
.modal-content::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    background: linear-gradient(135deg, #00c6ff, #7c3aed, #ec4899);
    z-index: -1;
    filter: blur(18px);
    opacity: 0.5;
}

/* =========================================
   ANIMATION
========================================= */

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================================
   CLOSE BUTTON
========================================= */

.close-btn {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 22px;
    cursor: pointer;
    color: #f2f4f7;
    transition: 0.3s ease;
}

.close-btn:hover {
    color: white;
    transform: rotate(90deg);
}

/* =========================================
   TITLE
========================================= */

.modal-content h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 22px;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #00c6ff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   FORM ROW
========================================= */

.modal-content .form-row {
    display: flex;
    gap: 12px;
}

.modal-content .form-row > * {
    flex: 1;
}

/* =========================================
   INPUT STYLE
========================================= */

.modal-content input,
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 11px 14px;
    margin-bottom: 14px;
    border-radius: 14px;
    border: 2px solid transparent;
    color: black;
    font-size: 14px;
    font-weight: 500;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, #00c6ff, #7c3aed) border-box;
    transition: all 0.3s ease;
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
    outline: none;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.25);
    transform: translateY(-2px);
}

.modal-content textarea {
    resize: none;
    height: 110px;
}

/* =========================================
   FULL WIDTH BUTTON
========================================= */

.modal-content .full-btn {
    width: 100%;
    margin-top: 10px;
}


/*-----------------------section divider --------------------------------*/

.section-divider {
    width: 100%;
    height: 1px;
    margin: 90px 0;

    /* Soft seam, not a hard line */
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.25),
        transparent
    );

    opacity: 0;
    filter: blur(2px);
    transition: opacity 0.6s ease, filter 0.6s ease;
}

/* ACTIVE (on scroll) */
.section-divider.active {
    opacity: 1;
    filter: blur(0);
}

.main-footer {
    background: linear-gradient(to top, #020305, #050810);
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
    padding: 60px 20px 40px;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 220px;
}

/* BRAND COLUMN */
.brand-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-logo {
    width: 150px;
    max-width: 100%;
    filter: drop-shadow(0 0 12px rgba(0,198,255,0.3));
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

/* HEADINGS */
.footer-col h4 {
    color: white;
    font-size: 1rem;
    letter-spacing: 0.6px;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h4::after {
    content: "";
    width: 32px;
    height: 2px;
    margin-top: 8px;
    display: block;
    background: linear-gradient(
        90deg,
        var(--neon-blue),
        var(--neon-purple)
    );
    opacity: 0.7;
}

/* LINKS */
.footer-col ul {
    padding: 0;
}

.footer-col ul li {
    list-style: none;
    margin-bottom: 12px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #888;
    font-size: 0.95rem;
    transition: 0.3s;
    position: relative;
}

.footer-col ul li a:hover {
    color: var(--neon-blue);
    padding-left: 6px;
}

/* SOCIAL BOX */
.social-box-container {
    display: flex;
    justify-content: flex-end;
}

.social-glow-box {
    background: rgba(255,255,255,0.03);
    padding: 28px;
    border-radius: 16px;

    border: 2px solid transparent;
    background-image:
        linear-gradient(var(--bg-dark), var(--bg-dark)),
        linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    background-origin: border-box;
    background-clip: padding-box, border-box;

    box-shadow: 0 0 30px rgba(157,0,255,0.3);
    text-align: center;
}

.social-glow-box h4 {
    background: linear-gradient(to right, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* SOCIAL ICONS */
.social-icons-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 22px;
}

.social-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}

.facebook { color: #1877f2; }
.facebook:hover { box-shadow: 0 0 20px #1877f2; }

.instagram { color: #c32aa3; }
.instagram:hover { box-shadow: 0 0 20px #c32aa3; }

.x-twitter { color: #fff; }
.x-twitter:hover { box-shadow: 0 0 20px #fff; }

.linkedin { color: #0a66c2; }
.linkedin:hover { box-shadow: 0 0 20px #0a66c2; }

/* BOTTOM BAR */
.footer-bottom {
    text-align: center;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: #666;
    font-size: 0.85rem;
}
/* =========================================
   AUTOMATION-ANYWHERE STYLE FOOTER
========================================= */

.aa-footer {
    background: #1b1b1b;
    color: #fff;
    padding: 50px 20px 0;
}

/* TOP BRAND ROW */
.aa-footer-top {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

.aa-brand img {
    width: 80px;
    height: 60px;
    background-color: white;
    border-radius: 5px;
}

.aa-divider-vertical {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.3);
}

.aa-tagline p {
    font-size: 1.4rem;
    font-weight: 300;
    color: #ffffff;
}

/* HORIZONTAL LINE */
.aa-footer-line {
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 40px auto;
    max-width: 1200px;
}

/* BOTTOM GRID */
.aa-footer-bottom {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.aa-footer-col h4 {
    margin-bottom: 20px;
    font-size: 0.95rem;
    letter-spacing: 1px;
    color: #fff;
}

.aa-footer-col ul {
    list-style: none;
    padding: 0;
}

.aa-footer-col ul li {
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #bbb;
}

.aa-footer-col ul li a {
    text-decoration: none;
    color: #bbb;
    transition: 0.3s;
}

.aa-footer-col ul li a:hover {
    color: var(--neon-blue);
}

/* CONTACT LIST */
.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* COPYRIGHT */
.aa-footer-copy {
    text-align: center;
    padding: 18px;
    font-size: 0.85rem;
    color: #888;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* =========================================
   MEDIA QUERIES (MOBILE)
========================================= */
@media (max-width: 900px) {
    /* HEADER */
    .main-header {
        padding: 12px 16px;
    }

    .logo img {
        width: 70px;
        height: 50px;
    }

    .mobile-menu-toggle {
        display: flex;
        font-size: 26px;
        cursor: pointer;
        color: #000;
    }

    .contact-right {
        display: none;
    }

    /* NAV PANEL */
    .main-nav {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        height: calc(100vh - 64px);
        background: #ffffff;
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 3000;
        overflow-y: auto;
    }

    .main-nav.active {
        display: flex;
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        padding: 20px;
        gap: 10px;
    }

    .main-nav a {
        color: #111 !important;
        font-size: 16px;
        padding: 12px 10px;
    }

    /* SPLIT CONTAINER STACKED */
    .split-container {
        flex-direction: column;
    }

    .split-side {
        padding: 40px 20px;
        border-right: none;
        border-top: 1px solid rgba(255,255,255,0.05);
    }
  .split-side:first-child { border-top: none; }

    /* HERO FONT ADJUST */
    .hero h1 { font-size: 2rem; }
    .subtitle { font-size: 1rem; max-width: 90%; }

    /* MEGA MENU ACCORDION */
    .mega-menu-container {
        position: static;
        width: 100%;
        padding: 10px 15px;
        display: none;
        box-shadow: none;
        background: #f6f7f9;
    }

    .mega-dropdown-parent.active .mega-menu-container { display: block; }

    .mega-content-grid { grid-template-columns: 1fr; gap: 12px; }
    .arrow-icon { transform: none !important; }
}
/* ===============================
   CONTACT PAGE – MOBILE FIX
   =============================== */

/* Default (Desktop stays same) */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

/* Card safety */
.card {
    width: 100%;
    box-sizing: border-box;
}

/* ===============================
   MOBILE & TABLET FIX
   =============================== */
@media (max-width: 768px) {

    /* Stack everything */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Cards */
    .card {
        padding: 20px;
        border-radius: 14px;
        text-align: center;
    }

    .card h3 {
        font-size: 1.2rem;
    }

    .card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .card-icon {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    /* Buttons */
    .btn-primary {
        width: 100%;
        padding: 12px;
        font-size: 0.95rem;
    }

    /* Contact details reveal */
    .contact-details-3d {
        margin-top: 12px;
        font-size: 0.9rem;
    }

    /* Map section */
    .map-and-addresses {
        grid-column: auto;
        margin-top: 10px;
    }

    .map-and-addresses iframe {
        height: 280px;
        border-radius: 12px;
    }

    .address-box {
        margin-top: 15px;
        padding: 15px;
        text-align: center;
    }
}
