/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html.noscroll,
body.noscroll {
    overflow: hidden !important;
    
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Text selection styling */
::selection {
    background-color: rgba(15, 118, 110, 0.2);
    color: #0f766e;
}

::-moz-selection {
    background-color: rgba(15, 118, 110, 0.2);
    color: #0f766e;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 5px 0 5px 0;
    transition: padding 0.5s, background 0.5s;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Do not change these on scroll! */
}

.site-logo {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
    transform: scale(1.5);
}

.header.scrolled .site-logo {
    transform: scale(1); /* or your preferred scale */
}




.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #0f766e;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0f766e;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-menu .nav-link {
    font-size: 1.1rem;
    padding: 0 15px;
    transition: font-size 0.3s, padding 0.3s;
}

.header.scrolled {
    padding: 0.2rem 0;
    min-height: 48px;
}
.header.scrolled .nav-menu .nav-link {
    font-size: 1rem;
    padding: 0 12px;
}

.header.scrolled .container {
    padding: 0 !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 60px;
    height: 45px;
    position: relative;
    z-index: 1001;
    -webkit-transform: rotate(0deg) scale(0.6);
    -moz-transform: rotate(0deg) scale(0.6);
    -o-transform: rotate(0deg) scale(0.6);
    transform: rotate(0deg) scale(0.6);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
}

.hamburger {
    width: 100%;
    height: 100%;
    position: relative;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 9px;
    width: 100%;
    background: #666;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
}

.mobile-menu-btn:hover .hamburger span {
    background: #0f766e;
}

.mobile-menu-btn.active .hamburger span {
    background: #0f766e;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 18px;
}

.hamburger span:nth-child(3) {
    top: 36px;
}

.mobile-menu-btn.active .hamburger span:nth-child(1) {
    top: 18px;
    -webkit-transform: rotate(135deg);
    -moz-transform: rotate(135deg);
    -o-transform: rotate(135deg);
    transform: rotate(135deg);
}

.mobile-menu-btn.active .hamburger span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.mobile-menu-btn.active .hamburger span:nth-child(3) {
    top: 18px;
    -webkit-transform: rotate(-135deg);
    -moz-transform: rotate(-135deg);
    -o-transform: rotate(-135deg);
    transform: rotate(-135deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top:5.7rem;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 1rem;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 0;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #0f766e;
}

/* Hero Section */
.hero {
    position: relative;
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

/* Hero Section Background and Wave Animation */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    background: linear-gradient(135deg, #dc2626 0%, #ea580c 20%, #f59e0b 40%, #16a34a 60%, #0891b2 80%, #7c3aed 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.3), rgba(20, 184, 166, 0.2));
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, rgba(255,255,255,0.1));
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 50%);
    animation: wave 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes wave {
    0%, 100% {
        clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 50%);
    }
    50% {
        clip-path: polygon(0 100%, 100% 100%, 100% 20%, 0 70%);
    }
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(15, 118, 110, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(15, 118, 110, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #1f2937;
    border: 2px solid white;
    font-weight: 600;
}

.btn-secondary:hover {
    background: white;
    color: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Hero section specific button styles */
.hero .btn-primary {
    background: linear-gradient(135deg, #1f2937, #374151);
    box-shadow: 0 8px 25px rgba(31, 41, 55, 0.4);
}

.hero .btn-primary:hover {
    background: linear-gradient(135deg, #111827, #1f2937);
    box-shadow: 0 12px 35px rgba(31, 41, 55, 0.5);
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f766e;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background: #f8fafc;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(15, 118, 110, 0.2);
    border: 1px solid rgba(15, 118, 110, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(15, 118, 110, 0.3);
}

.service-card:hover .service-icon::before {
    width: 100px;
    height: 100px;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f766e;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-title {
    color: #14b8a6;
    transform: translateY(-2px);
}

.service-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.service-features i {
    color: #EA580C;
    font-size: 0.8rem;
}

/* Portfolio Section */
.portfolio-carousel-container {
    position: relative;
    width: 100%;
    margin: 0 0 60px 0;
    min-height: 320px; /* Ensure minimum height for proper button positioning */
    box-shadow: 
        inset 100px 0 80px -80px rgba(255, 255, 255, 0.8),
        inset -100px 0 80px -80px rgba(255, 255, 255, 0.8);
}

.portfolio-carousel {
    margin: 0;
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Swiper Styles */
.portfolio-carousel .swiper-wrapper {
    display: flex;
    width: 100%;
}

.portfolio-carousel .swiper-slide {
    width: 33.333% !important;
    flex-shrink: 0 !important;
}

/* Responsive adjustments for Swiper */
@media (max-width: 1024px) {
    .portfolio-carousel .swiper-slide {
        width: 50% !important;
    }
    
    .portfolio-slide {
        width: 50% !important;
    }
    
    /* Adjust button positions for tablet */
    .portfolio-carousel .swiper-button-prev {
        left: 5px !important;
    }
    
    .portfolio-carousel .swiper-button-next {
        right: 5px !important;
    }
    
    /* Remove fade effect on screens smaller than 1024px */
    .portfolio-carousel-container {
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    .portfolio-carousel .swiper-slide {
        width: 100% !important;
    }
    
    .portfolio-slide {
        width: 100% !important;
    }
    
    /* Adjust button positions for mobile */
    .portfolio-carousel .swiper-button-prev {
        left: 5px !important;
    }
    
    .portfolio-carousel .swiper-button-next {
        right: 5px !important;
    }
}

.portfolio-slide {
    padding: 0 5px;
    position: relative;
    width: 33.333% !important;
    box-sizing: border-box;
}

.portfolio-slide a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.portfolio-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: block;
}

.portfolio-slide:hover img {
    transform: scale(1.02);
    opacity: 0.8;
}



/* Swiper Carousel Custom Styles */
.portfolio-carousel .swiper-slide {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.portfolio-carousel .swiper-slide-active {
    opacity: 1;
}

.portfolio-carousel .swiper-slide-active {
    opacity: 1;
    transform: scale(1.05);
}

/* Swiper Navigation Buttons - Fixed Position */
.portfolio-carousel {
    position: relative;
}

/* Override ALL Swiper default styles for navigation */
.portfolio-carousel .swiper-button-next,
.portfolio-carousel .swiper-button-prev {
    width: 40px !important;
    height: 40px !important;
    background: rgba(15, 118, 110, 0.9) !important;
    border-radius: 50% !important;
    z-index: 999 !important;
    transition: all 0.3s ease;
    margin: 0 !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    /* Ensure buttons are visible */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    /* Position relative to carousel container, not slides */
    position: absolute !important;
    /* Remove any default Swiper styles */
    background-image: none !important;
    background-size: auto !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.portfolio-carousel .swiper-button-prev {
    left: 10px !important;
}

.portfolio-carousel .swiper-button-next {
    right: 10px !important;
}

.portfolio-carousel .swiper-button-prev:hover,
.portfolio-carousel .swiper-button-next:hover {
    background: rgba(15, 118, 110, 1) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

/* Custom Navigation Buttons - Fixed Position */
.custom-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: #0f766e;
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Position relative to the container, not the carousel */
    position: absolute !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.custom-nav-btn:hover {
    background: #14b8a6;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: white;
}



.custom-nav-prev {
    left: 10px;
}

.custom-nav-next {
    right: 10px;
}

/* Responsive adjustments for custom navigation */
@media (max-width: 1024px) {
    .custom-nav-prev {
        left: 5px;
    }
    
    .custom-nav-next {
        right: 5px;
    }
    
    /* Adjust custom pagination for tablet */
    .custom-pagination {
        gap: 8px;
        margin-top: 20px;
    }
    
    .pagination-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 768px) {
    .custom-nav-prev {
        left: 5px;
    }
    
    .custom-nav-next {
        right: 5px;
    }
    
    /* Adjust pagination for mobile */
    .custom-pagination {
        gap: 6px;
        margin-top: 15px;
    }
    
    .pagination-dot {
        width: 8px;
        height: 8px;
    }
    
    .pagination-dot:hover {
        transform: scale(1.1);
    }
    
    .pagination-dot.active {
        transform: scale(1.2);
    }
    
    /* Remove fade effect on mobile */
    .portfolio-carousel-container {
        box-shadow: none;
    }
}

.portfolio-carousel .swiper-button-prev::after,
.portfolio-carousel .swiper-button-next::after {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    font-size: 18px !important;
    color: white !important;
    display: block !important;
}

.portfolio-carousel .swiper-button-prev::after {
    content: '\f104' !important;
}

.portfolio-carousel .swiper-button-next::after {
    content: '\f105' !important;
}

/* Custom Pagination Dots */
.custom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding: 20px 0;
}

.pagination-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d1d5db;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.pagination-dot:hover {
    background: #0f766e;
    transform: scale(1.2);
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.pagination-dot.active {
    background: #0f766e;
    transform: scale(1.3);
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.pagination-dot:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    text-align: center;
    border-radius: 15px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.portfolio-slide:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.portfolio-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-slide a:hover .portfolio-btn {
    background: white;
    color: #0f766e;
}



/* Testimonials Section */
.testimonials {
    background: #f8fafc;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: none;
    animation: fadeIn 0.5s ease;
}

.testimonial-card.active {
    display: block;
}

.stars {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f766e;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: #666;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ccc;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.dot:hover {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.dot.active {
    background: #0f766e;
    transform: scale(1.2);
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.dot:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f766e;
    display: block;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.about-image {
    text-align: center;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact {
    background: #f8fafc;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f766e;
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: #666;
}

/* Contact section links styling - same as footer */
.contact-details a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-details a:hover {
    color: #fbbf24;
    text-decoration: underline;
}

.contact-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(15, 118, 110, 0.1), 0 0 0 1px rgba(15, 118, 110, 0.05);
    border: 1px solid rgba(15, 118, 110, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0f766e, #14b8a6, #0f766e);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #ffffff;
    position: relative;
}

.form-group::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
    z-index: 2;
    pointer-events: none;
}

.form-group:nth-child(4)::before {
    top: 1.5rem;
    transform: none;
    pointer-events: none;
}

.form-group:nth-child(1)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230f766e' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}

.form-group:nth-child(2)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230f766e' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.form-group:nth-child(3)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230f766e' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}

.form-group:nth-child(4)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230f766e' viewBox='0 0 24 24'%3E%3Cpath d='M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z'/%3E%3C/svg%3E");
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.15), 0 4px 12px rgba(15, 118, 110, 0.1);
    transform: translateY(-2px);
    background: #fefefe;
}

.form-group:hover input,
.form-group:hover select,
.form-group:hover textarea {
    border-color: #14b8a6;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-group textarea::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.form-group input::placeholder {
    color: #6b7280;
}

.form-group select {
    color: #6b7280;
}

/* Form submit button specific styling */
.contact-form .btn-primary {
    width: 100%;
    margin-top: 0.5rem;
    padding: 1.1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Form validation styling */
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230f766e' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px;
    padding-right: 3rem;
}

/* Form Messages */
.form-message {
    position: absolute;
    top: -35px;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 6px 14px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-weight: 500;
    font-size: .8rem;
    text-align: left;
    animation: slideInDown 0.3s ease;
    max-height: 50px;
    overflow: hidden;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
}


.success-message {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.error-message {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Screen Reader Only - Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    margin-top: 1rem;
    color: #9ca3af;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-contact a:hover {
    color: #fbbf24;
    text-decoration: underline;
}

.footer-contact i {
    margin-right: 0.5rem;
    color: #0f766e;
}

/* Facebook icon specific styling */
.footer-contact a:hover .fab.fa-facebook {
    color: #fbbf24;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}



/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Fade in animations for first load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

/* Animated state */
.fade-in-up.animated,
.fade-in-left.animated,
.fade-in-right.animated {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* Staggered animations */
.fade-in-up.delay-1 { animation-delay: 0.1s; }
.fade-in-up.delay-2 { animation-delay: 0.2s; }
.fade-in-up.delay-3 { animation-delay: 0.3s; }
.fade-in-up.delay-4 { animation-delay: 0.4s; }
.fade-in-up.delay-5 { animation-delay: 0.5s; }

.fade-in-left.delay-1 { animation-delay: 0.1s; }
.fade-in-left.delay-2 { animation-delay: 0.2s; }
.fade-in-left.delay-3 { animation-delay: 0.3s; }

.fade-in-right.delay-1 { animation-delay: 0.1s; }
.fade-in-right.delay-2 { animation-delay: 0.2s; }
.fade-in-right.delay-3 { animation-delay: 0.3s; }

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 0.3rem 0;
    }
    
    .header .container {
        padding: 0.3rem 20px !important;
    }
    
    .header.scrolled .container {
        padding: 0.3rem 20px !important;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        justify-content: space-around;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 1024px) {
  .header {
    padding: 0;
    min-height: unset;
  }
  .nav-brand{
    transform: scale(.8);
  }
  .header.scrolled {
    padding: 0 !important;
  }
  .header .container,
  .header.scrolled .container {
    padding: 0.5rem 20px !important;
  }
  .nav-brand {
    width: 80px;
    height: 80px;
  }
  .site-logo {
    transform: scale(1.2) !important;
  }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    border-radius: 5px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #0f766e #f1f5f9;
}

/* Prevent scrolling when lightbox is open */
body.lb-disable-scrolling {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
}

/* Also prevent scrolling on html element */
html.lb-disable-scrolling {
    overflow: hidden !important;
}

/* Lightbox overlay styles */
.lb-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999 !important;
}

/* Ensure lightbox elements are above everything */
.lb-outerContainer,
.lb-dataContainer,
.lb-nav {
    z-index: 10000 !important;
}

#backToTop {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    display: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-size: 22px;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s, box-shadow 0.2s;
}
#backToTop:hover {
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.3);
    transform: translateY(-2px);
}

/* Custom Form Validation Styles */
.validation-message {
    font-size: 0.875rem;
    margin-top: 0;
    padding: 0;
    border-radius: 0.375rem;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.validation-message::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
}

.validation-message.error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    opacity: 1;
    height: auto;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    padding-left: 2rem;
}

.validation-message.error::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dc2626'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
}

.validation-message.success {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    opacity: 1;
    height: auto;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    padding-left: 2rem;
}

.validation-message.success::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2316a34a'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}

.form-group.error input,
.form-group.error textarea {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group.success input,
.form-group.success textarea {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

/* Animation for validation messages */
@keyframes slideInValidation {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.validation-message.show {
    animation: slideInValidation 0.3s ease forwards;
}

/* Responsive adjustments for hero animations */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Reduce particle density on mobile */
    .hero::before {
        background-size: 150px 75px;
        animation: float 25s linear infinite;
    }
    
    /* Adjust wave effect for mobile */
    .hero::after {
        height: 60px;
        animation: wave 10s ease-in-out infinite;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Further reduce particle density on small screens */
    .hero::before {
        background-size: 120px 60px;
        animation: float 30s linear infinite;
    }
    
    .hero::after {
        height: 40px;
        animation: wave 12s ease-in-out infinite;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .hero::after {
        animation: none;
    }
}

.contact-content {
    position: relative;
}

.contact-form-container {
    position: relative;
}

/* --- HERO SECTION HEIGHT FIXES --- */
.hero {
    min-height: 100vh;
}
@supports (height: 100dvh) {
    .hero {
        min-height: 100dvh;
    }
}
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: 600px;
    }
}
/* --- NAVIGATION MEDIA QUERY FIXES --- */
@media (max-width: 1024px), (orientation: landscape) and (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
}

/* --- LANDSCAPE RESPONSIVENESS ENHANCEMENTS --- */
@media (orientation: landscape) and (max-width: 1024px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-content {
        padding: 1rem 0.5rem;
    }
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }
    .service-card {
        padding: 1.2rem;
    }
    .portfolio-carousel .swiper-slide,
    .portfolio-slide {
        width: 50% !important;
    }
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .about-image img {
        max-height: 250px;
        object-fit: cover;
    }
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .contact-form {
        padding: 1.2rem;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1rem;
    }
    .section-title {
        font-size: 1.7rem;
    }
    .section-header {
        margin-bottom: 2rem;
    }
    .testimonial-card {
        padding: 1.2rem;
    }
    .portfolio-carousel .swiper-button-prev,
    .portfolio-carousel .swiper-button-next {
        top: 60%;
    }
    .custom-nav-btn {
        top: 60%;
    }
}

@media (max-width: 932px) {
    .nav-menu {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero {
        padding-top: 90px; /* Adjust to match header height */
    }
}

/* For landscape at this width too */
@media (max-width: 932px) and (orientation: landscape) {
    .nav-menu {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero {
        padding-top: 90px;
    }
}

