@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Inter:wght@400;600;700&display=swap');

:root {
    --indigo-royal: #064e3b;
    --saffron-main: #d97706;
    --saffron-gold: #f59e0b;
    --silk-cream: #f0fdf4;
    --text-dark: #1a3c34;
    --text-muted: #6b7280;
    --shadow-soft: 0 10px 40px rgba(6, 78, 59, 0.06);
    --font-royal: 'Marcellus', serif;
    --font-modern: 'Inter', sans-serif;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--silk-cream);
    color: var(--text-dark);
    font-family: var(--font-modern);
    overflow-x: hidden;
}

h1,
h2,
h3,
.royal-text {
    font-family: var(--font-royal);
    color: var(--indigo-royal);
}

/* Background Pattern */
.silk-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--saffron-main) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    opacity: 0.05;
    z-index: -1;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

/* Navbar */
nav {
    padding: 0.2rem 0;
    transition: var(--transition);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav.scrolled {
    background: rgba(240, 253, 244, 0.98);
    backdrop-filter: blur(15px);
    padding: 0.1rem 0;
    box-shadow: var(--shadow-soft);
    border-bottom: 2px solid rgba(217, 119, 6, 0.15);
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 180px;
    width: auto;
    transition: var(--transition);
    margin-top: -15px;
    margin-bottom: -15px;
    filter: drop-shadow(0 5px 15px rgba(6, 78, 59, 0.1));
}

.menu-toggle {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--indigo-royal);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--saffron-main);
}

.consult-btn {
    background: var(--saffron-main);
    color: white !important;
    padding: 0.8rem 2rem;
    border-radius: 8px;
}

.consult-btn:hover {
    background: var(--indigo-royal);
    transform: translateY(-2px);
}

nav.scrolled .logo img {
    height: 110px;
    margin-top: -5px;
    margin-bottom: -5px;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

/* Hero Saffron */
.hero-saffron {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 160px;
    background: linear-gradient(135deg, #f0fdf4 0%, #fef9c3 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-text span {
    color: var(--saffron-main);
}

/* Sections */
.section-saffron {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* State Cards */
.state-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.state-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(217, 119, 6, 0.06);
}

.state-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(217, 119, 6, 0.12);
}

.state-img {
    height: 160px;
    position: relative;
}

.state-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.state-info {
    padding: 1.5rem;
}

.state-info h3 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

/* Timeline Pulse */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--saffron-main);
    opacity: 0.2;
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
    width: 50%;
    padding: 0 3rem;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
    text-align: left;
}

.timeline-item:nth-child(odd) {
    text-align: right;
}

.timeline-dot {
    position: absolute;
    top: 10px;
    width: 20px;
    height: 20px;
    background: var(--saffron-main);
    border: 4px solid var(--silk-cream);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

/* Institution Showcase */
.inst-card {
    display: flex;
    background: #fff;
    border-radius: 30px;
    margin-bottom: 3rem;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.inst-img {
    flex: 1;
    min-height: 400px;
}

.inst-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inst-text {
    flex: 1.2;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Quota Mini Guide */
.quota-box {
    background: var(--indigo-royal);
    color: #fff;
    border-radius: 40px;
    padding: 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.quota-box h2 {
    color: var(--saffron-gold);
    font-size: 3rem;
}

/* Buttons Saffron */
.btn-saffron {
    background: var(--saffron-main);
    color: #fff;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.2);
    border: none;
}

.btn-saffron:hover {
    background: var(--indigo-royal);
    transform: translateY(-3px);
}

/* Animations Scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 1.5rem;
    }
}

@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 900px) {
    nav {
        padding: 0.8rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        font-size: 1.8rem;
        color: var(--indigo-royal);
        cursor: pointer;
        z-index: 1100;
        margin-left: auto;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 50%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1050;
        display: flex !important;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-links a {
        font-size: 1.1rem;
        font-weight: 600;
        width: 100%;
        text-align: center;
        padding: 0.5rem;
    }

    .consult-btn {
        background: var(--saffron-main);
        color: white !important;
        padding: 0.8rem 2rem !important;
        border-radius: 8px;
        width: auto !important;
        display: inline-block !important;
    }

    /* Fix Hero Layout */
    .hero-saffron {
        padding-top: 160px;
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
        padding: 0 1rem;
        text-align: center;
    }

    .hero-visual {
        padding: 0 1rem;
        display: flex;
        justify-content: center;
    }

    .banner-form {
        margin: 0 auto;
        width: 100%;
        max-width: 320px;
        /* More restrictive for very small phones */
        box-sizing: border-box;
    }

    .logo img {
        height: 60px;
    }

    nav.scrolled .logo img {
        height: 40px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .banner-form {
        padding: 1.25rem;
    }
}

.banner-form {
    padding: 1.5rem;
}

.hero-grid {
    gap: 2rem;
}

/* Banner Form Styling */
.banner-form {
    background: linear-gradient(135deg, #065f46 0%, #064e3b 100%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(6, 95, 70, 0.2);
    width: 100%;
    max-width: 450px;
    margin-left: auto;
    position: relative;
    animation: spinZoomIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    color: white;
    transform-origin: center center;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-family: var(--font-modern);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.close-icon {
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0.95;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    background: white;
    color: var(--indigo-royal);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.btn-call-back {
    width: auto;
    background: linear-gradient(135deg, #d97706, #b45309);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.3);
}

.btn-call-back:hover {
    background: var(--indigo-royal);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(217, 119, 6, 0.4);
}

@keyframes spinZoomIn {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-1080deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@media (max-width: 900px) {
    .banner-form {
        margin: 3rem auto 0;
        padding: 2rem;
    }
}

/* Educational Domains Section */
.section-domains {
    padding: 120px 0;
    background: radial-gradient(circle at top left, rgba(217, 119, 6, 0.04), transparent),
        radial-gradient(circle at bottom right, rgba(6, 78, 59, 0.04), transparent);
    position: relative;
    overflow: hidden;
}

.domain-title {
    text-shadow: 0 10px 20px rgba(6, 78, 59, 0.1);
}

.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    perspective: 1000px;
}

.domain-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transform-style: preserve-3d;
}

.domain-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent, rgba(255, 255, 255, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.domain-card:hover {
    transform: translateY(-15px) rotateX(10deg) rotateY(-5deg);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 30px 60px rgba(6, 78, 59, 0.1);
    border-color: var(--domain-color);
}

.domain-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #f8fafc;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--domain-color);
    transition: all 0.4s ease;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.domain-card:hover .domain-icon-wrapper {
    background: var(--domain-color);
    color: white;
    transform: translateZ(30px) scale(1.1);
    box-shadow: 0 15px 30px var(--domain-glow);
}

.domain-card h3 {
    font-family: var(--font-modern);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--indigo-royal);
    margin: 0;
    transition: all 0.3s ease;
}

.domain-card:hover h3 {
    transform: translateZ(20px);
    color: var(--domain-color);
}

/* Color Mapping for Domains */
.domain-card[data-color="#10b981"] {
    --domain-color: #10b981;
    --domain-glow: rgba(16, 185, 129, 0.4);
}

.domain-card[data-color="#3b82f6"] {
    --domain-color: #3b82f6;
    --domain-glow: rgba(59, 130, 246, 0.4);
}

.domain-card[data-color="#6366f1"] {
    --domain-color: #6366f1;
    --domain-glow: rgba(99, 102, 241, 0.4);
}

.domain-card[data-color="#f43f5e"] {
    --domain-color: #f43f5e;
    --domain-glow: rgba(244, 63, 94, 0.4);
}

.domain-card[data-color="#8b5cf6"] {
    --domain-color: #8b5cf6;
    --domain-glow: rgba(139, 92, 246, 0.4);
}

.domain-card[data-color="#ec4899"] {
    --domain-color: #ec4899;
    --domain-glow: rgba(236, 72, 153, 0.4);
}

.domain-card[data-color="#f59e0b"] {
    --domain-color: #f59e0b;
    --domain-glow: rgba(245, 158, 11, 0.4);
}

.domain-card[data-color="#06b6d4"] {
    --domain-color: #06b6d4;
    --domain-glow: rgba(6, 182, 212, 0.4);
}

.domain-card[data-color="#14b8a6"] {
    --domain-color: #14b8a6;
    --domain-glow: rgba(20, 184, 166, 0.4);
}

.domain-card[data-color="#22c55e"] {
    --domain-color: #22c55e;
    --domain-glow: rgba(34, 197, 94, 0.4);
}

.domain-card[data-color="#f97316"] {
    --domain-color: #f97316;
    --domain-glow: rgba(249, 115, 22, 0.4);
}

.domain-card[data-color="#ef4444"] {
    --domain-color: #ef4444;
    --domain-glow: rgba(239, 68, 68, 0.4);
}

.domain-card[data-color="#0ea5e9"] {
    --domain-color: #0ea5e9;
    --domain-glow: rgba(14, 165, 233, 0.4);
}

.domain-card[data-color="#6d28d9"] {
    --domain-color: #6d28d9;
    --domain-glow: rgba(109, 40, 217, 0.4);
}

.domain-card[data-color="#be185d"] {
    --domain-color: #be185d;
    --domain-glow: rgba(190, 24, 93, 0.4);
}

.domain-card[data-color="#4338ca"] {
    --domain-color: #4338ca;
    --domain-glow: rgba(67, 56, 202, 0.4);
}

.domain-card[data-color="#d97706"] {
    --domain-color: #d97706;
    --domain-glow: rgba(217, 119, 6, 0.4);
}

.domain-card[data-color="#db2777"] {
    --domain-color: #db2777;
    --domain-glow: rgba(219, 39, 119, 0.4);
}

/* Staggered Reveal Animation Transitions */
.domain-grid .domain-card:nth-child(1) {
    transition-delay: 0.05s;
}

.domain-grid .domain-card:nth-child(2) {
    transition-delay: 0.1s;
}

.domain-grid .domain-card:nth-child(3) {
    transition-delay: 0.15s;
}

.domain-grid .domain-card:nth-child(4) {
    transition-delay: 0.2s;
}

.domain-grid .domain-card:nth-child(5) {
    transition-delay: 0.25s;
}

.domain-grid .domain-card:nth-child(6) {
    transition-delay: 0.3s;
}

.domain-grid .domain-card:nth-child(7) {
    transition-delay: 0.35s;
}

.domain-grid .domain-card:nth-child(8) {
    transition-delay: 0.4s;
}

.domain-grid .domain-card:nth-child(9) {
    transition-delay: 0.45s;
}

.domain-grid .domain-card:nth-child(10) {
    transition-delay: 0.5s;
}

.domain-grid .domain-card:nth-child(11) {
    transition-delay: 0.55s;
}

.domain-grid .domain-card:nth-child(12) {
    transition-delay: 0.6s;
}

.domain-grid .domain-card:nth-child(13) {
    transition-delay: 0.65s;
}

.domain-grid .domain-card:nth-child(14) {
    transition-delay: 0.7s;
}

.domain-grid .domain-card:nth-child(15) {
    transition-delay: 0.75s;
}

.domain-grid .domain-card:nth-child(16) {
    transition-delay: 0.8s;
}

.domain-grid .domain-card:nth-child(17) {
    transition-delay: 0.85s;
}

.domain-grid .domain-card:nth-child(18) {
    transition-delay: 0.9s;
}

@media (max-width: 768px) {
    .domain-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1.5rem;
    }

    .domain-card {
        padding: 1.5rem 1rem;
    }

    .domain-icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
}

/* Top Colleges & Universities Section */
.section-colleges {
    padding: 100px 0;
    background: #fefce8;
    position: relative;
    overflow: hidden;
}

.section-colleges::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(217, 119, 6, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 78, 59, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

/* College Marquee Animations & Styling */
.college-marquee-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
    background: transparent;
}

.college-marquee-container::before,
.college-marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 10vw;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.college-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #fefce8, transparent);
}

.college-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #fefce8, transparent);
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--saffron-main) #f1f5f9;
}

.marquee-track::-webkit-scrollbar {
    height: 8px;
}

.marquee-track::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.marquee-track::-webkit-scrollbar-thumb {
    background: var(--saffron-main);
    border-radius: 4px;
}

.marquee-track::-webkit-scrollbar-thumb:hover {
    background: var(--indigo-royal);
}

.marquee-content {
    display: flex;
    gap: 2rem;
}

.marquee-items {
    display: flex;
    gap: 2rem;
    padding-right: 2rem;
    flex-shrink: 0;
}

/* Scroll setups */

.track-right {
    direction: rtl;
    /* Sets scrollbar to start on the right initially */
}

.track-right .marquee-content {
    direction: ltr;
    /* Reset text direction */
    display: flex;
    flex-direction: row-reverse;
}

/* Improved College Card styling with hover */
.college-card {
    position: relative;
    width: 320px;
    height: 220px;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(6, 78, 59, 0.08);
    transform: scale(1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.college-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(6, 78, 59, 0.92), transparent);
    color: white;
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-overlay h4 {
    margin: 0;
    font-size: 1.25rem;
    font-family: var(--font-modern);
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.college-card:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 25px 50px rgba(217, 119, 6, 0.2);
    z-index: 10;
}

.college-card:hover img {
    transform: scale(1.1);
}

.college-card:hover .card-overlay {
    transform: translateY(0);
}

.college-card:hover .card-overlay h4 {
    color: var(--saffron-gold);
}

@media (max-width: 1024px) {
    .college-card {
        width: 280px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .section-colleges {
        padding: 60px 0;
    }

    .college-card {
        width: 220px;
        height: 150px;
    }

    .marquee-items {
        gap: 1rem;
        padding-right: 1rem;
    }

    .marquee-content {
        gap: 1rem;
    }

    .card-overlay h4 {
        font-size: 1rem;
    }

    .card-overlay {
        transform: translateY(0);
    }

    /* Always show title slightly on mobile */
}