/* ============================================================
   Araneus Edutech LLP – Main Stylesheet
   ============================================================ */

/* ── Variables ──────────────────────────────────────────── */
:root {
    --primary-color:    #ff4000;
    --secondary-color:  #ffa900;
    --dark-color:       #1a1a2e;
    --light-color:      #f8f9fa;
    --gray-color:       #6c757d;
    --nav-height:       76px;
    --gradient-color:   linear-gradient(135deg, #ff4000 0%, #ffa900 100%);
    --gradient-dark:    linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    --shadow-sm:        0 2px 12px rgba(0,0,0,.07);
    --shadow-md:        0 8px 30px rgba(0,0,0,.10);
    --shadow-lg:        0 16px 48px rgba(0,0,0,.14);
    --radius:           10px;
    --transition:       all .28s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

/* ── Base ───────────────────────────────────────────────── */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    line-height: 1.65;
    padding-top: var(--nav-height);   /* offset for fixed navbar */
    background: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a { text-decoration: none; }

img { max-width: 100%; }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 3px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    height: var(--nav-height);
    padding: 0 0;
    background: rgba(255,255,255,.97) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 2px 20px rgba(0,0,0,.08) !important;
    transition: var(--transition);
}

/* Scrolled state – added by JS */
.navbar.scrolled {
    height: 64px;
    box-shadow: 0 4px 24px rgba(0,0,0,.12) !important;
}

/* Brand */
.navbar-brand-logo {
    width: 44px;
    height: 44px;
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
    margin-right: 4px;
    transition: var(--transition);
    flex-shrink: 0;
    display: block;
    overflow: hidden;
}
.navbar.scrolled .navbar-brand-logo { width: 36px; height: 36px; }

.navbar-brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
    padding: 0;
}
.brand-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.45rem;
    background: var(--gradient-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: .03em;
}
.brand-subtitle {
    font-size: .68rem;
    font-weight: 500;
    color: var(--gray-color);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-top: 1px;
}

/* Nav links */
.navbar-nav .nav-link {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #2d2d2d !important;
    padding: 6px 4px !important;
    margin: 0 6px;
    position: relative;
    transition: color .2s;
}

/* Animated underline on hover / active */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-color);
    border-radius: 2px;
    transition: width .25s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { width: 100%; }
.navbar-nav .nav-link:hover { color: var(--primary-color) !important; }
.navbar-nav .nav-link.active { color: var(--primary-color) !important; }

/* Dropdown */
.navbar-nav .dropdown-menu {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 8px;
    margin-top: 10px;
    min-width: 210px;
    animation: dropIn .18s ease;
}
@keyframes dropIn {
    from { opacity:0; transform:translateY(-6px); }
    to   { opacity:1; transform:translateY(0); }
}
.navbar-nav .dropdown-item {
    border-radius: 6px;
    font-size: .82rem;
    font-weight: 500;
    padding: 9px 14px;
    color: #2d2d2d;
    transition: var(--transition);
}
.navbar-nav .dropdown-item:hover {
    background: rgba(255,64,0,.07);
    color: var(--primary-color);
    padding-left: 18px;
}

/* "Login" CTA button in nav */
.navbar-nav .nav-link.nav-cta {
    background: var(--gradient-color);
    color: #fff !important;
    border-radius: 20px;
    padding: 6px 18px !important;
    margin-left: 8px;
    font-size: .78rem;
}
.navbar-nav .nav-link.nav-cta::after { display:none; }
.navbar-nav .nav-link.nav-cta:hover { opacity: .88; color: #fff !important; }

/* Hamburger button */
.navbar-toggler {
    border: none;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255,64,0,.08);
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,64,0,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================================
   HERO SECTIONS
   All hero sections account for the fixed navbar via padding-top
   ============================================================ */
.hero-section {
    position: relative;
    background: linear-gradient(rgba(0,0,0,.70), rgba(0,0,0,.70)),
                url('../images/hero-bg.png') center/cover no-repeat;
    color: #fff;
    /* min padding = navbar height + desired whitespace */
    padding: calc(var(--nav-height) + 80px) 0 100px;
    text-align: center;
}

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: .88;
}

/* ── Sub-page hero (shorter) used across blogs/career/testimonials etc. ── */
/* Any section that uses style="padding:Xpx 0 Ypx" will still be hidden.
   We override the inline padding via a top-padding utility added in header. */
.hero-section[style],
section.hero-section {
    padding-top: calc(var(--nav-height) + 60px) !important;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    background: var(--gradient-color);
    border: none;
    padding: 11px 28px;
    font-weight: 600;
    border-radius: 6px;
    transition: var(--transition);
    letter-spacing: .02em;
}
.btn-primary:hover {
    opacity: .88;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255,64,0,.35);
    background: var(--gradient-color);
    border-color: transparent;
}

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(255,255,255,.8);
    color: #fff;
    padding: 11px 28px;
    font-weight: 600;
    border-radius: 6px;
    transition: var(--transition);
}
.btn-secondary:hover {
    background: #fff;
    color: var(--primary-color);
    border-color: #fff;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 6px;
    transition: var(--transition);
}
.btn-outline-primary:hover {
    background: var(--gradient-color);
    border-color: transparent;
    color: #fff;
    transform: translateY(-1px);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section-padding { padding: 80px 0; }

.section-title {
    position: relative;
    margin-bottom: 54px;
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--gradient-color);
    border-radius: 2px;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
}
.section-title.text-start::after { left: 0; transform: none; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,64,0,.09);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}
.card:hover .card-icon { background: rgba(255,64,0,.16); }
.card-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #111827; }

.footer-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--gradient-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer h5 {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #fff;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}
.footer h5::after {
    content: '';
    position: absolute;
    width: 32px;
    height: 2px;
    background: var(--gradient-color);
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

.footer a.text-white-50 { transition: color .2s; }
.footer a.text-white-50:hover { color: var(--secondary-color) !important; }

.contact-info li { display: flex; align-items: flex-start; gap: 10px; }
.contact-info i { margin-top: 4px; color: var(--secondary-color); flex-shrink: 0; }

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: .85rem;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,.1);
}
.social-icons a:hover {
    background: var(--gradient-color);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255,64,0,.35);
}

.footer hr { border-color: rgba(255,255,255,.08); }
.footer .footer-bottom a:hover { color: var(--secondary-color) !important; }

/* ============================================================
   SOLUTION PAGES
   ============================================================ */
.solution-hero {
    background: var(--gradient-dark);
    color: #fff;
    padding: calc(var(--nav-height) + 60px) 0 60px;
}

.solution-item {
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
    background: #fff;
    height: 100%;
    transition: var(--transition);
}
.solution-item:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.solution-item h4 { color: var(--primary-color); margin-bottom: 12px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-form .form-control,
.contact-form .form-select {
    padding: 11px 14px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-size: .9rem;
    transition: var(--transition);
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255,64,0,.15);
}

.contact-info-box {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: var(--transition);
}
.contact-info-box:hover { box-shadow: var(--shadow-md); }
.contact-info-box i { font-size: 36px; color: var(--primary-color); margin-bottom: 16px; }

/* ============================================================
   PORTAL DASHBOARD HEADER
   ============================================================ */
.dashboard-header {
    background: var(--gradient-color);
}

/* ============================================================
   UTILITIES / MISC
   ============================================================ */
.bg-light { background: var(--light-color) !important; }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Focus ring using brand colour */
:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }

/* Page transition fade-in */
main { animation: pageFadeIn .3s ease; }
@keyframes pageFadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    body { padding-top: var(--nav-height); }

    /* Mobile nav panel */
    .navbar-collapse {
        background: rgba(255,255,255,.98);
        border-radius: var(--radius);
        box-shadow: var(--shadow-md);
        padding: 16px 20px 20px;
        margin-top: 10px;
    }
    .navbar-nav .nav-link {
        padding: 10px 0 !important;
        margin: 0;
        border-bottom: 1px solid rgba(0,0,0,.05);
    }
    .navbar-nav .nav-link::after { display: none; }
    .navbar-nav .nav-link.nav-cta {
        display: inline-block;
        margin-top: 10px;
        border-radius: 6px;
        text-align: center;
    }
    .dropdown-menu { box-shadow: none; padding: 0 0 0 16px; }
}

@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    .hero-section { padding: calc(var(--nav-height) + 50px) 0 70px; }
    .hero-section h1 { font-size: 2rem; }
    .hero-section p { font-size: .95rem; }
}

@media (max-width: 480px) {
    .brand-text { font-size: 1.2rem; }
    .navbar-brand-logo { width: 34px; height: 34px; }
}

/* ── Navbar logo hard cap (prevents oversized PNG overflow) ── */
#mainNav .navbar-brand { 
    overflow: hidden; 
    max-height: calc(var(--nav-height) - 8px); }
#mainNav .navbar-brand img { max-height: 44px !important; width: auto !important; max-width: 44px !important; }
#mainNav.scrolled .navbar-brand img { max-height: 36px !important; max-width: 36px !important; }
