/* Reset and Base Styles - Optimized for performance */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Critical styles are inlined in HTML head for faster rendering */

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

:root {
    --primary-color: #2c5530;
    --secondary-color: #d4842a;
    --accent-color: #e76f51;
    --dark-color: #264653;
    --light-color: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    width: 100% !important;
    min-width: 320px;
    max-width: 100vw;
    font-display: swap;
}

/* Font metric overrides to prevent layout shift */
/* Using Google Fonts stylesheet with font-display=swap; avoid hardcoding font file URLs to prevent 404s. */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    /* Prevent layout shift */
    min-height: 1px;
    contain: layout;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 80px;
    width: 76px;
    object-fit: contain;
}

.logo-text h2 {
    color: #000000;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.8);
}

.logo-text span {
    color: #000000;
    font-size: 0.9rem;
    font-weight: 700;
    display: block;
    margin-top: -5px;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.8);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #000000;
    font-weight: 700;
    transition: var(--transition);
    position: relative;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.8);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: #2c5530;
    opacity: 0.8;
}

.nav-link.active {
    color: #2c5530;
    font-weight: 800;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: var(--transition);
}

.hamburger:hover {
    background: rgba(0, 0, 0, 0.1);
}

.bar {
    width: 25px;
    height: 3px;
    background: #000000;
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 60vh;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    margin: 0;
    padding: 0;
    clear: both;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    left: 0;
    right: 0;
    /* CSS containment for better performance */
    contain: layout style;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -2;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.title-line {
    display: block;
}

.title-line:nth-child(2) {
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    opacity: 0.9;
    /* Prevent layout shift by reserving space */
    min-height: 1.6em;
    line-height: 1.6;
}

.hero-description {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    color: var(--white);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.hero-description::before {
    content: "Why Choose IGotIt & Co.?";
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: var(--secondary-color);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}


/* Section Styles */
section {
    padding: 80px 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--light-color);
    /* Prevent layout shift by reserving space */
    min-height: 600px;
    /* CSS containment for better performance */
    contain: layout style;
    /* Prevent content jumping */
    padding: 80px 0;
    /* Reserve space for content */
    display: block;
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    /* Prevent layout shift */
    min-height: 400px;
    contain: layout;
    /* Reserve space for content */
    position: relative;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    /* Prevent layout shift */
    min-height: 2.2rem;
    line-height: 1.2;
    font-weight: 600;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
    /* Prevent layout shift */
    min-height: 1.5rem;
    contain: layout;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    /* Prevent layout shift */
    min-height: 120px;
    contain: layout;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Consulting Details Section */
.consulting-details {
    margin-top: 3rem;
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.consulting-details h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 600;
}

.consulting-details .service-features {
    margin: 0 0 2rem;
    text-align: left;
}

.consulting-details p {
    margin: 0;
    line-height: 1.7;
    color: var(--text-light);
    text-align: left;
}

/* Mobile Responsive for Consulting Details */
@media (max-width: 768px) {
    .consulting-details {
        padding: 0 15px;
    }

    .consulting-details h4 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .consulting-details .service-features {
        margin-bottom: 1.5rem;
    }

    .consulting-details p {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .consulting-details {
        padding: 0 10px;
    }

    .consulting-details h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .consulting-details p {
        text-align: left;
    }
}

.about-image {
    position: relative;
    overflow: hidden;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding: 2rem;
    opacity: 1;
    transition: var(--transition);
}

.about-image:hover .image-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.7);
}

.image-overlay i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.image-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.image-overlay p {
    font-size: 1.1rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 4rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.image-placeholder:hover {
    transform: scale(1.02);
}

.image-placeholder p {
    font-size: 1.2rem;
    margin-top: 1rem;
    font-weight: 500;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: left;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Projects Section */
.projects {
    background: var(--light-color);
}

.projects-filter, .gallery-filter {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.filter-btn {
    padding: 12px 24px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
    min-width: 120px;
    text-align: center;
    white-space: nowrap;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 1;
    transform: scale(1);
}

.project-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.project-image .image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
    padding: 2rem;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-overlay p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.project-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 25px;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Contact Section */
.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.guarantee-box {
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.guarantee-box i {
    font-size: 1.2rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-details p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    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(44, 85, 48, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 90px;
    width: 85px;
    object-fit: contain;
}

.footer-logo-text h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-logo-text span {
    color: var(--white);
    font-size: 0.9rem;
}

.footer-section p {
    margin-bottom: 1rem;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    opacity: 0.8;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-credits {
    margin-top: 0.5rem;
}

.site-credits p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cpn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.cpn-link:hover {
    color: var(--white);
    transform: translateY(-1px);
}

.cpn-logo {
    height: 70px;
    width: 70px;
    object-fit: contain;
    margin-right: 8px;
    transition: var(--transition);
    opacity: 0.9;
}

.cpn-link:hover .cpn-logo {
    transform: scale(1.1);
    opacity: 1;
}

/* Animations */


/* Tablet and larger screens */
@media (min-width: 1024px) {
    .hero {
        height: 65vh;
        min-height: 500px;
        margin: 0;
        padding: 0;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1.1rem;
        padding: 1.2rem 2rem;
    }

    .hero-buttons {
        gap: 1.5rem;
    }

    .btn {
        padding: 18px 35px;
        font-size: 1.1rem;
    }
}

/* Large desktop screens */
@media (min-width: 1400px) {
    .hero {
        height: 70vh;
        min-height: 600px;
        margin: 0;
        padding: 0;
    }

    .hero-title {
        font-size: 3.6rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .hero-description {
        font-size: 1rem;
        padding: 1.2rem 2rem;
        max-width: 900px;
        margin: 0 auto 2rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        padding: 2rem 0;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile hero section */
    .hero {
        height: 70vh;
        min-height: 500px;
        padding: 0 15px;
        margin: 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .hero-description {
        font-size: 0.8rem;
        padding: 0.8rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* Mobile about section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Mobile contact section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Mobile footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h4 {
        margin-bottom: 1.5rem;
    }

    .footer-section ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .footer-section ul li {
        margin: 0;
    }

    .social-links {
        justify-content: center;
        margin-top: 1.5rem;
    }

    .site-credits {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Mobile CPN logo - slightly smaller for better mobile fit */
    .cpn-logo {
        height: 45px !important;
        width: 45px !important;
        margin-right: 6px;
    }

    .site-credits p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .projects-filter, .gallery-filter {
        gap: 1rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
        min-width: 100px;
        flex: 1;
        max-width: 140px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        height: 60vh;
        min-height: 400px;
        padding: 0 10px;
        margin: 0;
    }

    .hero-content {
        padding: 0 10px;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1.2rem;
    }

    .hero-description {
        font-size: 0.75rem;
        padding: 0.7rem 0.9rem;
        margin-bottom: 1.2rem;
    }

    .hero-description::before {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    .hero-buttons {
        gap: 0.8rem;
        max-width: 280px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .service-card,
    .contact-form {
        padding: 1.5rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .projects-filter, .gallery-filter {
        gap: 0.75rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-width: 90px;
        max-width: 120px;
    }

    .modal-content {
        max-width: 99%;
        max-height: 98%;
        margin: 1% auto;
        padding: 0.5rem;
    }

    .modal-content img {
        max-height: 60vh;
        border-radius: 4px;
    }

    .close-modal {
        top: -35px;
        font-size: 1.4rem;
        width: 30px;
        height: 30px;
        right: 10px;
    }

    .prev-btn, .next-btn {
        padding: 8px 14px;
        margin: 0 3px;
        font-size: 0.8rem;
        border-radius: 16px;
        min-width: 70px;
    }

    .modal-info {
        padding: 0.75rem 0.25rem;
    }

    .modal-info h3 {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }

    .modal-info p {
        font-size: 0.9rem;
    }
}


/* Gallery Styles */
.gallery-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.gallery-header .section-title {
    color: var(--white);
    margin-bottom: 1rem;
}

.gallery-header .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-section {
    padding: 80px 0;
    background: var(--light-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    background: var(--white);
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.overlay-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.overlay-content p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.overlay-content i {
    font-size: 2rem;
    color: var(--secondary-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: 5% auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    padding: 1rem;
    box-sizing: border-box;
}

.modal-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: -50px;
    right: 0;
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--secondary-color);
}

.modal-info {
    text-align: center;
    color: var(--white);
    margin: 1.5rem 0;
}

.modal-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.modal-info p {
    opacity: 0.8;
    font-size: 1.1rem;
}

.prev-btn, .next-btn {
    background: var(--gradient-secondary);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    margin: 0 10px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.prev-btn:hover, .next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
        margin-top: 2rem;
        padding: 0 1rem;
    }

    .gallery-item {
        border-radius: 12px;
        aspect-ratio: 16/12;
    }

    .gallery-item img {
        height: 100%;
    }

    .overlay-content {
        padding: 1.5rem;
    }

    .overlay-content h3 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }

    .overlay-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .overlay-content i {
        font-size: 1.8rem;
    }

    .modal-content {
        max-width: 98%;
        max-height: 95%;
        margin: 2% auto;
        padding: 0.75rem;
        border-radius: 8px;
    }

    .modal-content img {
        max-height: 65vh;
        border-radius: 6px;
        width: 100%;
        object-fit: contain;
    }

    .close-modal {
        top: -40px;
        font-size: 1.6rem;
        right: 15px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(10px);
    }

    .prev-btn, .next-btn {
        padding: 10px 16px;
        margin: 0 5px;
        font-size: 0.9rem;
        border-radius: 18px;
        min-width: 80px;
    }

    .modal-info {
        padding: 1rem 0.5rem;
        text-align: center;
    }

    .modal-info h3 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .modal-info p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* Tablet Gallery */
@media (max-width: 1024px) and (min-width: 769px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
        margin-top: 2.5rem;
    }

    .gallery-item {
        aspect-ratio: 4/3;
    }

    .gallery-item img {
        height: 100%;
    }
}

/* Small Mobile Gallery */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 0.5rem;
        margin-top: 2rem;
    }

    .gallery-item {
        max-width: 100%;
        border-radius: 10px;
        aspect-ratio: 16/10;
    }

    .gallery-item img {
        height: 100%;
    }

    .overlay-content {
        padding: 1.25rem;
    }

    .overlay-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .overlay-content p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .overlay-content i {
        font-size: 1.5rem;
    }
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 80px 0;
    background: var(--light-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
    transition: var(--transition);
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.1);
    background: var(--gradient-secondary);
}

.benefit-item h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.benefit-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Contact Links */
.contact-link {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.contact-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Utility Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}
