:root {
  --primary: #111;
  --accent: #f04e31;
  --bg: #fff;
  --text: #333;
  --light: #f9f9f9;
}

body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
  transition: background-color 0.5s ease, color 0.5s ease;
}

body {
  font-family: "Open Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* Dark mode */
body.dark {
  background: #111;
  color: #eee;
}

body.dark nav {
  background: rgba(34, 34, 34, 0.95);
  color: #eee;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 12px;
}

body.dark nav .logo {
  color: #fff;
}
/* Default Light Mode */
.section.header h2 {
  color: #222 !important;
  transition: color 0.3s ease;
}

/* Dark Mode */
body.dark .section.header h2 {
  color: #eee !important;
}

/* Default Light Mode */
.about-section h2, .about-text {
  color: #222 ;
  transition: color 0.3s ease;
}

/* Dark Mode */
body.dark .about-section h2{
  color: #eee;
}

body.dark .nav-links a {
  color: #ccc;
}

body.dark .nav-links a:hover {
  color: var(--accent);
}

body.dark .cta-btn {
  background: var(--accent);
  color: #fff;
}

body.dark #theme-toggle {
  color: #fff;
}

body.dark .card,
body.dark .portfolio-item {
  background: #222;
  color: #eee;
}

body.dark #services {
  background: #111;
  color: #eee;
}

body.dark #services .card {
  background: #1c1c1c;
  color: #eee;
}

/* Header */
.header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4rem;
  color: var(--primary);
  position: relative;
}

.header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 1rem auto 0;
  border-radius: 3px;
}

/* Sections */
.section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease-in-out;
  padding: 4rem 2rem;
  text-align: center;
  margin: auto;
  max-width: 1200px;
}

.section.show {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar */
.navbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 12px;
}

.logo {
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

/* CTA Button */
.cta-btn {
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.cta-btn:hover {
  background: #d43b25;
}

/* Theme toggle button */
#theme-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 8rem 1rem;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('https://images.unsplash.com/photo-1573495783026-9a628c32fb3e?q=80&w=1469&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') center/cover no-repeat;
  text-align: center;
  color: #fff;
  position: relative;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btn {
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.hero-btn:hover {
  background: #d43b25;
}

/* About Section */
.about-section {
  padding: 1rem 1rem;
  color: var(--text);
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
  gap: 2rem;
}

.about-text {
  flex: 1 1 480px;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
  position: relative;
}

.about-text h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}

.about-text p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.resume-btn {
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}

.resume-btn:hover {
  background-color: #d43b25;
  transform: translateY(-2px);
}

.about-image {
  flex: 1 1 400px;
  text-align: center;
  margin-top: 70px;
}

.about-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Services Section */
#services {
  padding: 1rem 1.5rem;

  text-align: center;
  color: var(--text);
}

#services .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

#services .card {
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #555;
}

#services .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

#services .card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #222;
}

#services .card p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Portfolio Section */
#portfolio {
  padding: 1rem 1.5rem;
  text-align: center;
  color: var(--text);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-item {
  background: var(--bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
  width: 100%;
  display: block;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.portfolio-item h4 {
  font-size: 1.25rem;
  margin: 1rem 1rem 0.5rem;
  color: #222;
}

.portfolio-item p {
  font-size: 1rem;
  color: #555;
  margin: 0 1rem 1.5rem;
  line-height: 1.5;
}

.portfolio-btn {
  display: inline-block;
  margin: 0 1rem 1.5rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.portfolio-btn:hover {
  background: #d43b25;
}

/* Contact Section */
.contact-section {
  padding: 2rem 2rem;
  text-align: center;
}

.contact-section h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.contact-section p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  gap: 2rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  text-align: left;
}



.contact-column {
  border-radius: 12px;
  text-align: left;
}

/* Column headings */
.contact-column h3 {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.4rem;
}

/* Contact info */
.contact-info p {
  margin-bottom: 1.8rem;
  color: var(--text);
  font-size: 0.95rem;
}

.contact-info .socials {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-info .socials a {
  color: #444;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info .socials a:hover {
  color: var(--accent);
}

/* Newsletter */
.newsletter-column p {
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: #444;
}

.newsletter-form input {
  width: 100%;
  padding: 0.5rem;
  border-bottom: 0.5px solid #f04e31!important;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 1rem;
  border: none;
}

.newsletter-form button {
  width: 100%;
  background: var(--accent);
  color: #fff;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter-form button:hover {
  background: #d43b25;
}

/* Map */
.map iframe {
  width: 100%;
  height: 180px;
  border-radius: 8px;
}

/* Nav Links Column */
.nav-links-column ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.nav-links-column li a {
  text-decoration: none;
  color: #444;
  font-size: 1rem;
  padding: 0.2rem 0.4rem;
  display: inline-block;
  border-radius: 6px;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-links-column li a:hover {
  background: var(--accent);
  color: #fff;
}
/*blog*/
#blog{
  margin-top:-50px
}
#blog .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: -80px;
}

#blog .card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 1rem;
  text-align: left;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  background-color: #fff;
}

body.dark #blog .card {
  background-color: rgba(255, 255, 255, 0.05);
}

#blog .card img {
  width: 100%;
  object-fit: cover;
  height: 180px;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  transition: transform 0.3s ease;
}

#blog .card:hover img {
  transform: scale(1.05);
}


#blog .card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--accent);
  padding:0 1rem
}

#blog .card p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: #555;
   padding:0 1rem
}

#blog .card a {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background-color: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease;
  margin: 0 1rem 1rem;
  align-self: flex-start;
}

#blog .card a:hover {
  background-color: #c43e24;
}

/*mini hero*/
.mini-hero-cta {
  padding: 5rem 1rem;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
              url('https://images.unsplash.com/photo-1520596880803-6ea0113a42d1?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTJ8fGJsYWNrJTIwYW5kJTIwd2hpdGUlMjBwZXJzb258ZW58MHx8MHx8fDA%3D') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  background-attachment: fixed;
}

.mini-hero-cta .mini-hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.mini-hero-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.mini-hero-cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.mini-hero-cta .cta-button {
  background-color: #fff;
  color: var(--accent, #ff4081);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.mini-hero-cta .cta-button:hover {
  background-color: #000;
  color: #fff;
}

@media (max-width: 600px) {
  .mini-hero-cta h2 {
    font-size: 2rem;
  }

  .mini-hero-cta p {
    font-size: 1rem;
  }
}




/*testimonials*/
#testimonials {
  padding:1rem 1rem;
  text-align: center;
}

body.dark #testimonials {
  background-color: #1a1a1a;
}

.testimonials-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.testimonial {
   box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid var(--accent);
  padding: 2rem;
  border-radius: 10px;
  font-style: italic;
  transition: background 0.3s;
}

body.dark .testimonial {
  background: rgba(255, 255, 255, 0.06);
}

.testimonial p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.testimonial h4 {
  margin-top: 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent);
}


/* Footer */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--primary);
  color: #eee;
  flex-wrap: wrap;
}

footer p {
  margin: 0;
  font-size: 0.95rem;
}

footer .socials {
  display: flex;
  gap: 1rem;
}

footer .socials a {
  color: #eee;
  font-size: 1.2rem;
  transition: color 0.3s ease;
  text-decoration: none;
}

footer .socials a:hover {
  color: var(--accent);
}

/* Scroll to top button */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.75rem 1.2rem;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 1000;
}

#scrollTopBtn.show {
  opacity: 1;
  transform: translateY(0);
}


/* Responsive nav and grid */
@media (max-width: 768px) {
  #about h2 {
    font-size: 1.8rem;
  }

  #about p {
    font-size: 1rem;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 1rem;
    background: var(--bg);
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .contact-section {
    padding: 3rem 1rem 2rem;
  }
}

@media (max-width: 600px) {
  footer {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive contact columns */
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1100px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}



/* Loader styles */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #fff; /* white background or match your site */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Simple spinner animation */
#loader::after {
  content: "";
  width: 50px;
  height: 50px;
  border: 5px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
