/* GENERAL RESET & ROOT VARIABLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0d0d2b; /* Deep Blue */
    --secondary-color: #007BFF; /* Bright Blue */
    --accent-color: #00C49A; /* Mint Green */
    --background-color: #F8F9FA;
    --text-color: #343A40;
    --card-bg: #FFFFFF;
    --border-color: #DEE2E6;
}

.darkmode {
    --primary-color: #FFFFFF;
    --secondary-color: #007BFF;
    --accent-color: #00C49A;
    --background-color: #121212;
    --text-color: #EAEAEA;
    --card-bg: #1E1E1E;
    --border-color: #333;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* TYPOGRAPHY & HEADERS */
h1, h2, h3 {
    font-family: 'Clash Display', sans-serif;
    color: var(--primary-color);
    font-weight: 600;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-header h2 span {
    color: var(--secondary-color);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* NAVIGATION */
nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.brand h1 {
    font-size: 1.8rem;
    transition: letter-spacing 0.3s ease;
}
.brand h1:hover {
    letter-spacing: 2px;
}
.brand span {
    color: var(--secondary-color);
}

.nav-wrapper {
    display: flex;
    list-style: none;
}

.nav-wrapper li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 20px;
    text-transform: uppercase;
    font-family: 'Clash Display', sans-serif;
    position: relative;
    transition: color 0.3s ease;
}

.nav-wrapper li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-wrapper li a:hover, .nav-wrapper li a.active {
    color: var(--secondary-color);
}
.nav-wrapper li a:hover::after, .nav-wrapper li a.active::after {
    width: 70%;
}

#check { display: none; }
.open, .close { display: none; color: var(--primary-color); font-size: 1.5rem; cursor: pointer; }

/* THEME SWITCH */
#theme-switch {
    position: fixed;
    bottom: 20px;
    left: 20px;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
#theme-switch i {
    font-size: 20px;
    color: var(--secondary-color);
}
#theme-switch .fa-sun { display: none; }
.darkmode #theme-switch .fa-moon { display: none; }
.darkmode #theme-switch .fa-sun { display: block; }


/* SECTIONS */
section {
    padding: 100px 5%;
    min-height: 80vh;
}

/* HOME SECTION */
.home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    min-height: 90vh;
    /* padding-left: 150px; */
}
.home .content { flex: 1; }
.home .image { flex: 0.8; text-align: center; }
.home .content .hi { font-size: 1.2rem; font-weight: 700; }
.home .content h3 { font-size: 3.5rem; margin: 10px 0; }
.home .content .info { font-size: 1.5rem; color: var(--secondary-color); font-weight: 600; margin-bottom: 20px; }
.home .content .text { font-size: 1rem; line-height: 1.6; max-width: 500px; margin-bottom: 30px; }
.home .image img {
    max-width: 80%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
}
.cta-buttons { display: flex; gap: 15px; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background-color: var(--secondary-color);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}
.btn.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}
.btn.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: #fff;
}


/* SERVICE SECTION */
#service-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.service-items {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-items:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.service-items img { width: 50px; margin-bottom: 20px; }
.service-items h3 { font-size: 1.5rem; margin-bottom: 15px; }
.service-items p { font-size: 0.95rem; line-height: 1.6; }

/* PORTFOLIO SECTION */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}
.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.gallery-item:hover {
    transform: scale(1.05);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CONTACT SECTION */
.contact-section {
    display: flex;
    gap: 2rem;
    background-color: var(--card-bg);
    padding: 50px;
    border-radius: 10px;
}
.contact-info, .contact-form-container { flex: 1; }
.contact-info h1 { font-size: 3rem; margin-bottom: 20px; }
.contact-info p { margin-bottom: 20px; font-size: 1rem; }
.contact-info i { color: var(--secondary-color); margin-right: 10px; width: 20px; }

.contact-form-container form { display: flex; flex-direction: column; }
.contact-form-container label { margin-bottom: 5px; font-weight: bold; }
.contact-form-container input, .contact-form-container textarea {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 1rem;
}
#form-success-message { text-align: center; padding: 40px 20px; border: 2px dashed var(--accent-color); border-radius: 10px; }
#form-success-message h3 { color: var(--accent-color); font-size: 2rem; }

/* WHATSAPP & FOOTER */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    z-index: 1001;
}

.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 40px 5%;
    text-align: center;
}
.footer .container { max-width: 1200px; margin: 0 auto; }
.footer .row { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.footer .column h5 { font-size: 1.2rem; margin-bottom: 15px; color: #fff; }
.footer .column ul { list-style: none; }
.footer .column ul li a { color: #ccc; text-decoration: none; transition: color 0.3s; }
.footer .column ul li a:hover { color: var(--secondary-color); }
.footer .social-links a { color: #fff; font-size: 1.5rem; margin: 10px 10px; transition: color 0.3s;}
.footer .social-links a:hover { color: var(--secondary-color); }
.footer .text-center { width: 100%; margin-top: 40px; border-top: 1px solid #444; padding-top: 20px; }

/* Adds space between the list items in the footer menus (e.g., "Quick Links") */
.footer .column ul li {
    margin-bottom: 12px;
}

/* Adds space above the social media icons */
.footer .social-links {
    margin-top: 15px;
}

/* =================== */
/* FOOTER DARK MODE FIX */
/* =================== */

.darkmode .footer {
    background-color: #0d0d2b; /* Use the deep blue for the footer background */
    color: #EAEAEA;           /* Use the standard light text color from dark mode */
}

/* Ensure footer headings and links are also visible */
.darkmode .footer .column h5 {
    color: #FFFFFF;
}

.darkmode .footer .column ul li a {
    color: #ccc;
}

/* Make sure social links are visible */
.darkmode .footer .social-links a {
    color: #FFFFFF;
}

/* Keep the hover effect consistent */
.darkmode .footer .column ul li a:hover,
.darkmode .footer .social-links a:hover {
    color: var(--secondary-color);
}


/* RESPONSIVE DESIGN */
@media screen and (max-width: 992px) {
    section { padding: 80px 5%; }
    .home { flex-direction: column-reverse; text-align: center; }
    .home .content .text { margin: 20px auto; }
    .home .cta-buttons { justify-content: center; }
    .contact-section { flex-direction: column; }
}

@media screen and (max-width: 768px) {
    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: rgba(0,0,0,0.9);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s ease-in-out;
    }
    .darkmode .nav-wrapper { background-color: rgba(20, 20, 20, 0.95); }
    .nav-wrapper li { margin: 20px 0; }
    .nav-wrapper li a { color: #fff; }
    #check:checked ~ .nav-wrapper { right: 0; }
    .open, .close { display: block; z-index: 1001; }
    .open { position: absolute; top: 50%; right: 20px; transform: translateY(-50%); }
    .close { position: absolute; top: 20px; right: 20px; color: #fff; }

    .home h3 { font-size: 2.5rem; }
    .gallery { grid-template-columns: 1fr 1fr; }
}

@media screen and (max-width: 480px) {
    .gallery { grid-template-columns: 1fr; }
    #theme-switch { bottom: 15px; left: 15px; }
    .whatsapp-float { bottom: 15px; right: 15px; }
}