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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header Styles */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.2);
    padding: 10px;
}

.brand-name {
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

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

/* Main Content */
.main-content {
    min-height: calc(100vh - 120px);
    padding: 2rem 0;
}

/* Description Section */
.description-section {
    margin-bottom: 3rem;
}

.description-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.description-content h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.description-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.description-content p:last-child {
    margin-bottom: 0;
}

/* Content Sections */
.content-section {
    background: white;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.section-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.section-content {
    padding: 2rem;
}

/* About Section Specific */
.about-content {
    margin-bottom: 2rem;
}

.test-pricer {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #4facfe;
}

.test-pricer h3 {
    margin-bottom: 1rem;
    color: #333;
}

.colab-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ff9800;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.colab-link:hover {
    background: #f57c00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,152,0,0.4);
}

/* Dropdown Sections */
.dropdown-section {
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

.dropdown-toggle {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.dropdown-toggle h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.dropdown-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    background: white;
}

.dropdown-content.active {
    max-height: 2000px;
    padding: 2rem;
    overflow-y: auto;
}

.dropdown-content.active ~ .dropdown-toggle .dropdown-icon,
.dropdown-toggle.active .dropdown-icon {
    transform: rotate(180deg);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left p {
    font-weight: 500;
}

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

.social-link {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.social-link:hover {
    color: #4facfe;
    transform: translateY(-3px);
    background: rgba(255,255,255,0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .brand-name {
        font-size: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .dropdown-toggle {
        padding: 1rem;
    }

    .dropdown-toggle h2 {
        font-size: 1.2rem;
    }

    .section-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .main-content {
        padding: 1rem 0;
    }

    .description-placeholder {
        padding: 1.5rem;
    }

    .dropdown-content.active {
        padding: 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Training Content Specific Styles */
.dropdown-content h3 {
    color: #667eea;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem 0;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.colab-links-section {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-left: 4px solid #e65100;
}

.colab-links-section h4 {
    color: white !important;
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
}

.colab-notebook-link {
    color: white !important;
    font-weight: bold;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.colab-notebook-link:hover {
    color: #fff3e0 !important;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

.dropdown-content h4 {
    color: #495057;
    font-size: 1.1rem;
    margin: 1.2rem 0 0.8rem 0;
    font-weight: 600;
}

.dropdown-content ul {
    margin: 0.8rem 0 1.2rem 1.5rem;
    line-height: 1.7;
}

.dropdown-content li {
    margin-bottom: 0.4rem;
}

.dropdown-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    text-align: justify;
}

.dropdown-content strong {
    color: #495057;
    font-weight: 600;
}

/* About/Contact Section Specific Styles */
.portfolio-section {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.portfolio-link {
    color: white !important;
    font-weight: bold;
    text-decoration: underline;
    font-size: 1.1rem;
}

.portfolio-link:hover {
    color: #f8f9fa !important;
}

.portfolio-note {
    font-style: italic;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.techstack-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-left: 4px solid #667eea;
}

.tech-list {
    list-style-type: none;
    margin-left: 0;
}

.tech-list li {
    background: white;
    margin: 0.8rem 0;
    padding: 0.8rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 3px solid #4facfe;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.contact-icon {
    font-size: 1.8rem;
    margin-right: 1rem;
    color: #f8f9fa;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info strong {
    color: #f8f9fa !important;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info a {
    color: white !important;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #f093fb !important;
    text-decoration: underline;
}

.cta-section {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    text-align: center;
}

.cta-section p {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

/* Comparison Section Specific Styles */
.performance-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.result-card {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
}

.result-card.winner {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255,215,0,0.3);
}

.result-card.second {
    border-color: #c0c0c0;
}

.result-card.third {
    border-color: #cd7f32;
}

.rank-badge {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.result-card h5 {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.error-amount {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffd700;
    margin: 0.5rem 0;
}

.model-comparison {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.model-result {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.result-chart {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.model-info h5 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.2rem;
}

.error-display {
    font-size: 1.4rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
    margin: 0.5rem 0;
}

.error-display.best {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
}

.error-display.good {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
}

.error-display.moderate {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.error-display.poor {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.key-insights {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.key-insights h3 {
    color: white !important;
    margin-top: 0 !important;
}

.insights-list {
    list-style: none;
    margin-left: 0;
}

.insights-list li {
    margin: 1rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.insights-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #c8e6c9;
    font-weight: bold;
    font-size: 1.2rem;
}

.performance-advantage {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #4caf50;
    margin: 2rem 0;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.advantage-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-3px);
}

.advantage-item i {
    font-size: 2rem;
    color: #4caf50;
    margin-bottom: 1rem;
}

.advantage-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

/* Responsive adjustments for Comparison */
@media (max-width: 768px) {
    .model-result {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .advantage-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .performance-summary, .key-insights, .performance-advantage {
        padding: 1.5rem;
    }
}

/* Responsive adjustments for About/Contact */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .contact-icon {
        font-size: 1.5rem;
    }
    
    .portfolio-section, .techstack-section, .cta-section {
        padding: 1.2rem;
    }
}