/* ================================
   RESET & BASE STYLES
================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #fff; /* prevents faint bleed-through */
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
}

/* Unified container setup */
.container,
.hero-container,
.about-content,
.services-grid,
.contact-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* ================================
   NAVBAR
================================ */
.navbar {
   position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    padding: 0 20px;
}

.logo-img { height: 70px; width: auto; object-fit: contain; }

.nav-menu { display: flex; list-style: none; gap: 2rem; align-items:center; }
.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    transition: color .25s ease;
}
.nav-link:hover { color: #ff6b6b; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b6b;
    transition: width .25s ease;
}
.nav-link:hover::after { width: 100%; }

/* mobile toggle */
.nav-toggle { display: none; flex-direction: column; cursor: pointer; }
.bar { width: 25px; height: 3px; background: #333; margin: 3px 0; transition: 0.3s; }

/* ================================
   HERO
================================ */
.hero {
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
    width: 100%;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg,#667eea 0%,#764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before{
    content:'';
    position:absolute; inset:0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.01)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover; /* 🔧 add this to eliminate line */
    border-top: none;
    outline: none;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
    padding-top: 40px; /* leave space for fixed navbar */
}

.hero-content { animation: slideInLeft 1s ease-out; }
.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.15;
}
.hero-subtitle { font-size: 1.1rem; margin-bottom: 1.8rem; opacity: .92; }

.hero-buttons { display:flex; gap:1rem; flex-wrap:wrap; }

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}
.btn-primary { background: #ff6b6b; color: #fff; box-shadow: 0 4px 15px rgba(255,107,107,0.4); }
.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}
.btn-secondary { background: transparent; color: #fff; border: 2px solid #fff; }

/* hero image */
.hero-image { animation: slideInRight 1s ease-out; display:flex; justify-content:center; align-items:center; }
.hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.28);
    transition: transform .3s ease;
}
.hero-img:hover { transform: scale(1.03); }

/* scroll hint */
.hero-scroll { position:absolute; bottom:30px; left:50%; transform:translateX(-50%); animation: bounce 2s infinite; }

/* ================================
   ABOUT
================================ */
.about { padding: 90px 0; background: #f8f9fa; width:100%; }
.about-content { display:grid; grid-template-columns: 1fr 1fr; gap:2.5rem; align-items:center; }
.about-text h3 { font-size:2rem; color:#333; margin-bottom:1rem; }
.about-text p { color:#666; font-size:1.05rem; margin-bottom:1rem; }

/* about image */
.about-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.18);
}

.about1-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}


/* stats inside about */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.2rem;
    margin-top: 1.5rem;
}
.stat {
    text-align:center;
    padding: 1.25rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transition: transform .25s ease;
}
.stat:hover { transform: translateY(-6px); }
.stat h4 { font-size:2rem; color:#ff6b6b; margin-bottom:.25rem; font-weight:700; }
.stat p { color:#666; font-weight:600; font-size:.95rem; }

/* ================================
   SERVICES
================================ */
.services { padding: 90px 0; background: #fff; width:100%; }
.section-header { text-align:center; margin-bottom: 2.5rem; }
.services-grid {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 1.6rem;
}

/* service card & icon */
.service-card {
    background:#fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
}

.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }

.service-icon {
    width:60px; height:60px;
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    background: linear-gradient(135deg,#ff6b6b,#4ecdc4);
    color: #fff;
    font-size:1.25rem;
    margin-bottom:1rem;
    box-shadow: 0 6px 18px rgba(78,205,196,0.12);
}

.service-image {
    width:100%;
    height:auto;
    object-fit:cover;
    border-radius:12px;
    margin-bottom:1rem;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.service-card h3 { font-size:1.25rem; color:#333; margin-bottom:.6rem; font-weight:600; }
.service-card p { color:#666; margin-bottom: .9rem; line-height:1.5; }

/* features list */
.service-features { list-style:none; padding-left:0; margin:0; }
.service-features li {
    padding: .4rem 0;
    color:#666;
    position:relative;
    padding-left:1.4rem;
    font-size:.96rem;
}
.service-features li::before{
    content:'✓';
    position:absolute; left:0; color:#4ecdc4; font-weight:700;
}

/* ================================
   BENEFITS
================================ */
.benefits { padding: 90px 0; background: linear-gradient(135deg,#667eea 0%,#764ba2 100%); color:#fff; width:100%; }
.benefits-grid {
    display:grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 1.2rem;
}

.benefit-item {
    background: rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 1.6rem;
    text-align:center;
    backdrop-filter: blur(6px);
    transition: transform .25s ease;
}
.benefit-item:hover { transform: translateY(-6px); }

.benefit-icon {
    width:56px; height:56px; border-radius:50%;
    background: rgba(255,255,255,0.12);
    display:flex; align-items:center; justify-content:center; margin:0 auto .8rem;
}
.benefit-icon i { font-size:1.25rem; color:#fff; }

.benefit-item h4 { font-size:1.05rem; margin-bottom:.6rem; font-weight:600; }
.benefit-item p { opacity:.95; line-height:1.5; font-size:.96rem; }

/* ================================
   CONTACT
================================ */
.contact { padding: 90px 0; background: #f8f9fa; width:100%; }
.contact-content { display:grid; grid-template-columns: 1fr 1fr; gap:1.8rem; align-items:start; }

/* contact info list */
.contact-info { display:flex; flex-direction:column; gap:1rem; }
.contact-item {
    display:flex; align-items:center; gap:1rem;
    padding:1rem; background:#fff; border-radius:12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06); transition: transform .2s ease;
}
.contact-item:hover { transform: translateX(6px); }

.contact-icon {
    width:52px; height:52px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    background: linear-gradient(135deg,#ff6b6b,#4ecdc4);
    color:#fff; font-size:1.1rem;
}

.contact-details h4 { color:#333; font-weight:700; margin-bottom:.2rem; }
.contact-details p { color:#666; font-size:.95rem; margin:0; }

/* contact form */
.contact-form {
    background:#fff;
    padding:1.25rem;
    border-radius:14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.form-group { margin-bottom:1rem; }
.form-group label { display:block; font-weight:600; margin-bottom:.4rem; color:#333; font-size:.95rem; }
.form-group input,
.form-group select,
.form-group textarea {
    width:100%;
    padding:12px 14px;
    border:2px solid #eef1f4;
    border-radius:10px;
    font-size:1rem;
    font-family: inherit;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline:none;
    border-color:#ff6b6b;
    box-shadow: 0 6px 20px rgba(255,107,107,0.06);
}
.form-group textarea { min-height:140px; resize:vertical; }

/* submit */
.form-actions { display:flex; justify-content:flex-end; margin-top:.6rem; }
.form-actions .btn { padding:10px 20px; }

/* ================================
   FOOTER
================================ */
/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ff6b6b;
}

.footer-section p,
.footer-section li {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ff6b6b;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #34495e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #ff6b6b;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}


/* ================================
   ANIMATIONS
================================ */
@keyframes slideInLeft { from{ opacity:0; transform:translateX(-40px);} to{opacity:1; transform:none;} }
@keyframes slideInRight{ from{ opacity:0; transform:translateX(40px);} to{opacity:1; transform:none;} }
@keyframes bounce{
    0%,20%,50%,80%,100%{ transform: translateY(0) translateX(-50%); }
    40%{ transform: translateY(-10px) translateX(-50%); }
    60%{ transform: translateY(-5px) translateX(-50%); }
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align:center; }
    .about-content { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: repeat(2,1fr); }
}

/* ================================
   TABLET HERO FIX (Navbar overlap + button alignment)
================================ */
@media (max-width: 1024px) {
    .hero {
        padding-top: 110px; /* pushes content below navbar */
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        gap: 2rem;
    }

    .hero-content {
        margin-top: 1rem; /* adds breathing space below navbar */
    }

    .hero-title {
        font-size: 2.8rem;
        line-height: 1.25;
    }

    .hero-buttons {
        justify-content: center;
        align-items: center;
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .btn {
        display: inline-flex;
        justify-content: center;
        align-items: center;
    }

    .hero-image {
        display: flex;
        justify-content: center;
    }

    .hero-img {
        width: 90%;
        max-width: 420px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed; left:-100%; top:70px; width:100%;
        flex-direction:column; background:#fff; text-align:center;
        transition: left .25s ease; padding:1.5rem 0; box-shadow: 0 10px 27px rgba(0,0,0,0.05);
    }
    .nav-menu.active { left:0; }
    .nav-toggle { display:flex; }

    .hero-title { font-size:2.4rem; }
    .hero-container, .about-content, .contact-content { padding: 0 12px; }
    .about-stats { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }

    .about-img, .service-image { max-height:320px; height:auto; }
    .contact-content { grid-template-columns: 1fr; }
    .form-actions { justify-content:center; }
}

@media (max-width: 480px) {
    .hero-title { font-size:1.9rem; }
    .hero-subtitle { font-size:.98rem; }
    .btn { padding:10px 18px; font-size:.92rem; }
    .about-img { height:260px; }
    .service-image { height:180px; }
}

/* ================================
   SCROLLBAR
================================ */
::-webkit-scrollbar { width:8px; }
::-webkit-scrollbar-track { background:#f1f1f1; }
::-webkit-scrollbar-thumb { background:#ff6b6b; border-radius:4px; }
::-webkit-scrollbar-thumb:hover { background:#ff5252; }
