:root {
            --primary-color: #6a11cb;
            --secondary-color: #7c3aed;
            --accent-color: #a855f7;
            --light-purple: #e9d5ff;
            --dark-purple: #4c1d95;
            --text-dark: #1f2937;
            --text-light: #6b7280;
            --background: #f5f3ff;
            --card-bg: #ffffff;
            --success: #10b981;
            --warning: #f59e0b;
            --error: #ef4444;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background-color: var(--background);
            color: var(--text-dark);
            line-height: 1.6;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Header & Navigation */
        header {
            background: linear-gradient(135deg, var(--primary-color), var(--dark-purple));
            color: white;
            padding: 1.5rem 0;
            box-shadow: 0 4px 12px rgba(106, 17, 203, 0.2);
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.8rem;
            font-weight: 700;
        }

        .logo-icon {
            font-size: 2.2rem;
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        nav a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            padding: 8px 12px;
            border-radius: 4px;
            transition: background-color 0.3s;
        }

        nav a:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        nav a.active {
            background-color: rgba(255, 255, 255, 0.2);
        }

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
        }

        /* Main Content */
        .main-content {
            padding: 2rem 0;
            min-height: calc(100vh - 180px);
        }

        .page {
            display: none;
            animation: fadeIn 0.5s ease;
        }

        .page.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Hero Section */
        .hero {
            text-align: center;
            padding: 3rem 0;
            background: linear-gradient(to right, rgba(106, 17, 203, 0.05), rgba(124, 58, 237, 0.05));
            border-radius: 16px;
            margin-bottom: 3rem;
        }

        .hero h1 {
            font-size: 2.8rem;
            margin-bottom: 1rem;
            background: linear-gradient(to right, var(--primary-color), var(--accent-color));
           background-clip: text;              /* Standard property */
  -webkit-background-clip: text;      /* WebKit-specific */
  -webkit-text-fill-color: transparent;
  color: transparent;   
        }

        .hero p {
            font-size: 1.2rem;
            color: var(--text-light);
            max-width: 800px;
            margin: 0 auto 2rem;
        }

        /* Form Styling */
        .form-container {
            background-color: var(--card-bg);
            border-radius: 16px;
            padding: 2.5rem;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
            margin-bottom: 2rem;
        }

        .form-title {
            font-size: 1.8rem;
            margin-bottom: 1.5rem;
            color: var(--primary-color);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .form-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--text-dark);
        }

        select, input, textarea {
            width: 100%;
            padding: 14px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            font-family: 'Poppins', sans-serif;
            font-size: 1rem;
            transition: border-color 0.3s, box-shadow 0.3s;
        }

        select:focus, input:focus, textarea:focus {
            outline: none;
            border-color: var(--accent-color);
            box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
        }

        .btn {
            display: inline-block;
            background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            padding: 14px 28px;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(106, 17, 203, 0.3);
        }

        .btn:active {
            transform: translateY(0);
        }

        .btn-full {
            width: 100%;
        }

        /* Results Section */
        .results-container {
            background-color: var(--card-bg);
            border-radius: 16px;
            padding: 2.5rem;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
            margin-top: 2rem;
            display: none;
        }

        .results-title {
            font-size: 1.8rem;
            margin-bottom: 1.5rem;
            color: var(--primary-color);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        /* Enhanced Roadmap Timeline */
        .roadmap-container {
            position: relative;
            padding: 2rem 0;
        }

        .roadmap-timeline {
            position: relative;
            padding-left: 50px;
        }

        .roadmap-timeline::before {
            content: '';
            position: absolute;
            left: 25px;
            top: 0;
            bottom: 0;
            width: 4px;
            background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
            border-radius: 2px;
        }

        .timeline-year-card {
            position: relative;
            margin-bottom: 2.5rem;
            padding-left: 40px;
        }

        .timeline-year-card::before {
            content: '';
            position: absolute;
            left: 17px;
            top: 15px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background-color: var(--primary-color);
            border: 4px solid white;
            box-shadow: 0 0 0 3px var(--light-purple);
            z-index: 2;
        }

        .timeline-year {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .timeline-content {
            background-color: white;
            padding: 1.8rem;
            border-radius: 12px;
            border-left: 5px solid var(--accent-color);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }

        .semester-section {
            margin-bottom: 1.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px dashed #e5e7eb;
        }

        .semester-section:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }

        .semester-title {
            color: var(--dark-purple);
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .step-item {
            margin-bottom: 12px;
            padding-left: 24px;
            position: relative;
        }

        .step-item::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--success);
            font-weight: bold;
        }

        .skill-badge {
            display: inline-block;
            background-color: var(--light-purple);
            color: var(--dark-purple);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            margin: 4px 8px 4px 0;
        }

        .time-estimate {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background-color: #f0f9ff;
            color: #0369a1;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 0.85rem;
            margin-top: 8px;
        }

        /* Enhanced Study Planner Styles */
        .planner-controls {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .exam-countdown {
            background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
            color: white;
            padding: 1.5rem;
            border-radius: 12px;
            text-align: center;
            margin-bottom: 2rem;
        }

        .countdown-display {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin-top: 1rem;
        }

        .countdown-item {
            text-align: center;
        }

        .countdown-value {
            font-size: 2.5rem;
            font-weight: 700;
            line-height: 1;
        }

        .countdown-label {
            font-size: 0.9rem;
            opacity: 0.9;
        }

        /* Enhanced Study Plan Results */
        .study-plan-result {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 1.8rem;
            margin-top: 2rem;
        }

        .study-period {
            background-color: var(--card-bg);
            border-radius: 12px;
            padding: 1.8rem;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            border-top: 4px solid var(--accent-color);
        }

        .period-title {
            color: var(--primary-color);
            margin-bottom: 1.2rem;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--light-purple);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .total-hours {
            background-color: var(--light-purple);
            color: var(--dark-purple);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
        }

        .study-topic-item {
            background-color: white;
            padding: 1.2rem;
            border-radius: 8px;
            margin-bottom: 1rem;
            border-left: 4px solid var(--secondary-color);
        }

        .topic-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .topic-name {
            font-weight: 600;
            color: var(--text-dark);
        }

        .topic-time {
            background-color: #f0f9ff;
            color: #0369a1;
            padding: 3px 10px;
            border-radius: 12px;
            font-size: 0.85rem;
            font-weight: 600;
        }

        .subtopics {
            margin-top: 10px;
            padding-left: 20px;
        }

        .subtopic {
            margin-bottom: 6px;
            color: var(--text-light);
            position: relative;
        }

        .subtopic::before {
            content: '•';
            position: absolute;
            left: -15px;
            color: var(--accent-color);
        }

        .study-tips-box {
            background-color: #fef3c7;
            padding: 1.2rem;
            border-radius: 8px;
            margin-top: 1.5rem;
            border-left: 4px solid var(--warning);
        }

        .tip-item {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 10px;
        }

        .tip-item i {
            color: var(--warning);
            margin-top: 3px;
        }

        /* Progress Section */
        .progress-section {
            margin-top: 2rem;
            padding-top: 1.5rem;
            border-top: 2px dashed var(--light-purple);
        }

        .progress-title {
            color: var(--primary-color);
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .progress-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
        }

        .progress-card {
            background-color: white;
            padding: 1.5rem;
            border-radius: 12px;
            box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
        }

        .progress-card h4 {
            color: var(--dark-purple);
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* Footer */
        footer {
            background-color: var(--dark-purple);
            color: white;
            padding: 2rem 0;
            text-align: center;
            margin-top: 3rem;
        }

        .footer-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1.5rem;
        }

        .footer-logo {
            font-size: 1.5rem;
            font-weight: 700;
        }

        .footer-links {
            display: flex;
            gap: 1.5rem;
        }

        .footer-links a {
            color: white;
            text-decoration: none;
            transition: opacity 0.3s;
        }

        .footer-links a:hover {
            opacity: 0.8;
        }

        .copyright {
            width: 100%;
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 0.9rem;
            opacity: 0.8;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                gap: 1rem;
            }

            nav ul {
                flex-direction: column;
                align-items: center;
                gap: 1rem;
            }

            .mobile-menu-btn {
                display: block;
            }

            .hero h1 {
                font-size: 2.2rem;
            }

            .hero p {
                font-size: 1.1rem;
            }

            .form-container, .results-container {
                padding: 1.5rem;
            }

            .countdown-display {
                gap: 1rem;
            }

            .countdown-value {
                font-size: 2rem;
            }

            .roadmap-timeline {
                padding-left: 30px;
            }

            .roadmap-timeline::before {
                left: 15px;
            }

            .timeline-year-card {
                padding-left: 25px;
            }

            .timeline-year-card::before {
                left: 7px;
            }

            .footer-content {
                flex-direction: column;
                text-align: center;
            }
        }

        /* Loading Animation */
        .loader {
            display: none;
            text-align: center;
            padding: 2rem;
        }

        .loader-spinner {
            width: 50px;
            height: 50px;
            border: 5px solid var(--light-purple);
            border-top: 5px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 1rem;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* AI Thinking Animation */
        .ai-thinking {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin: 1rem 0;
            color: var(--primary-color);
        }

        .thinking-dots {
            display: flex;
            gap: 5px;
        }

        .thinking-dots span {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: var(--primary-color);
            animation: bounce 1.4s infinite ease-in-out both;
        }

        .thinking-dots span:nth-child(1) { animation-delay: -0.32s; }
        .thinking-dots span:nth-child(2) { animation-delay: -0.16s; }

        @keyframes bounce {
            0%, 80%, 100% { transform: scale(0); }
            40% { transform: scale(1.0); }
        }
