/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

img {
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
    max-width: 100%;
    height: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Color Variables */
:root {
    --primary-orange: #FF6B35;
    --dark-blue: #1B365D;
    --yellow: #FFD23F;
    --light-orange: #FF8C42;
    --light-blue: #2C5F7C;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --dark-gray: #6C757D;
    --text-dark: #2C3E50;
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-blue);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    /* font-weight: 700; */
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-orange);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-blue);
    margin: 3px 0;
    transition: all 0.3s ease;
    display: block;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--light-orange) 100%);
    padding: 120px 0 80px;
    min-height: 100vh;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--yellow);
    color: var(--dark-blue);
}

.btn-primary:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-orange);
}

.hero-image {
    position: relative;
}

.hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    display: block;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--light-gray);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-orange);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-orange);
}

.service-icon i {
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

.about-text p {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-orange);
}

.stat-label {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.about-img {
    width: 100%;
    /* height: 400px; */
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: block;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background: var(--light-gray);
}

.gallery-subtitle {
    text-align: center;
    color: var(--dark-gray);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    /* vertical-align: middle; */
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(27, 54, 93, 0.9));
    color: var(--white);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-overlay i {
    color: var(--yellow);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--dark-blue);
    color: var(--white);
}

.contact .section-title {
    color: var(--white);
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--yellow);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--yellow);
    width: 30px;
    text-align: center;
}

.contact-icon i {
    display: inline-block;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.contact-form h3 {
    color: var(--dark-blue);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.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: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Form Message */
.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Loading State */
.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--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 h4 {
    color: var(--yellow);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    color: #BDC3C7;
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: #BDC3C7;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section i {
    color: var(--yellow);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495E;
    color: #BDC3C7;
}

/* Responsive Design */
/* Tablet and Mobile */
@media (max-width: 992px) {
    .container {
        padding: 0 30px;
    }

    .hero-container,
    .about-content,
    .contact-content {
        gap: 3rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    /* Navigation Improvements */
    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-100%);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 64px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        height: calc(100vh - 64px);
        text-align: center;
        transition: 0.3s;
        box-shadow: none;
        padding: 2rem 0;
        gap: 0;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0;
        padding: 1.2rem 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 0.5rem;
        font-size: 1.1rem;
    }

    /* Hero Section Mobile Improvements */
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
        min-height: auto;
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-top: 3rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        padding: 18px 30px;
        font-size: 1rem;
    }

    .hero-img {
        height: 300px;
    }

    /* Services Section Mobile */
    .services {
        padding: 60px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem;
    }

    /* About Section Mobile */
    .about {
        padding: 60px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-text .section-title {
        text-align: center;
        font-size: 2rem;
    }

    .about-text p {
        font-size: 1rem;
        text-align: center;
    }

    .stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .stat {
        min-width: 100px;
    }

    .about-img {
        max-height: 350px;
        object-fit: cover;
    }

    /* Gallery Section Mobile */
    .gallery {
        padding: 60px 0;
    }

    .gallery-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-img {
        height: 220px;
    }

    .gallery-overlay {
        transform: translateY(0);
        background: linear-gradient(transparent, rgba(27, 54, 93, 0.85));
        padding: 1.5rem 1rem 1rem;
    }

    .gallery-overlay h4 {
        font-size: 1.1rem;
    }

    /* Contact Section Mobile */
    .contact {
        padding: 60px 0;
    }

    .contact .section-title {
        margin-bottom: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        text-align: center;
    }

    .contact-info h3 {
        font-size: 1.6rem;
        margin-bottom: 1.25rem;
    }

    .contact-item {
        justify-content: center;
        font-size: 1rem;
        padding: 0.3rem 0;
        margin-bottom: 0.75rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .contact-form h3 {
        font-size: 1.6rem;
        margin-bottom: 1.25rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 16px;
        font-size: 1rem;
    }

    .contact-form .btn {
        width: 100%;
        padding: 18px 30px;
        margin-top: 0.5rem;
    }

    /* Footer Mobile */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section p {
        justify-content: center;
    }

    /* Section Titles Mobile */
    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 480px) {
    /* Container Adjustments */
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    /* Logo and Navigation */
    .logo-text {
        font-size: 1.3rem;
    }

    .logo-img {
        width: 35px;
        height: 35px;
    }

    /* Hero Section Small Mobile */
    .hero {
        padding: 90px 0 50px;
    }

    .hero-container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-top: 3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-img {
        height: 250px;
        border-radius: 15px;
    }

    .hero-buttons .btn {
        padding: 16px 25px;
        font-size: 1rem;
    }

    /* Sections Spacing */
    .services,
    .about,
    .gallery,
    .contact {
        padding: 50px 0;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .contact .section-title {
        margin-bottom: 1.5rem;
    }

    /* Service Cards */
    .service-card {
        padding: 1.75rem 1.5rem;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    /* About Section */
    .about-text p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .stats {
        flex-direction: row;
        gap: 1.5rem;
    }

    .stat {
        flex: 1;
        min-width: 80px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* Gallery */
    .gallery-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .gallery-img {
        height: 200px;
    }

    .gallery-overlay h4 {
        font-size: 1rem;
    }

    /* Contact Section */
    .contact-info h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .contact-item {
        font-size: 0.95rem;
        flex-wrap: wrap;
        padding: 0.25rem 0;
        margin-bottom: 0.5rem;
    }

    .contact-form {
        padding: 1.75rem 1.5rem;
    }

    .contact-form h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px;
        font-size: 0.95rem;
    }

    /* Footer */
    .footer {
        padding: 35px 0 15px;
    }

    .footer-section h4 {
        font-size: 1.2rem;
    }

    .footer-section p,
    .footer-section ul li {
        font-size: 0.9rem;
    }

    .footer-bottom {
        font-size: 0.85rem;
        padding-top: 1.5rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.75rem;
        margin-top: 3rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }
}


/* Animation for smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.service-card,
.gallery-item {
    animation: fadeIn 0.6s ease-out;
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .service-card:hover {
        transform: none;
    }
    
    .gallery-item:hover {
        transform: none;
    }
    
    .gallery-item:hover .gallery-img {
        transform: none;
    }
    
    /* Make overlay always visible on touch devices */
    .gallery-overlay {
        transform: translateY(0);
    }
    
    /* Better tap targets */
    .nav-menu a,
    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Prevent tap highlight color */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Smooth scrolling on iOS */
    body {
        -webkit-overflow-scrolling: touch;
    }
}

/* Prevent text selection on buttons and interactive elements */
.btn,
.hamburger,
.nav-menu a {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Better focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Improved mobile scrolling */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent phone number auto-styling on mobile */
a[href^="tel:"] {
    color: inherit !important;
    text-decoration: none !important;
}

/* Additional reset for auto-detected phone links */
.contact-item a,
.contact-info a,
.footer-section a {
    color: inherit !important;
    text-decoration: none !important;
}