/* Base Styles */
:root {
    --primary: #8a2be2;
    --primary-light: #9d4edd;
    --primary-dark: #7b2cbf;
    --secondary: #ff6d00;
    --accent: #ff9e00;
    --dark: #212529;
    --light: #f8f9fa;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --white: #ffffff;
    --success: #4cc9f0;
    --border-radius: 12px;
    --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: #f5f3ff;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Particles Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #f5f3ff 0%, #e0d6ff 100%);
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h1 span {
    color: var(--primary);
    position: relative;
}

h1 span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

h1:hover span::after {
    transform: scaleX(1);
    transform-origin: left;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title {
    margin-bottom: 4rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray);
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.glass-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    font-size: 1.8rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

.cta-button a {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(138, 43, 226, 0.3);
}

.cta-button a:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(138, 43, 226, 0.4);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    position: relative;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    z-index: 1;
}

.hero-image {
    flex: 1;
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
    position: relative;
}

.price-tag {
    background: white;
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    box-shadow: var(--box-shadow);
    align-self: flex-start;
    animation: float 3s ease-in-out infinite;
}

/* Phone Mockup */
.phone-mockup {
    width: 300px;
    height: 550px;
    background: white;
    border-radius: 40px;
    padding: 15px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 10px var(--light-gray),
        0 0 0 12px var(--gray);
    position: relative;
    margin: 0 auto;
    transform: perspective(1000px) rotateY(-15deg);
    transition: var(--transition);
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(-5deg);
}

.screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f3ff 0%, #e9e4ff 100%);
    border-radius: 25px;
    overflow: hidden;
    position: relative;
}

.swipe-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.profile-card {
    width: 90%;
    height: 120px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    animation: swipe 8s infinite;
}

.profile-card:nth-child(1) {
    animation-delay: 0s;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
}

.profile-card:nth-child(2) {
    animation-delay: 1s;
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}

.profile-card:nth-child(3) {
    animation-delay: 2s;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

/* Buttons */
.primary-button, .secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.primary-button {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.primary-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.5);
}

.pulse-button {
    animation: pulse 2s infinite;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background-color: white;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, #f5f3ff, white);
    z-index: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    background-color: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(255, 109, 0, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    font-size: 2rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

/* Steps Section */
.steps {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f5f3ff 0%, #e9e4ff 100%);
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    transition: var(--transition);
}

.step:hover {
    transform: scale(1.02);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Login Section */
.login-section {
    padding: 6rem 0;
    background: white;
    position: relative;
}

.login-box {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.login-subtitle {
    margin-bottom: 2rem;
    font-weight: 400;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
/* [Previous CSS remains exactly the same until the login section] */

/* OTP Specific Styles */
.otp-timer {
    margin-top: 1rem;
    color: var(--gray);
    font-size: 0.9rem;
    text-align: center;
}

#otp-container {
    margin-top: 1.5rem;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* OTP Input */
#otp {
    letter-spacing: 0.5rem;
    font-size: 1.5rem;
    text-align: center;
    padding-left: 1.5rem !important;
}

/* [Rest of the previous CSS remains exactly the same] */
.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid var(--light-gray);
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.2);
    outline: none;
}

.university-badge {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--gray);
}

.university-badge img {
    height: 60px;
    border-radius: 20px;
    /* filter: grayscale(100%); */
    /* opacity: 0.7; */
    /* transition: var(--transition); */
}

/* .university-badge:hover img {
    filter: grayscale(0%);
    opacity: 1;
} */

/* Testimonials */
.testimonials {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f5f3ff 0%, #e9e4ff 100%);
}

.testimonial-carousel {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 400px;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 4rem;
    color: rgba(138, 43, 226, 0.1);
    font-family: serif;
    z-index: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    flex-shrink: 0;
}

.author-info h4 {
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.author-info p {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    flex: 2;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1.5rem;
}

.tagline {
    color: var(--light-gray);
    max-width: 300px;
}

.footer-links {
    flex: 3;
    display: flex;
    gap: 4rem;
}

.link-group h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.link-group ul {
    list-style: none;
}

.link-group li {
    margin-bottom: 0.8rem;
}

.link-group a {
    color: var(--light-gray);
    transition: var(--transition);
    font-weight: 300;
}

.link-group a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(138, 43, 226, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(138, 43, 226, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes swipe {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
    20% {
        transform: translateX(20px) rotate(5deg);
        opacity: 1;
    }
    50% {
        transform: translateX(100px) rotate(10deg);
        opacity: 0;
    }
    51% {
        transform: translateX(-100px) rotate(-10deg);
        opacity: 0;
    }
    80% {
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
}

/* Animation Classes */
.animate-pop-in {
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.animate-slide-left {
    animation: slideLeft 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
    opacity: 0;
    transform: translateX(-30px);
}

.animate-slide-right {
    animation: slideRight 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
    opacity: 0;
    transform: translateX(30px);
}

/* Keyframes */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Delays */
.animate-pop-in:nth-child(1) {
    animation-delay: 0.1s;
}

.animate-pop-in:nth-child(2) {
    animation-delay: 0.3s;
}

.animate-pop-in:nth-child(3) {
    animation-delay: 0.5s;
}

.animate-slide-up:nth-child(1) {
    animation-delay: 0.2s;
}

.animate-slide-up:nth-child(2) {
    animation-delay: 0.4s;
}

.animate-slide-up:nth-child(3) {
    animation-delay: 0.6s;
}

.animate-slide-left:nth-child(1) {
    animation-delay: 0.2s;
}

.animate-slide-right:nth-child(2) {
    animation-delay: 0.4s;
}

.animate-slide-left:nth-child(3) {
    animation-delay: 0.6s;
}
.spinner {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: spin 0.6s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.btn-loader {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        align-items: center;
    }

    .hero-image {
        margin-top: 3rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    nav ul {
        gap: 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .phone-mockup {
        width: 250px;
        height: 450px;
    }
}

@media (max-width: 576px) {
    nav ul {
        display: none;
    }

    .header-content {
        justify-content: center;
    }

    .login-box {
        padding: 2rem 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}