/* ==========================================
   Kalvi ERP Institute - Global Landing Styles
   ========================================== */

:root {
    --primary: #007BBE; /* Cerulean Blue */
    --primary-rgb: 0, 123, 190;
    --secondary: #F27405; /* Vibrant Orange */
    --secondary-rgb: 242, 116, 5;
    --dark: #090d16;
    --dark-card: rgba(15, 23, 42, 0.7);
    --light: #f8fafc;
    --gray: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-primary: 0 10px 30px rgba(0, 123, 190, 0.25);
    --shadow-secondary: 0 10px 30px rgba(242, 116, 5, 0.25);
    --shadow-glow: 0 0 30px rgba(0, 123, 190, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark);
    color: var(--light);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Ambient glow nodes */
.ambient-glow-1 {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 123, 190, 0.15) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
}

.ambient-glow-2 {
    position: absolute;
    top: 600px;
    left: -300px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(242, 116, 5, 0.1) 0%, transparent 70%);
    z-index: -1;
    filter: blur(100px);
    pointer-events: none;
}

.ambient-glow-3 {
    position: absolute;
    bottom: 200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 123, 190, 0.12) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(9, 13, 22, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo img {
    height: 42px;
    width: auto;
    transition: transform 0.3s ease;
}

.brand-logo img:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    color: var(--light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav a.active, nav a:hover {
    color: var(--secondary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: var(--light);
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--light);
    background: transparent;
}

.btn-outline:hover {
    background-color: rgba(0, 123, 190, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 123, 190, 0.2);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background-color: #006da8;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 123, 190, 0.4);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
    border: none;
    box-shadow: var(--shadow-secondary);
}

.btn-secondary:hover {
    background-color: #d96804;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(242, 116, 5, 0.4);
}

/* Content Layout Structures */
.page-hero {
    padding: 160px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-hero p {
    font-size: 18px;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sections */
section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    font-size: 16px;
}

/* Cards & Grid Utilities */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.glow-card {
    background-color: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 123, 190, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 123, 190, 0.05);
}

.glow-card:hover::before {
    opacity: 1;
}

.glow-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(0, 123, 190, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 20px;
    color: var(--primary);
}

.glow-card:nth-child(even) .glow-card-icon {
    background: rgba(242, 116, 5, 0.1);
    color: var(--secondary);
}

.glow-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 14px;
    color: white;
}

.glow-card p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.glow-card-features {
    list-style: none;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.glow-card-features li {
    font-size: 13px;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.glow-card-features li i {
    font-size: 12px;
}

.glow-card-features li i.blue { color: var(--primary); }
.glow-card-features li i.orange { color: var(--secondary); }

/* Forms */
.form-box {
    background-color: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px rgba(0, 123, 190, 0.2);
}

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

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 60px 24px 30px;
    background-color: #05070c;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 38px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--light);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--gray);
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* Responsive */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(9, 13, 22, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--border);
        align-items: stretch;
        gap: 16px;
    }

    nav.show {
        display: flex;
    }

    .nav-actions {
        flex-direction: column;
        margin-top: 16px;
        width: 100%;
    }

    .nav-actions .btn {
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .card-grid-2 {
        grid-template-columns: 1fr;
    }

    .page-hero h1 {
        font-size: 36px;
    }

    .footer-container {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
