/* --- Variables & Reset --- */
:root {
    --primary-color: #0c4a6e; /* Deep Corporate Blue */
    --secondary-color: #0284c7; /* Lighter Tech Blue */
    --accent-color: #e11d48; /* Security Red/Rose for emphasis */
    --text-dark: #1f2937;
    --text-light: #4b5563;
    --bg-light: #f3f4f6;
    --bg-dark: #111827;
    --white: #ffffff;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 180px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 100px 0; }
.bg-light { background-color: var(--bg-light); }

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.gradient-text-hero {
    /* White to Bright Cyan/Sky Blue */
    background: linear-gradient(135deg, #ffffff 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
    filter: drop-shadow(0 2px 10px rgba(56, 189, 248, 0.3));
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.btn-filled {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}
.btn-filled:hover { background-color: var(--white); border-color: var(--primary-color); color: var(--primary-color); }

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 10px;
}
.btn-outline:hover { background-color: var(--white); color: var(--primary-color); }

.btn-white-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 10px 25px;
}
.btn-white-outline:hover { background-color: var(--white); color: var(--text-dark); }

/* --- Site Header Wrapper --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* --- Top Bar Styling --- */
.top-bar {
    background-color: var(--primary-color); /* Dark Blue */
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar .container {
    display: flex;
    justify-content: flex-end; /* Aligns contact info to the right */
}

.contact-items {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.top-link:hover {
    color: var(--white);
    text-decoration: underline;
}

.divider {
    color: rgba(255, 255, 255, 0.3);
}

/* --- Navbar (Glassmorphism + 100px Height) --- */
.navbar {
    position: relative; /* Changed from fixed because site-header handles fix */
    background: rgba(255, 255, 255, 0.90); /* Slightly more opaque */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    height: 100px; /* Height increased */
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 0; /* Hides text since using image */
}

.logo img {
    max-width: 100%;
    height: auto;
    max-height: 80px; /* Increased to fit 100px navbar */
    object-fit: contain;
}

.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition);
}
.nav-link:hover { color: var(--secondary-color); }

.nav-link.btn-primary {
    padding: 10px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
}
.nav-link.btn-primary:hover { background-color: var(--secondary-color); color: white; }

.nav-link.btn-remote {
    padding: 10px 24px;
    background-color: #DE3163;
    color: var(--white);
    border-radius: 4px;
}
.nav-link.btn-remote:hover { background-color: #F88379; color: white; }

/* --- Mobile Menu --- */
.menu-toggle { display: none; cursor: pointer; }
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--text-dark);
}

/* --- Hero Section (Animated Background) --- */
/* --- UPDATED HERO SECTION --- */
.hero {
    position: relative;
    height: auto;
    /*min-height: 75vh; /* Slightly taller minimum to ensure space */
    display: flex;
    
    /* FIX: Stop vertically centering. Align to top instead. */
    align-items: flex-start; 
    
    /* FIX: Push content down manually to clear the 140px header 
       Calculation: Header Height (140px) + Counter Neg Margin (80px) + Space (30px) = 250px */
    padding-top: 290px; 
	padding-bottom: 100px;
    
    color: var(--white);
    margin-top: -80px; /* Keeps background behind header */
    overflow: hidden; 
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1352&q=80') no-repeat center center/cover;
    z-index: 0;
    animation: subtleZoom 30s ease-in-out infinite alternate;
}

.hero .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(12,74,110,0.95) 0%, rgba(12,74,110,0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-btns {
    display: flex;
    justify-content: left; /* Centers buttons horizontally */
    gap: 15px; /* Adds space between the buttons */
    flex-wrap: wrap; /* Allows them to stack on very small screens */
    margin-top: 25px;
}

.badge {
    background: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
}
.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 650px;
}

.business-alert-banner {
    width: 100%;
    background: #0284c7; 
    color: var(--white);
    text-align: center;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.business-alert-banner a {
    color: #ffffff; 
    font-weight: 700;
    text-decoration: underline;
    margin-left: 5px;
}

.business-alert-banner a:hover {
    color: #e0f2fe;
}
.tech-marquee {
    background: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.tech-logo {
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}
.btn-with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Adds a nice space between the icon and the text */
}

/* Shrinks the SVG to fit inside the button */
.btn-with-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor; /* This makes the icon automatically match the text color */
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 7)); }
}

.text-content p {
    margin-bottom: 20px; /* Adjust this number to increase/decrease space */
    line-height: 1.7;    /* Optional: Makes the text easier to read */
}

/* Optional: Remove margin from the very last paragraph so it aligns perfectly with the bottom */
.text-content p:last-child {
    margin-bottom: 0;
}

/* --- MSP Explainer --- */
/* --- IMPROVED ANIMATION CONTAINER --- */

/* --- IMPROVED ANIMATION CONTAINER (Updated for better visibility) --- */

/* 1. The Container Background */
.animation-container {
    position: relative;
    width: 100%;
    height: 100%;
    /* Darker background so the white window stands out */
    background-color: #e2e8f0; 
    background-image: radial-gradient(#94a3b8 1px, transparent 1px); /* Darker grid dots */
    background-size: 20px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center; /* This ensures the window floats in the EXACT center */
    overflow: hidden;
    border: 1px solid #cbd5e1;
}

/* 2. The "Software Window" Frame (Made Bigger) */
.desktop-window {
    background: white;
    /* Make it fill 85% of the box width, with a max limit */
    width: 85%; 
    max-width: 400px; 
    padding: 30px 20px; /* Increased padding for a bigger look */
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #cbd5e1;
    text-align: center;
    position: relative;
    z-index: 5;
    
    /* Ensure it doesn't overlap the caption at the bottom */
    margin-bottom: 30px; 
}

/* Window Header (The visual dots) */
.window-header {
    display: flex;
    gap: 8px;
    justify-content: center; /* Center the dots for symmetry */
    margin-bottom: 20px;
}
.dot {
    width: 12px; 
    height: 12px; 
    border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #22c55e; }

/* Window Text */
.window-title {
    font-size: 1.1rem; /* Larger text */
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
    display: block;
}
.window-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 25px;
    display: block;
}

/* ... Keep .demo-btn and .mouse-cursor as they are ... */
/* 3. Keep your existing Button & Mouse styles... */
/* Ensure .demo-btn does NOT have absolute positioning if it had it before */
.demo-btn {
    /* ... keep your existing color/shadow styles ... */
    display: inline-block; /* Ensure it sits nicely in the div */
    margin: 0 auto;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.align-center { align-items: center; }

.accent-text {
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.msp-explainer h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.msp-explainer p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.check-list li {
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
}

.img-box {
    background: var(--bg-light);
    height: 400px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    border: 2px dashed #cbd5e1;
}

/* --- Security Section --- */
.security-section {
    background-color: var(--bg-dark);
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }
.section-header p { color: #9ca3af; font-size: 1.1rem; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.security-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 35px;
    border-radius: 8px;
    transition: var(--transition);
}
.security-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.card-header .icon {
    font-size: 2rem;
    margin-right: 15px;
}
.card-header h3 { font-size: 1.5rem; color: var(--white); }
.security-card p { color: #d1d5db; font-size: 0.95rem; line-height: 1.7; }
.security-card strong { color: var(--secondary-color); }

/* --- Services Grid --- */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.mini-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid var(--secondary-color);
    transition: var(--transition);
}
.mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 20px -5px rgba(0,0,0,0.1);
}

.mini-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.mini-card p { font-size: 0.9rem; color: var(--text-light); }

/* --- Workshop Banner --- */
.workshop-banner {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}
.workshop-content h3 { font-size: 1.8rem; margin-bottom: 10px; }
.small-text { font-size: 0.9rem; opacity: 0.9; margin-bottom: 20px; display: block; }

/* --- Contact Section --- */
.contact-info h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.contact-info p { margin-bottom: 30px; }
.info-row { margin-bottom: 25px; }
.info-row strong { display: block; color: var(--primary-color); margin-bottom: 5px; }

/* Form Styling */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form h3 { margin-bottom: 5px; color: var(--primary-color); }

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.contact-form button {
    width: 100%;
    margin-top: 10px;
}

/* --- Footer --- */
footer {
    background: var(--bg-dark);
    color: #6b7280;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #374151;
}
.legal { font-size: 0.8rem; margin-top: 10px; }
/* --- Modern Contact Cards (Light to Dark Hover) --- */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.contact-card {
    display: flex;
    align-items: center;
    /* SWAPPED: Start with the lighter blue by default */
    background-color: var(--secondary-color); 
    color: var(--white);
    padding: 20px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    /* SWAPPED: Turn dark blue on hover */
    background-color: var(--primary-color); 
    color: var(--white);
}

/* The circular icon background inside the card */
.contact-card-icon {
    width: 55px;
    height: 55px;
    /* This semi-transparent white still looks great on the lighter blue */
    background-color: rgba(255, 255, 255, 0.15); 
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    flex-shrink: 0;
}

/* Icon size inside the circle */
.contact-card-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.contact-card-text {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word; 
    width: 100%; 
}
/* --- Modern Contact Heading Styles --- */
.contact-kicker {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 1px;
    margin-bottom: 20px;
    position: relative;
}

/* The floating underline */
.contact-kicker::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 4px;
    background-color: #ff6b4a; /* Using orange to match your inspiration */
    border-radius: 2px;
}

.contact-heading {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 15px;
}
/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes subtleZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* --- MOUSE ANIMATION (Smoother) --- */
.animation-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #e0f2fe;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 2px solid #cbd5e1;
}

.demo-btn {
    padding: 15px 30px;
    background: #ef4444;
    color: white;
    font-weight: bold;
    border-radius: 6px;
    box-shadow: 0 4px 0 #b91c1c;
    transition: all 0.2s;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    animation: btnState 6s infinite;
}

.mouse-cursor {
    width: 24px;
    height: 24px;
    position: absolute;
    top: 110%;
    left: 110%;
    z-index: 10;
    pointer-events: none;
    animation: mouseMove 6s ease-out infinite;
}

@keyframes mouseMove {
    0% { top: 110%; left: 110%; opacity: 1; }
    25% { top: 62%; left: 50%; margin-top: 10px; margin-left: 10px; transform: scale(1); }
    28% { transform: scale(0.8); }
    31% { transform: scale(1); }
    50% { top: 62%; left: 50%; opacity: 1; }
    100% { top: -20%; left: -20%; opacity: 0; }
}

@keyframes btnState {
    0%, 27% { background: #ef4444; box-shadow: 0 4px 0 #b91c1c; transform: translateY(0); }
    28% { transform: translateY(4px); box-shadow: 0 0 0 #b91c1c; }
    31% { transform: translateY(0); box-shadow: 0 4px 0 #15803d; background: #22c55e; }
    31%, 100% { background: #22c55e; box-shadow: 0 4px 0 #15803d; }
}

.demo-btn::after { content: "Fix Issue"; display: block; }
.demo-btn.resolved::after { animation: textSwap 6s infinite; }
@keyframes textSwap { 0%, 30% { content: "Fix Issue"; } 31%, 100% { content: "Resolved ✓"; } }

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
    /* ... existing menu toggle code ... */
    .menu-toggle { display: block; }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* ... existing nav menu code ... */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 100px; 
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 30px 0;
    }
    .nav-menu.active { left: 0; }
    .nav-menu li { margin: 15px 0; }

    /* --- UPDATED HERO FIXES --- */
/* FIX: Hero Section Mobile Adjustments */
    .hero {
        /* 1. Stop vertically centering (this fixes the overlapping/cutoff) */
        align-items: flex-start; 
        
        /* 2. Manually push content down past the header */
        /* Calculation: Header(~140px) + NegMargin(80px) + Gap(20px) = ~240px */
        padding-top: 240px; 
        
        padding-bottom: 80px;
        height: auto;       
        min-height: 100vh; /* Make it look full-screen */
        text-align: center;
    }

    .hero-content {
        width: 100%;
        padding: 0 20px;
    }

    .hero-content h1 { 
        font-size: 2.2rem; 
        line-height: 1.2;
        margin-bottom: 15px; /* Adds space between title and text */
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-btns {
        justify-content: center; /* Center buttons on mobile */
    }

    /* ... rest of your mobile styles ... */
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    .contact-form { margin-top: 30px; }
    .top-bar .container { justify-content: center; }
    .contact-items { font-size: 0.75rem; gap: 10px; }
	.contact-card {
        padding: 15px; /* Reduces padding slightly to save space */
        width: 100%;   /* Ensures the box never exceeds screen width */
        box-sizing: border-box;
    }

    .contact-card-icon {
        width: 45px;   /* Slightly smaller icon circle */
        height: 45px;
        margin-right: 15px;
    }

    .contact-card-icon svg {
        width: 20px;
        height: 20px;
    }

    .contact-card-text {
        font-size: 0.95rem; /* Slightly smaller font for mobile */
    }
}