/* ============================================
   Cloud ITS — Website Styles
   ============================================ */

:root {
    --primary: #0F61A1;
    --primary-light: #1a7fd4;
    --primary-dark: #0a4a7a;
    --accent: #00C2FF;
    --navy: #0B1426;
    --navy-light: #111D33;
    --navy-lighter: #162340;
    --surface: #1A2744;
    --text: #E2E8F0;
    --text-muted: #94A3B8;
    --text-bright: #F8FAFC;
    --border: rgba(255,255,255,0.08);
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--navy);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }

img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }

/* Typography */
h1, h2, h3, h4 { color: var(--text-bright); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
.lead { font-size: 1.15rem; color: var(--text); }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: var(--gradient);
    background-size: 100% 100%;
    color: #fff;
    border-color: transparent;
    overflow: hidden;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(15, 97, 161, 0.4);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: var(--text-bright);
    border: 2px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* ============================================
   Navbar
   ============================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition);
    background: transparent;
}
.navbar.scrolled {
    background: rgba(11, 20, 38, 0.95);
    backdrop-filter: blur(20px);
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 55px; }
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.5rem;
}
.nav-menu a {
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--text-bright); background: rgba(255,255,255,0.06); }
.nav-cta {
    background: var(--gradient) !important;
    color: #fff !important;
    padding: 0.5rem 1.5rem !important;
}
.nav-cta:hover { box-shadow: 0 4px 20px rgba(15, 97, 161, 0.4); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--text-bright);
    transition: all var(--transition);
    border-radius: 2px;
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(15, 97, 161, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 80% 20%, rgba(0, 194, 255, 0.08) 0%, transparent 60%);
}
.hero-content { position: relative; max-width: 750px; }
.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(15, 97, 161, 0.15);
    border: 1px solid rgba(15, 97, 161, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 1.5rem;
}
.hero h1 { margin-bottom: 1.5rem; }
.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    max-width: 620px;
}
.hero-sub strong { color: var(--text-bright); }
.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

/* ============================================
   Page Hero (inner pages)
   ============================================ */
.page-hero {
    padding: 10rem 0 4rem;
    text-align: center;
    position: relative;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(15, 97, 161, 0.12) 0%, transparent 70%);
}
.page-hero p { color: var(--text-muted); font-size: 1.15rem; max-width: 600px; margin: 1rem auto 0; }

/* ============================================
   Sections
   ============================================ */
.section { padding: 5rem 0; }
.section-dark { background: var(--navy-light); }
.section-header { text-align: center; max-width: 650px; margin: 0 auto 3.5rem; }
.section-header p { color: var(--text-muted); margin-top: 1rem; font-size: 1.1rem; }

/* ============================================
   Problem Cards (Home)
   ============================================ */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.problem-card {
    background: var(--navy-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
}
.problem-card:hover {
    border-color: rgba(15, 97, 161, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.problem-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(15, 97, 161, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    color: var(--accent);
}
.problem-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.problem-text { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0.75rem; }
.solution-text { font-size: 0.95rem; color: var(--text); }
.solution-text strong { color: var(--accent); }

/* ============================================
   Services Grid (Home Preview)
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.service-card {
    background: var(--navy);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition);
}
.service-card:hover {
    border-color: rgba(15, 97, 161, 0.3);
    transform: translateY(-4px);
}
.service-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card h3 { margin-bottom: 0.75rem; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ============================================
   Service Detail (Services page)
   ============================================ */
.service-detail { max-width: 800px; margin: 0 auto; }
.service-detail-icon { font-size: 3rem; margin-bottom: 1rem; }
.service-detail h2 { margin-bottom: 1rem; }
.service-detail .lead { margin-bottom: 1rem; color: var(--text-muted); }
.service-detail p { margin-bottom: 1rem; }

.check-list {
    list-style: none;
    margin-top: 1.5rem;
    display: grid;
    gap: 0.6rem;
}
.check-list li {
    padding-left: 1.75rem;
    position: relative;
    color: var(--text);
    font-size: 0.95rem;
}
.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ============================================
   About
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.about-content p { margin-bottom: 1rem; color: var(--text-muted); }
.about-content h2 { margin-bottom: 1.5rem; }
.about-values h2 { margin-bottom: 1.5rem; }

.value-card {
    background: var(--navy-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all var(--transition);
}
.value-card:hover { border-color: rgba(15, 97, 161, 0.3); }
.value-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.value-card p { color: var(--text-muted); font-size: 0.9rem; }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.tool-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.25rem;
    background: var(--navy);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}
.tool-item:hover { border-color: rgba(15, 97, 161, 0.3); }
.tool-item strong { color: var(--text-bright); }
.tool-item span { color: var(--text-muted); font-size: 0.85rem; }

/* ============================================
   Contact
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
}
.contact-form-wrap h2 { margin-bottom: 1.5rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--navy-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-bright);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 97, 161, 0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); opacity: 0.5; }

.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-card {
    background: var(--navy-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.contact-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.contact-card a { display: block; margin-bottom: 0.25rem; }
.contact-card p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.25rem; }

/* ============================================
   CTA Section
   ============================================ */
.cta-box {
    background: var(--gradient);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    text-align: center;
}
.cta-box h2 { color: #fff; margin-bottom: 1rem; }
.cta-box p { color: rgba(255,255,255,0.85); max-width: 500px; margin: 0 auto 2rem; font-size: 1.1rem; }
.cta-box .btn-primary {
    background: #fff;
    color: var(--primary-dark);
    border-color: transparent;
}
.cta-box .btn-primary:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.3); }

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--navy-light);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2rem;
}
.footer-logo { height: 56px; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.footer-links h4, .footer-contact h4 { margin-bottom: 1rem; font-size: 0.95rem; }
.footer-links ul, .footer-contact ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-contact li {
    display: flex; align-items: center; gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.footer-contact a { color: var(--text-muted); }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }

/* ============================================
   Hero Split Layout + Mascot
   ============================================ */
.hero-split {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.hero-split .hero-content { flex: 1; min-width: 0; }

.hero-mascot {
    flex: 0 0 340px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: mascotFloat 4s ease-in-out infinite;
}
.mascot-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 97, 161, 0.35) 0%, rgba(0, 194, 255, 0.12) 50%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
    filter: blur(20px);
}
.mascot-img {
    position: relative;
    width: 320px;
    height: auto;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 20px 60px rgba(15, 97, 161, 0.4)) drop-shadow(0 0 30px rgba(0, 194, 255, 0.15));
    transition: transform 0.4s ease;
}
.mascot-img:hover {
    transform: scale(1.05) rotate(2deg);
}

@keyframes mascotFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* Mascot responsive */
@media (max-width: 900px) {
    .hero-split {
        flex-direction: column-reverse;
        text-align: center;
    }
    .hero-mascot { flex: 0 0 auto; }
    .mascot-img { width: 220px; }
    .mascot-glow { width: 200px; height: 200px; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
}
@media (max-width: 480px) {
    .mascot-img { width: 180px; }
    .mascot-glow { width: 160px; height: 160px; }
}

/* ============================================
   Animations
   ============================================ */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .problems-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 280px; height: 100vh;
        background: var(--navy-light);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0.25rem;
        transition: right var(--transition);
        border-left: 1px solid var(--border);
    }
    .nav-menu.open { right: 0; }
    .nav-menu a { padding: 0.75rem 1rem; width: 100%; }
    .hero { min-height: auto; padding: 8rem 0 4rem; }
    h1 { font-size: 2.2rem; }
    .section { padding: 3.5rem 0; }
    .cta-box { padding: 2rem; }
    .footer-grid { grid-template-columns: 1fr; }
}