/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --primary-color: #4f46e5;
    --secondary-color: #06b6d4;
    --accent-color: #f97316;
    --text-color: #1e293b;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #818cf8 0%, #38bdf8 50%, #22d3ee 100%);
    --gradient-2: linear-gradient(135deg, #60a5fa 0%, #34d399 50%, #10b981 100%);
    --gradient-3: linear-gradient(135deg, #fbbf24 0%, #f97316 50%, #ef4444 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--gradient-1);
    background-attachment: fixed;
    transition: background 0.5s ease;
}

/* Section backgrounds with blur effect */
section {
    position: relative;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

/* Navigation */
.navbar {
    background: transparent;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

/* Add background when scrolling */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.logo {
    flex: 1;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.nav-links a i {
    font-size: 1.1rem;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-links a.active {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 2px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    margin-top: 60px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    opacity: 0.8;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.hero-content {
    max-width: 800px;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.3);
}

/* Features Section */
.features-section {
    padding: 5rem 5%;
    background: transparent;
    text-align: center;
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-2);
    opacity: 0.8;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.features-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.45);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Demo Section */
.demo-section {
    padding: 5rem 5%;
    text-align: center;
    position: relative;
}

.demo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-3);
    opacity: 0.8;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.demo-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.demo-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.upload-area {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 2px dashed rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--white);
    transform: scale(1.02);
}

.upload-area i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.upload-button {
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.result-area {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Footer */
footer {
    background: rgba(44, 62, 80, 0.9);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 3rem 5% 1rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-section p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section i {
    font-size: 1.2rem;
}

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

.social-links a {
    font-size: 1.8rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-links a[title="GitHub"]:hover {
    color: #333;
    background: #fff;
}

.social-links a[title="LinkedIn"]:hover {
    color: #0077b5;
    background: #fff;
}

.social-links a[title="Twitter"]:hover {
    color: #1da1f2;
    background: #fff;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 1rem;
}

.made-with-love {
    color: var(--white);
    font-size: 0.9rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.made-with-love i {
    color: #e74c3c;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: 0;
        width: 250px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        padding: 1rem;
        display: none;
        flex-direction: column;
        align-items: flex-end;
        gap: 1rem;
        box-shadow: -4px 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 0 20px;
        border-left: 1px solid rgba(255, 255, 255, 0.18);
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        justify-content: flex-end;
    }

    .hamburger {
        margin-left: auto;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

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

    .demo-container {
        padding: 0 1rem;
    }

    .analysis-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .contact-info {
        margin: 0 1rem;
        padding: 2rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card, .hero-content, .demo-container {
    animation: fadeIn 1s ease-out;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left.visible,
.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* About Section */
.about-section {
    padding: 5rem 5%;
    text-align: center;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.about-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

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

.analysis-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.analysis-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.analysis-card:hover i {
    color: var(--accent-color);
    transform: scale(1.1);
}

.analysis-card:hover .card-link {
    opacity: 1;
    transform: translateY(0);
}

.analysis-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.analysis-card h3 {
    margin: 1rem 0;
    font-size: 1.5rem;
    color: var(--text-color);
}

.analysis-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.card-link i {
    font-size: 1rem;
    margin: 0;
    transition: transform 0.3s ease;
}

.analysis-card:hover .card-link i {
    transform: translateX(5px);
}

/* Add a subtle gradient overlay on hover */
.analysis-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(var(--accent-rgb), 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.analysis-card:hover::after {
    opacity: 1;
}

/* Update media queries for better touch interaction on mobile */
@media (max-width: 767px) {
    .analysis-card {
        padding: 1.5rem;
    }

    .analysis-card:active {
        transform: translateY(-5px);
    }

    .card-link {
        opacity: 1;
        transform: translateY(0);
    }

    .analysis-card i {
        font-size: 2rem;
    }

    .analysis-card h3 {
        font-size: 1.3rem;
    }
}

/* Responsive Design for Analysis Grid */
@media (min-width: 1400px) {
    .analysis-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1399px) and (min-width: 1024px) {
    .analysis-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1023px) and (min-width: 768px) {
    .analysis-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .analysis-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 767px) {
    .analysis-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .analysis-card {
        padding: 2rem 1.5rem;
    }

    .about-section {
        padding: 4rem 1rem;
    }

    .analysis-card h3 {
        font-size: 1.3rem;
    }

    .analysis-card p {
        font-size: 0.95rem;
    }
}

/* Animation for cards */
.analysis-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.analysis-card:nth-child(1) { animation-delay: 0.1s; }
.analysis-card:nth-child(2) { animation-delay: 0.2s; }
.analysis-card:nth-child(3) { animation-delay: 0.3s; }
.analysis-card:nth-child(4) { animation-delay: 0.4s; }
.analysis-card:nth-child(5) { animation-delay: 0.5s; }
.analysis-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Section */
.contact-section {
    padding: 5rem 5%;
    text-align: center;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-3);
    opacity: 0.8;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.contact-info p {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.contact-info .social-links {
    justify-content: center;
    margin-top: 2rem;
} 