@import url("https://fonts.googleapis.com/css?family=Poppins:400,600,700&display=swap");

:root {
  --modal-duration: 0.5s;
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --light-color: #ecf0f1;
  --dark-color: #23282c;
  --shadow-color: rgba(0, 0, 0, 0.2);
  --overlay-color: rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #fff;
  color: #333;
  margin: 0;
  transition: transform 0.4s ease-in-out;
}

body.show-nav {
  transform: translateX(250px);
}

body.page {
  background-color: #f4f7f6;
}

.page-container {
    background-color: #fff;
}

/* Navigation */
nav {
  background-color: var(--dark-color);
  border-right: 2px solid rgba(255, 255, 255, 0.1);
  color: var(--light-color);
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  z-index: 100;
  transform: translateX(-100%);
}

nav .logo {
  padding: 30px 0;
  text-align: center;
}

nav .logo h3 {
  color: var(--light-color);
  font-size: 1.8rem;
  margin: 0;
}

nav ul {
  padding: 0;
  list-style-type: none;
  margin: 0;
}

nav ul li {
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
}

nav ul li:first-of-type {
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}

nav ul li a {
  color: var(--light-color);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s;
}

nav ul li a:hover {
  color: var(--secondary-color);
}

/* Header */
header {
  background: var(--primary-color) url('2.png') no-repeat center center/cover;
  color: #fff;
  font-size: 130%;
  position: relative;
  padding: 100px 15px;
  text-align: center;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

header h1 {
  margin: 0;
  font-size: 2.8rem;
}

header p {
  margin: 30px 0;
  font-size: 1.2rem;
  font-weight: 300;
}

button.toggle {
  background-color: rgba(0, 0, 0, 0.3);
  position: absolute;
  top: 20px;
  left: 20px;
  border: none;
  color: white;
  cursor: pointer;
  padding: 10px;
  border-radius: 5px;
  z-index: 20;
}

.cta-btn {
  background: var(--secondary-color);
  padding: 15px 35px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 5px;
  border: none;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

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


/* Main Content */
.container {
  padding: 40px 20px;
  margin: 0 auto;
  max-width: 1100px;
}

.container h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.container ul {
    list-style-type: none;
    padding-left: 0;
}

.container ul li {
    background: #f4f4f4;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 5px solid var(--secondary-color);
}

/* Modal */
.modal-container {
  background-color: var(--overlay-color);
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  z-index: 1000;
}

.modal-container.show-modal {
  display: block;
}

.modal {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px var(--shadow-color);
  position: absolute;
  overflow: hidden;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  width: 500px;
  animation-name: modalopen;
  animation-duration: var(--modal-duration);
}

.modal-header {
  background: var(--secondary-color);
  color: #fff;
  padding: 1rem 1.5rem;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.4rem;
}

.modal-content {
  padding: 1.5rem;
}
.modal-content p {
    margin-top: 0;
}
.modal-form div {
  margin: 1rem 0;
}

.modal-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.modal-form .form-input {
  padding: 12px;
  width: 100%;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-family: inherit;
}
.modal-form .form-input:focus {
    outline: 2px solid var(--secondary-color);
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 25px;
  position: absolute;
  top: 5px;
  right: 10px;
  color: #fff;
  cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--secondary-color);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.submit-btn:hover {
    background: #2980b9;
}

@keyframes modalopen {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: #a0a0a0;
    padding-top: 3rem;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.footer-info h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-info p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-info i {
    color: var(--secondary-color);
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    min-height: 200px;
    border-radius: 8px;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid #444;
}

/* --- New Styles for Pages --- */

.page-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 3rem 1rem;
    text-align: center;
    position: relative;
}

.page-header .toggle {
    background-color: transparent;
    border: 1px solid #fff;
}

.page-header h1 {
    font-size: 2.5rem;
}
.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Services Page */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}
.service-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.service-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.service-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

/* About Page */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    margin: 2rem 0;
}
.about-image img {
    width: 100%;
    border-radius: 8px;
}
.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.about-text p {
    line-height: 1.7;
    margin-bottom: 1rem;
}
.process-section {
    padding: 3rem 0;
    text-align: center;
}
.process-section h2 {
    margin-bottom: 2.5rem;
}
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.process-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding: 2rem 0;
}
.contact-form-container, .contact-info-container {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
}
.submit-btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.contact-info-container ul {
    list-style: none;
    padding: 0;
}
.contact-info-container li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.contact-info-container i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    body.show-nav {
        transform: translateX(200px);
    }
    nav {
        width: 200px;
    }
    header h1 {
        font-size: 1.8rem;
    }
    .footer-container, .about-section, .contact-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-image {
        order: -1;
        margin-bottom: 1.5rem;
    }
    .footer-info {
        margin-bottom: 2rem;
    }
}
