/* CSS Variables */
:root {
    --primary: #2c3e50;
    --accent: #e74c3c;
    --bg: #f4f4f4;
    --text: #333;
    --card-bg: white;
}

[data-theme="dark"] {
    --primary: #1a1a1a;
    --accent: #ff4757;
    --bg: #121212;
    --text: #e0e0e0;
    --card-bg: #1e1e1e;
}
#had01{
    background-color: #0c71cf;
    color: #fff;
    padding: 10px;
    margin: 15px 0;
}
/* Global Styles */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; transition: background 0.3s, color 0.3s; }
body { line-height: 1.6; background-color: var(--bg); color: var(--text); scroll-behavior: smooth; }
.logo img{width: 160px;}
/* Navigation */
nav { background: var(--primary); color: white; display: flex; justify-content: space-between; align-items: center; padding: 1rem 5%; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 20px; }
.nav-links a { color: white; text-decoration: none; font-weight: 500; }
#theme-toggle { cursor: pointer; background: none; border: 1px solid white; color: white; padding: 5px 15px; border-radius: 20px; }

/* Hero Section */
header {  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), center/cover; color: white; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
header h1 { font-size: 3.5rem; margin-bottom: 10px; color: #000; }
header img {width: 100%;}

/* Components */
.btn1 { background: var(--primary); color: white; padding: 12px 30px; text-decoration: none; border-radius: 5px; display: inline-block; border: none; cursor: pointer; font-weight: bold; }
.btn { background: var(--accent); color: white; padding: 12px 30px; text-decoration: none; border-radius: 5px; display: inline-block; border: none; cursor: pointer; font-weight: bold; text-align: center; }
.btn-full { width: 100%; }
section { padding: 80px 5%; }
.section-title { text-align: center; margin-bottom: 20px; font-size: 2.2rem; }
.section-parg {text-align: center; margin-bottom: 20px; font-size: 1.0rem;}
.bg-white { background: var(--card-bg); margin-bottom: 20px;}
.content-text { max-width: 800px; margin: 0 auto; text-align: center; }
.btns{ max-width: 640px; margin: 0 auto; text-align: center;}
.bg-primary{background: var(--primary);}
/* Grids */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card { background: var(--card-bg); padding: 20px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); text-align: center; }
.card img { width: 100%; border-radius: 5px; margin-bottom: 15px; }

 

.carousel-container {
  width: 100%;
  max-width: 1468px;
  height: 568px;
  margin: 0 auto;
  overflow: hidden; /* Hides the slides not in view */
  border-radius: 0px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.slides {
  display: flex;
  width: 400%; /* 4 slides (3 + 1 clone) at 100% width each */
  height: 100%;
  animation: slide-autoplay 12s infinite; /* 3 seconds per slide */
}

/* Pause animation on hover */
.slides:hover {
  animation-play-state: paused;
}

.slide {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-family: sans-serif;
}

/* Slide Colors */
.s1 { background: #3498db; }
.s2 { background: #9b59b6; }
.s3 { background: #e67e22; }

/* The Keyframe Logic */
/* We have 4 panels. To make them "pause" on each slide,
   we hold the position for a percentage of time. */
@keyframes slide-autoplay {
  0%   { transform: translateX(0%); }      /* Slide 1 */
  20%  { transform: translateX(0%); }      /* Stay on Slide 1 */
  25%  { transform: translateX(-25%); }   /* Move to Slide 2 */
  45%  { transform: translateX(-25%); }   /* Stay on Slide 2 */
  50%  { transform: translateX(-50%); }   /* Move to Slide 3 */
  70%  { transform: translateX(-50%); }   /* Stay on Slide 3 */
  75%  { transform: translateX(-75%); }   /* Move to Slide 4 (Clone of 1) */
  95%  { transform: translateX(-75%); }   /* Stay on Slide 4 */
  100% { transform: translateX(0%); }     /* Snap back to start */
}

 /* Specific styles for the Thumbnail Gallery */
        .product-header {
            text-align: center;
            padding: 0px;
            background: var(--accent);
            color: white;
        }

        .thumbnail-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 25px;
            padding: 40px 5%;
        }

        .product-thumb {
            background: var(--card-bg);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 10px rgba(0,0,0,0.08);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
            border: 1px solid rgba(0,0,0,0.05);
        }

        .product-thumb:hover {
            transform: translateY(-8px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        }

        .thumb-img {
            width: 100%;
            height: 180px;
            object-fit: cover;
            background: #eee;
        }

        .thumb-info {
            padding: 15px;
            text-align: center;
        }

        .thumb-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text);
            margin-bottom: 5px;
            display: block;
        }

        .thumb-category {
            font-size: 0.8rem;
            text-transform: uppercase;
            color: var(--accent);
            letter-spacing: 1px;
            font-weight: bold;
        }

         /* Product Page Specific Layout */
        .p-detail-container {
            display: flex;
            flex-wrap: wrap;
            gap: 50px;
            padding: 60px 5%;
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Left Side: Gallery */
        .p-gallery {
            flex: 1.2;
            min-width: 350px;
        }
        .main-img {
            width: 100%;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            background: #ddd;
        }
        .thumb-strip {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        .thumb-strip img {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 8px;
            cursor: pointer;
            border: 2px solid transparent;
            transition: 0.3s;
        }
        .thumb-strip img:hover {
            border-color: var(--accent);
        }

        /* Right Side: Info */
        .p-info {
            flex: 1;
            min-width: 350px;
        }
        .p-title { font-size: 2.5rem; margin-bottom: 10px; }
        .p-price { font-size: 1.8rem; color: var(--accent); font-weight: bold; margin-bottom: 20px; }
        
        .p-features {
            list-style: none;
            margin: 20px 0;
        }
        .p-features li {
            margin-bottom: 12px;
            padding-left: 25px;
            position: relative;
        }
        .p-features li::before {
            content: "✓";
            position: absolute;
            left: 0;
            color: var(--accent);
            font-weight: bold;
        }

        .buy-now-btn {
            width: 100%;
            padding: 18px;
            font-size: 1.1rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-top: 30px;
        }

         /* About Page Specific Styles */
        .about-hero {
            background: linear-gradient(rgba(44, 62, 80, 0), rgba(44, 62, 80, 0.9)), 
                        url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1200');
            background-size: cover;
            color: white;
            text-align: center;
            padding: 100px 5%;
        }

        .mission-section {
            display: flex;
            align-items: center;
            gap: 50px;
            padding: 80px 10%;
            flex-wrap: wrap;
            background-color: var(--bg); /* Ensures visibility */
        }

        .mission-content { flex: 1; min-width: 300px; color: var(--text); }
        .mission-image { 
            flex: 1; 
            min-width: 300px; 
            border-radius: 15px; 
            box-shadow: 20px 20px 0px var(--accent);
        }

        /* FIXED: Stats Bar Contrast */
        .stats-bar {
            background: var(--primary);
            color: #ffffff; /* Forced white for contrast */
            display: flex;
            justify-content: space-around;
            padding: 60px 5%;
            text-align: center;
            flex-wrap: wrap;
            gap: 30px;
        }
        .stat-item h2 { font-size: 2.5rem; color: var(--accent); margin-bottom: 5px; }
        .stat-item p { color: #ecf0f1; font-weight: 500; }

        /* FIXED: Team Section Visibility */
        .team-section {
            background-color: var(--bg); /* Uses the light grey/dark theme background */
            padding: 80px 10%;
        }
        .team-title {
            text-align: center; 
            margin-bottom: 50px; 
            color: var(--text); 
            font-size: 2.2rem;
        }

        .team-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 30px;
        }

        .team-card {
            text-align: center;
            background: var(--card-bg);
            padding: 40px 20px;
            border-radius: 12px;
            border-bottom: 4px solid var(--accent);
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        }
        .team-card ul{
            padding: 0;
            margin: 5px 0;
        }
        .team-card ul li{
            text-align: left;
            padding-left: 5px;
            margin-left: 25px;
            font-size: 12px;
        }.team-card h4{
            text-align: left;
            margin: 10px;
        }
        .team-card h3 { color: var(--text); margin-top: 10px; }
        .team-card p { color: var(--text); opacity: 0.8; font-size: 12px; }

        .team-img {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 15px;
            filter: grayscale(100%);
            transition: 0.3s;
            border: 3px solid var(--accent);
        }

        .team-card:hover .team-img { filter: grayscale(0%); transform: scale(1.05); }

        @media (max-width: 768px) {
            .mission-section { flex-direction: column; text-align: center; padding: 40px 5%; }
            .stats-bar { flex-direction: column; }
        }
        .contact-container {
            display: flex;
            flex-wrap: wrap;
            gap: 40px;
            padding: 60px 10%;
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Left Side: Contact Info & Map */
        .contact-info {
            flex: 1;
            min-width: 300px;
        }
        .info-box {
            margin-bottom: 30px;
        }
        .info-box h3 {
            color: var(--accent);
            margin-bottom: 10px;
        }
        .map-container {
            width: 100%;
            height: 300px;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--border);
            margin-top: 20px;
        }
        iframe {
            width: 100%;
            height: 100%;
            border: none;
        }

        /* Right Side: Form */
        .contact-form-wrapper {
            flex: 1.2;
            min-width: 300px;
            background: var(--card-bg);
            padding: 40px;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            border: 1px solid var(--border);
        }
        .form-group {
            margin-bottom: 20px;
        }
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--text);
        }
        .form-control {
            width: 100%;
            padding: 12px;
            border: 1px solid var(--border);
            border-radius: 6px;
            background: var(--bg);
            color: var(--text);
            outline: none;
            transition: 0.3s;
        }
        .form-control:focus {
            border-color: var(--accent);
        }
        
        .submit-btn {
            width: 100%;
            padding: 15px;
            font-size: 1rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            text-align: center;
        }

        @media (max-width: 768px) {
            .contact-container {
                padding: 40px 5%;
                flex-direction: column;
            }
            .contact-form-wrapper {
                padding: 25px;
            }
        }
/* Form */
.contact-form { max-width: 600px; margin: 0 auto; background: var(--card-bg); padding: 30px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
input, textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 5px; background: transparent; color: var(--text); }
.content-bullets{max-width: 460px; margin: 0 auto; text-align: left;}

/* Footer */
footer { background: var(--primary); color: white; padding: 40px 5% 20px; text-align: center; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 30px; text-align: left; }
.footer-grid a { color: white; text-decoration: none; font-size: 0.9rem; }
.footer-grid p {text-align: justify; line-height: 20px;}
.footer-grid i{font-size: 22px; margin: 5px;}
.footer-grid a:hover{color: #0070ff;}
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.8rem; opacity: 0.6; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    header h1 { font-size: 2.2rem; }
}

.btn {
    background: var(--accent);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 6px;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s ease;
}

.btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}
.btn1 {
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 6px;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s ease;
}

.btn1:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Ensure images don't break layout on mobile */
@media (max-width: 768px) {
    .p-detail-container {
        flex-direction: column;
        padding: 30px 5%;
    }
    .p-title { font-size: 1.8rem; }
}

/* Add these to your style.css if not already present */
.form-control {
    background-color: var(--bg) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
}

select.form-control {
    appearance: none; /* Removes default styling */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}