:root {
    /* Neumorphism Color Palette */
    --bg-color: #e0e5ec;
    --primary-color: #667eea;
    --primary-dark: #5a6fd8;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --shadow-light: #ffffff;
    --shadow-dark: #a3b1c6;
    --card-bg: #e0e5ec;
    
    /* Neumorphism Shadows */
    --shadow-neumorphic: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    --shadow-neumorphic-inset: inset 8px 8px 16px var(--shadow-dark), inset -8px -8px 16px var(--shadow-light);
    --shadow-neumorphic-small: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
    --shadow-neumorphic-hover: 12px 12px 20px var(--shadow-dark), -12px -12px 20px var(--shadow-light);

    /* Font System */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --gradient-subtle: linear-gradient(135deg, #e0e5ec, #f7f9fc);
    
    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 1rem;
}

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

body {
    font-family: var(--font-primary);
    background: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

.text-primary {
    color: var(--primary-color);
}

/* Neumorphism Components */
.neu-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-neumorphic);
    transition: var(--transition-smooth);
}

.neu-card:hover {
    box-shadow: var(--shadow-neumorphic-hover);
    transform: translateY(-2px);
}

.neu-button {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-neumorphic-small);
    transition: var(--transition-smooth);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
}

.neu-button:hover {
    box-shadow: var(--shadow-neumorphic);
    transform: translateY(-1px);
}

.neu-button:active {
    box-shadow: var(--shadow-neumorphic-inset);
    transform: translateY(0);
}

.btn-primary {
    background: var(--card-bg);
    color:var(--primary-color);
    box-shadow: var(--shadow-neumorphic-small);
    border-radius: var(--radius);
    padding: 0.75rem 1.5rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    box-shadow: var(--shadow-neumorphic-hover);
    transform: translateY(-2px) scale(1.02);
}

.btn-primary:active {
    transform: translateY(0) scale(1);
}

.neu-input {
    background: var(--card-bg);
    border-radius: calc(var(--radius) * 0.75);
    box-shadow: var(--shadow-neumorphic-inset);
    border: none;
    padding: 0.75rem 1rem;
    width: 100%;
    transition: var(--transition-smooth);
    color: var(--text-primary);
    font-family: inherit;
}

.neu-input:focus {
    outline: none;
    box-shadow: var(--shadow-neumorphic-inset), 0 0 0 2px var(--primary-color);
}

.neu-input::placeholder {
    color: var(--text-muted);
}

/* Animations */
@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in {
    animation: fade-in 0.6s ease-out;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(224, 229, 236, 0.8);
    backdrop-filter: blur(12px);
    border: none;
    box-shadow: var(--shadow-neumorphic-small);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: block;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.menu-toggle {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-neumorphic-small);
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.menu-toggle:hover {
    box-shadow: var(--shadow-neumorphic);
}

.close-icon {
    display: none;
}

.menu-toggle.active .menu-icon {
    display: none;
}

.menu-toggle.active .close-icon {
    display: block;
}

.mobile-menu {
    display: none;
    padding: 1rem 0;
    animation: fade-in 0.3s ease-out;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: var(--transition-smooth);
}

.mobile-nav-link:hover {
    color: var(--primary-color);
}

.mobile-auth-btn {
    margin-top: 0.5rem;
    text-align: left;
}

/* Hero Section */
.hero-section {
    padding-top: 8rem;
    padding-bottom: 5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .hero-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.trust-indicators {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.trust-item {
    text-align: center;
}

.trust-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.trust-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Exam Card */
.exam-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-neumorphic);
    padding: 2rem;
    max-width: 28rem;
    margin: 0 auto;
    transition: var(--transition-smooth);
}

.exam-card:hover {
    box-shadow: var(--shadow-neumorphic-hover);
    transform: translateY(-2px);
}

.exam-card-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.exam-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.exam-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.exam-status {
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: calc(var(--radius) * 0.5);
    font-size: 0.875rem;
    font-weight: 500;
}

.exam-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.exam-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-icon {
    flex-shrink: 0;
}

.detail-icon.green {
    color: #10b981;
}

.detail-icon.blue {
    color: #3b82f6;
}

.detail-icon.purple {
    color: #8b5cf6;
}

.detail-icon.orange {
    color: #f59e0b;
}

.exam-detail span {
    color: var(--text-muted);
}

.exam-code {
    padding-top: 1rem;
    border-top: 1px solid rgba(161, 175, 198, 0.3);
}

.code-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
}

.code-row span:first-child {
    color: var(--text-muted);
}

.code-value {
    font-family: monospace;
    font-weight: 600;
    color: var(--primary-color);
}

.exam-join-btn {
    width: 100%;
    padding: 0.75rem;
    font-weight: 600;
}

/* Features Section */
.features-section {
    padding: 5rem 1rem;
}

@media (min-width: 640px) {
    .features-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .features-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 48rem;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-neumorphic);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    box-shadow: var(--shadow-neumorphic-hover);
    transform: translateY(-2px);
}

.feature-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon {
    background: var(--card-bg);
    border-radius: 50%;
    box-shadow: var(--shadow-neumorphic-small);
    padding: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-muted);
    line-height: 1.6;
}

.icon.blue {
    color: #3b82f6;
}

.icon.green {
    color: #10b981;
}

.icon.yellow {
    color: #f59e0b;
}

.icon.purple {
    color: #8b5cf6;
}

.icon.red {
    color: #ef4444;
}

.icon.orange {
    color: #f97316;
}

/* How It Works Section */
.how-it-works-section {
    padding: 5rem 1rem;
    background: rgba(224, 229, 236, 0.5);
}

@media (min-width: 640px) {
    .how-it-works-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .how-it-works-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.steps-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step-card {
    text-align: center;
    position: relative;
}

.step-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-neumorphic);
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.step-content:hover {
    box-shadow: var(--shadow-neumorphic-hover);
    transform: translateY(-2px);
}

.step-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.step-icon {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(102, 126, 234, 0.05));
    border-radius: 50%;
    box-shadow: var(--shadow-neumorphic-small);
    padding: 1.5rem;
}

.step-number {
    font-size: 3.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.step-description {
    color: var(--text-muted);
    line-height: 1.6;
}

.step-connector {
    display: none;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
    width: 2rem;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), transparent);
}

@media (min-width: 768px) {
    .step-card:not(:last-child) .step-connector {
        display: block;
    }
}

/* CTA Section */
.cta-section {
    padding: 5rem 1rem;
}

@media (min-width: 640px) {
    .cta-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .cta-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.cta-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-neumorphic);
    padding: 3rem;
    text-align: center;
    max-width: 64rem;
    margin: 0 auto;
    transition: var(--transition-smooth);
}

.cta-card:hover {
    box-shadow: var(--shadow-neumorphic-hover);
    transform: translateY(-2px);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .cta-title {
        font-size: 3rem;
    }
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    padding: 4rem 1rem;
    background: rgba(224, 229, 236, 0.3);
    border-top: 1px solid rgba(161, 175, 198, 0.3);
}

@media (min-width: 640px) {
    .footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .footer {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-neumorphic-small);
    padding: 0.5rem 0.75rem 0.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-link:hover {
    color: var(--primary-color);
    box-shadow: var(--shadow-neumorphic);
    transform: translateY(-1px);
}

.footer-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-icon {
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-item span {
    color: var(--text-muted);
}

.footer-bottom {
    border-top: 1px solid rgba(161, 175, 198, 0.3);
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.legal-links a:hover {
    color: var(--primary-color);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 28rem;
    margin: 0 1rem;
}

.modal-close {
    position: absolute;
    right: 0;
    background: transparent;
    /* box-shadow: var(--shadow-neumorphic-small); */
    padding: 1.25rem;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    z-index: 10;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--primary-color);
    box-shadow: var(--shadow-neumorphic);
}

/* 3D Flip Card */
.flip-card-container {
    position: relative;
    height: 500px;
    perspective: 1000px;
}

.flip-card {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s;
    transform-style: preserve-3d;
}

.flip-card.flipped {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    /* height: 100%; */
    backface-visibility: hidden;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-neumorphic);
    padding: 2rem;
}

.flip-card-back {
    transform: rotateY(180deg);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-muted);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-field {
    position: relative;
}

.field-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.form-input {
    background: var(--card-bg);
    border-radius: calc(var(--radius) * 0.75);
    box-shadow: var(--shadow-neumorphic-inset);
    border: none;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    width: 100%;
    transition: var(--transition-smooth);
    color: var(--text-primary);
    font-family: inherit;
}
/* .form-input:focus {
    background-color: white;
    transform: scale(1.05);
    box-shadow: 13px 13px 100px #969696,
               -13px -13px 100px #ffffff;
    border: 2px solid orange;
  } */

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    transition: var(--transition-smooth);
}

.password-toggle:hover {
    color: var(--text-primary);
}

.eye-off-icon {
    display: none;
}

.password-toggle.show-password .eye-icon {
    display: none;
}

.password-toggle.show-password .eye-off-icon {
    display: block;
}

.auth-submit {
    width: 100%;
    padding: 0.75rem;
    font-weight: 600;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-switch {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: inherit;
}

.auth-switch:hover {
    color: var(--primary-dark);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .trust-indicators {
        gap: 1rem;
    }
    
    .trust-number {
        font-size: 1.5rem;
    }
} 




.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 0.35rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(161, 175, 198, 0.3);
}

.divider span {
    padding: 0 1rem;
}

/* Google Sign-In Button */
.btn-google {

    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--bg-color);
    border: var(--bg-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-neumorphic);
}

.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border-color: #d2d3d4;
}

.btn-google:active {
    background: #f1f3f4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-google svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}