/* Modern Responsive CSS for Webtech Industries */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Paragraph spacing */
p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* List spacing */
ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

ul li, ol li {
    margin-bottom: 0.5rem;
}

ul li:last-child, ol li:last-child {
    margin-bottom: 0;
}

/* Special list styles without bullets */
ul[style*="list-style: none"] {
    padding-left: 0;
}

ul[style*="list-style: none"] li {
    margin-bottom: 0.8rem;
}

body.menu-open {
    overflow: hidden;
}

/* CSS Variables for consistent theming */
:root {
    --primary-color: #cc0000;
    --secondary-color: #000;
    --accent-color: #666;
    --text-light: #fff;
    --text-dark: #333;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}


.col {
    padding: 0 15px;
}

.col-1 { flex: 0 0 8.333%; max-width: 8.333%; }
.col-2 { flex: 0 0 16.666%; max-width: 16.666%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 15px; }
.col-6 { flex: 0 0 50%; max-width: 50%; padding: 0 15px; }
.col-8 { flex: 0 0 66.666%; max-width: 66.666%; padding: 0 15px; }
.col-9 { flex: 0 0 75%; max-width: 75%; padding: 0 15px; }
.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 15px; }

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #333 100%);
    color: var(--text-light);
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.1;
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 10px;
}

.tagline {
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 5px;
}

/* Navigation Styles */
.nav {
    background: var(--primary-color);
    padding: 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 9998;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.1);
    border-bottom-color: #fff;
}

/* Dropdown Menu */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-color);
    min-width: 200px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 9999;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown .nav-link {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown .nav-link:hover {
    background: rgba(255,255,255,0.2);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    z-index: 10001;
    position: relative;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 700;
}

.hero-content .subtitle {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 30px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content p.subtitle {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* Content sections spacing */
.service-item p,
.package-features li,
.footer-section p {
    margin-bottom: 1rem;
}

.service-item p:last-child,
.footer-section p:last-child {
    margin-bottom: 0;
}

/* Hero content specific spacing - override for last child */
.hero-content p:last-child {
    margin-bottom: 2rem; /* Keep some margin before buttons */
}

/* General first section improvements */
.hero-content p strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Ensure proper spacing for any content sections */
.container > p {
    margin-bottom: 1.5rem;
}

.container > p:last-child {
    margin-bottom: 1rem;
}

/* Why Choose Us section spacing */
.why-choose-us h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.why-choose-us ul {
    margin-bottom: 0;
}

.why-choose-us .col-6 {
    margin-bottom: 40px;
}

/* Package Cards */
.packages {
    padding: 80px 0;
    background: #f8f9fa;
}

.packages h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.package-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.package-image img {
    transition: var(--transition);
}

.package-card:hover .package-image img {
    transform: scale(1.05);
}

.package-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.package-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.package-features {
    list-style: none;
    margin-bottom: 30px;
}

.package-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.package-features li:last-child {
    border-bottom: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

/* Services Section */
.services {
    padding: 80px 0;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    transition: var(--transition);
}

.service-item:hover {
    background: #f8f9fa;
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-section p,
.footer-section li {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .row {
        margin: 0 -10px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        z-index: 10000;
        overflow-y: auto;
        transform: translateX(0);
        visibility: hidden;
    }

    .nav-menu.active {
        left: 0;
        visibility: visible;
    }

    /* Mobile dropdowns - only show when menu is active */
    .dropdown {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        background: rgba(0,0,0,0.2);
        margin-top: 10px;
        border-radius: 10px;
        min-width: auto;
        width: 250px;
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
    }

    .nav-menu.active .dropdown {
        opacity: 1;
        visibility: visible;
        max-height: 300px;
    }

    .nav-item {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 15px 20px;
        font-size: 1.1rem;
    }

    .dropdown .nav-link {
        padding: 10px 20px;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .dropdown .nav-link:last-child {
        border-bottom: none;
    }

    .mobile-toggle {
        display: block;
        position: relative;
        z-index: 10001;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .subtitle {
        font-size: 1.1rem;
    }

    .col-4,
    .col-6,
    .col-8,
    .col-9 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 10px;
        margin-bottom: 30px;
    }

    .header-content {
        text-align: center;
        flex-direction: column;
    }

    .header-content .logo-section {
        margin-bottom: 15px;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .header-content .logo-section img {
        height: 40px;
        margin-bottom: 10px;
        margin-right: 0;
    }

    /* Hide "Webtech Industries" text on mobile */
    .header-content .logo-section .logo {
        display: none;
    }

    /* Move tagline below logo */
    .header-content .logo-section .tagline {
        margin-top: 0;
        font-size: 0.8rem;
        text-align: center;
    }

    /* Adjust header contact on mobile */
    .header-contact {
        margin-top: 10px;
    }

    .header-contact .contact-info {
        font-size: 0.9rem;
    }

    .hero .row {
        flex-direction: column-reverse;
    }

    .hero .col-4,
    .hero .col-8 {
        text-align: center;
        margin-bottom: 30px;
    }

    .package-grid {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile contact form */
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-form-container {
        padding: 0 10px;
    }

    .form-group {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 25px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .packages,
    .services {
        padding: 40px 0;
    }
    
    .package-card,
    .service-item {
        padding: 20px;
    }

    /* Extra mobile contact form improvements */
    .contact {
        padding: 40px 0 !important;
    }

    .contact-form-container {
        padding: 0 5px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .btn {
        width: 100%;
        padding: 15px;
        font-size: 1rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    /* Better mobile paragraph spacing */
    p {
        margin-bottom: 1.2rem;
    }

    .hero-content p {
        margin-bottom: 1.8rem;
    }
    
    .hero-content p.subtitle {
        margin-bottom: 1.2rem;
        font-size: 1.1rem;
    }

    /* Mobile headings spacing */
    h1, h2, h3, h4, h5, h6 {
        margin-bottom: 1rem;
        margin-top: 1.2rem;
    }
    
    /* Mobile spacing for Why Choose Us section */
    .why-choose-us h2 {
        margin-bottom: 20px;
        font-size: 1.8rem;
    }
    
    .why-choose-us .col-6 {
        margin-bottom: 40px;
        padding: 0 10px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Contact Form Styles */
.contact-form-container {
    padding: 0 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

/* Additional content spacing */
.why-choose-us p,
.about-content p,
.contact-info p {
    margin-bottom: 1rem;
}

.why-choose-us ul li,
.about-content ul li {
    margin-bottom: 0.5rem;
}

/* Headings spacing */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

h1:first-child, h2:first-child, h3:first-child,
h4:first-child, h5:first-child, h6:first-child {
    margin-top: 0;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }

/* Services Page Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 100px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.services-content {
    padding: 80px 0;
    background: #f8f9fa;
}

.service-detail {
    background: white;
    margin-bottom: 60px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 400px;
}

.service-detail-content.reverse {
    grid-template-columns: 1fr 1fr;
}

.service-detail-text {
    padding: 40px;
}

.service-detail-text h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2.2rem;
    font-weight: 700;
}

.service-detail-text h2 i {
    margin-right: 15px;
    color: var(--secondary-color);
}

.service-detail-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
}

.service-detail-text ul {
    list-style: none;
    margin-bottom: 20px;
}

.service-detail-text ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #555;
}

.service-detail-text ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.service-detail-image {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-detail-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Mobile Responsiveness for Services */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-header p {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .service-detail-content {
        grid-template-columns: 1fr;
    }
    
    .service-detail-content.reverse {
        grid-template-columns: 1fr;
    }
    
    .service-detail-content.reverse .service-detail-image {
        order: -1;
    }
    
    .service-detail-text {
        padding: 30px 20px;
    }
    
    .service-detail-text h2 {
        font-size: 1.8rem;
    }
    
    .service-detail-image {
        padding: 20px;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 250px;
        max-width: 90%;
    }
}
