/* ==============================================
   NITS Brand Design System v2 — Bright & Corporate
   Primary:    #EF4623 (NITS Red Orange)
   Primary L:  #FF6B00 (Vibrant Orange)
   Secondary:  #0F172A (Corporate Slate Navy)
   Accent:     #0284C7 (Tech Sky Blue)
   Background: #FFFFFF, #F8FAFC
   ============================================== */

:root {
    --nits-red: #EF4623;
    --nits-orange: #FF6B00;
    --slate-900: #0F172A;
    --slate-800: #1E293B;
    --slate-600: #475569;
    --sky-600: #0284C7;
    --sky-100: #E0F2FE;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --glow-orange: rgba(239, 70, 35, 0.2);
    --glow-blue: rgba(2, 132, 199, 0.2);
}

/* ---------- Base ---------- */
body {
    font-family: 'Pretendard Variable', 'Pretendard', -apple-system, system-ui, sans-serif;
    scroll-behavior: smooth;
    color: var(--slate-900);
    background: var(--bg-white);
}

h1, h2, h3, h4 {
    font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
}

/* ---------- Scroll Reveal ---------- */
.reveal2 {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal2.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Header2 Style (Bright) ---------- */
#header2 {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}
#header2.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* ---------- Mobile Menu ---------- */
#mobile-menu2 { display: none; }
#mobile-menu2.open { display: block; }

/* ---------- Dropdown v2 (Bright) ---------- */
.gnb2-dropdown-wrap { position: relative; }
.gnb2-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: #FFFFFF;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    min-width: 200px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 100;
}
.gnb2-dropdown::before {
    content: "";
    position: absolute;
    top: -24px;
    left: 0;
    width: 100%;
    height: 24px;
    background: transparent;
}
.gnb2-dropdown-wrap:hover .gnb2-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.gnb2-dropdown a {
    display: block;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate-600);
    border-radius: 8px;
    transition: all 0.2s;
}
.gnb2-dropdown a:hover {
    background: rgba(239, 70, 35, 0.06);
    color: var(--nits-red);
    padding-left: 18px;
}
.gnb2-dropdown-divider {
    height: 1px;
    background: rgba(15, 23, 42, 0.06);
    margin: 4px 8px;
}

/* ---------- GNB2 3-depth Sub Menu ---------- */
.gnb2-sub-wrap {
    position: relative;
}
.gnb2-sub-trigger {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px;
}
.gnb2-sub-trigger .sub-caret {
    font-size: 0.7rem;
    opacity: 0.4;
    flex-shrink: 0;
    transition: opacity 0.2s;
}
.gnb2-sub-wrap:hover .gnb2-sub-trigger .sub-caret {
    opacity: 1;
}
.gnb2-sub-dropdown {
    position: absolute;
    top: -8px;
    left: calc(100% + 10px);
    background: #FFFFFF;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    min-width: 180px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 101;
}
.gnb2-sub-dropdown::before {
    content: "";
    position: absolute;
    top: 0;
    left: -14px;
    width: 14px;
    height: 100%;
    background: transparent;
}
.gnb2-sub-wrap:hover .gnb2-sub-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.gnb2-sub-dropdown a {
    display: block;
    padding: 10px 14px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-600);
    border-radius: 8px;
    transition: all 0.2s;
}
.gnb2-sub-dropdown a:hover {
    background: rgba(239, 70, 35, 0.06);
    color: var(--nits-red);
    padding-left: 18px;
}

/* ---------- Mobile Accordion ---------- */
.mobile-accordion-body,
.mobile-sub-body {
    display: none;
}
.mobile-accordion-body.open,
.mobile-sub-body.open {
    display: block;
}

/* ---------- Hero Swiper ---------- */
.hero-swiper {
    width: 100%;
    height: 100vh;
    min-height: 700px;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transform: scale(1.05); /* Slight zoom in for zoom-out effect */
    transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}

.swiper-slide-active .hero-slide-bg {
    transform: scale(1);
}

/* White gradient overlay to ensure text is readable */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 45%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

/* Slide Content Animations */
.hero-content {
    position: relative;
    z-index: 10;
}
.swiper-slide .hero-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.swiper-slide-active .hero-animate {
    opacity: 1;
    transform: translateY(0);
}
.swiper-slide-active .delay-1 { transition-delay: 0.1s; }
.swiper-slide-active .delay-2 { transition-delay: 0.2s; }
.swiper-slide-active .delay-3 { transition-delay: 0.3s; }
.swiper-slide-active .delay-4 { transition-delay: 0.4s; }

/* Swiper Pagination (Custom) */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--slate-600);
    opacity: 0.3;
    transition: all 0.3s;
}
.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--nits-red);
    width: 32px;
    border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn-primary-nits {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--nits-orange), var(--nits-red));
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    box-shadow: 0 8px 24px var(--glow-orange);
}
.btn-primary-nits:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(239, 70, 35, 0.35);
}

.btn-secondary-nits {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 700;
    color: var(--slate-800);
    background: white;
    border: 1.5px solid rgba(15, 23, 42, 0.15);
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-secondary-nits:hover {
    background: var(--bg-light);
    border-color: var(--slate-800);
    transform: translateY(-2px);
}

/* ---------- Gradient text ---------- */
.gradient-text-nits {
    background: linear-gradient(135deg, var(--nits-orange) 0%, var(--nits-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Contact Section ---------- */
.contact-cta-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.05);
    border-radius: 32px;
}

/* ---------- Dot pattern overlay ---------- */
.dot-pattern-light {
    background-image: radial-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}
