/* ============================================================
   HOME.CSS — Saaradaa Learknowations Home Page
   Theme: Royal Blue + Amber
   ============================================================ */

/* ── Hero Section ──────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy);
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 41, 0.92) 0%, rgba(15, 23, 41, 0.5) 50%, rgba(15, 23, 41, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 5%;
    color: var(--white);
}

.hero-content .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 166, 35, 0.15);
    border: 1px solid rgba(245, 166, 35, 0.35);
    color: var(--amber-light);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 24px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.12;
    margin-bottom: 22px;
    letter-spacing: -1.5px;
}

.hero-content h1 .company-name {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
    background: linear-gradient(90deg, var(--amber), var(--amber-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content h1 span.highlight {
    background: linear-gradient(90deg, var(--amber), var(--amber-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 36px;
    max-width: 540px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-btns .btn-outline {
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.35s var(--ease-out);
    cursor: pointer;
}

.hero-btns .btn-outline:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* Hero slider controls */
.hero-dots {
    position: absolute;
    bottom: 40px;
    left: 5%;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: var(--amber);
    border-color: var(--amber);
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(245, 166, 35, 0.5);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 5%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-indicator .mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator .mouse::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--amber);
    border-radius: 2px;
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        opacity: 1;
        top: 6px;
    }

    100% {
        opacity: 0;
        top: 22px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.6rem;
    }

    .hero-content h1 .company-name {
        font-size: 1.1rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .scroll-indicator {
        display: none;
    }
}

/* ── About Preview Section ─────────────────────────── */
.about-preview {
    padding: var(--section-pad);
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s var(--ease-out);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--royal-blue), var(--amber));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(41, 87, 164, 0.2);
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card .icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(41, 87, 164, 0.1), rgba(245, 166, 35, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.about-card .icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--royal-blue);
    fill: none;
    stroke-width: 1.5;
}

.about-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--royal-deeper);
}

.about-card p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Services Preview Section ──────────────────────── */
.services-preview {
    padding: var(--section-pad);
    background: var(--off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    transition: all 0.4s var(--ease-out);
    border: 1px solid var(--gray-200);
    cursor: pointer;
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(41, 87, 164, 0.15);
    border-color: var(--royal-blue);
}

.service-card .card-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-100);
    position: absolute;
    top: 12px;
    right: 16px;
    line-height: 1;
    transition: color 0.3s ease;
}

.service-card:hover .card-num {
    color: rgba(41, 87, 164, 0.08);
}

.service-card .card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(41, 87, 164, 0.1), rgba(245, 166, 35, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.service-card .card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--royal-blue);
    fill: none;
    stroke-width: 1.5;
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--royal-deeper);
}

.service-card p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.service-card .card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--royal-blue);
    font-family: var(--font-heading);
    transition: gap 0.3s ease;
}

.service-card:hover .card-arrow {
    gap: 10px;
    color: var(--amber);
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Gallery Preview Section ───────────────────────── */
.gallery-preview {
    padding: var(--section-pad);
    background: var(--white);
    overflow: hidden;
}

.gallery-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0 20px;
    scroll-snap-type: x mandatory;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-scroll .g-item {
    flex: 0 0 280px;
    height: 320px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-md);
}

.gallery-scroll .g-item:hover {
    transform: scale(1.03);
}

.gallery-scroll .g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-scroll .g-item:hover img {
    transform: scale(1.08);
}

/* ── Recognition Section ───────────────────────────── */
.recognition-section {
    padding: 90px 5%;
    background: linear-gradient(135deg, var(--navy), #060a14);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.recognition-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(41, 87, 164, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.recognition-section .section-title h2 {
    color: var(--white);
}

.recognition-section .section-title p {
    color: rgba(255, 255, 255, 0.65);
}

.recog-slider {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.recog-item {
    width: 190px;
    height: 190px;
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease-out);
    border: 2px solid transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.recog-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    /* subtle inner border for white cards */
    pointer-events: none;
}

.recog-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(245, 166, 35, 0.15);
    border-color: var(--amber);
}

.recog-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

/* ── Wisdom Preview Section ────────────────────────── */
.wisdom-preview {
    padding: var(--section-pad);
    background: var(--off-white);
}

.wisdom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.wisdom-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease;
    aspect-ratio: 4/3;
    border: 3px solid transparent;
}

.wisdom-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--amber);
}

.wisdom-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wisdom-card::after {
    content: '📖 Read More';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px;
    background: linear-gradient(transparent, rgba(15, 23, 41, 0.85));
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.wisdom-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .wisdom-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Contact Preview Section ───────────────────────── */
.contact-preview {
    padding: var(--section-pad);
    background: var(--white);
}

.contact-flex {
    display: flex;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--royal-deeper);
}

.contact-info p {
    color: var(--gray-600);
    margin-bottom: 24px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.contact-details li svg {
    width: 20px;
    height: 20px;
    stroke: var(--royal-blue);
    fill: none;
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-details li a {
    color: var(--royal-blue);
    font-weight: 600;
}

.contact-details li a:hover {
    color: var(--amber);
}

.contact-cta {
    flex: 1;
    background: linear-gradient(135deg, var(--royal-blue), var(--royal-dark));
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.15), transparent);
    border-radius: 50%;
}

.contact-cta h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 12px;
    position: relative;
}

.contact-cta p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 28px;
    position: relative;
}

@media (max-width: 768px) {
    .contact-flex {
        flex-direction: column;
        gap: 30px;
    }

    .contact-cta {
        padding: 30px 24px;
    }
}

/* ── CTA Banner ────────────────────────────────────── */
.cta-banner {
    padding: 80px 5%;
    background: linear-gradient(135deg, var(--amber), var(--amber-dark));
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 50%;
}

.cta-banner h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    position: relative;
}

.cta-banner p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 550px;
    margin: 0 auto 32px;
    position: relative;
}

.cta-banner .btn-primary {
    background: linear-gradient(135deg, var(--royal-blue), var(--royal-dark));
    position: relative;
}

/* ── Catalog Overlay ───────────────────────────────── */
.catalog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out);
}

.catalog-overlay.active {
    opacity: 1;
    visibility: visible;
}

.catalog-container {
    background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 100%);
    width: 90%;
    max-width: 650px;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    text-align: center;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s var(--ease-out);
    border: 1px solid rgba(245, 166, 35, 0.15);
}

.catalog-overlay.active .catalog-container {
    transform: translateY(0);
}

.catalog-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.catalog-title {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.catalog-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.catalog-preview {
    width: 100%;
    height: 280px;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    overflow: hidden;
}

.catalog-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--royal-blue), var(--royal-dark));
    color: white;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(41, 87, 164, 0.4);
}

.catalog-footer-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: 1rem;
}