/* ==========================================================================
   Cloudsparks Pte Ltd - Global Stylesheet
   Design System: Light Modern / Enterprise Tech
   ========================================================================== */

:root {
    --tech-primary-dark: #0f172a;
    --tech-section-bg: #f8fafc;
    --tech-card-bg: #ffffff;
    --tech-border-color: #e2e8f0;
    --tech-text-dark: #0f172a;
    --tech-text-muted: #64748b;
    --tech-cyan-accent: #008ba3;
    --tech-cyan-hover: #00687a;
    --tech-red-accent: #e11d48;
    --tech-red-hover: #be123c;
    --tech-font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--tech-font-family);
    background-color: #ffffff;
    color: var(--tech-text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.tech-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Sticky Header Navigation */
.tech-header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--tech-border-color);
    z-index: 1000;
}

.tech-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.tech-logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--tech-text-dark);
    text-decoration: none;
    z-index: 1001;
}

/* Navigation Links */
.tech-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.tech-menu a {
    text-decoration: none;
    color: var(--tech-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.tech-menu a:hover,
.tech-menu a.active {
    color: var(--tech-cyan-accent);
}

/* Header Buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tech-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tech-btn-primary {
    background-color: var(--tech-red-accent);
    color: #ffffff !important;
}

.tech-btn-primary:hover {
    background-color: var(--tech-red-hover);
}

.tech-btn-secondary {
    background-color: #f1f5f9;
    color: var(--tech-text-dark);
}

.tech-btn-secondary:hover {
    background-color: #e2e8f0;
}

/* Hamburger Toggle Button (Mobile) */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--tech-text-dark);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.tech-hero {
    padding: 100px 0 80px;
    text-align: center;
    background: radial-gradient(circle at center, #f8fafc 0%, #ffffff 100%);
}

.page-hero {
    padding: 80px 0 50px;
    text-align: center;
    background-color: var(--tech-section-bg);
    border-bottom: 1px solid var(--tech-border-color);
}

.page-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 1.15rem;
    color: var(--tech-text-muted);
    max-width: 650px;
    margin: 0 auto;
}

.page-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: #e0f2fe;
    color: var(--tech-cyan-accent);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Feature Grid */
.content-section {
    padding: 80px 0;
}

.tech-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tech-card {
    background-color: var(--tech-card-bg);
    border: 1px solid var(--tech-border-color);
    border-radius: 12px;
    padding: 32px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.05);
}

.tech-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.tech-card p {
    color: var(--tech-text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Footer */
.tech-footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--tech-border-color);
    color: var(--tech-text-muted);
    font-size: 0.9rem;
    background-color: #ffffff;
}

/* ==========================================================================
   Mobile & Tablet Responsive Styles
   ========================================================================== */

@media (max-width: 991px) {
    /* Enable Hamburger Toggle */
    .mobile-toggle {
        display: block;
    }

    /* Transform Menu into Sliding Mobile Drawer */
    .tech-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 40px 20px;
    }

    .tech-menu.is-active {
        right: 0;
    }

    .tech-menu a {
        font-size: 1.1rem;
    }

    /* Burger Animation when active */
    .mobile-toggle.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

@media (max-width: 768px) {
    .tech-hero {
        padding: 60px 0 40px;
    }

    .tech-title {
        font-size: 2.25rem !important;
    }

    .tech-subtitle {
        font-size: 1rem !important;
    }

    .page-hero {
        padding: 50px 0 30px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .nav-actions {
        display: none; /* Hide top CTA on small screens to fit menu toggle */
    }

    .tech-metrics .tech-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .content-section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .tech-metrics .tech-container {
        grid-template-columns: 1fr !important;
    }
    
    .tech-btn {
        width: 100%;
        text-align: center;
    }
}