/* BaloPrime Tech Limited - Welding & Fabrication Website */
:root {
  --primary: #0d47a1;
  --secondary: #1565c0;
  --accent: #1976d2;
  --accent-hover: #0d47a1;
  --light: #f5f8fc;
  --gray: #546e7a;
  --white: #ffffff;
  --dark: #1a237e;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: var(--light);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header & Navigation */
header {
  background: var(--white);
  color: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(13, 71, 161, 0.12);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}



.logo-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gray);
  margin-top: -2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s;
}

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

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #1976d2 100%);
  color: var(--white);
  text-align: center;
  padding: 7rem 2rem;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.btn {
  display: inline-block;
  background: #ff6f00;
  color: var(--white);
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}

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

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  margin-left: 1rem;
}

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

/* Sections */
section {
  padding: 5rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.section-title p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(13, 71, 161, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  border-top: 3px solid var(--accent);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(13, 71, 161, 0.15);
}

.service-icon {
  font-size: 2.6rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 0.8rem;
  color: var(--primary);
}

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

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

.about-text p {
  margin-bottom: 1rem;
  color: #555;
}

.about-image {
  background: linear-gradient(135deg, #0d47a1, #1976d2);
  height: 350px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
}

/* Projects / Gallery */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  position: relative;
  height: 250px;
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.project-card .overlay {
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  width: 100%;
  padding: 1.5rem;
  color: var(--white);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
  color: var(--primary);
}

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

.contact-item i {
  color: var(--accent);
  font-size: 1.3rem;
  margin-top: 3px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid #cfd8dc;
  border-radius: 6px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

.contact-form button {
  width: 100%;
  border: none;
  cursor: pointer;
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 2.5rem 2rem;
}

footer p {
  opacity: 0.85;
  margin-top: 0.5rem;
}

.social-links {
  margin: 1rem 0;
}

.social-links a {
  color: var(--white);
  margin: 0 0.8rem;
  font-size: 1.4rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #ff6f00;
}

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

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }

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

  .hero h1 {
    font-size: 2rem;
  }

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

  .btn-outline {
    margin-left: 0;
    margin-top: 1rem;
    display: inline-block;
  }
}


.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}

.logo-main {
  font-size: 1.55rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.5px;
  font-family: 'Arial Black', 'Arial', sans-serif;
}

.logo-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-top: 1px;
}

.logo-sub .tech {
  color: #ff6f00;
}

.logo-sub .dash {
  color: #1a1a1a;
  margin: 0 1px;
}

.logo-sub .limited {
  color: #1a1a1a;
}

/* Footer logo */
footer .logo-main {
  color: #ffffff;
  font-size: 1.4rem;
}

footer .logo-sub .tech {
  color: #ff6f00;
}

footer .logo-sub .dash,
footer .logo-sub .limited {
  color: #ffffff;
}


/* Logo Image Support */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.logo-img-footer {
  height: 42px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.5rem;
  filter: brightness(0) invert(1); /* makes dark logo white for dark footer - remove if logo is already light */
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-size: 1.55rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.5px;
  font-family: Arial, Helvetica, sans-serif;
}

.logo-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-top: 1px;
}

.logo-sub .tech {
  color: #ff6f00;
}

.logo-sub .dash {
  color: #1a1a1a;
  margin: 0 1px;
}

.logo-sub .limited {
  color: #1a1a1a;
}

footer .logo-main {
  color: #ffffff;
  font-size: 1.35rem;
  text-align: center;
}

footer .logo-sub {
  text-align: center;
}

footer .logo-sub .tech {
  color: #ff6f00;
}

footer .logo-sub .dash,
footer .logo-sub .limited {
  color: #ffffff;
}

@media (max-width: 768px) {
  .logo-img {
    height: 40px;
  }
}

/* ===== PROJECTS GALLERY STYLES ===== */
.projects-hero {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}
.projects-hero h1 {
  font-size: 2.6rem;
  margin-bottom: 0.6rem;
}
.projects-hero p {
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.92;
  font-size: 1.1rem;
}

.category-nav {
  background: #fff;
  padding: 1.2rem 0;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 70px;
  z-index: 50;
}
.cat-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}
.cat-btn {
  background: #f0f4f8;
  color: #0d47a1;
  padding: 0.55rem 1.3rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s;
}
.cat-btn:hover {
  background: #0d47a1;
  color: white;
}

.gallery-section {
  padding: 3.5rem 0;
}
.gallery-section.alt-bg {
  background: #f5f8fc;
}
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title h2 {
  font-size: 1.9rem;
  color: #0d47a1;
  margin-bottom: 0.4rem;
}
.section-title p {
  color: #546e7a;
  font-size: 1.05rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}
.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.14);
}
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.gallery-caption {
  padding: 1rem 1.1rem 1.2rem;
}
.gallery-caption h3 {
  font-size: 1.05rem;
  color: #1a237e;
  margin-bottom: 0.3rem;
}
.gallery-caption p {
  font-size: 0.88rem;
  color: #546e7a;
  line-height: 1.4;
}

.cta-section {
  background: #0d47a1;
  color: white;
  text-align: center;
  padding: 3.5rem 2rem;
}
.cta-section h2 {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}
.cta-section p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}
.cta-section .btn {
  margin: 0.3rem;
}
.cta-section .btn-outline {
  border-color: white;
  color: white;
}
.cta-section .btn-outline:hover {
  background: white;
  color: #0d47a1;
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .projects-hero h1 {
    font-size: 2rem;
  }
  .cat-buttons {
    gap: 0.5rem;
  }
  .cat-btn {
    font-size: 0.8rem;
    padding: 0.45rem 1rem;
  }
}
