/* =========================================
   1. GLOBAL RESET & TYPOGRAPHY
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
#header-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

header {
    background: #fff;
    padding: 0 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 80px;
    display: flex;
    align-items: center;
    /* Sticky is handled by #header-container */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.logo img {
    height: 55px;
    width: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Desktop Menu Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff; /* Brand Blue */
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 2000;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: #333;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    height: 90vh;
    background: linear-gradient(135deg, #007bff 0%, #0052cc 100%);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-btn {
    background: #fff;
    color: #007bff;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* =========================================
   4. SERVICES SECTION
   ========================================= */
.services {
    padding: 6rem 10%;
    text-align: center;
    background-color: #fff;
}

.services h2 {
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: #2c3e50;
    position: relative;
    display: inline-block;
}

.services h2::after {
    content: '';
    width: 50px;
    height: 3px;
    background: #007bff;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.service-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.card {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: #007bff;
}

.card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.3rem;
}

.card p {
    color: #666;
    font-size: 0.95rem;
}

/* =========================================
   5. PORTFOLIO SECTION
   ========================================= */
.portfolio {
    padding: 6rem 10%;
    background-color: #f8f9fa;
    text-align: center;
}

.portfolio h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.project-img-placeholder {
    height: 200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    background: #eef2ff;
    color: #007bff;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.project-info p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tags span {
    background: #eef2ff;
    color: #007bff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* =========================================
   6. CONTACT SECTION (MODERN & SHARP)
   ========================================= */
.contact-section {
    padding: 60px 20px;
    background-color: #f8fafc;
    font-family: 'Poppins', sans-serif;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.section-header h2 {
    color: #1e293b;
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.section-header p {
    color: #64748b;
    text-align: center;
    margin-bottom: 40px;
}

/* Form Layout */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

/* -- Sharp & Darker Input Styles -- */
.modern-form input, 
.modern-form select, 
.modern-form textarea {
    width: 100%;
    padding: 15px;
    /* Updated Darker Border */
    border: 2px solid #cbd5e1; 
    border-radius: 10px;
    /* Updated Darker Text */
    color: #1e293b; 
    background: #f8fafc;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.modern-form input:focus, 
.modern-form select:focus, 
.modern-form textarea:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Floating Labels */
.modern-form label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent; /* Changed to match input bg if needed, or keeping transparent */
    padding: 0 5px;
    color: #64748b; /* Darker label */
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s ease;
    pointer-events: none;
}

.modern-form textarea + label {
    top: 20px;
}

/* Label Animation */
.modern-form input:focus + label,
.modern-form input:not(:placeholder-shown) + label,
.modern-form textarea:focus + label,
.modern-form textarea:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.8rem;
    color: #2563eb;
    font-weight: 600;
    background: white; /* Label needs white bg when crossing border */
}

/* Dropdown specific fix */
.modern-form select {
    padding-right: 30px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.arrow {
    transition: transform 0.3s;
}

.submit-btn:hover .arrow {
    transform: translateX(5px);
}

/* =========================================
   7. FOOTER
   ========================================= */
footer {
    background: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

/* =========================================
   8. MEDIA QUERIES (MOBILE)
   ========================================= */
@media (max-width: 768px) {
    
    /* A. Logo Fix */
    nav .logo img {
        height: 40px !important;
        max-width: 140px;
        object-fit: contain;
    }
    
    /* B. Hamburger Visible */
    .hamburger {
        display: flex; 
    }

    /* C. Mobile Menu (Full Screen) */
    .nav-links {
        display: flex; 
        position: fixed;
        top: 0; 
        right: -100%;
        height: 100vh;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
        z-index: 1500;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        font-size: 1.5rem;
        color: #2c3e50;
        font-weight: 600;
    }

    /* D. Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 6px);
        background-color: #ff3333;
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -5px);
        background-color: #ff3333;
    }

    /* E. Typography Adjustments */
    #hero-container h1, .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    #hero-container p, .hero p {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    /* F. Section Padding */
    .services, .contact-section, .portfolio { 
        padding: 4rem 5%; 
    }

    /* G. Contact Form Mobile Layout */
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .contact-container {
        padding: 25px;
    }
}

/* --- Services Section with Slider --- */
.services-section {
    padding: 60px 20px;
    background: #fff;
    text-align: center;
    overflow: hidden; /* Zaroori hai slider ke liye */
}

.swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px; /* Neeche dots ke liye jagah */
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px; /* Card ki width */
    height: auto;
}

/* Modern Card Styling */
.service-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    text-align: left;
    height: 100%; /* Sab cards same height ke honge */
    min-height: 320px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #2563eb;
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.15);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: #f0f5ff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.service-card h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

/* Pagination Dots Color */
.swiper-pagination-bullet-active {
    background-color: #2563eb !important;
}
