/* style.css - Main Stylesheet */
:root {
    --royal-blue: #1e3c72;
    --purple: #9b59b6;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    color: #333;
}

/* Animated Gradient Background */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(125deg, #ffffff 0%, #e8eaff 50%, #f0e6ff 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Shapes Animation */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: rgba(155, 89, 182, 0.1);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.shape-1 { width: 300px; height: 300px; top: -100px; left: -100px; animation-delay: 0s; }
.shape-2 { width: 200px; height: 200px; bottom: 50px; right: -50px; animation-delay: 5s; }
.shape-3 { width: 150px; height: 150px; top: 40%; left: 80%; animation-delay: 10s; }
.shape-4 { width: 100px; height: 100px; bottom: 20%; left: 10%; animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-50px) rotate(180deg); }
}

/* Glassmorphism Navbar */
.glass-nav {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--royal-blue), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--royal-blue);
    font-weight: 500;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: var(--purple);
}

.btn-glow {
    background: linear-gradient(135deg, var(--royal-blue), var(--purple));
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    color: white !important;
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.5);
    transition: 0.3s;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(155, 89, 182, 0.8);
}

.nav-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--royal-blue);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--royal-blue), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--purple);
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
    width: fit-content;
    margin: 0 auto;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}
@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--purple); }
}

/* Search Bar */
.search-bar {
    max-width: 500px;
    margin: 2rem auto;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    font-size: 1rem;
}

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--purple);
}

/* Card Styles */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--purple);
    margin-bottom: 1rem;
}

/* Tool Page Styles */
.tool-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 30px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--royal-blue);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    background: rgba(255,255,255,0.9);
    font-family: inherit;
}

.generate-btn {
    background: linear-gradient(135deg, var(--royal-blue), var(--purple));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.5);
}

.generate-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(155, 89, 182, 0.8);
}

.output-area {
    margin-top: 2rem;
    background: rgba(255,255,255,0.8);
    border-radius: 15px;
    padding: 1rem;
}

.output-text {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: none;
    background: transparent;
    font-family: inherit;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    background: var(--royal-blue);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

/* Loading Animation */
.loader {
    display: none;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Testimonials Slider */
.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding: 2rem;
}

.testimonial-item {
    min-width: 300px;
    scroll-snap-align: start;
    background: rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 1.5rem;
}

/* FAQ Accordion */
.faq-item {
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    background: rgba(255,255,255,0.2);
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
    background: rgba(255,255,255,0.1);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 1rem;
}

/* Footer */
footer {
    background: rgba(30, 60, 114, 0.9);
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 1rem 0;
    }
    .nav-menu.active {
        display: flex;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .typewriter {
        white-space: normal;
        border-right: none;
        animation: none;
    }
    .card-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

/* Admin Panel */
.admin-sidebar {
    background: rgba(30, 60, 114, 0.9);
    min-height: 100vh;
    padding: 1rem;
}
.admin-content {
    padding: 2rem;
}
.stats-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}