/* ===== GLOBAL ===== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: #f9fafb;
  color: #1e293b;
}

.container {
  width: 92%;
  max-width: 1320px;   /* wider for big screens */
  margin: 0 auto;
}

/* ===== NAVBAR ===== */

.navbar {
  background: #ffffff;
  padding: 18px 0;
  border-bottom: 1px solid #e5e7eb;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 22px;
}

.logo-icon {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 4px;
  transform: skewX(-15deg);
}

/* Navigation */
.nav-links {
  display: flex;
  gap: 26px;
}

.nav-links a {
  text-decoration: none;
  color: #475569;
  font-weight: 500;
  font-size: 15px;
  transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #2563eb;
}

.dropdown .arrow {
  font-size: 12px;
  margin-left: 4px;
}

/* Right Buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.btn-outline {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #2563eb;
  background: transparent;
  color: #2563eb;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.btn-outline:hover {
  background: #2563eb;
  color: white;
}

.btn-primary {
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  background: #2563eb;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #1e40af;
}

.dark {
  background: #0f172a;
  color: white;
}

.dark .navbar {
  background: #1e293b;
  border-color: #334155;
}

.dark .nav-links a {
  color: #cbd5e1;
}

.dark .nav-links a:hover {
  color: white;
}

/* ===== HERO SECTION ===== */

.hero {
  padding: 80px 0;
  background: #f8fafc;
}

.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

/* Left Side */
.hero-content {
  flex: 1;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #16a34a;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-badge .dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #0f172a;
}

.hero-content p {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-btn {
  padding: 12px 28px;
  font-size: 16px;
}

/* Right Side Image */
.hero-image {
  flex: 1;
}

.hero-image img {
  width: 100%;
  max-width: 550px;
  border-radius: 12px;
}

.dark .hero {
  background: #0f172a;
}

.dark .hero-content h1 {
  color: white;
}

.dark .hero-content p {
  color: #94a3b8;
}

/* ===== ABOUT SECTION ===== */

.about {
  padding: 100px 0;
  background: #ffffff;
}

.about-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

/* Image */
.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
}

/* Content */
.about-content {
  flex: 1;
}

.section-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #16a34a;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.section-badge .dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
}

.about-content h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  color: #0f172a;
}

.about-content p {
  color: #64748b;
  margin-bottom: 25px;
  font-size: 16px;
  line-height: 1.7;
}

.about-features {
  list-style: none;
  margin-bottom: 30px;
}

.about-features li {
  margin-bottom: 10px;
  font-size: 15px;
  color: #334155;
}

.dark .about {
  background: #1e293b;
}

.dark .about-content h2 {
  color: white;
}

.dark .about-content p {
  color: #cbd5e1;
}

.dark .about-features li {
  color: #e2e8f0;
}

/* ===== SERVICES SECTION ===== */

.services {
  padding: 100px 0;
  background: #f8fafc;
  text-align: center;
}

.services-header h2 {
  font-size: 40px;
  font-weight: 800;
  margin: 20px 0;
  color: #0f172a;
}

.services-header p {
  max-width: 600px;
  margin: 0 auto 60px;
  color: #64748b;
  font-size: 16px;
}

/* Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Card */
.service-card {
  background: white;
  padding: 40px 25px;
  border-radius: 12px;
  transition: 0.3s ease;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.service-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 600;
}

.service-card p {
  color: #64748b;
  font-size: 15px;
}

.dark .services {
  background: #0f172a;
}

.dark .services-header h2 {
  color: white;
}

.dark .services-header p {
  color: #94a3b8;
}

.dark .service-card {
  background: #1e293b;
}

.dark .service-card p {
  color: #cbd5e1;
}

/* ===== PORTFOLIO SECTION ===== */

/* ===== PORTFOLIO SECTION ===== */

.portfolio {
  padding: 100px 0;
  background: #ffffff;
  text-align: center;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  height: 320px;   /* Equal height cards */
  cursor: pointer;
}

/* FULL SIZE IMAGE */
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* ZOOM EFFECT */
.portfolio-item:hover img {
  transform: scale(1.08);
}

/* OVERLAY */
.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 25px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* LABEL STYLE */
.portfolio-label {
  text-align: left;
  color: white;
}

.portfolio-category {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #93c5fd;
}

.portfolio-label h3 {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark Mode */
.dark .portfolio {
  background: #1e293b;
}
/* ===== RESPONSIVE DESIGN ===== */

.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* Tablet */
@media (max-width: 992px) {

  .hero-wrapper,
  .about-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .about-content h2 {
    font-size: 32px;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {

  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-actions {
    display: none;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

}
.dark .nav-links {
  background: #1e293b;
}

/* ===== TESTIMONIALS SECTION ===== */

.testimonials {
  padding: 100px 0;
  background: #f8fafc;
  text-align: center;
}

.testimonials-header h2 {
  font-size: 40px;
  font-weight: 800;
  margin: 20px 0;
  color: #0f172a;
}

.testimonials-header p {
  max-width: 600px;
  margin: 0 auto 60px;
  color: #64748b;
}

/* Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Card */
.testimonial-card {
  background: white;
  padding: 35px 25px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.testimonial-text {
  font-size: 15px;
  color: #475569;
  margin-bottom: 25px;
  line-height: 1.6;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.testimonial-user img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.testimonial-user h4 {
  font-size: 16px;
  margin: 0;
}

.testimonial-user span {
  font-size: 13px;
  color: #64748b;
}

.stars {
  color: #facc15;
  font-size: 14px;
}

.dark .testimonials {
  background: #0f172a;
}

.dark .testimonials-header h2 {
  color: white;
}

.dark .testimonials-header p {
  color: #94a3b8;
}

.dark .testimonial-card {
  background: #1e293b;
}

.dark .testimonial-text {
  color: #cbd5e1;
}

.dark .testimonial-user span {
  color: #94a3b8;
}

/* ===== BLOG SECTION ===== */

.blog {
  padding: 100px 0;
  background: #ffffff;
  text-align: center;
}

.blog-header h2 {
  font-size: 40px;
  font-weight: 800;
  margin: 20px 0;
  color: #0f172a;
}

.blog-header p {
  max-width: 600px;
  margin: 0 auto 60px;
  color: #64748b;
}

/* Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Card */
.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.blog-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-content {
  padding: 25px;
}

.blog-meta {
  font-size: 13px;
  color: #2563eb;
  font-weight: 500;
}

.blog-content h3 {
  margin: 12px 0;
  font-size: 20px;
  font-weight: 600;
}

.blog-content p {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 20px;
}

.read-more {
  text-decoration: none;
  color: #2563eb;
  font-weight: 500;
  font-size: 14px;
}

.dark .blog {
  background: #1e293b;
}

.dark .blog-header h2 {
  color: white;
}

.dark .blog-header p {
  color: #cbd5e1;
}

.dark .blog-card {
  background: #0f172a;
}

.dark .blog-content p {
  color: #94a3b8;
}

/* ===== CONTACT SECTION ===== */

.contact {
  padding: 100px 0;
  background: #f8fafc;
  text-align: center;
}

.contact-header h2 {
  font-size: 40px;
  font-weight: 800;
  margin: 20px 0;
  color: #0f172a;
}

.contact-header p {
  max-width: 600px;
  margin: 0 auto 60px;
  color: #64748b;
}

.contact-wrapper {
  display: flex;
  justify-content: center;
}

.contact-form {
  width: 100%;
  max-width: 600px;
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  outline: none;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2563eb;
}

.error {
  color: red;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.success-msg {
  margin-top: 15px;
  color: green;
  font-size: 14px;
}

/* Dark Mode */
.dark .contact {
  background: #1e293b;
}

.dark .contact-header h2 {
  color: white;
}

.dark .contact-header p {
  color: #cbd5e1;
}

.dark .contact-form input,
.dark .contact-form textarea {
  background: #0f172a;
  border-color: #334155;
  color: white;
}

/* ===== FOOTER ===== */

.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding-top: 80px;
}

.footer-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 50px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: white;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-col h4 {
  margin-bottom: 20px;
  font-size: 16px;
  color: white;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-col ul li a {
  text-decoration: none;
  color: #cbd5e1;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: #2563eb;
}

.social-icons a {
  margin-right: 12px;
  font-size: 18px;
  text-decoration: none;
  color: #cbd5e1;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #2563eb;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #1e293b;
  font-size: 14px;
}

@media (max-width: 992px) {
  .footer-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .footer-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}

/* ===== GLOBAL SMOOTH EFFECTS ===== */

* {
  transition: background-color 0.3s ease,
              color 0.3s ease,
              transform 0.3s ease,
              box-shadow 0.3s ease;
}

/* ===== BUTTON HOVER EFFECT ===== */

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-outline:hover {
  transform: translateY(-3px);
}

/* ===== CARD HOVER EFFECT ===== */

.service-card:hover,
.testimonial-card:hover,
.blog-card:hover,
.portfolio-item:hover {
  transform: translateY(-8px);
}

/* ===== IMAGE HOVER ZOOM ===== */

.portfolio-item img,
.blog-image img {
  transition: transform 0.4s ease;
}

.portfolio-item:hover img,
.blog-card:hover img {
  transform: scale(1.05);
}

/* ===== SECTION FADE EFFECT ===== */

.section-effect {
  opacity: 0.8;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.section-effect.visible {
  opacity: 1;
  transform: translateY(0);
}

html {
  scroll-behavior: smooth;
}

/* dark toggle */
.dark {
  background-color: #0f172a;
  color: white;
}

.dark .navbar {
  background: #1e293b;
}

.dark .hero,
.dark .about,
.dark .services,
.dark .portfolio,
.dark .testimonials,
.dark .blog,
.dark .contact {
  background: #1e293b;
}

.dark .service-card,
.dark .testimonial-card,
.dark .blog-card {
  background: #0f172a;
}

/* ========================================= */
/*      FULL DESKTOP RESPONSIVE UPGRADE      */
/* ========================================= */

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
}

/* Better container width */
.container {
  width: 92%;
  max-width: 1320px;
  margin: 0 auto;
}

/* Fluid section spacing */
.hero,
.about,
.services,
.portfolio,
.testimonials,
.blog,
.contact {
  padding: clamp(80px, 8vw, 120px) 0;
}

/* Fluid Hero Heading */
.hero-content h1 {
  font-size: clamp(32px, 4vw, 64px);
  line-height: 1.2;
}

/* Fluid Section Headings */
.services-header h2,
.portfolio-header h2,
.testimonials-header h2,
.blog-header h2,
.contact-header h2,
.about-content h2 {
  font-size: clamp(26px, 3vw, 44px);
}

/* Improve spacing on large desktops */
@media (min-width: 1440px) {

  .hero-wrapper,
  .about-wrapper {
    gap: 80px;
  }

  .services-grid,
  .portfolio-grid,
  .blog-grid,
  .testimonials-grid {
    gap: 40px;
  }

}

/* Ultra wide screens (Full HD / 2K) */
@media (min-width: 1800px) {

  .container {
    max-width: 1500px;
  }

  .hero-content h1 {
    font-size: 64px;
  }

  .portfolio-item {
    height: 380px;
  }

}

/* Tablet Improvements */
@media (max-width: 992px) {

  .services-grid,
  .portfolio-grid,
  .blog-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* Mobile Improvements */
@media (max-width: 768px) {

  section {
    padding: 70px 0 !important;
  }

  .container {
    width: 94%;
  }

  .hero-wrapper,
  .about-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .hero-content p {
    max-width: 100%;
  }

  .portfolio-item {
    height: 260px;
  }

  .services-grid,
  .portfolio-grid,
  .blog-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

}