* {
    margin: 0; padding: 0; box-sizing: border-box;
}

/* Theme Switcher */
.theme-switcher {
    text-align: center;
    margin-bottom: 20px;
}

.theme-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    padding: 10px 20px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.theme-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Modern Dark Theme Styles */
.modern-theme body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.modern-theme .matrix-3d {
    background: linear-gradient(135deg, #0d1421 0%, #1a1a2e 100%);
    opacity: 0.3;
}

.modern-theme .matrix-cube {
    border-color: #64ffda;
    background: rgba(100, 255, 218, 0.1);
}

.modern-theme .matrix-cube::before {
    color: #64ffda;
    text-shadow: 0 0 10px #64ffda;
}

.modern-theme .demo-title,
.modern-theme .demo-description {
    color: #64ffda;
    text-shadow: 0 0 20px #64ffda;
}

.modern-theme .model-performance,
.modern-theme .form-container,
.modern-theme .plots-section,
.modern-theme .internship-info,
.modern-theme .evaluation-table,
.modern-theme .social-links {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.modern-theme .submit-btn {
    background: linear-gradient(45deg, #64ffda, #00bcd4);
}

.modern-theme .result {
    background: linear-gradient(45deg, #1de9b6, #00e676);
}

.modern-theme .flash-message.error {
    background: rgba(244, 67, 54, 0.9);
}

.modern-theme .flash-message.success {
    background: rgba(76, 175, 80, 0.9);
}

.modern-theme .flash-message.warning {
    background: rgba(255, 193, 7, 0.9);
}

/* Theme transition animation */
body {
    transition: background 0.5s ease;
}

.matrix-3d {
    transition: all 0.5s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Matrix 3D Background Effect */
.matrix-3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a3a 100%);
    perspective: 1000px;
    overflow: hidden;
}

.demo-content {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1;
    opacity: 0.8;
}

.demo-title {
    color: #00ff00;
    font-size: 1.5rem;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 20px #00ff00;
    margin-bottom: 5px;
}

.demo-description {
    color: #00ff00;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    opacity: 0.7;
}

.matrix-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: matrix3DRotate 30s linear infinite;
}

.matrix-cube {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid #00ff00;
    background: rgba(0, 255, 0, 0.1);
    transform-style: preserve-3d;
    animation: cubeFloat 6s ease-in-out infinite;
}

.matrix-cube::before {
    content: attr(data-char);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    text-shadow: 0 0 10px #00ff00;
}

@keyframes matrix3DRotate {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    25% { transform: rotateY(90deg) rotateX(15deg); }
    50% { transform: rotateY(180deg) rotateX(0deg); }
    75% { transform: rotateY(270deg) rotateX(-15deg); }
    100% { transform: rotateY(360deg) rotateX(0deg); }
}

@keyframes cubeFloat {
    0%, 100% { 
        transform: translateZ(0px) rotateX(0deg) rotateY(0deg); 
        opacity: 0.7; 
    }
    33% { 
        transform: translateZ(50px) rotateX(120deg) rotateY(120deg); 
        opacity: 1; 
    }
    66% { 
        transform: translateZ(-30px) rotateX(240deg) rotateY(240deg); 
        opacity: 0.5; 
    }
}

/* Main Container Styling */
.container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

h1 {
    text-align: center;
    color: white;
    font-size: 3rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.model-performance, .form-container, .plots-section {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.2);
}

.model-performance h2,
.plots-section h2 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.metric {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.metric-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.metric-value {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 20px;
}

.flash-message {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    font-weight: 500;
    animation: slideIn 0.5s ease-out;
    position: relative;
}

.flash-message.error {
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border-left: 4px solid #c0392b;
}

.flash-message.warning {
    background: rgba(241, 196, 15, 0.9);
    color: #2c3e50;
    border-left: 4px solid #f39c12;
}

.flash-message.success {
    background: rgba(46, 204, 113, 0.9);
    color: white;
    border-left: 4px solid #27ae60;
}

.flash-message .close-btn {
    position: absolute;
    top: 5px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.flash-message .close-btn:hover {
    opacity: 1;
}

/* Error State */
.error-state {
    text-align: center;
    color: white;
    padding: 40px;
    background: rgba(231, 76, 60, 0.2);
    border-radius: 15px;
    margin-bottom: 30px;
}

.error-state h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.error-state p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.error {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

label {
    color: white;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

select, input {
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

select:focus, input:focus {
    outline: none;
    background: rgba(255,255,255,0.3);
    transform: scale(1.02);
}

select.error, input.error {
    border: 2px solid #e74c3c;
    background: rgba(231, 76, 60, 0.2);
}

select option {
    background: #333;
    color: white;
}

input::placeholder {
    color: rgba(255,255,255,0.7);
}

.submit-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 15px 30px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.loading {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.spinner {
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.result {
    display: none;
    margin-top: 30px;
    text-align: center;
    background: linear-gradient(45deg, #00b894, #00cec9);
    padding: 30px;
    border-radius: 15px;
    animation: slideIn 0.5s ease-out;
}

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

.result h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
}

.salary-amount {
    color: white;
    font-size: 3rem;
    font-weight: bold;
    margin: 15px 0;
}

.result-description {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
}

.plot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.plot-card {
    cursor: pointer;
}

.plot-card img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.plot-card img:hover {
    transform: scale(1.03);
}

.expanded-view {
    display: none;
    text-align: center;
    margin-top: 30px;
}

.expanded-view img {
    max-width: 90%;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.back-btn {
    padding: 10px 20px;
    background-color: #ff7675;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

.back-btn:hover {
    background-color: #d63031;
}

/* Input validation styling */
.input-error {
    border: 2px solid #e74c3c !important;
    background: rgba(231, 76, 60, 0.1) !important;
}

.input-success {
    border: 2px solid #27ae60 !important;
    background: rgba(46, 204, 113, 0.1) !important;
}

/* Social Media Buttons Styling */
.social-links {
    text-align: center;
    margin: 30px 0;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.social-links h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-btn {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.social-btn img {
    width: 30px;
    height: 30px;
}

.social-btn:hover {
    transform: scale(1.1);
    background: rgba(255,255,255,0.3);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Internship Info Section */
.internship-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.internship-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.company-logo {
    flex: 0 0 auto;
}

.company-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.internship-details {
    flex: 1;
    min-width: 200px;
    color: white;
}

.internship-details h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: white;
}

.internship-details p {
    font-size: 1rem;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.internship-details p strong {
    color: white;
}

.company-badge {
    flex: 0 0 auto;
}

.company-badge img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Model Evaluation Table Styles */
.evaluation-table {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.2);
    overflow-x: auto;
}

.evaluation-table h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.table-info {
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.table-container {
    overflow-x: auto;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.eval-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.eval-table th {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    position: sticky;
    top: 0;
    z-index: 1;
}

.eval-table td {
    padding: 10px 8px;
    color: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.eval-table tr:nth-child(even) {
    background: rgba(255,255,255,0.05);
}

.eval-table tr:hover {
    background: rgba(255,255,255,0.1);
    transition: background 0.3s ease;
}

/* Highlight columns */
.actual-salary {
    background: rgba(46, 204, 113, 0.2) !important;
    font-weight: bold;
}

.predicted-salary {
    background: rgba(52, 152, 219, 0.2) !important;
    font-weight: bold;
}

.error-column {
    background: rgba(241, 196, 15, 0.2) !important;
}

.error-percentage {
    background: rgba(231, 76, 60, 0.2) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-grid { 
        grid-template-columns: 1fr; 
    }
    .metrics { 
        grid-template-columns: 1fr; 
    }
    h1 { 
        font-size: 2rem; 
    }
    .salary-amount { 
        font-size: 2rem; 
    }
    .social-buttons { 
        gap: 10px; 
    }
    
    .internship-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .company-logo img {
        width: 80px;
        height: 80px;
    }

    .company-badge img {
        width: 60px;
        height: 60px;
    }
    
    .demo-title {
        font-size: 1.2rem;
    }
    
    .demo-description {
        font-size: 0.8rem;
    }
    
    .matrix-cube {
        width: 15px;
        height: 15px;
    }
    
    .matrix-cube::before {
        font-size: 10px;
    }
    
    .table-info {
        flex-direction: column;
        gap: 5px;
    }
}

/* Enhanced Matrix Effect for better visibility */
@media (prefers-reduced-motion: no-preference) {
    .matrix-layer:nth-child(1) {
        animation-duration: 25s;
    }
    
    .matrix-layer:nth-child(2) {
        animation-duration: 35s;
        animation-direction: reverse;
    }
    
    .matrix-layer:nth-child(3) {
        animation-duration: 40s;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .matrix-layer,
    .matrix-cube {
        animation: none;
    }
    
    .matrix-cube {
        opacity: 0.5;
    }
}
/* Developer Profile Section Styles */
.developer-profile {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    border: 1px solid rgba(255,255,255,0.2);
}

.developer-card {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.developer-photo {
    flex: 0 0 auto;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
    border-color: #64ffda;
}

.developer-info {
    flex: 1;
    min-width: 250px;
    color: white;
    text-align: left;
}

.developer-info h3 {
    color: #64ffda;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.developer-info h4 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: bold;
}

.developer-info p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Alternative Developer Spotlight Styles */
.developer-spotlight {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

.developer-spotlight h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.dev-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.dev-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #64ffda;
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
    transition: all 0.3s ease;
}

.dev-photo:hover {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 15px 40px rgba(100, 255, 218, 0.5);
}

.dev-details {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.dev-details h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 5px;
}

.dev-title {
    color: #64ffda;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px !important;
}

.dev-bio {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    line-height: 1.5;
}

/* Enhanced Social Buttons */
.social-btn.linkedin:hover {
    background: #0077B5;
    transform: scale(1.15);
}

.social-btn.github:hover {
    background: #333;
    transform: scale(1.15);
}

.social-btn.portfolio:hover {
    background: linear-gradient(45deg, #667eea, #764ba2);
    transform: scale(1.15);
}

/* Modern Theme Developer Section */
.modern-theme .developer-profile,
.modern-theme .developer-spotlight {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.modern-theme .profile-image,
.modern-theme .dev-photo {
    border-color: #64ffda;
    box-shadow: 0 8px 25px rgba(100, 255, 218, 0.3);
}

/* Responsive Design for Developer Section */
@media (max-width: 768px) {
    .developer-card,
    .dev-card {
        flex-direction: column;
        text-align: center;
    }
    
    .developer-info,
    .dev-details {
        text-align: center;
    }
    
    .profile-image,
    .dev-photo {
        width: 100px;
        height: 100px;
    }
    
    .developer-info h4,
    .dev-details h3 {
        font-size: 1.5rem;
    }
}
/* Static Theme Styles (No Animation) */ 
.static-theme body { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); } .static-theme .matrix-3d { display: none !important; } .static-theme .demo-content { display: none !important; } .static-theme .matrix-cube, .static-theme .matrix-layer { display: none !important; } .static-theme .model-performance, .static-theme .form-container, .static-theme .plots-section, .static-theme .internship-info, .static-theme .evaluation-table, .static-theme .social-links, .static-theme .developer-profile, .static-theme .developer-spotlight { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); } .static-theme .submit-btn { background: linear-gradient(45deg, #ff6b6b, #ee5a24); } .static-theme .result { background: linear-gradient(45deg, #00b894, #00cec9); } .static-theme .flash-message.error { background: rgba(231, 76, 60, 0.9); } .static-theme .flash-message.success { background: rgba(46, 204, 113, 0.9); } .static-theme .flash-message.warning { background: rgba(241, 196, 15, 0.9); } 
/* Static theme colors */
.static-theme .demo-title, .static-theme .demo-description { color: white; text-shadow: 0 0 20px white; }
