/* Quadrillion Tech Solutions - Main Stylesheet */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
    /* Brand - QTS Logo Colors (Adjusted - Less Green) */
    --primary-color: #4A7BA7;
    --secondary-color: #5A9BD5;
    --accent-color: #F5A623;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;

    /* Base */
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --text-color: #334155;
    --muted-text: #64748b;
    --border-color: #e2e8f0;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(2, 6, 23, 0.05);
    --shadow-md: 0 6px 18px rgba(2, 6, 23, 0.08), 0 2px 6px rgba(2, 6, 23, 0.06);
    --shadow-lg: 0 24px 48px rgba(2, 6, 23, 0.12), 0 12px 24px rgba(2, 6, 23, 0.08);
    --border-radius: 0.5rem;
    --radius-lg: 1rem;
    --transition: all 0.25s ease;

    /* Gradients - QTS Brand (Blue-focused) */
    --grad-primary: linear-gradient(135deg, #4A7BA7 0%, #5A9BD5 100%);
    --grad-hero: radial-gradient(1200px 600px at 10% -10%, rgba(74, 123, 167, 0.18), transparent 60%),
                 radial-gradient(900px 600px at 90% 10%, rgba(90, 155, 213, 0.15), transparent 60%),
                 radial-gradient(700px 600px at 50% 100%, rgba(245, 166, 35, 0.12), transparent 60%);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background:
        radial-gradient(1000px 600px at -10% -10%, rgba(90, 155, 213, 0.06), transparent 60%),
        radial-gradient(900px 600px at 110% -10%, rgba(74, 123, 167, 0.06), transparent 60%),
        var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid rgba(74, 123, 167, 0.3);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    background: rgba(15, 23, 42, 0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-item.dropdown {
    position: relative;
}
.nav-dropdown-toggle {
    background: none;
    border: none;
    padding: 0.5rem 0;
    font: inherit;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
}
.nav-item.dropdown:hover .nav-dropdown-toggle,
.nav-dropdown-toggle:focus {
    color: white;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    border-radius: 0.5rem;
    padding: 0.75rem 0;
    display: none;
    z-index: 10;
}
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color);
}
.dropdown-link:hover {
    background: #f8fafc;
    color: var(--primary-color);
}
.nav-link {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

/* Hero Section with Service Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: var(--dark-color);
    isolation: isolate;
}
.hero-slider::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-hero);
    z-index: 0;
    pointer-events: none;
    animation: floatGlow 12s ease-in-out infinite alternate;
}

.slider-container {
    position: relative;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.3) 0%, rgba(90, 155, 213, 0.25) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
}

.slide-subtitle {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    opacity: 0.98;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 4px 20px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.slide-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.95), 0 8px 24px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
}

.slide-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0.98;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 4px 20px rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

.slide-buttons {
    display: flex;
    gap: 1rem;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: white;
    width: 40px;
    border-radius: 6px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 3;
    color: white;
    font-size: 1.5rem;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slider-prev { left: 2rem; }
.slider-next { right: 2rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--grad-primary);
    color: white;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25), 0 6px 10px rgba(124, 58, 237, 0.15);
}

.btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Services Section */
.services-section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25), 0 4px 8px rgba(124, 58, 237, 0.2);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.service-description {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.service-link:hover {
    gap: 1rem;
}

/* Service visual for services page */
.service-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(226, 232, 240, 0.9);
    position: relative;
    height: 280px;
    background: #fff;
}
.service-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(37,99,235,0.08), rgba(124,58,237,0.08));
    pointer-events: none;
}
.service-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* SaaS Applications Section */
.saas-section {
    padding: 5rem 0;
    background: #f1f5f9;
}

.saas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.saas-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.saas-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.saas-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.saas-content {
    padding: 1.5rem;
}

.saas-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.saas-description {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.saas-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3 {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background: #fff;
}

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

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-link {
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
}

/* Glass card utility */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
}

/* Animated gradient utility for sections */
.gradient-sheen {
    position: relative;
    overflow: hidden;
}
.gradient-sheen::after {
    content: '';
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 0deg at 50% 50%, rgba(124, 58, 237, 0.07), rgba(37, 99, 235, 0.07), rgba(6, 182, 212, 0.07), transparent 40%);
    filter: blur(40px);
    animation: rotateSheen 20s linear infinite;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
        position: relative;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(15, 23, 42, 0.98);
        width: 100%;
        height: calc(100vh - 70px);
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-md);
        padding: 1rem 0;
        gap: 0;
        align-items: stretch;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-link {
        display: block;
        padding: 1rem 1.5rem;
        width: 100%;
        text-align: left;
        color: rgba(255,255,255,0.9);
    }
    
    .nav-link:hover {
        color: white;
        background: rgba(255,255,255,0.05);
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Mobile Dropdown Styles */
    .nav-item.dropdown {
        position: relative;
    }
    
    .nav-dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        width: 100%;
        cursor: pointer;
        color: rgba(255,255,255,0.9);
        font-weight: 500;
        background: none;
        border: none;
        text-align: left;
        font-family: inherit;
        font-size: 1rem;
    }
    
    .nav-dropdown-toggle:hover {
        color: white;
    }
    
    .dropdown-icon {
        transition: transform 0.3s ease;
        font-size: 0.875rem;
    }
    
    .nav-item.dropdown.open .dropdown-icon {
        transform: rotate(180deg);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        background: rgba(0,0,0,0.3);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        display: block;
    }
    
    .nav-item.dropdown.open .dropdown-menu {
        max-height: 500px;
    }
    
    .dropdown-menu a {
        padding: 0.75rem 2.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        display: block;
        color: rgba(255,255,255,0.8);
    }
    
    .dropdown-menu a:hover {
        background: rgba(255,255,255,0.05);
        color: white;
    }
    
    .dropdown-menu a:last-child {
        border-bottom: none;
    }
    
    /* Mobile Button Adjustments */
    .nav-menu .btn {
        width: calc(100% - 3rem);
        margin: 1rem 1.5rem;
        text-align: center;
    }
    
    /* Slider Mobile Adjustments */
    .hero-slider {
        height: 500px;
    }
    
    .slide-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .slide-subtitle {
        font-size: 1rem;
    }
    
    .slide-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .slide-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .slide-buttons .btn {
        width: 100%;
    }
    
    .slider-nav {
        display: none;
    }
    
    .slider-controls {
        bottom: 1rem;
    }
    
    /* Grid Adjustments */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Typography Mobile */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* Container Padding */
    .container {
        padding: 0 1rem;
    }
    
    .services-section {
        padding: 3rem 0;
    }
    
    /* Service Detail Cards */
    .service-detail-card {
        padding: 1.5rem !important;
    }
    
    .service-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }
    
    /* Images Mobile Optimization */
    img {
        max-width: 100%;
        height: auto;
    }
    
    .service-visual {
        margin-top: 2rem;
        max-width: 100%;
    }
    
    .service-visual img {
        width: 100%;
        height: auto;
    }
    
    /* Testimonial Cards */
    .testimonial-card {
        padding: 1.5rem !important;
    }
    
    /* Why Cards Mobile */
    .why-card {
        padding: 2rem !important;
    }
    
    /* Tech Cards */
    .tech-card {
        padding: 1.5rem 1rem !important;
    }
    
    /* Form Mobile */
    .form-row {
        grid-template-columns: 1fr !important;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Charts Mobile */
    canvas {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Chart containers on mobile */
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Quadrillion Animation Mobile */
    #number-counter {
        font-size: 2.5rem !important;
    }
    
    /* Footer Adjustments */
    .footer-section {
        text-align: center;
    }
    
    .footer-links {
        text-align: center;
    }
    
    /* MBE Badge Mobile */
    .mbe-badge {
        flex-direction: column;
        text-align: center;
    }
    
    .mbe-badge img {
        margin: 0 auto 0.5rem;
    }
    
    /* SaaS Detail Section Mobile */
    .saas-detail-section > div {
        flex-direction: column !important;
    }
    
    /* SaaS App Cards Mobile */
    .saas-app-card {
        max-width: 100%;
    }
    
    .saas-app-card img {
        max-width: 100%;
        height: auto;
    }
    
    /* Action Buttons Mobile */
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .action-buttons .btn-action {
        width: 100%;
        justify-content: center;
    }
    
    /* Table Mobile Optimization */
    .data-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .data-table table {
        min-width: 600px;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
    
    /* Stats Grid Mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    /* Page Headers Mobile */
    .page-header {
        margin-bottom: 1.5rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    /* Content Cards Mobile */
    .content-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .content-card-body {
        padding: 1rem;
    }
    
    /* Newsletter Form Mobile */
    .newsletter-form input {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .newsletter-form button {
        width: 100%;
    }
}

/* Loading Animation */
.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border-color);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success/Error Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.alert-success {
    background: #10b981;
    color: white;
}

.alert-error {
    background: #ef4444;
    color: white;
}

/* Keyframes */
@keyframes rotateSheen {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes floatGlow {
    0% { opacity: 0.8; transform: translateY(0px) }
    100% { opacity: 1; transform: translateY(-10px) }
}
/* Admin Panel Styles */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--dark-color);
    color: white;
    padding: 2rem 0;
}

.admin-content {
    flex: 1;
    padding: 2rem;
    background: var(--light-color);
}

.admin-menu {
    list-style: none;
}

.admin-menu-item {
    margin-bottom: 0.5rem;
}

.admin-menu-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #cbd5e1;
    transition: var(--transition);
}

.admin-menu-link:hover,
.admin-menu-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Table Styles */
.data-table {
    width: 100%;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--light-color);
    font-weight: 600;
    color: var(--dark-color);
}

.data-table tr:hover {
    background: #f9fafb;
}

/* Why QTS Cards */
.why-card {
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(2, 6, 23, 0.15);
}

/* Modern Service Cards */
.modern-service-card {
    transition: var(--transition);
}

.modern-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Technology Cards */
.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tech-card-dark {
    transition: var(--transition);
}

.tech-card-dark:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(74, 123, 167, 0.3);
}

/* Testimonial Cards */
.testimonial-card {
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-primary);
}

/* Number Counter Animation */
#number-counter {
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Mobile Responsiveness for Service Pages */
@media (max-width: 768px) {
    /* Chart Grid Responsive */
    .chart-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .chart-grid > div {
        padding: 1.5rem !important;
    }
    
    .chart-grid canvas {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Service Page Hero Sections */
    .services-section h1 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }
    
    .services-section p {
        font-size: 1rem !important;
    }
    
    /* Pricing Cards */
    [style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Form Layouts */
    .form-row {
        flex-direction: column !important;
    }
    
    /* Service Cards */
    .services-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Section Padding */
    .services-section {
        padding: 3rem 0 !important;
    }
    
    /* Container Padding */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Chart Containers */
    [style*="position: relative; height: 300px"] {
        height: 250px !important;
    }
    
    [style*="position: relative; height: 400px"] {
        height: 300px !important;
    }
    
    /* ROI Calculator */
    .roi-calculator {
        padding: 1.5rem !important;
    }
    
    .roi-calculator input,
    .roi-calculator select {
        font-size: 1rem !important;
        padding: 0.75rem !important;
    }
    
    /* FAQ Accordion */
    .faq-item {
        padding: 1rem !important;
    }
    
    /* Service Features Grid */
    [style*="display: grid"][style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Process Steps */
    .process-steps {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    /* Stats Grid */
    [style*="display: grid"][style*="gap: 2rem"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Chart.js Responsive Options */
    canvas {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Two Column Layouts */
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    [style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
    }
}
