/* Basic Reset & Variables */
:root {
    --primary-color: #8c00ff; /* Blue */
    --secondary-color: #28a745; /* Green */
    --accent-color: #6c757d; /* Grey */
    --text-dark: #343a40;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #343a40;
    --border-color: #dee2e6;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --font-poppins: 'Poppins', sans-serif;
    --font-roboto: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-roboto);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

/* Typography */
h1, h2, h3 {
    font-family: var(--font-poppins);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

h1 {
    font-size: 3.2em;
    color: var(--text-light);
}

h2 {
    font-size: 2.5em;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.5em;
    font-weight: 600;
}

p {
    margin-bottom: 1em;
}

.section-description {
    text-align: center;
    margin-bottom: 60px;
    font-size: 1.1em;
    color: var(--accent-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-family: var(--font-poppins);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: darken(var(--primary-color), 10%); /* conceptual darken */
    background-color: #8c00ff; /* actual darken */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* Header */
.header {
    background-color: var(--text-light);
    padding: 20px 0;
    box-shadow: 0 2px 10px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-family: var(--font-poppins);
    font-weight: 700;
    font-size: 1.8em;
    color: var(--primary-color);
    text-decoration: none;
}

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

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    left: 0;
    bottom: -8px;
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--primary-color);
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/hero.webp') no-repeat center center/cover;
    color: var(--text-light);
    text-align: center;
    padding: 150px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh; /* Ensure it takes up sufficient vertical space */
}

.hero h1 {
    font-size: 3.5em; /* Adjusted for impact */
    margin-bottom: 25px;
}

.hero p {
    font-size: 1.3em; /* Adjusted for readability */
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-family: var(--font-poppins);
    font-weight: 300;
}

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

section:nth-of-type(even) {
    background-color: var(--bg-light);
}

section:nth-of-type(odd) {
    background-color: var(--text-light);
}

/* Services Section */
.services-section {
    background-color: var(--text-light);
}

.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.service-card i {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.service-card h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.6em;
}

.service-card p {
    font-size: 1em;
    color: var(--accent-color);
}

/* About Section */
.about-section {
    background-color: var(--bg-light);
    text-align: center;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto 20px auto;
    font-size: 1.1em;
    line-height: 1.8;
}

.about-section .btn {
    margin-top: 30px;
}

/* Contact Section */
.contact-section {
    background-color: var(--text-light);
    text-align: center;
}

.contact-info {
    font-size: 1.1em;
    margin-top: 40px;
    margin-bottom: 50px;
    line-height: 2.2;
    color: var(--text-dark);
}

.contact-info p i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2em;
}

.contact-info p {
    margin: 10px 0;
}


/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9em;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.5em;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}


/* Responsive Design */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2.8em;
    }

    h2 {
        font-size: 2em;
    }

    .hero {
        padding: 100px 0;
        min-height: 60vh;
    }

    .hero p {
        font-size: 1.1em;
        max-width: 90%;
    }

    .service-card h3 {
        font-size: 1.4em;
    }

    .service-card i {
        font-size: 3em;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }

    .main-nav {
        display: none; /* Hide navigation by default on small screens */
        width: 100%;
        order: 3; /* Push nav below logo and hamburger */
        background-color: var(--text-light);
        box-shadow: 0 5px 10px var(--shadow-light);
    }

    .main-nav.active {
        display: block; /* Show when active */
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
    }

    .main-nav ul li {
        margin: 15px 0;
    }

    .main-nav ul li a {
        font-size: 1.2em;
        color: var(--text-dark);
        padding: 10px 0;
        display: block;
    }

    .main-nav ul li a::after {
        display: none; /* Hide underline for mobile nav links */
    }

    .main-nav ul li a:hover {
        color: var(--primary-color);
    }

    .hamburger {
        display: flex; /* Show hamburger menu */
        margin-left: auto; /* Push to right */
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .service-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .footer .container {
        flex-direction: column;
        gap: 15px;
    }

    .social-links {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 1em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .service-card {
        padding: 25px;
    }

    .service-card i {
        font-size: 2.8em;
    }

    .contact-info p {
        font-size: 1em;
    }
}

/* Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

/* Modal Content Box */
.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
}

/* Close Button */
.close-btn {
  color: #aaa;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
}

.close-btn:hover {
  color: black;
}

/* Form Fields */
form label {
  display: block;
  margin-top: 15px;
  text-align: left;
  font-weight: bold;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

form button[type="submit"] {
  margin-top: 20px;
  width: 100%;
}