/* Dream World Tech — palette pulled from the DW logo */
:root {
    --bg: #EAF2FA;
    --bg-alt: #F6FAFD;
    --surface: #ffffff;
    --primary: #1E4E8C;
    --primary-2: #2E6BAE;
    --accent: #4A90D9;
    --ink: #0E2A47;
    --ink-soft: #4A6685;
    --border: #DCE6F0;
    --shadow: 0 10px 40px rgba(30, 78, 140, 0.08);
    --shadow-lg: 0 20px 60px rgba(30, 78, 140, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color .2s; }
img { display: block; max-width: 100%; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ============ NAVBAR ============ */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(234, 242, 250, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s, background .25s;
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--border);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.9rem 1.5rem; max-width: 1200px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700; font-size: 1.25rem; letter-spacing: 2px;
    color: var(--primary);
}
.brand-text span { color: var(--accent); margin-left: 3px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
    color: var(--ink); font-weight: 500; font-size: 0.95rem;
    position: relative;
}
.nav-links a:not(.btn-nav):hover { color: var(--primary); }
.nav-links a:not(.btn-nav)::after {
    content: ''; position: absolute; bottom: -6px; left: 0;
    width: 0; height: 2px; background: var(--primary);
    transition: width .25s;
}
.nav-links a:not(.btn-nav):hover::after { width: 100%; }
.btn-nav {
    background: var(--primary); color: #fff !important;
    padding: 0.6rem 1.3rem; border-radius: 999px;
    font-weight: 600; transition: transform .2s, box-shadow .2s;
}
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(30,78,140,0.3); }

.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.hamburger span {
    display: block; width: 24px; height: 2px; background: var(--primary);
    margin: 5px 0; border-radius: 2px; transition: .3s;
}

/* ============ HERO ============ */
.hero {
    position: relative; overflow: hidden;
    padding: 6rem 0 5rem;
    background:
        radial-gradient(circle at 15% 30%, rgba(74,144,217,0.18), transparent 40%),
        radial-gradient(circle at 90% 70%, rgba(46,107,174,0.15), transparent 45%),
        var(--bg);
}
.hero-bg-orb {
    position: absolute; border-radius: 50%; filter: blur(80px); z-index: 0;
}
.orb1 { width: 400px; height: 400px; background: rgba(74,144,217,0.25); top: -100px; left: -100px; }
.orb2 { width: 500px; height: 500px; background: rgba(30,78,140,0.15); bottom: -150px; right: -150px; }
.hero-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem;
    align-items: center;
}
.hero-content { }
.badge {
    display: inline-block; background: rgba(30,78,140,0.1);
    color: var(--primary); padding: 0.5rem 1rem; border-radius: 999px;
    font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem;
    border: 1px solid rgba(30,78,140,0.15);
}
h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1; font-weight: 700; color: var(--ink);
    margin-bottom: 1.5rem;
}
.grad {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.grad-light {
    background: linear-gradient(135deg, #a4c9f0, #ffffff);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.lead {
    font-size: 1.15rem; color: var(--ink-soft);
    max-width: 540px; margin-bottom: 2rem;
}
.hero-cta {
    display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem;
}
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.9rem 1.8rem; border-radius: 999px;
    font-weight: 600; font-size: 0.95rem;
    transition: all .25s; cursor: pointer; border: 0;
    font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 10px 25px rgba(30,78,140,0.25);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(30,78,140,0.35); }
.btn-outline {
    background: transparent; color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-block { width: 100%; }

.hero-stats {
    display: flex; gap: 2.5rem; flex-wrap: wrap;
    padding-top: 1.5rem; border-top: 1px solid rgba(30,78,140,0.15);
}
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong {
    font-family: 'Playfair Display', serif;
    font-size: 2rem; color: var(--primary); line-height: 1;
}
.hero-stats span { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.3rem; }

.hero-visual {
    position: relative; display: flex; justify-content: center;
    animation: float 6s ease-in-out infinite;
}
.hero-logo {
    max-width: 420px; width: 100%;
    filter: drop-shadow(0 30px 40px rgba(30,78,140,0.25));
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ============ SECTIONS ============ */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
    background: linear-gradient(135deg, var(--primary), #163d70);
    color: #fff;
}
.section-head {
    text-align: center; max-width: 720px; margin: 0 auto 4rem;
}
.section-head.light { color: #fff; }
.section-head.light .eyebrow { color: #a4c9f0; }
.section-head.light p { color: rgba(255,255,255,0.85); }
.eyebrow {
    display: inline-block; font-size: 0.8rem; font-weight: 700;
    color: var(--primary); letter-spacing: 3px; text-transform: uppercase;
    margin-bottom: 1rem;
}
.section-head h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15;
    margin-bottom: 1rem;
}
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.section-head.light h2 { color: #fff; }

/* ============ GRIDS ============ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ============ CARDS ============ */
.feature-card, .service-card, .course-card, .project-card, .finops-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.feature-card:hover, .service-card:hover, .course-card:hover, .project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.feature-card h3, .service-card h3, .course-card h3, .project-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem; margin-bottom: 0.7rem; color: var(--ink);
}
.feature-card p, .service-card p, .course-card p, .project-card p {
    color: var(--ink-soft); font-size: 0.95rem;
}
.icon-box {
    width: 56px; height: 56px; display: grid; place-items: center;
    font-size: 1.7rem; background: rgba(74,144,217,0.12);
    color: var(--primary); border-radius: 14px; margin-bottom: 1.2rem;
}

/* Course card specifics */
.course-tag {
    display: inline-block; padding: 0.3rem 0.8rem; border-radius: 999px;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 1px;
    margin-bottom: 1rem;
    background: rgba(30,78,140,0.1); color: var(--primary);
}
.course-tag.aws { background: #FFF3E0; color: #E67E22; }
.course-tag.gcp { background: #E3F2FD; color: #1976D2; }
.course-tag.azure { background: #E1F5FE; color: #0288D1; }
.course-tag.devops { background: #F1F8E9; color: #558B2F; }
.course-tag.ai { background: #F3E5F5; color: #7B1FA2; }
.course-tag.finops { background: #FFF8E1; color: #F57F17; }
.course-tag.corp { background: #E8EAF6; color: #3F51B5; }
.course-card ul {
    list-style: none; margin-top: 1rem;
    padding-top: 1rem; border-top: 1px dashed var(--border);
}
.course-card ul li {
    color: var(--ink-soft); font-size: 0.88rem;
    padding: 0.3rem 0; padding-left: 1.2rem; position: relative;
}
.course-card ul li::before {
    content: '✓'; position: absolute; left: 0;
    color: var(--accent); font-weight: 700;
}
.course-card.highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; border-color: transparent;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.course-card.highlight h3, .course-card.highlight p { color: #fff; }
.course-card.highlight .course-tag { background: rgba(255,255,255,0.2); color: #fff; }
.course-card.highlight .btn-primary { background: #fff; color: var(--primary); box-shadow: none; }

/* FinOps dark cards */
.finops-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    backdrop-filter: blur(10px);
}
.finops-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.12); }
.finops-card h3 { color: #fff; }
.finops-card p { color: rgba(255,255,255,0.8); }
.finops-card .stat {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem; color: #a4c9f0; margin-bottom: 0.5rem;
    line-height: 1;
}

/* Project cards */
.project-card .tag-row {
    display: flex; gap: 0.5rem; margin-bottom: 1rem;
}
.project-card .tag-row span {
    background: rgba(74,144,217,0.12); color: var(--primary);
    padding: 0.25rem 0.7rem; border-radius: 6px;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px;
    text-transform: uppercase;
}
.project-card .metrics {
    margin-top: 1.2rem; padding-top: 1rem;
    border-top: 1px dashed var(--border);
    font-size: 0.85rem; color: var(--ink-soft);
}
.project-card .metrics b { color: var(--primary); }

/* ============ CONTACT ============ */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem;
    align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex; align-items: center; gap: 1rem;
    transition: transform .2s, box-shadow .2s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.c-icon {
    width: 48px; height: 48px; display: grid; place-items: center;
    background: rgba(74,144,217,0.12); color: var(--primary);
    border-radius: 12px; font-size: 1.4rem; flex-shrink: 0;
}
.contact-card span { display: block; font-size: 0.8rem; color: var(--ink-soft); }
.contact-card strong { color: var(--ink); font-size: 1rem; }
.contact-card a { color: inherit; }
.contact-card a:hover strong { color: var(--primary); }

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex; flex-direction: column; gap: 1rem;
    box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input, .contact-form select, .contact-form textarea {
    padding: 0.9rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit; font-size: 0.95rem;
    background: #fff; color: var(--ink);
    transition: border-color .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: 0; border-color: var(--primary);
}
.contact-form textarea { resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--ink-soft); text-align: center; margin-top: 0.3rem; }

/* ============ FOOTER ============ */
.footer {
    background: #0E2A47; color: rgba(255,255,255,0.75);
    padding-top: 3rem;
}
.footer-inner {
    display: grid; grid-template-columns: 1fr 2fr; gap: 3rem;
    padding-bottom: 2rem;
}
.footer-brand img { width: 56px; margin-bottom: 1rem; filter: brightness(1.3); }
.footer-brand p { font-style: italic; color: rgba(255,255,255,0.6); }
.footer-cols {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.footer-cols h4 {
    color: #fff; font-size: 0.9rem; letter-spacing: 2px;
    text-transform: uppercase; margin-bottom: 1rem;
}
.footer-cols a {
    display: block; color: rgba(255,255,255,0.7);
    font-size: 0.9rem; margin-bottom: 0.5rem;
    transition: color .2s;
}
.footer-cols a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.2rem 0;
    font-size: 0.85rem; color: rgba(255,255,255,0.5);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 968px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-content .badge, .hero-cta { justify-content: center; }
    .hero-cta { display: inline-flex; }
    .hero-stats { justify-content: center; }
    .hero-visual { order: -1; }
    .hero-logo { max-width: 300px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .hamburger { display: block; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; flex-direction: column; gap: 0;
        padding: 1rem 1.5rem; border-top: 1px solid var(--border);
        transform: translateY(-10px); opacity: 0; pointer-events: none;
        transition: all .25s;
        box-shadow: var(--shadow);
    }
    .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-links a { padding: 0.8rem 0; width: 100%; text-align: left; }
    .nav-links .btn-nav { margin-top: 0.5rem; text-align: center; }
    .section { padding: 4rem 0; }
    .hero { padding: 3rem 0; }
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-stats { gap: 1.5rem; }
    .hero-stats strong { font-size: 1.6rem; }
}

/* Reveal on scroll */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
