@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #f2a900;
  --primary-dark: #d99700;
  --dark: #1a1a2e;
  --text: #333333;
  --text-light: #666666;
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --border: #e0e0e0;
  --font: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; overflow-x: hidden; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font); line-height: 1.3; color: #111; }
a { text-decoration: none; color: inherit; transition: all .3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* ======== HEADER ======== */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: #fff; border-bottom: 1px solid var(--border); transition: all .3s; }
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.header .container { position: relative; }
.header-top { text-align: center; padding: 15px 0 5px; }
.header-top img.logo-img { height: 50px; margin: 0 auto; }
.logo-text { font-size: 1.6rem; font-weight: 700; color: var(--primary); text-align: center; }

/* Nav */
.nav { display: flex; justify-content: center; align-items: center; padding: 8px 0; gap: 30px; }
.nav > li { position: relative; }
.nav > li > a { font-size: .95rem; font-weight: 600; color: #333; padding: 8px 0; display: inline-block; text-transform: capitalize; }
.nav > li > a:hover, .nav > li.active > a { color: var(--primary); border-bottom: 2px solid var(--primary); }
.nav .dropdown-menu { position: absolute; top: 100%; left: 0; background: #fff; min-width: 220px; padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; box-shadow: 0 8px 25px rgba(0,0,0,.1); border: 1px solid var(--border); z-index: 100; }
.nav .dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav .dropdown-menu a { display: block; padding: 8px 20px; font-size: .9rem; color: #555; font-weight: 500; }
.nav .dropdown-menu a:hover { background: var(--bg-alt); color: var(--primary); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #333; }

/* ======== HERO SLIDER ======== */
.hero-slider { position: relative; height: 80vh; min-height: 500px; overflow: hidden; margin-top: 110px; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; }
.slide.active { opacity: 1; }
.slide-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.45); }
.slide-content { position: relative; z-index: 2; color: #fff; max-width: 750px; padding: 0 20px; }
.slide-content h2 { font-size: 2.8rem; font-weight: 800; color: #fff; margin-bottom: 15px; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.slide-content p { font-size: 1.1rem; opacity: .9; }
.slider-arrows { position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between; padding: 0 20px; z-index: 5; transform: translateY(-50%); }
.slider-arrows button { background: rgba(255,255,255,.2); border: none; color: #fff; font-size: 2rem; padding: 10px 15px; cursor: pointer; border-radius: 4px; transition: background .3s; }
.slider-arrows button:hover { background: rgba(255,255,255,.4); }

/* ======== SECTIONS ======== */
.section { padding: 50px 0; }
.section-title { text-align: center; font-size: 2.2rem; font-weight: 700; margin-bottom: 50px; }
.section-title span { color: var(--primary); }

/* About Preview */
.about-preview { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; }
.about-preview img { border-radius: 8px; width: 100%; height: 100%; max-height: 450px; object-fit: cover; }
.about-preview .text h3 { font-size: 1.8rem; margin-bottom: 15px; }
.about-preview .text p { color: var(--text-light); margin-bottom: 20px; font-size: 1rem; }

/* Why Sunline */
.why-section { background: var(--bg-alt); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.why-grid img { border-radius: 8px; width: 100%; height: 100%; max-height: 450px; object-fit: cover; }
.why-grid .text p { color: var(--text-light); font-size: 1rem; margin-bottom: 20px; }

/* Categories Grid */
.categories-section { background: var(--bg-alt); }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.cat-card { position: relative; border-radius: 10px; overflow: hidden; height: 280px; cursor: pointer; }
.cat-card::after {
  content: "";
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 70px;
  height: 30px;
  background: rgba(255, 255, 255, 0.5) url('images/Untitleddesign7.png') no-repeat center center;
  background-size: 80% auto;
  opacity: 0.8;
  z-index: 2;
  pointer-events: none;
  border-radius: 4px;
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card .overlay { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(transparent, rgba(0,0,0,.7)); padding: 20px; }
.cat-card .overlay h6 { color: #fff; font-size: 1rem; font-weight: 700; }

/* Clients Marquee */
.clients-section { padding: 40px 0; overflow: hidden; }
.clients-track { display: flex; gap: 60px; animation: scroll 20s linear infinite; align-items: center; }
.clients-track img { height: 50px; width: auto; filter: grayscale(1); opacity: .6; transition: all .3s; }
.clients-track img:hover { filter: none; opacity: 1; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Testimonials */
.testimonials { background: var(--bg-alt); }
.testimonial-slider { max-width: 700px; margin: 0 auto; text-align: center; position: relative; min-height: 200px; }
.testimonial { display: none; }
.testimonial.active { display: block; animation: fadeIn .5s; }
.testimonial p { font-size: 1.05rem; font-style: italic; color: var(--text-light); margin-bottom: 15px; line-height: 1.8; }
.testimonial h4 { font-size: 1.1rem; color: var(--primary); font-weight: 700; }
.test-nav { display: flex; justify-content: center; gap: 15px; margin-top: 25px; }
.test-nav button { background: var(--primary); border: none; color: #fff; padding: 8px 20px; border-radius: 4px; cursor: pointer; font-weight: 600; }

/* CTA */
.cta-section { background: var(--dark); color: #fff; padding: 60px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; }
.cta-inner h2 { font-size: 2rem; color: #fff; font-weight: 700; }

/* ======== BUTTONS ======== */
.btn { display: inline-block; padding: 12px 30px; border-radius: 4px; font-weight: 600; font-size: .95rem; cursor: pointer; transition: all .3s; border: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--dark); }
.btn-white:hover { background: var(--primary); color: #fff; }

/* ======== FOOTER ======== */
.footer { background: #1a1a2e; color: #ccc; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 1.1rem; color: #fff; margin-bottom: 15px; font-weight: 700; }
.footer-col p { font-size: .9rem; line-height: 1.8; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: #aaa; font-size: .9rem; }
.footer-col ul a:hover { color: var(--primary); }
.social-icons { display: flex; gap: 15px; margin-top: 15px; }
.social-icons a { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: all .3s; }
.social-icons .fb { background: #3b5998; color: #fff; }
.social-icons .ig { background: #e4405f; color: #fff; }
.social-icons .yt { background: #ff0000; color: #fff; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }

/* ======== BRAND LOGOS MARQUEE ======== */
.brand-marquee-section { background: var(--bg-alt); padding: 40px 0; overflow: hidden; }
.brand-marquee-section h2 { text-align: center; margin-bottom: 30px; }
.marquee-track { display: flex; gap: 50px; width: max-content; animation: marqueeScroll 25s linear infinite; align-items: center; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-wrapper { overflow: hidden; }
.marquee-track img { height: 60px; width: auto; max-width: 160px; object-fit: contain; filter: none; transition: transform .3s; }
.marquee-track img:hover { transform: scale(1.1); }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ======== PAGE HEADER (inner pages) ======== */
.page-hero { padding: 80px 0 30px; text-align: center; background: var(--bg-alt); margin-top: 110px; }
.page-hero h1 { font-size: 2.5rem; color: #111; }

/* ======== PRODUCT BLOCKS ======== */
.product-list { display: flex; flex-direction: column; gap: 30px; padding: 0; }
.product-block { display: flex; background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: all .3s; }
.product-block:hover { box-shadow: 0 10px 30px rgba(0,0,0,.08); transform: translateY(-3px); }
.product-block .p-img { width: 35%; height: 300px; flex-shrink: 0; overflow: hidden; background: #f9f9f9; display: flex; align-items: center; justify-content: center; padding: 10px; }
.product-block .p-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.product-block .p-info { width: 65%; padding: 35px; display: flex; flex-direction: column; justify-content: center; }
.product-block .p-info h3 { font-size: 1.5rem; margin-bottom: 12px; }
.product-block .p-info p { color: var(--text-light); margin-bottom: 20px; }

/* Product Image Watermark */
.product-block .p-img { position: relative; }
.product-block .p-img::before {
  content: "";
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 90px;
  height: 40px;
  background: rgba(255, 255, 255, 0.5) url('images/Untitleddesign7.png') no-repeat center center;
  background-size: 80% auto;
  opacity: 0.8;
  z-index: 1;
  pointer-events: none;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Product Grid (Category, About gallery) */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 25px; padding: 40px 0; }
.product-card { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); transition: all .3s; position: relative; }
.product-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,.08); transform: translateY(-3px); }
.product-card::before {
  content: "";
  position: absolute;
  top: 170px;
  left: 15px;
  width: 70px;
  height: 30px;
  background: rgba(255, 255, 255, 0.5) url('images/Untitleddesign7.png') no-repeat center center;
  background-size: 80% auto;
  opacity: 0.8;
  z-index: 1;
  pointer-events: none;
  border-radius: 4px;
}
.product-card img { width: 100%; height: 220px; object-fit: contain; background: #f9f9f9; padding: 10px; }
.product-card .card-body { padding: 20px; }
.product-card .card-body h5 { font-size: 1.1rem; margin-bottom: 8px; }
.product-card .card-body p { font-size: .9rem; color: var(--text-light); }

/* ======== SERVICES ======== */
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 60px 0; border-bottom: 1px solid var(--border); }
.service-block:nth-child(even) { direction: rtl; }
.service-block:nth-child(even) > * { direction: ltr; }
.service-block img { border-radius: 8px; width: 100%; height: 100%; max-height: 450px; object-fit: cover; }
.service-block .text h2 { font-size: 2rem; margin-bottom: 15px; color: var(--primary); }
.service-block .text p { color: var(--text-light); font-size: 1rem; }

/* ======== CONTACT ======== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 60px 0; }
.contact-info-card { background: var(--bg-alt); padding: 30px; border-radius: 8px; margin-bottom: 20px; }
.contact-info-card h4 { color: var(--primary); margin-bottom: 10px; }
.contact-info-card p { color: var(--text-light); }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 15px; border: 1px solid var(--border); border-radius: 4px; font-family: var(--font); font-size: .95rem; margin-bottom: 15px; }
.contact-form textarea { height: 120px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }

/* About page specific */
.about-hero-section { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 60px 0; }
.about-hero-section img { border-radius: 8px; width: 100%; height: 100%; max-height: 450px; object-fit: cover; }
.about-hero-section .text h2 { font-size: 2rem; margin-bottom: 15px; }
.about-hero-section .text p { color: var(--text-light); margin-bottom: 15px; }

.what-we-do { background: var(--bg-alt); padding: 80px 0; }
.wwd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.wwd-card { background: #fff; padding: 30px; border-radius: 8px; border: 1px solid var(--border); text-align: center; transition: all .3s; }
.wwd-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,.08); transform: translateY(-3px); }
.wwd-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }
.wwd-card h4 { font-size: 1.1rem; margin-bottom: 10px; }
.wwd-card p { color: var(--text-light); font-size: .9rem; }

.industries-section { padding: 80px 0; }
.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ind-card { text-align: center; padding: 25px 15px; background: var(--bg-alt); border-radius: 8px; font-weight: 600; font-size: .95rem; transition: all .3s; }
.ind-card:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(20px); transition: all .6s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ======== RESPONSIVE ======== */
@media (max-width: 992px) {
  .about-preview, .why-grid, .service-block, .about-hero-section, .contact-grid { grid-template-columns: 1fr; }
  .service-block:nth-child(even) { direction: ltr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .wwd-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { flex-direction: column; gap: 20px; text-align: center; }
}
@media (max-width: 768px) {
  .header .container { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; }
  .header-top { padding: 0; }
  .header-top img.logo-img { height: 40px; margin: 0; }
  .header .container > div:nth-child(2) { position: static !important; }
  .menu-toggle { display: block; margin: 0; }
  .nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: #fff; padding: 15px 0; border-bottom: 1px solid var(--border); border-top: 1px solid var(--border); gap: 5px; }
  .nav.active { display: flex; }
  .nav > li > a { padding: 10px 20px; display: block; }
  .nav .dropdown-menu { position: static; box-shadow: none; border: none; opacity: 1; visibility: visible; transform: none; display: none; padding-left: 20px; }
  .nav .dropdown.active .dropdown-menu { display: block; }
  .hero-slider { height: 60vh; margin-top: 100px; }
  .slide-content h2 { font-size: 1.8rem; }
  .cat-grid { grid-template-columns: 1fr !important; }
  .wwd-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .product-block { flex-direction: column; }
  .product-block .p-img, .product-block .p-info { width: 100%; }
  .product-block .p-img { height: 260px; }
  .page-hero { margin-top: 80px; padding: 30px 0 15px; }
  .section { padding: 30px 0; }
  .section-title { font-size: 1.8rem; margin-bottom: 30px; }
  .slide-content p { font-size: 1rem; }
  .about-preview, .why-grid, .service-block, .contact-grid { gap: 30px; }
  .product-list { gap: 20px; }
  .service-block, .contact-grid, .product-list { padding: 10px 0; }
}

/* ======== LIGHTBOX MODAL ======== */
.lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.9); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; cursor: zoom-out; }
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-container { position: relative; max-width: 90%; max-height: 90%; transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.lightbox-container::after {
  content: "";
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 100px;
  height: 40px;
  background: rgba(255, 255, 255, 0.6) url('images/Untitleddesign7.png') no-repeat center center;
  background-size: 80% auto;
  opacity: 0.9;
  z-index: 10000;
  pointer-events: none;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.lightbox-overlay.active .lightbox-container { transform: scale(1); }
.lightbox-img { max-width: 100%; max-height: 90vh; display: block; border-radius: 8px; box-shadow: 0 5px 30px rgba(0,0,0,0.5); border: 2px solid #fff; object-fit: contain; }
.lightbox-close { position: absolute; top: -40px; right: 0; color: #fff; font-size: 2rem; cursor: pointer; background: none; border: none; transition: transform 0.2s; }
.lightbox-close:hover { transform: scale(1.2); color: var(--primary); }

/* Make Product images look clickable with a zoom icon / pointer cursor */
.product-block .p-img { cursor: pointer; position: relative; }
.product-block .p-img::after { content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); background: rgba(242, 169, 0, 0.9); color: #fff; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; opacity: 0; transition: all 0.3s; pointer-events: none; z-index: 2; }
.product-block .p-img:hover::after { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.product-block .p-img img { transition: filter 0.3s; }
.product-block .p-img:hover img { filter: brightness(0.7); }

/* ======== REFINED SERVICES STYLING ======== */
.service-section { padding: 80px 0; }
.service-card { background: #ffffff; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.04); display: grid; grid-template-columns: 1.1fr 0.9fr; min-height: 480px; transition: all 0.4s ease; position: relative; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 25px 60px rgba(0,0,0,0.12); }
.service-image-box { position: relative; width: 100%; height: 100%; overflow: hidden; background: #fcfcfd; display: flex; align-items: center; justify-content: center; padding: 25px; border-left: 1px solid rgba(0,0,0,0.03); }
.service-card-alt .service-image-box { border-left: none; border-right: 1px solid rgba(0,0,0,0.03); }
.service-image-box img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform 0.8s ease; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.service-card:hover .service-image-box img { transform: scale(1.03); }
.service-content-box { padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.service-tag { display: inline-block; padding: 6px 16px; background: rgba(242, 169, 0, 0.12); color: var(--primary-dark); font-weight: 800; border-radius: 30px; font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 20px; width: fit-content; border: 1px solid rgba(242, 169, 0, 0.2); }
.service-content-box h2 { font-size: 2.4rem; margin-bottom: 20px; font-weight: 800; color: #1a1a2e; }
.service-content-box p { line-height: 1.8; color: #555; font-size: 1.02rem; }
.service-list { margin-top: 25px; border-top: 1px solid #eeeeee; padding-top: 25px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.service-list-item { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 600; color: #333; }
.service-list-item i { color: var(--primary); font-size: 1.1rem; background: rgba(242, 169, 0, 0.15); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.service-card-alt { grid-template-columns: 0.9fr 1.1fr; }

@media (max-width: 992px) {
  .service-card, .service-card-alt { grid-template-columns: 1fr !important; }
  .service-content-box { padding: 40px 30px; order: 2; }
  .service-image-box { height: 320px; order: 1; }
  .service-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Global Mobile Text Safety */
  h1, h2, h3, h4, h5, h6, p, a, span {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  /* Home, About, and General Page Headings */
  h1 { font-size: 2rem !important; }
  h2 { font-size: 1.7rem !important; }
  h3 { font-size: 1.4rem !important; }
  
  /* Specific Fixes for Cut-off Headers in Images */
  .section-title { font-size: 1.7rem !important; margin-bottom: 25px !important; }
  .service-content-box h2 { font-size: 1.7rem !important; margin-bottom: 15px; line-height: 1.2; }
  .service-content-box { padding: 30px 20px !important; }
  
  /* Make containers safe on tiny viewports */
  .container { padding: 0 15px !important; }
  
  /* Hero Section Safety */
  .page-hero h1 { font-size: 1.8rem !important; }
  
  /* Product Blocks padding tweaks */
  .product-block .p-info { padding: 25px 20px !important; }
  .product-block .p-info h3 { font-size: 1.4rem !important; }
  
  /* Contact Form Grid Padding Fix */
  .contact-grid { padding: 20px 0 !important; }
}
