/* variables.css inside styles.css */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #f1f5f9;
    --secondary-hover: #e2e8f0;
    --bg-color: #f8fafc;
    --text-color: #0f172a;
    --text-light: #64748b;
    --card-bg: #ffffff;
    --border-color: #cbd5e1;
    --font-family: 'Inter', sans-serif;
    --radius-lg: 16px;
    --radius-md: 8px;
    --transition: 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.hidden { display: none !important; }

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--card-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    margin-left: 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--secondary-hover);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Landing Page */
.landing-page {
    flex: 1;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5rem 5%;
    background: linear-gradient(135deg, #f0fdf4 0%, #e0e7ff 100%);
    gap: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.tagline {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    opacity: 0.1;
    position: absolute;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.visual-card {
    position: absolute;
    background: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    animation: float 6s infinite alternate;
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-20px); }
}

.visual-card-1 { top: 20%; left: 10%; animation-delay: 0s; }
.visual-card-2 { bottom: 20%; right: 10%; animation-delay: 2s; }
.visual-card-3 { top: 50%; right: 20%; animation-delay: 4s; }

.user-types {
    padding: 4rem 5%;
    text-align: center;
}

.user-types h2 {
    font-size: 2.25rem;
    margin-bottom: 3rem;
}

.cards-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.type-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    width: 300px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.type-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.type-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(to bottom, #ffffff, #f0f7ff);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.type-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.type-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Survey Page */
.survey-body {
    background-color: #f1f5f9;
}

.survey-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    flex: 1;
}

.survey-header {
    text-align: center;
    margin-bottom: 2rem;
}

.survey-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.progress-container {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    margin: 1.5rem 0 0.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #8b5cf6);
    width: 0%;
    transition: width 0.4s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.carousel-container {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    min-height: 300px;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.question-card {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.question-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

/* Inputs */
.input-group {
    margin-bottom: 1rem;
}

.text-input, .text-area {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: var(--transition);
}

.text-input:focus, .text-area:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.text-area {
    min-height: 120px;
    resize: vertical;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    background: white;
}

.option-label:hover {
    background: var(--secondary-color);
}

.option-label input[type="radio"], .option-label input[type="checkbox"] {
    margin-right: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary-color);
}

.option-label:has(input:checked) {
    border-color: var(--primary-color);
    background-color: #eff6ff;
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
}

.loader {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* About Page */
.about-page {
    padding: 4rem 5%;
}

.about-header {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.about-header h1 {
    font-size: 3rem;
}

.subtitle {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.about-description {
    font-size: 1.125rem;
    color: var(--text-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.team-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.team-card .avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
    width: 100px;
    height: 100px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.team-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.designation {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.bio {
    color: var(--text-light);
    font-size: 0.95rem;
}

footer {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 3rem 5%;
    }
    .hero-content h1 {
        font-size: 2.25rem;
    }
    .hero-visual {
        display: none;
    }
    .cards-container {
        flex-direction: column;
        align-items: center;
    }
}
