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

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

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

/* Navigation */
nav {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #4a90e2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    max-width: 800px;
    padding: 0 2rem;
}

.logo-section {
    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 1;
}

.logo-section h1 {
    font-size: 2rem;
    font-weight: 300;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-text {
    max-width: 600px;
    text-align: left;
    line-height: 1.8;
    font-size: 1.1rem;
    opacity: 0.95;
}

.hero-text p {
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.hero-text sup {
    font-size: 0.8em;
    vertical-align: super;
}

.hero-text sub {
    font-size: 0.8em;
    vertical-align: sub;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #2980b9;
}

.back-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 15px;
    transition: background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    background: rgba(255, 255, 255, 1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.submit-btn {
    background: #3498db;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #2980b9;
}

/* Contact Info Styles */
.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-info p {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.contact-details {
    margin-bottom: 20px;
}

.contact-details p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 10px;
    text-align: left;
}

.contact-btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.contact-btn:hover {
    background: #2980b9;
}

/* Sections */
section {
    padding: 80px 0;
}

.about, .contact {
    background: #f8f9fa;
}

.about h2, .contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.about p, .contact p {
    text-align: center;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: #666;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Logo link styling */
.logo h1 a {
    text-decoration: none;
    color: inherit;
}

/* Active navigation state */
.nav-links a.active {
    color: #3498db;
    font-weight: bold;
}

/* Monitor Dashboard Styles */
.monitor-dashboard {
    background: #f8f9fa;
    padding: 80px 0;
}

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

.dashboard-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.dashboard-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.status-online {
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2rem;
}

.status-offline {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Controls Section */
.controls {
    padding: 80px 0;
}

.control-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.control-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.control-btn:hover {
    background: #2980b9;
}

.control-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* Projects Page Styles */
.projects {
    background: #f8f9fa;
    padding: 80px 0;
}

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

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.project-card.coming-soon {
    opacity: 0.7;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-header h2 {
    color: #2c3e50;
    margin: 0;
}

.project-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.project-status.active {
    background: #27ae60;
    color: white;
}

.project-status {
    background: #f39c12;
    color: white;
}

.project-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-btn {
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-btn.primary {
    background: #3498db;
    color: white;
}

.project-btn.primary:hover {
    background: #2980b9;
}

.project-btn.secondary {
    background: transparent;
    color: #3498db;
    border: 1px solid #3498db;
}

.project-btn.secondary:hover {
    background: #3498db;
    color: white;
}

.project-btn.disabled {
    background: #bdc3c7;
    color: #7f8c8d;
    border: none;
    cursor: not-allowed;
}

 .project-tech {
     display: flex;
     gap: 0.5rem;
     flex-wrap: wrap;
 }
 
 .tech-tag {
     background: #ecf0f1;
     color: #2c3e50;
     padding: 4px 8px;
     border-radius: 15px;
     font-size: 0.8rem;
     font-weight: 500;
 }
 
 /* Lake Graph Container */
 .lake-graph-container {
     margin-top: 1.5rem;
     background: white;
     border-radius: 8px;
     overflow: hidden;
     box-shadow: 0 2px 10px rgba(0,0,0,0.1);
 }
 
 .graph-preview {
     padding: 2rem;
     text-align: center;
     background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
     border-radius: 8px;
     min-height: 200px;
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
 }
 
 .graph-preview h4 {
     color: #2c3e50;
     font-size: 1.3rem;
     margin-bottom: 1rem;
     font-weight: 600;
 }
 
 .graph-preview p {
     color: #666;
     font-size: 1rem;
     margin-bottom: 1.5rem;
     max-width: 400px;
 }
 
 .view-graph-btn {
     display: inline-block;
     background: #3498db;
     color: white;
     padding: 15px 30px;
     text-decoration: none;
     border-radius: 5px;
     font-size: 1.1rem;
     font-weight: 500;
     transition: background 0.3s ease;
     border: none;
     cursor: pointer;
 }
 
 .view-graph-btn:hover {
     background: #2980b9;
     text-decoration: none;
     color: white;
 }
 
 /* Modal Styles */
 .modal {
     display: none;
     position: fixed;
     z-index: 2000;
     left: 0;
     top: 0;
     width: 100%;
     height: 100%;
     background-color: rgba(0,0,0,0.8);
     backdrop-filter: blur(5px);
 }
 
 .modal-content {
     position: relative;
     margin: 0.5% auto;
     padding: 5px;
     width: 99%;
     max-width: 1600px;
     background: white;
     border-radius: 10px;
     box-shadow: 0 10px 30px rgba(0,0,0,0.3);
 }
 
 .close {
     position: absolute;
     right: 15px;
     top: 10px;
     color: #aaa;
     font-size: 28px;
     font-weight: bold;
     cursor: pointer;
     z-index: 2001;
 }
 
 .close:hover {
     color: #000;
 }
 
 #modal-chart {
     width: 100%;
     height: 90vh;
     border-radius: 8px;
     display: block;
     background: white;
 }

/* Password Modal Styles */
.password-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.password-form h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

#password-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 1.5rem;
    text-align: center;
}

#password-input:focus {
    outline: none;
    border-color: #3498db;
}

.password-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.password-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.password-btn.primary {
    background: #3498db;
    color: white;
}

.password-btn.primary:hover {
    background: #2980b9;
}

.password-btn.secondary {
    background: #95a5a6;
    color: white;
}

.password-btn.secondary:hover {
    background: #7f8c8d;
}

/* Euler's Formula Graphic */
.euler-graphic {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.euler-graphic svg {
    width: 500px;
    height: 500px;
    max-width: 100%;
    height: auto;
}

.rotating-point {
    animation: rotate 8s linear infinite;
    transform-origin: 100px 100px;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .about h2, .contact h2 {
        font-size: 2rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .control-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .project-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .lake-graph-container {
        margin-top: 1rem;
        margin: 0 10px;
    }
    
    .graph-preview {
        padding: 1.5rem;
        min-height: 180px;
    }
    
    .graph-preview h4 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .view-graph-btn {
        padding: 12px 24px;
        font-size: 1rem;
        width: 100%;
        max-width: 250px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .contact-form, .contact-info {
        margin: 0 15px;
        padding: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .dashboard-card {
        padding: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .about h2, .contact h2 {
        font-size: 1.8rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .nav-links {
        font-size: 0.9rem;
    }
    
    .project-card {
        padding: 1rem;
    }
    
    .graph-preview {
        padding: 1rem;
    }
    
    .view-graph-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .dashboard-card {
        padding: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .lake-graph-container {
        margin: 0 5px;
    }
    
    .graph-preview {
        padding: 1rem;
        min-height: 160px;
    }
    
    .graph-preview h4 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .view-graph-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 200px;
    }
} 

/* Utility Status Indicator */
.utility-status-container {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 160px;
    opacity: 0.8;
}

.utility-status-container h3 {
    color: white;
    font-size: 1rem;
    margin-bottom: 8px;
    text-align: center;
    opacity: 0.9;
}

.utility-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 400;
}

#utility-icon {
    font-size: 1.2rem;
}

.utility-status.online {
    color: #4CAF50;
}

.utility-status.offline {
    color: #f44336;
}

.utility-status.checking {
    color: #FF9800;
}

/* Mobile responsive for utility status */
@media (max-width: 768px) {
    .utility-status-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-top: 20px;
        width: 100%;
        max-width: 250px;
        opacity: 1;
    }
}

/* Generator Status Indicator */
.generator-status-container {
    position: absolute;
    top: calc(50% + 100px);
    left: 50px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 160px;
    opacity: 0.8;
}

.generator-status-container h3 {
    color: white;
    font-size: 1rem;
    margin-bottom: 8px;
    text-align: center;
    opacity: 0.9;
}

.generator-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 400;
}

#generator-icon {
    font-size: 1.2rem;
}

.generator-status.online {
    color: #4CAF50;
}

.generator-status.offline {
    color: #f44336;
}

.generator-status.checking {
    color: #FF9800;
}

/* Mobile responsive for generator status */
@media (max-width: 768px) {
    .generator-status-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-top: 10px;
        width: 100%;
        max-width: 250px;
        opacity: 1;
    }
}

/* Lake Level Container */
.lake-level-container {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 1200px;
    opacity: 0.9;
}

.lake-level-container h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    opacity: 0.9;
}

.lake-level-image {
    text-align: center;
}

.lake-graph-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.lake-graph-wrapper:hover {
    transform: scale(1.02);
}

.lake-graph-preview {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    display: block;
}

.lake-graph-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.lake-graph-wrapper:hover .lake-graph-overlay {
    opacity: 1;
}

.expand-icon {
    font-size: 2rem;
    color: white;
    margin-bottom: 8px;
}

.expand-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.lake-modal-chart {
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

/* Mobile responsive for lake level */
@media (max-width: 768px) {
    .lake-level-container {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin-top: 20px;
        width: 100%;
        max-width: 100%;
        opacity: 1;
        padding: 20px;
    }
    
    .lake-graph-preview {
        max-width: 100%;
        height: auto;
    }
    
    .lake-level-container h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .utility-status-container,
    .generator-status-container {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        margin: 10px auto;
        width: 100%;
        max-width: 250px;
        opacity: 1;
    }
    
    .hero-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-width: 95%;
        padding: 15px;
    }
    
    .modal-content h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    /* Mobile touch-friendly alternatives */
    .lake-graph-wrapper:hover {
        transform: none; /* Disable hover scale on mobile */
    }
    
    .lake-graph-overlay {
        opacity: 0.3; /* Always slightly visible on mobile */
        background: rgba(0, 0, 0, 0.5);
    }
    
    .expand-text {
        font-size: 1rem;
        font-weight: 600;
    }
    
    /* Ensure utility status is visible on mobile */
    .utility-status-container,
    .generator-status-container {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        margin: 10px auto !important;
        width: 100% !important;
        max-width: 250px !important;
        opacity: 1 !important;
        z-index: 10 !important;
        display: block !important;
    }
}

@media (max-width: 480px) {
    .lake-level-container {
        padding: 15px;
        margin-top: 15px;
    }
    
    .lake-level-container h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .lake-graph-preview {
        max-width: 100%;
    }
    
    .utility-status-container,
    .generator-status-container {
        max-width: 200px;
        padding: 10px;
    }
    
    .utility-status-container h3,
    .generator-status-container h3 {
        font-size: 0.9rem;
    }
    
    .modal-content {
        margin: 2% auto;
        width: 98%;
        max-width: 98%;
        padding: 10px;
    }
    
    .modal-content h2 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    /* Small mobile touch improvements */
    .lake-graph-overlay {
        opacity: 0.4; /* More visible on small screens */
    }
    
    .expand-text {
        font-size: 0.9rem;
    }
} 