/* Root Variables */
:root {
    --primary-color: #2C3E50;
    --secondary-color: #3498DB;
    --accent-color: #E74C3C;
    --background-light: #F8F9FA;
    --text-dark: #2C3E50;
    --text-light: #FFFFFF;
    --footer-bg: #2C3E50;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, var(--background-light) 0%, #c3cfe2 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Header Styles */
header {
    width: 96%;
    background: var(--text-light);
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translate(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    z-index: 1000;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header-active {
    top: 0;
    width: 100%;
    border-radius: 0;
}

.logo {
    font-size: 3rem;
    color: var(--text-dark);
}

.logo span {
    color: var(--primary-color);
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navbar a {
    font-size: 1.8rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.navbar a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10rem 2rem;
    text-align: center;
}

.hero-content h1 {
    font-size: 4.5rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.hero-content p {
    font-size: 2rem;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto;
}

/* Upload Section */
.upload-section {
    padding: 5rem 2rem;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--text-light);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.upload-container {
    margin: 2rem 0;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem;
    border: 2px dashed var(--primary-color);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.upload-label:hover {
    background: rgba(44, 62, 80, 0.1);
}

.upload-label i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.submit-btn {
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    border: none;
    border-radius: 10px;
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Results Section */
.results-section {
    padding: 5rem 2rem;
}

.result-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--text-light);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.result-heading {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

.result-text {
    font-size: 1.8rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.info-box {
    background: var(--text-light);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-box:hover {
    transform: translateY(-5px);
}

.info-box h3 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.info-box ul {
    list-style: none;
}

.info-box ul li {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin: 1.5rem 0;
    padding-left: 3rem;
    position: relative;
}

.info-box ul li:before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Footer Styles */
.footer {
    background: var(--footer-bg);
    color: var(--text-light);
    padding: 2rem 0;
    margin-top: auto;
}

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

.footer .box h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.footer .box a {
    display: block;
    color: var(--text-light);
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.footer .box a:hover {
    color: var(--accent-color);
}

.footer .credit {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    font-size: 1.5rem;
}

/* Responsive Footer in Series (Stacked) */
@media (max-width: 992px) {
    .footer .box-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .footer .box {
        width: 95vw;
        margin: 1rem 0;
        text-align: center !important;
    }
}

@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        align-items: center;
    }
    .footer .box-container,
    .footer .box {
        width: 100% !important;
        max-width: 100vw;
        margin: 0.5rem 0;
        text-align: center !important;
    }
    .footer .box {
        padding: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .footer .box {
        padding: 0.2rem 0;
        font-size: 1.1rem;
    }
    .footer .credit {
        font-size: 1rem;
        padding: 0.5rem 0;
    }
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .features,
    .footer .box-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
    .container, .result-container {
        max-width: 95vw;
    }
}

@media (max-width: 992px) {
    .features,
    .footer .box-container {
        grid-template-columns: 1fr;
    }
    .container, .result-container {
        padding: 2rem 1rem;
        max-width: 98vw;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .result-heading {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 50%;
    }
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }
    .navbar ul {
        flex-direction: column;
        gap: 1rem;
    }
    .hero {
        padding: 6rem 1rem;
    }
    .features,
    .footer .box-container {
        grid-template-columns: 1fr;
    }
    .container, .result-container {
        padding: 1rem;
        max-width: 100vw;
    }
    .footer {
        padding: 1rem 0;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 45%;
    }
    header {
        padding: 0.5rem;
    }
    .logo {
        font-size: 2rem;
    }
    .hero-content h1 {
        font-size: 1.5rem;
    }
    .container, .result-container {
        padding: 0.5rem;
    }
    .footer .box h3,
    .footer .box a {
        font-size: 1.2rem;
    }
}