/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Theme Colors - Updated to new palette */
    --primary: #4F46E5;     /* Academic Indigo */
    --primary-light: #6366F1;
    --primary-dark: #4338CA;
    --primary-darker: #3730A3;
    --secondary: #10B981;   /* Growth Emerald */
    --accent: #334155;      /* Deep Slate */
    --dark: #0F172A;        /* Updated dark background */
    --darker: #020617;
    --darkest: #000;
    --light: #FFFFFF;       /* Paper White */
    --gray: #64748B;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-secondary: linear-gradient(135deg, var(--primary-light), var(--secondary));
    --gradient-dark: linear-gradient(135deg, var(--primary-darker), var(--primary-dark));
    
    /* Light Theme Colors - Updated to new palette */
    --light-primary: #4F46E5;
    --light-primary-light: #6366F1;
    --light-primary-dark: #4338CA;
    --light-secondary: #10B981;
    --light-accent: #334155;
    --light-bg: #F8FAFC;    /* Cool Mist */
    --light-bg-secondary: #F1F5F9;
    --light-bg-tertiary: #E2E8F0;
    --light-text: #0F172A;
    --light-text-secondary: #334155;
    --light-border: #CBD5E1;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--darker);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body[data-theme="light"] {
    background-color: var(--light-bg);
    color: var(--light-text);
}

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

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

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

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

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

body[data-theme="light"] p {
    color: var(--light-text-secondary);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    background: var(--gradient-dark);
}

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

body[data-theme="light"] .btn-secondary {
    color: var(--light-text);
    border: 2px solid rgba(15, 23, 42, 0.2);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79, 70, 229, 0.1);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(79, 70, 229, 0.1);
}

body[data-theme="light"] .navbar {
    background: rgba(248, 250, 252, 0.9);
    border-bottom: 1px solid rgba(79, 70, 229, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo h2 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

body[data-theme="light"] .nav-link {
    color: var(--light-text);
}

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

.nav-cta {
    background: var(--gradient);
    padding: 8px 20px;
    border-radius: 50px;
    color: white !important;
}

.nav-cta:hover {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Theme Toggle */
.theme-toggle-container {
    margin-left: 1.5rem;
}

.theme-toggle {
    display: flex;
    align-items: center;
}

.theme-checkbox {
    display: none;
}

.theme-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.theme-toggle-track {
    width: 50px;
    height: 26px;
    background: var(--dark);
    border-radius: 50px;
    position: relative;
    transition: background 0.3s ease;
    border: 2px solid var(--primary);
}

body[data-theme="light"] .theme-toggle-track {
    background: var(--light-bg-secondary);
}

.theme-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.theme-checkbox:checked + .theme-label .theme-toggle-thumb {
    transform: translateX(24px);
}

.theme-icons {
    display: flex;
    margin-left: 10px;
    position: relative;
    width: 40px;
    height: 20px;
}

.theme-icon {
    position: absolute;
    top: 0;
    transition: opacity 0.3s ease;
    font-size: 14px;
}

.theme-icon.sun {
    left: 0;
    opacity: 0;
}

body[data-theme="light"] .theme-icon.sun {
    opacity: 1;
}

.theme-icon.moon {
    right: 0;
    opacity: 1;
}

body[data-theme="light"] .theme-icon.moon {
    opacity: 0;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease;
    background-color: var(--light);
}

body[data-theme="light"] .bar {
    background-color: var(--light-text);
}

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

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--primary-light);
}

body[data-theme="light"] .hero-badge {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.3);
    color: var(--light-primary);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--gray);
}

body[data-theme="light"] .hero-description {
    color: var(--light-text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-light);
}

body[data-theme="light"] .stat h3 {
    color: var(--light-primary);
}

.stat p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--gray);
}

body[data-theme="light"] .stat p {
    color: var(--light-text-secondary);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-preview {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
    transition: all 0.3s ease;
}

body[data-theme="light"] .dashboard-preview {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(79, 70, 229, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dashboard-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.dashboard-dots {
    display: flex;
    gap: 8px;
}

.dashboard-dots span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dashboard-dots span:nth-child(1) {
    background: #FF5F57;
}

.dashboard-dots span:nth-child(2) {
    background: #FFBD2E;
}

.dashboard-dots span:nth-child(3) {
    background: #10B981; /* Changed to secondary color */
}

.dashboard-content h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--light);
}

body[data-theme="light"] .dashboard-content h3 {
    color: var(--light-text);
}

.task-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    position: relative;
}

body[data-theme="light"] .task-item {
    background: rgba(79, 70, 229, 0.05);
}

.task-item:hover {
    background: rgba(79, 70, 229, 0.1);
    transform: translateX(5px);
}

.task-icon {
    margin-right: 12px;
    font-size: 1.2rem;
}

.task-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.task-name {
    font-weight: 600;
    color: var(--light);
}

body[data-theme="light"] .task-name {
    color: var(--light-text);
}

.task-assignee {
    font-size: 0.85rem;
    color: var(--gray);
}

body[data-theme="light"] .task-assignee {
    color: var(--light-text-secondary);
}

.task-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 10px;
}

.task-status.completed {
    background: #10B981; /* Changed to secondary color */
}

.task-status.in-progress {
    background: #FFBD2E;
}

.task-status.pending {
    background: #4F46E5; /* Changed to primary color */
}

.progress-prediction {
    margin-top: 1.5rem;
}

.prediction-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 10px 0;
    overflow: hidden;
}

body[data-theme="light"] .prediction-bar {
    background: rgba(79, 70, 229, 0.1);
}

.prediction-fill {
    height: 100%;
    width: 85%;
    background: var(--gradient);
    border-radius: 4px;
    animation: progress 2s ease-in-out;
}

.prediction-text {
    color: #10B981; /* Changed to secondary color */
    font-weight: 600;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.1;
    filter: blur(40px);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
    background: var(--gradient-secondary);
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 10%;
    left: 20%;
    animation-delay: 4s;
}

/* Features Section */
.features {
    padding: 100px 0;
    position: relative;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(79, 70, 229, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

body[data-theme="light"] .feature-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body[data-theme="light"] .feature-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-icon {
    position: relative;
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
}

.icon-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    border-radius: 16px;
    opacity: 0.1;
}

.feature-icon span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: rgba(2, 6, 23, 0.5);
}

body[data-theme="light"] .how-it-works {
    background: var(--light-bg-secondary);
}

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

.workflow-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

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

.step-content {
    padding-top: 10px;
}

.step-content h3 {
    margin-bottom: 0.5rem;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(79, 70, 229, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

body[data-theme="light"] .testimonial-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body[data-theme="light"] .testimonial-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.testimonial-content p {
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 5rem;
    color: rgba(79, 70, 229, 0.1);
    z-index: 0;
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.25rem;
}

.author-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--gray);
}

body[data-theme="light"] .author-info p {
    color: var(--light-text-secondary);
}

/* CTA Section */
.cta {
    padding: 100px 0;
    text-align: center;
    background: rgba(2, 6, 23, 0.5);
}

body[data-theme="light"] .cta {
    background: var(--light-bg-secondary);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--gray);
}

body[data-theme="light"] .cta-note {
    color: var(--light-text-secondary);
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body[data-theme="light"] .footer {
    border-top: 1px solid var(--light-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h2 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    margin-bottom: 1.5rem;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

body[data-theme="light"] .social-links a {
    background: rgba(79, 70, 229, 0.1);
}

.social-links a:hover {
    background: rgba(79, 70, 229, 0.2);
    transform: translateY(-3px);
}

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

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-column a {
    color: var(--gray);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

body[data-theme="light"] .footer-column a {
    color: var(--light-text-secondary);
}

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

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

body[data-theme="light"] .footer-bottom {
    border-top: 1px solid var(--light-border);
    color: var(--light-text-secondary);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes progress {
    0% {
        width: 0%;
    }
    100% {
        width: 85%;
    }
}

/* Responsive Design */
@media screen and (max-width: 968px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--darker);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        border-top: 1px solid rgba(79, 70, 229, 0.1);
    }
    
    body[data-theme="light"] .nav-menu {
        background: var(--light-bg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1.5rem 0;
    }
    
    .theme-toggle-container {
        margin-left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .workflow-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
}