/* CSS Reset & Global Styles */
:root {
    --color-bg: #0b0e14;
    --color-surface: #161b22;
    --color-primary: #58a6ff;
    --color-text-main: #ffffff;
    --color-text-muted: #8b949e;
    --color-accent-gradient: linear-gradient(135deg, #58a6ff 0%, #238636 100%);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-speed: 0.3s;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography & Utilities */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, #fff, #8b949e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: #4090ea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-glow {
    background: var(--color-accent-gradient);
    box-shadow: 0 0 20px rgba(88, 166, 255, 0.4);
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(88, 166, 255, 0.6);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header & Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    position: relative;
    z-index: 10;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a:not(.btn) {
    color: var(--color-text-muted);
    font-weight: 500;
}

.nav-links a:not(.btn):hover {
    color: var(--color-primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(11, 14, 20, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition-speed);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 80px 0 120px;
    text-align: center;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.hero-content .highlight {
    color: var(--color-primary);
    background: linear-gradient(135deg, #58a6ff 0%, #a371f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content .sub-headline {
    color: var(--color-text-muted);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-background-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(88, 166, 255, 0.15) 0%, rgba(11, 14, 20, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Core Training Pillars (Services) */
.pillars-section {
    padding: 80px 0;
    background-color: var(--color-bg);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.pillar-card {
    background: rgba(22, 27, 34, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px;
    border-radius: var(--border-radius);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(88, 166, 255, 0.3);
}

.icon-wrapper {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.pillar-card h3 {
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.pillar-block {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pillar-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pillar-block h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.pillar-block:nth-child(2) h4 {
    color: var(--color-primary);
    /* Highlight "AI" text */
}

/* Workflow Section (Process) */
.workflow-section {
    padding: 80px 0;
}

.workflow-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Connecting line design */
.workflow-steps::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 28px;
    /* Center of the number circle */
    width: 2px;
    background: rgba(88, 166, 255, 0.2);
    z-index: 0;
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.step-number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--color-surface);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-heading);
    box-shadow: 0 0 0 8px var(--color-bg);
    /* Mask the line behind */
}

.step-details h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--color-text-main);
}

.step-details p {
    color: var(--color-text-muted);
}

/* Philosophy Section */
.philosophy-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, #10141b 100%);
    text-align: center;
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--color-text-main);
}

.philosophy-content p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-surface);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--color-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.billing-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
    font-style: italic;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 24px;
}

.social-links a {
    color: var(--color-text-muted);
    font-size: 1.25rem;
}

.social-links a:hover {
    color: var(--color-primary);
}

/* Mobile Responsiveness Specifics */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.25rem;
        /* Smaller hero font on mobile */
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        /* Stack cards */
    }

    .workflow-steps::before {
        left: 20px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    /* Adjust connecting line for smaller circle */
    .step-card {
        gap: 16px;
    }

    .contact-wrapper {
        padding: 24px;
    }
}

/* Animations Classes (State Managed by JS) */
.fade-in,
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

/* Animation Active States */
.animate-active {
    opacity: 1;
    transform: translate(0, 0);
}