:root {
  --primary-color: #ef7a12;
  --text-color: #333;
  --bg-color: #fff;
  --dark-bg: #111;
  --light-gray: #f4f4f4;
  --white: #fff;

  --font-heading: "Rajdhani", sans-serif;
  --font-body: "Barlow", sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
.main-header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0; /* Reduced padding for tighter header */
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    max-width: 150px; /* Smaller logo as requested */
    height: auto;
}

.logo h1 {
  font-size: 2rem;
  color: var(--dark-bg);
}

.logo span {
  color: var(--primary-color);
}

.main-nav ul {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark-bg);
  position: relative;
  font-family: var(--font-heading);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--dark-bg);
  transition: 0.3s;
}

/* Footer */
.main-footer {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 3rem 0 0;
  margin-top: auto;
  text-align: center; /* Center text by default */
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  justify-items: center; /* Center grid items horizontally */
  text-align: center;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center flex column items */
}

.footer-col h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center; /* Center the content */
    gap: 10px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--white);
    border-radius: 50%; /* Circular icons */
    font-size: 1.2rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
  background-color: #000;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* Page Components */
.section-padding {
    padding: 4rem 0;
}

.bg-light {
    background-color: var(--light-gray);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #d66a0d;
}

.btn-white {
    background-color: var(--white);
    color: var(--dark-bg);
}

.btn-white:hover {
    background-color: var(--light-gray);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../img/home/hero_bg.jpeg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 10rem 0;
    text-align: center;
    height: 700px
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* Page Header */
.page-header {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Service Cards (Home) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
    border-bottom: 3px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-5px);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-bg);
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

/* About Page */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.img-placeholder {
    background-color: #ddd;
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    font-weight: 600;
    border: 2px dashed #999;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
}

.aristotle-quote {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.8rem;
    padding: 2rem;
    border-left: 5px solid var(--primary-color);
    border-right: 5px solid var(--primary-color);
    background-color: var(--white);
    color: var(--dark-bg);
}

.aristotle-quote p {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.aristotle-quote .highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.aristotle-quote cite {
    display: block;
    font-size: 1.2rem;
    font-style: normal;
    color: #666;
    font-family: var(--font-body);
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}

.stat-item .number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.stat-item .label {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: #777;
    margin-top: 2rem;
}

/* Services Page & Carousel */
.service-details {
    padding: 4rem 0;
}

.service-block {
    margin-bottom: 5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 3rem;
}

.service-block:last-child {
    border-bottom: none;
}

.service-block h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background-color: #f0f0f0;
    border-radius: 8px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

/* Placeholder styles for slides */
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide.placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ddd;
    color: #555;
    font-weight: 600;
    font-size: 1.2rem;
    border: 1px solid #ccc;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: 0.3s;
}

.carousel-btn:hover {
    background-color: var(--primary-color);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

@media (max-width: 768px) {
    .contact-container,
    .service-content {
        grid-template-columns: 1fr;
    }
    
    .carousel-container {
        height: 250px;
    }
}

/* Professional Contact Page Styles */
.contact-grid-professional {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.info-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateX(5px);
}

.info-card .icon-box {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.info-card p {
    margin: 0;
    font-size: 1rem;
    color: #555;
    font-family: var(--font-body);
}

.info-card a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.info-card a:hover {
    color: var(--primary-color);
}

.social-connect {
    margin-top: 2rem;
}

.social-connect h3 {
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
    min-height: 450px;
}

@media (max-width: 768px) {
    .contact-grid-professional {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .map-wrapper {
        min-height: 300px;
    }
}
