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

:root {
  /* Brand Colors */
  --primary-color: #2c3e50;       /* dark blue-gray */
  --secondary-color: #8f8f8f;     /* light gray background */
  --gold-color: #ffcc00;          /* warm gold */
  --light-color: #ffffff;         /* white background */

  /* Alert Colors */
  --success-bg: #d4edda;
  --success-text: #155724;
  --error-bg: #f8d7da;
  --error-text: #721c24;
  --warning-bg: #fff3cd;
  --warning-text: #856404;

  /* Fonts */
  --font-main: 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Playfair Display', serif;
  --font-company: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  /* Sizing and Spacing */
  --border-radius: 10px;
  --max-width: 1980px;
  --popup-width: 400px;

  /* Shadows */
  --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.2);
  --shadow-strong: 0 4px 15px rgba(0, 0, 0, 0.3);

  /* Transitions */
  --transition-speed: 0.3s;

  /* Special Colors */
  --highlight-letter: #b22222; /* Firebrick (deep red) */
}

/* Global Resets & Base */

body {
  font-family: var(--font-main);
  background-color: var(--light-color);
  color: var(--primary-color);
  line-height: 1.6;
}
a {
  color: var(--gold-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}
a:hover {
  color: var(--primary-color);
}

/* Header */

.site-header {
  background-color: var(--primary-color);
  border-bottom: 2px solid var(--gold-color);
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 50px;
}
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

}

.logo a img {
  height: 80px;
  width: 80px;
  object-fit: contain;
  border-radius: 50%;
  transition: transform var(--transition-speed) ease;
  vertical-align: middle;
}

.logo a:hover img {
  transform: scale(1.05);
}

.company-name {
  font-size: 1.8rem;
  letter-spacing: 3px;
  color: var(--gold-color);
  font-weight: 700;
  font-family: var(--font-company);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.company-name::first-letter {
  color: var(--highlight-letter);
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.main-nav ul li a {
  font-weight: 600;
  padding: 0.5rem;
  position: relative;
  font-family: var(--font-main);
  transition: color var(--transition-speed);
}

.main-nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--gold-color);
  bottom: -4px;
  left: 0;
  transition: width var(--transition-speed) ease;
}

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

.highlight-text{
  background-color: var(--highlight-letter);
  color: var(--light-color); 
  font-size: 1.3rem;
  border-radius: 1rem;

}


/* User Dropdown */

.user-dropdown {
  position: relative;
}

.user-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--light-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  min-width: 150px;
  z-index: 1000;
  padding: 0.5rem 0;
  flex-direction: column;
}



.user-badge {
  background-color: var(--primary-color);
  color: var(--gold-color);
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-main);
}

.dropdown-icon {
  transition: transform var(--transition-speed);
}

.user-dropdown.active .dropdown-icon {
  transform: rotate(180deg);
}




/* Slider */
.slider {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.slide {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity var(--transition-speed) ease-in-out;
}

.slide::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.slide.active {
  opacity: 1;
  position: relative;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
  border: none;
  padding: 0.5rem 1rem;
  color: var(--light-color);
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
  border-radius: calc(var(--border-radius) / 2);
  font-family: var(--font-main);
  transition: background-color var(--transition-speed);
}

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

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

.slider-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}



/* greet */
.slider-overlay {
  width: 70%;
  position: absolute;
  top: 30px;
  left: 50%; 
  transform: translateX(-50%); 
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 1rem 3rem;
  z-index: 10;
  background-color: var(--primary-color);
  border-radius: 10rem;
}

.welcome-text {
  color: var(--light-color);
  animation: fadeInUp var(--transition-speed) ease-out both;
}

.welcome-text h1 {
  font-size: 5rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--light-color);
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  animation: fadeInSlide var(--transition-speed) ease-out both;
}

.brand-name {
  color: var(--gold-color);
  font-weight: 700;
  font-family: var(--font-company);
}

.brand-name .highlight {
  color: var(--light-color);
  background: linear-gradient(to right, var(--gold-color), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.quote {
  font-size: 2rem;
  font-weight: 500;
  font-family: var(--font-main);
}

@keyframes fadeInSlide {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Popup */
.popup {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 120px;
  left: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--transition-speed) ease, visibility var(--transition-speed);
  z-index: 99;
}
.popup.active {
  visibility: visible;
  opacity: 1;
}
.logo-pop{
  display: flex;
  flex-direction: column;
}
.popup-content {
  background: var(--light-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: var(--popup-width);
  box-shadow: var(--shadow-strong);
  text-align: center;
  position: relative;
}

.close-btn {
  position: absolute; 
  top: 10px;
  right: 15px;
  font-size: 32px;
  cursor: pointer;
  color: var(--error-text);
  z-index: 10; 
}
.popup-content h3 {
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  color: var(--primary-color);
}
.popup-content input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--secondary-color);
  border-radius: var(--border-radius);
  font-family: var(--font-main);
}
.popup-content button {
  width: 100%;
  padding: 0.75rem;
  background: var(--gold-color);
  border: none;
  border-radius: var(--border-radius);
  color: var(--light-color);
  font-weight: bold;
  cursor: pointer;
  font-family: var(--font-main);
  transition: background var(--transition-speed) ease;
}
.popup-content button:hover {
  background: var(--primary-color);
}


/* errors - success- messages */

/* Alert Messages (Success, Error, Warning) */

ul.messages.messages-success {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  padding: 0;
  margin: 0;
  list-style: none;
  width: max-content;
  max-width: 90%;
  text-align: center;
}

ul.messages.messages-success li {
  background: var(--success-bg);
  color: var(--success-text);
  padding: 12px 20px;
  border-radius: var(--border-radius);
  font-weight: 500;
  box-shadow: var(--shadow-light);
  margin: 10px auto;
}

ul.messages.global-messages {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 0;
  margin: 0;
  list-style: none;
}

ul.messages li {
  display: inline-block;
  background: var(--error-bg); /* Default to error */
  color: var(--error-text);
  padding: 10px 15px;
  border-radius: calc(var(--border-radius) * 0.5);
  font-weight: 500;
  margin-bottom: 5px;
}

ul.messages li.success {
  background: var(--success-bg);
  color: var(--success-text);
}

ul.messages li.warning {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.error {
  background: var(--error-bg);
  color: var(--error-text);
  padding: 6px 10px;
  border-radius: calc(var(--border-radius) * 0.4);
  font-size: 0.9em;
  margin-bottom: 1rem;
}
.login{
  margin-top: 1rem;
}

/* errors - success- messages */


/* Footer */
.site-footer {
  background: var(--primary-color);
  color: var(--light-color);
  padding: 3rem 1.5rem 1rem;
  font-family: var(--font-main);
  border-top: 4px solid var(--primary-color);
  box-shadow: var(--shadow-medium);
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-about,
.footer-links,
.footer-contact {
  flex: 1 1 250px;
  min-width: 200px;
}

.footer-about h4,
.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--gold-color);
  margin-bottom: 1rem;
  position: relative;
}

.footer-about h4::after,
.footer-links h4::after,
.footer-contact h4::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
  margin-top: 0.3rem;
  border-radius: 2px;
}

.footer-about p {
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a {
  color: var(--light-color);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--transition-speed) ease;
}

.footer-links ul li a:hover {
  color: var(--primary-color);
}

.footer-contact p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.footer-contact p i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.85rem;
  opacity: 0.8;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* Optional: keep for subtle line */
}

/* +++++++++++++++   contact +++++++++++++++++++ */

.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically if section has height */
    text-align: center;
    padding: 40px 20px;
    
}
.calling-icon{
  font-size: 3rem;
}
.contact-box {
    margin-bottom: 40px;
    max-width: 800px;
    width: 100%;
    border: 2px solid var(--secondary-color);
    padding: 1rem;
}

.contact-box h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-box p {
    font-size: 2rem;
    color: #666;
    margin-bottom: 20px;
}

.contact-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin: 8px 0;
    color: #333;
}

.contact-detail i {
    margin-right: 10px;
    font-size: 1.3rem;
    color: #007BFF; /* Optional: blue icon */
}


/* +++++++++++++++   contact +++++++++++++++++++ */


/* +++++++++++++++   About +++++++++++++++++++ */
.about-section {
    text-align: center;
    padding: 20px;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.about-title h1 {
    font-size: 2.5em;
    margin: 20px 0 10px;
}

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

/* +++++++++++++++   About +++++++++++++++++++ */


/* +++++++++++++++   Project +++++++++++++++++++ */
.container-projectT { 
  max-width: 70%; 
  margin: auto; 
  padding: 30px 20px; 
  text-align: center; 
}
.heading { 
  font-size: 2.5em; 
  margin-bottom: 10px; 
}
.description { 
  margin-bottom: 30px; 
}


.Portfolio {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.card-porfolio {
  flex: 1 1 calc(50% - 0.5rem); /* 50% minus half the gap */
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  max-width: calc(50% - 0.5rem); /* prevent stretching beyond 50% */
}
.card-porfolio:hover {
  transform: translateY(-5px);
}
.card-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.card-det {
  padding: 15px;
}
.card-det h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.card-det p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 10px;
}
.card-det a {
  color: #1d4ed8;
  text-decoration: underline;
  font-weight: 500;
}

.container-projectM{
 background-color: var(--secondary-color);
}
.feature-project{
  max-width: 70%; 
  margin: auto; 
  padding: 30px 20px; 
  text-align: center; 

}
.swiper {
  width: 100%;

}
.swiper-wrapper{
  display: flex;
  align-items: center;
  justify-content: space-between;

}

.swiper-item .swiper-link{
  width: 400px;
  user-select: none;
  display: block;
  background: var(--light-color);
  padding: 18px;
  border-radius: 12px;
  border: 2px solid transparent;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
  transition: .02s ease;
}
.swiper-item .swiper-link:hover{
  border-color: var(--gold-color);
}

.swiper-link .swiper-image{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}
.swiper-link .badge{
  color: var(--secondary-color);
  margin: 16px 0 18px;
  padding: 8px 16px;
  font-size: .95rem;
  font-weight: 500;
  background: var(--primary-color);
  width: fit-content;
  border-radius: 50px;
}
.swiper-link .swiper-title{
  font-size: 1.19rem;
  color: var(--primary-color);
  font-weight: 600;
}

.swiper-button-prev,
.swiper-button-next {
  color: var(--light-color);

  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}




.project-fsection {

  background-color: #f9f9f9;
  width: 70%;
  text-align: center;
  margin:50px auto;
}

.project-fwrapper{
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  align-items: stretch;
}

.project-image {
  flex: 0 0 60%;
}

.project-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.project-form {
  flex: 0 0 40%;
  background-color: var(--primary-color);
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.project-form .errorlist {
  color: #d93025;
  margin-top: 6px;
  font-size: 0.9rem;
  list-style: none;
  padding-left: 0;
}

.quote{
  color: var(--light-color);
}
.quote p{
  font-size: 1rem;
  margin-bottom: 1rem;
}


.project-form  label {
  display: block;
  font-weight: 600;
  margin: 1rem;
  color: var(--light-color);

}

.project-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}


.project-form button {
  margin: 2rem 0;
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  background-color: var(--highlight-letter);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.project-form p{
  color: white;
}


.project-form button:hover {
  background-color: var(--highlight-letter);
}



/* +++++++++++++++   Project +++++++++++++++++++ */

/* +++++++++++++++   Services +++++++++++++++++++ */

.services-section {
  padding: 60px 20px;
  background: #f7f7f7;
  text-align: center;
}

.services-section .heading {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--primary-color, #222);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.service-card .icon {
  font-size: 2.5rem;
  color: var(--primary-color, #007bff);
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 1rem;
  color: #666;
}

/* +++++++++++++++   Services +++++++++++++++++++ */


@media (max-width: 360px) {

  /* header */
  .header-flex {
  flex-direction: column;
  }
  .logo {
    flex-direction: column;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  /* header */

  /* greet */
  .slider-overlay {
    width: 100%;
    padding: .5rem .5rem;
  }
  .welcome-text h1 {
    font-size: 1.5rem;
  }
  .hero-title {
    font-size: 1rem;
  }
  .quote {
    font-size: 1rem;
  }
  /* greet */
  .popup {
  top: 100px;
  }
  

}


@media (min-width: 361px) and (max-width: 575px){
  /* header */
  .header-flex {
  flex-direction: column;
  }
  .logo {
    flex-direction: column;
  }
  .main-nav ul {
    flex-direction: column;
    gap: .55rem;
  }
  /* header */
  /* greet */
  .slider-overlay {
    width: 100%;
    padding: .5rem .5rem;
  }
  .welcome-text h1 {
    font-size: 2rem;
  }
  .hero-title {
    font-size: 1rem;
  }
  .quote {
    font-size: 1rem;
  }
  /* greet */
  /* popup */
  .popup {
  top: 100px;
  }
  /* popup */
  /* project */
  .container-projectT{
    width: 90%;
    max-width: 95%;
  }
  .feature-project {
    width: 90%;
    max-width: 95%;
    padding: 10px 10px;
}
  .Portfolio{
    flex-direction: column;
  }
  .card-porfolio{
    flex: 1 1 calc(100%);
    max-width: 100%;
  }
  .project-fsection {
    width: 95%;
}
  .project-fwrapper{
    flex-direction: column;
  }
  
  /* project */
}
@media (min-width: 576px) and (max-width: 767px){
  /* header */
  .header-flex {
  flex-direction: column;
  }
  .logo {
    flex-direction: column;
  }
  .main-nav ul{
    gap: .05rem;
  }
  .highlight-text{
    font-size: 1rem;
  }
  /* header */
  /* greet */
  .slider-overlay {
    width: 100%;
    padding: .5rem .5rem;
  }
  .welcome-text h1 {
    font-size: 3rem;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .quote {
    font-size: 1.5rem;
  }
  /* greet */
  /* popup */
  .popup {
  top: 130px;
  }
  /* popup */

}

@media (min-width: 768px) and (max-width: 1024px){
  /* header */
  .header-flex {
  flex-direction: column;
  
  }
  /* header */
  /* greet */
  .slider-overlay {
    width: 100%;
    padding: .5rem .5rem;
  }
  .welcome-text h1 {
    font-size: 3.5rem;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .quote {
    font-size: 1.5rem;
  }
  /* greet */
  /* popup */
  .popup {
  top: 100px;
  }
  /* popup */
  
}


@media (min-width: 1025px) and (max-width: 1366px){
  /* greet */
  .slider-overlay {
    width: 100%;
    padding: .5rem .5rem;
  }
  .welcome-text h1 {
    font-size: 5rem;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .quote {
    font-size: 1.5rem;
  }
  /* greet */
  /* popup */
  .popup {
  top: 100px;
  }
  /* popup */

}
@media (min-width: 1367px) and (max-width: 1600px){
   .slider-overlay {
    width: 100%;
    padding: .5rem .5rem;
  }

}
@media (min-width: 1601px) and (max-width: 1920px){
    
    
}
@media (min-width: 1921px) {

    
}


