/* === Global Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

body {
    line-height: 1.6;
    color: #333;
    padding-top: 80px;
    background-color: #ffffff;
    color: #191919;
}

/* Dark mode styles */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .header {
    background: #1e1e1e;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .nav-links a {
    color: #e0e0e0;
}

body.dark-mode .nav-links a:hover {
    color: #007bff;
    background: #2a2a2a;
}

body.dark-mode .contact-info,
body.dark-mode .contact-form,
body.dark-mode .about-card,
body.dark-mode .construction-message {
    background: #1e1e1e !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    color: #e0e0e0;
}

body.dark-mode footer {
    background: #1a1a1a;
    color: #b0b0b0;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode .form-group select {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus,
body.dark-mode .form-group select:focus {
    border-color: #007bff;
}

/* === Logo Styles === */
.logo-image {
    height: 50px;
    transition: filter 0.3s ease;
}

/* Optional dark mode inversion – uncomment if needed */
/* body.dark-mode .logo-image {
    filter: invert(1) brightness(1.2);
} */

/* === Theme Toggle === */
.theme-toggle {
    cursor: pointer;
    font-size: 1.5rem;
    margin-left: 1rem;
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: inherit !important;
}

.theme-toggle a,
.theme-toggle a:hover {
    text-decoration: none !important;
    border-bottom: none !important;
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#sun-icon {
    color: #f39c12;
}

#moon-icon {
    color: #6c5ce7;
}

.theme-icon {
    position: absolute;
    transition: opacity 0.3s, transform 0.3s;
    color: unset;
}

.theme-icon.active {
    opacity: 1;
    transform: scale(1);
}

.theme-icon:not(.active) {
    opacity: 0;
    transform: scale(0);
}

body.dark-mode #moon-icon.active {
    color: #6c5ce7;
}

/* === Header/Navigation === */
.header {
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #444;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 5px 10px;
    border-radius: 4px;
}

.nav-links a:hover {
    color: #007bff;
    background: #f5f5f5;
}

body.dark-mode .nav-links a:hover {
    background: #2a2a2a;
}

.active {
    color: #007bff !important;
    background: transparent;
}

/* === Mobile Menu - FIXED === */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        padding: 2rem;
        text-align: center;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        gap: 1.5rem;
        z-index: 1000;
    }

    body.dark-mode .nav-links {
        background: #1e1e1e;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
        cursor: pointer;
        margin-left: 1rem;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
    }

    .hamburger .line {
        width: 100%;
        height: 3px;
        background: #333;
        transition: all 0.3s;
    }

    body.dark-mode .hamburger .line {
        background: #e0e0e0;
    }

    .hamburger.active .line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .nav-links {
        display: none !important;
    }
    
    .nav-links.active {
        display: flex !important;
    }
}

@media (min-width: 769px) {
    .nav-links {
        display: flex !important;
    }
    
    .hamburger {
        display: none !important;
    }
}

/* === Section Styling === */
section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    text-align: center;
    padding: 6rem 5%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin: 2rem auto;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

/* === About Page Styles === */
.about-section {
    text-align: center;
}

.company-icon {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    color: #007bff;
}

.about-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
}

.about-icon {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.about-card h3 {
    margin: 1rem 0;
    color: #2a2a2a;
}

body.dark-mode .about-card h3 {
    color: #e0e0e0;
}

/* === New Components from PDF Content === */
.section-content {
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-content h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2a2a2a;
    font-size: 2.2rem;
}

body.dark-mode .section-content h2 {
    color: #e0e0e0;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #555;
}

body.dark-mode .intro-text {
    color: #b0b0b0;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #007bff;
}

body.dark-mode .service-card {
    background: #1e1e1e;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    color: #2a2a2a;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

body.dark-mode .service-card h3 {
    color: #e0e0e0;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
}

.service-card li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
}

body.dark-mode .service-card li {
    color: #b0b0b0;
}

.service-card li:before {
    content: "✓";
    color: #007bff;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid #007bff;
}

body.dark-mode .info-card {
    background: #1e1e1e;
}

.info-card h3 {
    color: #2a2a2a;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.dark-mode .info-card h3 {
    color: #e0e0e0;
}

.info-card h3 i {
    color: #007bff;
}

.feature-block {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

body.dark-mode .feature-block {
    background: #1e1e1e;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.feature-block h3 {
    color: #2a2a2a;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
}

body.dark-mode .feature-block h3 {
    color: #e0e0e0;
}

.feature-list {
    list-style: none;
    padding-left: 1.5rem;
}

.feature-list li {
    margin-bottom: 0.8rem;
    position: relative;
    color: #555;
}

body.dark-mode .feature-list li {
    color: #b0b0b0;
}

.feature-list li:before {
    content: "•";
    color: #007bff;
    font-size: 1.5rem;
    position: absolute;
    left: -1.5rem;
    top: -0.2rem;
}

.table-container {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.service-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.service-table th {
    background: #007bff;
    color: white;
    padding: 1rem;
    text-align: left;
}

.service-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    color: #555;
}

body.dark-mode .service-table td {
    border-bottom: 1px solid #444;
    color: #b0b0b0;
}

.service-table tr:nth-child(even) {
    background: #f8f9fa;
}

body.dark-mode .service-table tr:nth-child(even) {
    background: #2a2a2a;
}

.cta-section {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin: 3rem auto;
}

body.dark-mode .cta-section {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

.cta-section h2 {
    color: white;
}

.agreement-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.point {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.point i {
    color: #f39c12;
}

.note {
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem;
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 600px;
    backdrop-filter: blur(10px);
}

.cta-box {
    background: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
}

.cta-button {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* === Contact Page Styles === */
.contact-section {
    padding: 4rem 5%;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin: 2rem 0;
}

.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: #007bff;
    margin-bottom: 1rem;
    display: block;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-icons a {
    font-size: 1.5rem;
    color: #333;
    transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    color: #007bff;
    transform: translateY(-3px);
}

body.dark-mode .social-icons a {
    color: #e0e0e0;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background: white;
    color: #333;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
}

.btn {
    background: #007bff;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    width: 100%;
}

.btn:hover {
    background: #0056b3;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .company-icon {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .company-icon i {
        font-size: 2rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group input {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* === Projects Page Styles === */
.construction-section {
    padding: 4rem 5%;
    min-height: 70vh;
    background-image: repeating-linear-gradient(45deg, #f8f9fa px, #f8f9fa 30px, #fff 30px, #fff 60px);
}

body.dark-mode .construction-section {
    background-image: repeating-linear-gradient(45deg, #1a1a1a px, #1a1a1a 30px, #121212 30px, #121212 60px);
}

.construction-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.construction-message {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.construction-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* === Enhanced Footer === */
footer {
    background: #f8f9fa;
    padding: 3rem 5% 1.5rem;
    margin-top: 4rem;
}

body.dark-mode footer {
    background: #1a1a1a;
    color: #b0b0b0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo-image {
    height: 40px;
    margin-bottom: 1rem;
}

/* Optional dark mode inversion */
/* body.dark-mode .footer-logo-image {
    filter: invert(1) brightness(1.2);
} */

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    color: #2a2a2a;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

body.dark-mode .footer-links h4,
body.dark-mode .footer-services h4,
body.dark-mode .footer-contact h4 {
    color: #e0e0e0;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
    padding: 0;
}

.footer-links li,
.footer-services li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

body.dark-mode .footer-links a {
    color: #b0b0b0;
}

.footer-links a:hover {
    color: #007bff;
}

.footer-services li {
    color: #555;
}

body.dark-mode .footer-services li {
    color: #b0b0b0;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #555;
}

body.dark-mode .footer-contact p {
    color: #b0b0b0;
}

.footer-contact i {
    color: #007bff;
}

.footer-contact .social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-contact .social-icons a {
    color: #555;
    font-size: 1.2rem;
    transition: color 0.3s, transform 0.3s;
}

body.dark-mode .footer-contact .social-icons a {
    color: #b0b0b0;
}

.footer-contact .social-icons a:hover {
    color: #007bff;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
    color: #777;
    font-size: 0.9rem;
}

body.dark-mode .footer-bottom {
    border-top: 1px solid #444;
    color: #999;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .footer-contact .social-icons {
        justify-content: center;
    }
}

/* Helper class for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}