
        :root {
            /* Colors */
            --cta-orange: #ff7900;
            --cta-orange-hover: #e56800;
            --cta-orange-light: #ff9533;
            --cta-orange-dark: #cc6100;
            
            /* Neutral Colors */
            --black: #000000;
            --dark-gray: #1a1a1a;
            --medium-gray: #666666;
            --light-gray: #cccccc;
            --off-white: #fafafa;
            --white: #ffffff;
            
            /* Spacing - 8px base unit */
            --space-xs: 0.25rem;    /* 4px */
            --space-sm: 0.5rem;     /* 8px */
            --space-md: 1rem;       /* 16px */
            --space-lg: 1.5rem;     /* 24px */
            --space-xl: 2rem;       /* 32px */
            --space-2xl: 3rem;      /* 48px */
            --space-3xl: 4rem;      /* 64px */
            --space-4xl: 5rem;      /* 80px */
            --space-5xl: 6rem;      /* 96px */
            --space-6xl: 8rem;      /* 128px */
            --space-7xl: 10rem;     /* 160px */
            --space-8xl: 12rem;     /* 192px */
            
            /* Typography */
            --font-primary: 'Bricolage Grotesque', sans-serif;
            --font-secondary: 'Poppins', sans-serif;
            --font-body: 'Inter', sans-serif;
        }

        .bodyclass {
            font-family: var(--font-body);
            line-height: 1.6;
            color: var(--dark-gray);
            margin: 0;
            padding: 0;
        }

        

        /* Hero Section */
        .hero {
            position: relative;
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
.hero-background-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  opacity: 0;
  transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.hero-background-layer.active {
  opacity: 1;
  z-index: 2;
}

        .hero-background {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
            z-index: 1;
            transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
            opacity: 1;
        }


        .hero-content {
            position: relative;
            z-index: 2;
            text-align: center;
            color: var(--white);
            max-width: 1200px;
            padding: 0 var(--space-lg);
        }

        .hero-title {
            font-family: var(--font-primary);
            font-size: 64px;
            line-height: 1.1;
            font-weight: 700;
            margin-bottom: var(--space-3xl);
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
            transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* University Finder in Hero - FIXED LAYOUT */
        .hero-finder {
            max-width: 1000px;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            padding: var(--space-2xl);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        }

        /* FIXED: Stable grid layout that doesn't change during animations */
        .finder-form {
            display: grid;
            grid-template-columns: repeat(3, 1fr) auto;
            gap: var(--space-md);
            align-items: end;
            width: 100%;
        }

        .form-group {
            position: relative;
            min-width: 0; /* Prevents flex items from overflowing */
        }

        .form-select {
            width: 100%;
            padding: var(--space-md);
            border: 2px solid var(--light-gray);
            border-radius: 8px;
            font-family: var(--font-secondary);
            font-size: 16px;
            background: var(--white);
            cursor: pointer;
            transition: all 0.3s ease;
            color: var(--dark-gray);
            box-sizing: border-box;
        }

        .form-select:focus {
            outline: none;
            border-color: var(--cta-orange);
            box-shadow: 0 0 0 4px rgba(255, 121, 0, 0.1);
        }

        .find-btn {
            background: linear-gradient(135deg, var(--cta-orange), var(--cta-orange-light));
            color: var(--white);
            border: none;
            padding: var(--space-md) var(--space-lg);
            border-radius: 8px !important;
            font-family: var(--font-secondary);
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            min-height: 52px;
            white-space: nowrap;
            position: relative;
            overflow: hidden;
        }

        .find-btn:hover:not(:disabled) {
            background: linear-gradient(135deg, var(--cta-orange-hover), var(--cta-orange));
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(255, 121, 0, 0.3);
        }

        .find-btn:disabled {
            background: var(--light-gray);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .spinner {
            display: none;
            width: 20px;
            height: 20px;
            border: 2px solid transparent;
            border-top: 2px solid var(--white);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-right: var(--space-sm);
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .error-message {
            display: none;
            color: #dc3545;
            font-size: 14px;
            margin-top: var(--space-sm);
            padding: var(--space-sm);
            background: rgba(220, 53, 69, 0.1);
            border-radius: 4px;
            border: 1px solid rgba(220, 53, 69, 0.2);
        }

        .cta-buttons {
            margin-top: var(--space-2xl);
            display: flex;
            gap: var(--space-md);
            justify-content: center;
            flex-wrap: wrap;
        }

        .cta-btn {
            background:#0a58ff;
            color: var(--white);
            padding: var(--space-md) var(--space-lg);
            border: none;
            border-radius: 8px !important;
            font-family: var(--font-secondary);
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }

        .cta-btn:hover {
              background:#0d4dd8;

            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(255, 121, 0, 0.3);
        }

        /* Additional Content Section */
        .features-section {
            padding: var(--space-5xl) 0;
            background: var(--off-white);
        }

        .features-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 var(--space-lg);
        }

        .features-title {
            font-family: var(--font-primary);
            font-size: 48px;
            line-height: 1.2;
            font-weight: 700;
            text-align: center;
            margin-bottom: var(--space-3xl);
            color: var(--dark-gray);
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: var(--space-2xl);
        }

        .feature-card {
            background: var(--white);
            padding: var(--space-2xl);
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .feature-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
        }

        .feature-icon {
            width: 64px;
            height: 64px;
            background: linear-gradient(135deg, var(--cta-orange), var(--cta-orange-light));
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            margin-bottom: var(--space-lg);
        }

        .feature-title {
            font-family: var(--font-secondary);
            font-size: 24px;
            line-height: 1.4;
            font-weight: 600;
            margin-bottom: var(--space-md);
            color: var(--dark-gray);
        }

        .feature-description {
            font-family: var(--font-body);
            font-size: 16px;
            line-height: 1.6;
            color: var(--medium-gray);
        }

        /* Responsive Design */
        @media (max-width: 1023px) {
           
            .hero-title {
                font-size: 52px;
                line-height: 1.1;
            }
            
            .features-title {
                font-size: 40px;
                line-height: 1.2;
            }

            /* Adjust grid for tablets */
            .finder-form {
                grid-template-columns: repeat(2, 1fr);
                gap: var(--space-md);
            }

            .finder-form .form-group:nth-child(3) {
                grid-column: 1 / -1;
            }

            .finder-form .form-group:nth-child(4) {
                grid-column: 1 / -1;
            }
        }

        @media (max-width: 767px) {
           
        .hero-content {
                padding: 0 var(--space-md);
            }

            .hero-title {
                font-size: 36px;
                line-height: 1.2;
                margin-bottom: var(--space-xl);
            }

            .hero-finder {
                padding: var(--space-lg);
                margin: 0 var(--space-md);
            }

            /* Mobile: Stack everything vertically */
            .finder-form {
                grid-template-columns: 1fr;
                gap: var(--space-md);
            }

            .cta-buttons {
                flex-direction: column;
                align-items: center;
                margin-top: var(--space-lg);
            }

            .features-section {
                padding: var(--space-2xl) 0;
            }

            .features-container {
                padding: 0 var(--space-md);
            }

            .features-title {
                font-size: 32px;
                line-height: 1.2;
                margin-bottom: var(--space-xl);
            }

            .features-grid {
                grid-template-columns: 1fr;
                gap: var(--space-lg);
            }

            .feature-card {
                padding: var(--space-lg);
            }
        }

        /* Smooth animations */
        .fade-in {
            opacity: 0;
            transform: translateY(20px);
            animation: fadeIn 0.8s ease forwards;
        }

        @keyframes fadeIn {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .slide-up {
            transform: translateY(50px);
            opacity: 0;
            animation: slideUp 0.8s ease forwards;
        }

        @keyframes slideUp {
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        /* Form loading state */
        .finder-form.loading {
            opacity: 0.7;
            pointer-events: none;
        }

        .finder-form.loading .find-btn {
            cursor: wait;
        }
