:root {
    --color-primary: #3B82F6;
    --color-primary-dark: #2563EB;
    --color-primary-light: #60A5FA;
    --color-secondary: #1E40AF;
    --color-accent: #EC4899;
    --color-background: #f4f7f9;
    --color-surface: #FFFFFF;
    --color-text: #1E293B;
    --color-text-light: #64748B;
    --color-success: #10B981;
    --color-error: #EF4444;
    --color-warning: #F59E0B;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition-base: all 0.2s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(90deg, #1e40af, #122454);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 16px;
}

/* Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Header Styles */
.header {
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.header__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}
.header__logo:hover {
    color: var(--color-success);
}

.nav__list {
    display: flex;
    list-style: none;
}

.nav__item:not(:last-child) {
    margin-right: 1.5rem;
}

.nav__link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;

}

.nav__link:hover {
    color: var(--color-accent);
}

/* Hero Section */
.hero {

    padding: 8rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    /*border-radius: 1.5rem;*/
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;


}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(2); }
}

.hero__container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: white;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    color: white;
}

/* Analysis Tool Section */
.analysis-tool {
    margin-top: -4rem;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.upload-section {
    background: var(--color-surface); /* Light background color */
    border-radius: 1rem; /* Rounded corners */
    padding: 1.5rem; /* Internal spacing */
    box-shadow: var(--shadow-lg); /* Large shadow effect */
    text-align: center; /* Center-aligns content */
    transition: var(--transition-smooth); /* Smooth hover effect transition */
    max-width: 40%; /* Restricts width to 40% of the container */
    margin: auto; /* Centers the section horizontally */
    align-content: center;
}

.upload-section:hover {
    transform: translateY(-2px); /* Slight upward shift on hover */
    box-shadow: var(--shadow-lg), 0 10px 40px -15px rgba(59, 130, 246, 0.3); /* Enhanced shadow on hover */
}

.file-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.file-upload__input {
    display: none;
}

.file-upload__label {
    padding: 1rem 2.5rem;
    background: var(--color-primary);
    color: white;
    border-radius: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.file-upload__label:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.file-upload__label i {
    font-size: 1.25rem;
}

.file-upload__name {
    color: var(--color-text-light);
    font-size: 0.875rem;
    transition: var(--transition-base);
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.logo {
    margin: 0;
    height: auto;
    background: transparent;
    padding: 0;
    border: none;
    cursor: pointer;
}

/* button styling */
.logo {
    --border-right: 6px;
    --text-stroke-color: var(--color-primary);;
    --animation-color: var(--color-primary-dark);;
    --fs-size: 2em;
    text-
    letter-spacing: 3px;
    text-decoration: none;
    font-size: var(--fs-size);
    font-family: "Arial";
    position: relative;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px var(--text-stroke-color);
}

/* this is the text, when you hover on button */
.hover-text1 {
    position: absolute;
    box-sizing: border-box;
    content: attr(data-text);
    color: var(--animation-color);
    width: 0%;
    inset: 0;
    border-right: var(--border-right) solid var(--animation-color);
    overflow: hidden;
    transition: 0.5s;
    -webkit-text-stroke: 1px var(--animation-color);
    white-space: nowrap; /* Prevents the text from breaking to a new line */
}

/* hover */
.logo:hover .hover-text1 {
    width: 100%;
    filter: drop-shadow(0 0 23px var(--animation-color))
}

/* Make sure the actual text behaves similarly */
.actual-text {
    visibility: visible; /* Make the actual text visible */
    font-family: "Helvetica", sans-serif; /* Change to any desired font */
    color: #fff; /* You can change the color of the normal text */
    -webkit-text-stroke: none; /* Remove the stroke effect */
}

/* Hide the actual text when hover occurs */
.logo:hover .actual-text {
    visibility: hidden; /* Hide the actual text on hover to reveal the hover text */
}

.action-button {
    padding: 1.25rem;
    background: var(--color-surface);
    border: 1px solid #E2E8F0;
    border-radius: 0.75rem;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.action-button:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 8px 25px -5px rgba(59, 130, 246, 0.3);
}

.action-button i {
    font-size: 1.25rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    text-align: center;
    font-weight: bolder;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #1E40AF;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.025em;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Result Section */
.result-section {
    display: none;
    margin-top: 3rem;
    padding: 2rem 0;
}

.result-section.active {
    display: block;
}

.result-card {
    background: var(--color-surface);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.result-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary);
}

.result-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
}

/* Result Section (continued) */
.result-content h1, .result-content h2, .result-content h3, .result-content h4, .result-content h5, .result-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: var(--color-primary);
}

.result-content h1 { font-size: 2em; }
.result-content h2 { font-size: 1.75em; }
.result-content h3 { font-size: 1.5em; }
.result-content h4 { font-size: 1.25em; }
.result-content h5 { font-size: 1.1em; }
.result-content h6 { font-size: 1em; }

.result-content p {
    margin-bottom: 1em;
}

.result-content ul, .result-content ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.result-content li {
    margin-bottom: 0.5em;
}

.result-content code {
    background-color: #f1f5f9;
    padding: 0.2em 0.4em;
    border-radius: 0.3em;
    font-size: 0.9em;
    font-family: 'Courier New', Courier, monospace;
}

.result-content pre {
    background-color: #f1f5f9;
    padding: 1em;
    border-radius: 0.5em;
    overflow-x: auto;
    margin-bottom: 1em;
}

.result-content pre code {
    background-color: transparent;
    padding: 0;
}

.result-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1em;
    margin-left: 0;
    margin-bottom: 1em;
    font-style: italic;
    color: var(--color-text-light);
}

.result-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
}

.result-content th, .result-content td {
    border: 1px solid #e2e8f0;
    padding: 0.5em;
    text-align: left;
}

.result-content th {
    background-color: #f1f5f9;
    font-weight: bold;
}

.expand-button {
    background-color: var(--color-primary-light);
    color: white;
    border: none;
    padding: 0.5em 1em;
    border-radius: 0.3em;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 0.5em;
    transition: background-color 0.3s ease;
}

.expand-button:hover {
    background-color: var(--color-primary);
}

/* Notification */
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    background: var(--color-surface);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 90;
    max-width: 400px;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification--success {
    border-left: 4px solid var(--color-success);
}

.notification--error {
    border-left: 4px solid var(--color-error);
}

.notification--warning {
    border-left: 4px solid var(--color-warning);
}

.notification__icon {
    font-size: 1.25rem;
}

.notification--success .notification__icon {
    color: var(--color-success);
}

.notification--error .notification__icon {
    color: var(--color-error);
}

.notification--warning .notification__icon {
    color: var(--color-warning);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 6rem;
}

.footer__content {
    text-align: center;
    opacity: 0.9;
}

.footer__content p:not(:last-child) {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        padding: 6rem 1.5rem;
    }

    .action-buttons {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .header__container {
        padding: 0 1rem;
    }

    .hero {
        padding: 5rem 1rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .upload-section {
        padding: 2rem;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .notification {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .file-upload__label {
        padding: 0.875rem 1.5rem;
    }

    .result-card {
        padding: 1.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.screen-reader-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Print Styles */
@media print {
    .header,
    .hero,
    .action-buttons,
    .footer {
        display: none;
    }

    .result-section {
        margin: 0;
        padding: 0;
    }

    .result-card {
        box-shadow: none;
        border: 1px solid #E2E8F0;
    }
}

