:root {
    --bg-color: #0d0d12;
    --card-bg: rgba(26, 26, 36, 0.6);
    --primary: #00f0ff;
    --secondary: #b026ff;
    --text-main: #fcfcfc;
    --text-muted: #a0a0b0;
    --accent-yellow: #ffb800;
    --accent-green: #00e676;
    --accent-blue: #2979ff;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-blur: 20px;
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Track Colors */
    --track-med: #00f0ff;
    --track-eng: #ffb800;
    --track-bus: #00e676;
    --track-art: #b026ff;
}

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

body {
    font-family: 'Cairo', 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle top left, rgba(176, 38, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle bottom right, rgba(0, 240, 255, 0.15) 0%, transparent 40%);
    background-attachment: fixed;
    background-size: cover;
}

html {
    scroll-behavior: smooth;
}

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

ul {
    list-style: none;
}

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

.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

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

/* Typography & Colors */
.glow-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.bg-medicine {
    color: var(--track-med);
    background: rgba(0, 240, 255, 0.1);
}

.bg-engineering {
    color: var(--track-eng);
    background: rgba(255, 184, 0, 0.1);
}

.bg-business {
    color: var(--track-bus);
    background: rgba(0, 230, 118, 0.1);
}

.bg-arts {
    color: var(--track-art);
    background: rgba(176, 38, 255, 0.1);
}

.bg-yellow {
    background-color: var(--accent-yellow);
    color: var(--bg-color) !important;
}

.bg-green {
    background-color: var(--accent-green);
    color: var(--bg-color) !important;
}

.bg-blue {
    background-color: var(--accent-blue);
    color: var(--text-main) !important;
}

/* Icon wrappers */
.icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.icon-xs {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-left: 10px;
}

/* Glassmorphism */
.glass-card,
.glass-container {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hover-glow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes floatAnim {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 240, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
    }
}

/* Bubbles Background */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
}

.blob-1 {
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: var(--secondary);
    border-radius: 50%;
}

.blob-2 {
    bottom: 10%;
    left: 10%;
    width: 250px;
    height: 250px;
    background: var(--primary);
    border-radius: 50%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 13, 18, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
    transition: padding 0.3s;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2.2rem;
    color: var(--primary);
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.7));
}

.logo h1 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo .contact {
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.8;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-weight: 600;
}

.nav-links a {
    position: relative;
    transition: color 0.3s;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(176, 38, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 240, 255, 0.05);
}

.nav-btn {
    padding: 8px 22px;
    border-radius: 20px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 240, 255, 0.3);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.nav-btn:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

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

.title-main {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

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

.hero-image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-image img {
    width: 100%;
    display: block;
    opacity: 0.9;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, var(--bg-color) 0%, transparent 60%);
}

.float-card {
    position: absolute;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    border-radius: 16px;
    animation: floatAnim 6s ease-in-out infinite;
    font-size: 0.95rem;
    white-space: nowrap;
}

.card-1 {
    top: 10%;
    right: -30px;
    animation-delay: 0s;
}

.card-2 {
    top: 45%;
    left: -40px;
    animation-delay: 1.5s;
}

.card-3 {
    bottom: 25%;
    right: -10px;
    animation-delay: 3s;
}

.card-4 {
    bottom: -15px;
    left: 10%;
    animation-delay: 4.2s;
}

/* Quiz Section */
.quiz-section {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.quiz-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 50px;
    position: relative;
}

.quiz-header {
    margin-bottom: 40px;
    text-align: center;
}

.quiz-header h3 {
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.progress-bar-container {
    position: relative;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    width: 0%;
    transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.progress-glow {
    position: absolute;
    top: 0;
    right: 0;
    height: 8px;
    width: 0%;
    background: var(--primary);
    filter: blur(8px);
    opacity: 0.6;
    transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.question-text {
    font-size: 1.6rem;
    margin-bottom: 35px;
    text-align: center;
    font-weight: 800;
    line-height: 1.4;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px 20px;
    border-radius: 16px;
    color: var(--text-main);
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 15px;
}

.option-btn i {
    font-size: 1.5rem;
    width: 35px;
    text-align: center;
    color: var(--primary);
    transition: transform 0.3s;
}

.option-btn:hover {
    background: rgba(0, 240, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.option-btn:hover i {
    transform: scale(1.1);
    color: var(--secondary);
}

/* Result Section */
.result-section {
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.result-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.result-header {
    margin-bottom: 40px;
}

.result-icon i {
    font-size: 5rem;
    margin-bottom: 25px;
    animation: floatAnim 4s infinite ease-in-out;
}

.result-track {
    font-size: 3rem;
    font-weight: 800;
    margin: 15px 0;
}

.result-desc {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

/* Elective Recommendation Styles */
.elective-badge {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(255, 184, 0, 0.15);
    color: var(--accent-yellow);
    border: 1px solid rgba(255, 184, 0, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.elective-recommendation {
    margin: 30px auto 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.elective-recommendation h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.elective-subject {
    padding: 8px 25px;
    background-color: var(--primary);
    color: rgba(0, 0, 0, 0.9);
    font-weight: 800;
    font-size: 1.3rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.colleges-title {
    font-size: 1.6rem;
    color: var(--primary);
    margin: 40px 0 25px;
    font-weight: 800;
}

.colleges-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.college-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 4px solid var(--primary);
    transition: 0.3s;
    font-weight: 700;
    text-align: right;
}

.college-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(-5px);
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* System Section */
.system-section {
    padding: 100px 0;
    position: relative;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 70px;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-yellow), var(--accent-green), var(--accent-blue));
    top: 0;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    opacity: 0.5;
}

.timeline-item {
    margin-bottom: 80px;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    top: 25px;
    box-shadow: 0 0 15px currentColor;
    z-index: 2;
}

.timeline-content {
    width: 85%;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.timeline-content h3 {
    font-size: 1.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.subject-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 25px 0;
}

.subject-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 600;
}

.subject-list li i {
    color: var(--primary);
    font-size: 1.2rem;
}

.note {
    background: rgba(255, 184, 0, 0.05);
    border-right: 4px solid var(--accent-yellow);
    padding: 18px;
    border-radius: 10px;
    margin-top: 25px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.note i {
    color: var(--accent-yellow);
    margin-top: 5px;
}

.tracks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.track-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    transition: 0.3s;
}

.track-card h4 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.track-card ul li {
    margin-bottom: 10px;
    position: relative;
    padding-right: 20px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.track-card ul li::before {
    content: '▪';
    color: var(--primary);
    position: absolute;
    right: 0;
    font-size: 1.2rem;
    top: -3px;
}

.track-card ul li strong {
    color: var(--text-main);
}

/* Footer */
footer {
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(13, 13, 18, 0.8);
    position: relative;
    z-index: 10;
}

footer h3 {
    margin-bottom: 15px;
    font-size: 2rem;
    font-weight: 800;
}

footer p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

footer strong {
    color: var(--primary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.3s;
    color: var(--text-main);
}

.social-links a:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-3px);
}

.copyright {
    margin-top: 30px;
    font-size: 0.95rem;
    opacity: 0.6;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-content h2 {
        font-size: 3rem;
    }

    .float-card {
        display: none;
    }
}

@media (max-width: 800px) {
    .nav-links {
        display: none;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        width: 100%;
        max-width: 500px;
    }

    .timeline::before {
        right: 20px;
    }

    .timeline-dot {
        right: 20px;
        transform: translateX(50%);
    }

    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 0;
        margin-right: 50px;
        padding: 25px;
    }

    .timeline-content h3 {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .tracks-grid {
        grid-template-columns: 1fr;
    }

    .subject-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 2.3rem;
    }

    .quiz-container,
    .result-container {
        padding: 30px 20px;
    }

    .result-track {
        font-size: 2.2rem;
    }

    .btn {
        width: 100%;
    }

    .result-actions {
        flex-direction: column;
    }
}

/* Print Styles */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }

    .navbar,
    footer,
    .hero,
    .system-section,
    .btn:not(.btn-print) {
        display: none !important;
    }

    .result-section {
        padding: 0;
    }

    .glass-container {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .glow-text {
        background: none;
        color: #000;
        text-shadow: none;
        -webkit-text-fill-color: #000;
    }

    .college-item {
        border: 1px solid #ddd;
        background: #fafafa;
        border-right: 4px solid #333;
        color: #000;
    }

    .result-desc {
        color: #444;
    }
}