/*──────────────────────────────────────────────────────────────────────────────
  THEME VARIABLES
──────────────────────────────────────────────────────────────────────────────*/
:root {
  /* — light theme — */
  --nav-link: var(--primary-dark);
  --toggle-icon: var(--primary-dark);
  --primary:        #2E86AB;
  --primary-light:  #5AB9EA;
  --primary-dark:   #1A5276;
  --secondary:      #4ECDC4;
  --accent:         #FF6B6B;

  --bg:             #F7F9FC;
  --text:           #2D3748;
  --nav-bg:         rgba(247,249,252,0.95);
  --hero-overlay:   rgba(0,0,0,0.6);

  --light-gray:     #E2E8F0;
  --gray:           #A0AEC0;
  --dark-light:     #E2E8F0;    /* used for alternating section backgrounds */

  --shadow-lg:      0 10px 25px rgba(0,0,0,0.10), 0 5px 10px rgba(0,0,0,0.05);
  --shadow-xl:      0 20px 40px rgba(0,0,0,0.15);

  /*--transition:     all 0.3s cubic-bezier(0.25,0.8,0.25,1); */

  --clr-bg:   #f9fafb;
  --clr-text: #1f2937;
  --clr-muted:#6b7280;
  --clr-primary: #00d5cf;
  --clr-primary-light: #33e8e0;
  --clr-card-bg:       #fff;
  --clr-border:        rgba(0, 0, 0, 0.1);

  /* Fonts */
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter',   sans-serif;
  /* Shadows & transition */
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 20px rgba(0,0,0,0.1);
  --transition: 0.4s ease-out; 

}

[data-theme="dark"] {
  /* — dark theme overrides — */
  --nav-link: #fff;
  --toggle-icon: #fff;

  --primary:       #3399ff;
  --primary-light: #66b2ff;
  --primary-dark:  rgb(0, 77, 153);
  --secondary:     #00cc99;
  --accent:        #FF6B6B;

  --bg:            #0a192f;
  --text:          #e6f1ff;
  --nav-bg:        rgba(10,25,47,0.9);
  --hero-overlay:  rgba(0,0,0,0.6);

  --light-gray:    #1A202C;
  --gray:          #8892B0;
  --dark-light:    #1A202C;

  --clr-bg:   #0b1a36;
  --clr-text: #e5e7eb;
  --clr-muted:#9ca3af;

  --clr-card-bg:     #112145;
  --clr-border:      rgba(255,255,255,0.1);

  --shadow-sm:       0 2px 8px rgba(0,0,0,0.7);
  --shadow-md:       0 8px 20px rgba(0,0,0,0.6);

}

/*──────────────────────────────────────────────────────────────────────────────
  BASE RESET & TYPOGRAPHY
──────────────────────────────────────────────────────────────────────────────*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--primary-dark);
}
h1, h2, h3, h4 {
  font-family: 'Arial', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary);
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--gray);
}
/*──────────────────────────────────────────────────────────────────────────────
  BUTTONS, CONTAINERS & UTILITIES
──────────────────────────────────────────────────────────────────────────────*/
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}
.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background-color: var(--primary);
  color: #fff;
}
.section {
  padding: 4rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.section:nth-child(even) {
  background-color: var(--dark-light);
}
.text-center {
  text-align: center;
}

.section-divider {
  width: 100%;
  height: 4px;
  margin: clamp(2rem, 5vw, 4rem) 0;
  background: linear-gradient(
    90deg,
    var(--clr-primary) 0%,
    var(--secondary)   100%
  );
}

/*──────────────────────────────────────────────────────────────────────────────
  NAVBAR
──────────────────────────────────────────────────────────────────────────────*/
nav {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: transparent;
  backdrop-filter: blur(8px);
  padding: 1.5rem 2rem;
  transition: background-color 0.3s, padding 0.3s;
  z-index: 1000;
}
nav.scrolled {
  background-color: var(--nav-bg);
  padding: 1rem 2rem;
  box-shadow: var(--shadow-md);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
}
.nav--logo {
  width: 40px;
  height: auto;
  margin-right: 0.5rem;
}
.nav-links {
  display: flex;
  list-style: none;
}
.nav-links li {
  margin-left: 2rem;
}
nav a {
  color: #fff;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  color: var(--nav-link);
  transition: color 0.3s;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background-color: var(--secondary);
  transition: width 0.3s;
}
nav a:hover::after {
  width: 100%;
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-dark);
  cursor: pointer;
}
/* theme toggle button */
#theme-toggle {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform 0.3s;
  color: var(--toggle-icon);}

  #theme-toggle:hover {
  transform: rotate(20deg);
}

/*──────────────────────────────────────────────────────────────────────────────
  HERO SECTION
──────────────────────────────────────────────────────────────────────────────*/
#hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 0 2rem;
  background:
   /* linear-gradient(
      to bottom,
      rgba(0,0,0,0.1),
      rgba(0,0,0,0.2)
    ), */
    url('images/HeroBackGround.png')
    no-repeat center/cover;
  color: #fff;
  text-align: center;
  transition: background 0.3s;
}
.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.hero-mission {
  background-color:  rgb(0, 77, 153, 0.2);
  padding: 2rem;
  border-radius: 12px;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--secondary);
  position: relative;
  overflow: hidden;
}

.hero-mission:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--secondary);
}
.hero-content h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  margin-bottom: 1rem;
}
.hero-content h1 span {
  display: inline-block;           /* so you can add padding */
  padding: 0.1em 0.4em;
  background: linear-gradient(
    to right,
    rgba(255,215,0,0) 0%,   /* fully transparent gold at the very edge */
    #FFD700           15%,  /* solid gold kicks in at 15% */
    #FF8C00           85%,  /* switch to orange at 85% */
    rgba(255,140,0,0) 100%   /* fade back to transparent orange at the far edge */
  );
  border-radius: 70px;  
  box-shadow: 0 0 8px rgba(255,140,0,0.6);
  /*  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; */
}
.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.9);
  max-width: 700px;
  margin: 0 auto 2rem;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.hero-btns .btn {
  min-width: 180px;
}

/* scroll-down cue */
.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 10px); }
}

/*──────────────────────────────────────────────────────────────────────────────
  ABOUT, TECHNOLOGY, CONTACT, ETC.
  (keep your existing rules here…)
──────────────────────────────────────────────────────────────────────────────*/
 /* About Section */
 .about-section {
  background: var(--clr-bg);
  color: var(--clr-text);
  padding: clamp(3rem, 8vw, 6rem) 1rem;
  /*font-family: var(--font-body);*/
}

.about-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto‐fit, minmax(320px,1fr));
  gap: clamp(2rem,6vw,4rem);
  align-items: center;
}

/* 3) Heading */
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 2.5rem);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 50px; height: 4px;
  background: var(--clr-primary);
  border-radius: 2px;
}

/* 4) Lead paragraph */
.lead {
  font-size: clamp(1.05rem, 2.5vw, 1.125rem);
  line-height: 1.6;
  color: var(--clr-text);
}

/* 5) Button */
.btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: var(--transition);
}
.btn-primary {
  background: var(--clr-primary);
  color: #fff;
}
.btn-primary:hover {
  background: #00b8ac;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* 6) Mission card */
.card {
  background: var(--clr-bg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  position: relative;
  border-left: 4px solid var(--clr-primary);
  overflow: hidden;
}
.card::before {
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(
     to bottom right,
     var(--clr-primary) 0%,
     transparent 65%
  );
  mix-blend-mode: multiply;
  opacity: 0.15;
  pointer-events:none;
}

/* 7) Image wrapper */
.about-img-wrapper img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.about-img-wrapper img:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 30px rgba(0,0,0,0.15);
}

/* 8) Scroll-reveal helper */
.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
} 
.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 9) Responsive tweaks */
@media (max-width: 640px) {
  .about-text { text-align: center; }
  .about-container { text-align: center; }
  .btn { margin-left: auto; margin-right: auto; }
}

 /* Technology Section */
 /* 2) Section & overall layout */
.tech-section {
  background: var(--light-gray);
  color: var(--clr-text);
  padding: clamp(4rem, 10vw, 8rem) 1rem;
  /*font-family: var(--font-body);*/
}
.tech-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

/* 3) Header styles */
.tech-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 2.5rem);
  display: inline-block;
  position: relative;
  margin-bottom: .5rem;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 50px; height: 4px;
  background: var(--clr-primary);
  border-radius: 2px;
}
.section-subtitle {
  color: var(--clr-muted);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.6;
}

/* 4) Tech grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2rem;
}

/* 5) Cards */
.tech-card {
  background: var(--clr-card-bg);
  border-radius: 12px;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition),
              box-shadow var(--transition),
              border-color var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tech-icon {
  width: 3.5rem; height: 3.5rem;
  background: var(--clr-primary);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  transition: background var(--transition);
}

.tech-title {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: .75rem;
}

.tech-text {
  flex: 1;
  color: var(--clr-muted);
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.6;
}

/* 6) Hover + auto-triggered lift */
.tech-card:hover,
.tech-card.in-view {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-primary);
}
.tech-card:hover .tech-icon,
.tech-card.in-view .tech-icon {
  background: var(--clr-primary-light);
}

/* 7) Disable real hover on touch devices */
@media (hover: none) and (pointer: coarse) {
  .tech-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--clr-border);
  }
}

/* 8) Scroll-reveal helper */
.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 9) Mobile-specific tweaks */
@media (max-width: 600px) {
  .tech-card {
    padding: clamp(1.5rem, 5vw, 2rem);
  }
}

/* Agri Section */

#agriculture {
  position: relative;
  background: url('images/farmWsolar.png') center/cover no-repeat;
  padding: 4rem 2rem;
}

#agriculture::before {
  content: '';
  position: absolute;
  inset: 0;                      /* top/right/bottom/left = 0 */
  background: rgba(10, 20, 30, 0.2);
  /* you can tweak opacity for darker/lighter */
  z-index: 1;
}

/* 2) Pull the container above the overlay */
#agriculture .container {
  position: relative;
  z-index: 2;
}

/* 3) Glassmorphism cards */
#agriculture .tech-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  /* keep your existing padding/margin/etc here */
}

/* (optional) White icons & headings for max contrast 
#agriculture .tech-card h3,
#agriculture .tech-card p,
#agriculture .tech-icon i {
  color: #fff;
} */

#agriculture p{
  color:azure ;
}

/*Solar Section*/
/* 1) Mosaic grid wrapper */
.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  padding: 0 1rem;     /* keep cards from touching the viewport edge */
  max-width: 1200px;   /* optional—centers your grid on very wide screens */
  margin-left: auto;
  margin-right: auto;
}

/* 2) Base card setup */
.mosaic-grid .tech-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 2rem;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  
}

#tech-grid mosaic-grid p{
  color:#E2E8F0;
}

/* 3) Slice background image */
.mosaic-grid .tech-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/solarskyview.png') no-repeat;
  background-size: 300% 200%; /* 3 cols × 2 rows */
  z-index: 0;
}

/* 4) Dark overlay for legibility */
.mosaic-grid .tech-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(9,16,31,0.2);
  z-index: 1;
}

/* 5) Bring text & icons above the pseudos */
.mosaic-grid .tech-card > * {
  position: relative;
  z-index: 2;
}

/* 6) Correct slice selectors */
.mosaic-grid .tech-card.slice-1::before { background-position:   0%   0%; }
.mosaic-grid .tech-card.slice-2::before { background-position:  33.33% 0%; }
.mosaic-grid .tech-card.slice-3::before { background-position:  66.66% 0%; }
.mosaic-grid .tech-card.slice-4::before { background-position:   0%  50%; }
.mosaic-grid .tech-card.slice-5::before { background-position:  33.33% 50%; }
.mosaic-grid .tech-card.slice-6::before { background-position:  66.66% 50%; }

/* IT Services */
#it-services.it-services-section {
  position: relative;
  background: var(--clr-bg);
  color: var(--clr-text);
  padding: clamp(4rem, 10vw, 8rem) 1rem;
  overflow: hidden;
  /*font-family: var(--font-body);*/
}

#it-services.it-services-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 120%;
  height: 160px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'><path fill='%23ffffff' fill-opacity='0.3' d='M0,128L48,133.3C96,139,192,149,288,165.3C384,181,480,203,576,197.3C672,192,768,160,864,160C960,160,1056,192,1152,202.7C1248,213,1344,203,1392,197.3L1440,192L1440,0L1392,0C1344,0,1248,0,1152,0,1056,0,960,0,864,0,768,0,672,0,576,0,480,0,384,0,288,0,192,0,96,0,48,0,0,0Z'/></svg>") no-repeat center top/cover;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

#it-services .it-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

#it-services .it-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

#it-services .section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 2.5rem);
  display: inline-block;
  position: relative;
  margin-bottom: 0.5rem;
}

#it-services .section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 50px;
  height: 4px;
  background: var(--clr-primary);
  border-radius: 2px;
}

#it-services .section-subtitle {
  color: var(--clr-muted);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.6;
}

#it-services .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2rem;
}

#it-services .service-card {
  background: var(--clr-card-bg);
  border-radius: 12px;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition),
              box-shadow var(--transition),
              border-color var(--transition);
  display: flex;
  flex-direction: column;
  z-index: 1;
}

#it-services .service-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--clr-primary);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  transition: background var(--transition);
}

#it-services .service-title {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: 0.75rem;
}

#it-services .service-text {
  flex: 1;
  color: var(--clr-muted);
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.6;
}

#it-services .service-card:hover,
#it-services .service-card.in-view {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-primary);
}

#it-services .service-card:hover .service-icon,
#it-services .service-card.in-view .service-icon {
  background: var(--clr-primary-light);
}

@media (hover: none) and (pointer: coarse) {
  #it-services .service-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--clr-border);
  }
}

#it-services .animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#it-services .animate.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  #it-services .service-card {
    padding: clamp(1.5rem, 5vw, 2rem);
  }
}

/* Partners Section */
.partners-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
}

.partner-logo {
  width: 150px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.partner-logo:hover {
  filter: grayscale(0);
  opacity: 1;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* IT Services Section */



/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background-color: var(--dark);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-img {
  height: 250px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  margin-bottom: 0.5rem;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: var(--gray);
  font-size: 0.9rem;
}

/*──────────────────────────────────────────────────────────────────────────────
  CONTACT SECTION (scoped under #contact)
──────────────────────────────────────────────────────────────────────────────*/

#contact.contact-section {
  position: relative;
  background: var(--clr-bg);
  color: var(--clr-text);
  padding: clamp(4rem, 10vw, 8rem) 1rem;
  font-family: var(--font-body);
}

#contact .contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

/* Header */
#contact .contact-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
#contact .section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 2.5rem);
  position: relative;
  display: inline-block;
  margin-bottom: .5rem;
}
#contact .section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 50px; height: 4px;
  background: var(--clr-primary);
  border-radius: 2px;
}
#contact .section-subtitle {
  color: var(--clr-muted);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.6;
}

/* Two-column layout */
#contact .contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px,1fr));
  gap: clamp(2rem,4vw,3rem);
  align-items: start;
}

/* Left side */
#contact .contact-info {
  background: var(--clr-card-bg);
  border-radius: 12px;
  padding: clamp(2rem,4vw,3rem);
  box-shadow: var(--shadow-sm);
}
#contact .info-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem,3vw,1.8rem);
  margin-bottom: 1rem;
}
#contact .contact-details {
  margin-bottom: 2rem;
}
#contact .contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}
#contact .contact-icon {
  font-size: 1.4rem;
  color: var(--clr-primary);
  margin-right: 1rem;
  flex-shrink: 0;
}
#contact .contact-item h4 {
  font-size: 1rem;
  margin-bottom: .25rem;
  color: var(--clr-text);
}
#contact .contact-item p {
  color: var(--clr-muted);
  font-size: .95rem;
  line-height: 1.4;
}

/* Social buttons */
#contact .social-links {
  display: flex;
  gap: 1rem;
}
#contact .social-link {
  width: 40px; height: 40px;
  background: var(--clr-card-bg);
  border: 1px solid var(--clr-border);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--clr-primary);
  transition: var(--transition);
}
#contact .social-link:hover {
  background: var(--clr-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Right side (form) */
#contact .contact-form-wrapper {
  background: var(--clr-card-bg);
  border-radius: 12px;
  padding: clamp(2rem,4vw,3rem);
  box-shadow: var(--shadow-sm);
}
#contact .form-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem,3vw,1.8rem);
  margin-bottom: 1.25rem;
}
#contact .form-group {
  margin-bottom: 1.5rem;
}
#contact .form-group label {
  display: block;
  margin-bottom: .5rem;
  font-weight: 500;
  color: var(--clr-text);
}
#contact .form-group input,
#contact .form-group textarea {
  width: 100%;
  padding: .8rem;
  font: inherit;
  border: 1px solid var(--clr-border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--clr-text);
  transition: var(--transition);
}
#contact .form-group input:focus,
#contact .form-group textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 2px rgba(0,213,207,0.2);
}
#contact .form-group textarea {
  min-height: 140px;
  resize: vertical;
}
#contact .btn-primary {
  display: inline-block;
  padding: .75rem 2rem;
  background: var(--clr-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: var(--transition);
}
#contact .btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Scroll-reveal helpers */
#contact .animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
#contact .animate.visible {
  opacity: 1;
  transform: translateY(0);
}
/* optional delays */
#contact .delay-1 { transition-delay: .2s; }
#contact .delay-2 { transition-delay: .4s; }

/* Responsive */
@media (max-width: 640px) {
  #contact .contact-grid {
    grid-template-columns: 1fr;
  }
  #contact .contact-header,
  #contact .contact-info,
  #contact .contact-form-wrapper {
    text-align: center;
  }
}


/*──────────────────────────────────────────────────────────────────────────────
  FOOTER
──────────────────────────────────────────────────────────────────────────────*/
#footer.footer-section {
  position: relative;
  background: var(--clr-bg);
  color: var(--clr-text);
  padding: clamp(4rem, 10vw, 6rem) 1rem 2rem;
  overflow: hidden;
  font-family: var(--font-body);
}

/* Wave divider at top */
#footer .footer-wave {
  position: absolute;
  top: 0;
  left: 50%;
  width: 120%;
  height: 120px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'><path fill='%23ffffff' fill-opacity='0.3' d='M0 0L1200 0 1200 100C900 80 300 120 0 100z'/></svg>") no-repeat center top/cover;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}


/* Footer grid */
#footer .footer-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* Branding column */
#footer .footer-brand {
  text-align: center;
}
#footer .footer-logo-img {
  width: 80px;
  margin-bottom: 1rem;
}
#footer .footer-brand h3 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}
#footer .footer-brand span {
  color: var(--clr-primary);
}
#footer .footer-tagline {
  color: var(--clr-muted);
  font-size: clamp(0.9rem,2vw,1rem);
  line-height: 1.4;
}

/* Nav column */
#footer .footer-nav h4 {
  font-family: var(--font-head);
  font-size: clamp(1.1rem,2.5vw,1.25rem);
  margin-bottom: 1rem;
}
#footer .footer-nav ul {
  list-style: none;
}
#footer .footer-nav li {
  margin-bottom: 0.5rem;
}
#footer .footer-nav a {
  color: var(--clr-text);
  transition: color var(--transition);
}
#footer .footer-nav a:hover {
  color: var(--clr-primary);
}

/* Social & legal column */
#footer .footer-social h4 {
  font-family: var(--font-head);
  font-size: clamp(1.1rem,2.5vw,1.25rem);
  margin-bottom: 1rem;
}
#footer .social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
#footer .social-link {
  width: 40px; height: 40px;
  background: var(--clr-card-bg);
  border: 1px solid var(--clr-border);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--clr-primary);
  transition: var(--transition);
}
#footer .social-link:hover {
  background: var(--clr-primary);
  color: #fff;
  transform: translateY(-2px);
}
#footer .copyright {
  font-size: 0.9rem;
  color: var(--clr-muted);
}

/* Scroll-reveal helper (optional) */
#footer .animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
#footer .animate.visible {
  opacity: 1;
  transform: translateY(0);
}
/* delays */
#footer .delay-1 { transition-delay: 0.2s; }
#footer .delay-2 { transition-delay: 0.4s; }

/* Responsive: stack on small */
@media (max-width: 640px) {
  #footer.footer-section {
    padding-top: 6rem; /* give wave room */
  }
  #footer .footer-container {
    text-align: center;
  }
  #footer .footer-nav ul,
  #footer .social-links {
    justify-content: center;
  }
}

/*──────────────────────────────────────────────────────────────────────────────
  RESPONSIVE BREAKPOINTS
──────────────────────────────────────────────────────────────────────────────*/

/* Animations */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/*.animate {
  animation: fadeInUp 0.8s ease forwards;
} */

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 70px; left: 0;
    width: 100%;
    height: calc(100% - 70px);
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    clip-path: circle(0 at 90% -10%);
    pointer-events: none;
    transition: clip-path 0.5s ease-out;
  }
  .nav-links.active {
    clip-path: circle(150% at 90% -10%);
    pointer-events: all;
  }
  .nav-links li {
    margin: 1rem 0;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-btns {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    max-width: 300px;
    margin-bottom: 1rem;
  }
}


@media (max-width: 576px) {
  .container {
      padding: 0 1.5rem;
  }
  
  h1 {
      font-size: 2rem;
  }
  
  h2 {
      font-size: 1.8rem;
  }
  
  .projects-grid {
      grid-template-columns: 1fr;
  }
}

/*──────────────────────────────────────────────────────────────────────────────
  MOBILE FIXES: prevent nav overlap, collapse About Us
  (activates on screens ≤768px)
──────────────────────────────────────────────────────────────────────────────*/
@media (max-width: 768px) {
  /* 1) Offset the entire page content for the fixed nav */
  body {
    /* adjust this value if your nav is taller/shorter */
    padding-top: 5rem;
  }

  /* 2) Shrink hero to viewport minus nav height */
  #hero {
    height: calc(135vh ) !important;
    padding-top: 4rem; /* remove any extra top padding */
  }

  /* 3) Collapse About Us into a single column */
  /* your HTML uses .about-content, so we target that */
  .about-content {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: clamp(1rem, 4vw, 2rem) !important;
  }

  .mosaic-grid {
    display: grid;
    grid-template-columns: minmax(250px,1fr);
    gap: clamp(2.5rem);
    margin-top: 3rem;
    padding: 0 1rem;     /* keep cards from touching the viewport edge */
    max-width: 800px;   /* optional—centers your grid on very wide screens */
    margin-left: auto;
    margin-right: auto;
  }
}
