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

html {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
}

:root {
    --primary-color: #ffd700;
    --secondary-color: #1a1a2e;
    --accent-color: #ff6b35;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #f0f6fb;
    --gradient-primary: linear-gradient(135deg, #ffd700 0%, #ff6b35 100%);
    --gradient-secondary: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
    /* Prevent zoom out on mobile */
    min-width: 320px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    min-width: 320px;
    box-sizing: border-box;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

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

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1c6fa9;
}

.logo-text .highlight {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--secondary-color);
    margin: 4px 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
    background: var(--white);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
    background: var(--white);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-secondary);
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(28, 111, 169, 0.7) 0%,
        rgba(15, 52, 96, 0.8) 50%,
        rgba(26, 26, 46, 0.9) 100%
    );
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(26, 26, 46, 0.1) 0%, 
        rgba(22, 33, 62, 0.1) 25%, 
        rgba(15, 52, 96, 0.1) 50%, 
        rgba(22, 33, 62, 0.1) 75%, 
        rgba(26, 26, 46, 0.1) 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: 3;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(246, 140, 17, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(28, 111, 169, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(246, 140, 17, 0.05) 0%, transparent 50%);
    z-index: 4;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 5;
}

.solar-panel {
    position: absolute;
    top: 20%;
    right: -100px;
    width: 400px;
    height: 300px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 40px,
        rgba(255, 215, 0, 0.3) 40px,
        rgba(255, 215, 0, 0.3) 80px
    );
    transform: rotate(-15deg);
    animation: float 6s ease-in-out infinite;
}

.electricity-lines {
    position: absolute;
    bottom: 20%;
    left: -50px;
    width: 300px;
    height: 300px;
}

.electricity-svg {
    width: 100%;
    height: 100%;
}

.electricity-path {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2;
    stroke-linecap: round;
    animation: electricity 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: rotate(-15deg) translateY(0); }
    50% { transform: rotate(-15deg) translateY(-20px); }
}

@keyframes electricity {
    0% { stroke-dasharray: 0 100; opacity: 0; }
    50% { stroke-dasharray: 100 0; opacity: 1; }
    100% { stroke-dasharray: 0 100; opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 20;
    text-align: center;
    color: var(--white);
    padding: 100px 0;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 215, 0, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    width: 8px;
    height: 8px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.particle:nth-child(2) {
    width: 4px;
    height: 4px;
    top: 60%;
    left: 20%;
    animation-delay: 2s;
    animation-duration: 6s;
}

.particle:nth-child(3) {
    width: 6px;
    height: 6px;
    top: 40%;
    right: 15%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.particle:nth-child(4) {
    width: 3px;
    height: 3px;
    bottom: 30%;
    left: 60%;
    animation-delay: 3s;
    animation-duration: 5s;
}

.particle:nth-child(5) {
    width: 5px;
    height: 5px;
    top: 80%;
    right: 30%;
    animation-delay: 4s;
    animation-duration: 9s;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    position: relative;
    z-index: 25;
    color: #1c6fa9;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.title-line {
    display: block;
    animation: slideInUp 0.8s ease-out;
    color: white;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.highlight-gradient {
    color: #f68c11;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeIn 1s ease-out 0.4s both;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    animation: fadeIn 1s ease-out 0.6s both;
}

.badge i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out 0.8s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

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

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    margin: 0 auto 10px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 3px;
    animation: scroll 2s infinite;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scroll {
    0% { opacity: 1; top: 10px; }
    50% { opacity: 0.5; top: 20px; }
    100% { opacity: 0; top: 30px; }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #666;
}

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

.about-description {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.about-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

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

.about-card {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 20px;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.about-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    grid-template-rows: auto auto;
}

/* Reverse pyramid layout: 3 cards on top row, 2 cards centered on bottom row */
.services-grid .service-card:nth-child(1) {
    grid-column: 1 / 3;
}

.services-grid .service-card:nth-child(2) {
    grid-column: 3 / 5;
}

.services-grid .service-card:nth-child(3) {
    grid-column: 5 / 7;
}

.services-grid .service-card:nth-child(4) {
    grid-column: 2 / 4;
    grid-row: 2;
}

.services-grid .service-card:nth-child(5) {
    grid-column: 4 / 6;
    grid-row: 2;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin: 0 auto 1.5rem;
}

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

.service-card ul {
    list-style: none;
    margin-top: 1rem;
}

.service-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

.gallery-container {
    position: relative;
    overflow: hidden;
    margin: 0 -20px;
    width: 100%;
    max-width: 100vw;
}

.gallery-grid {
    display: flex;
    gap: 1.5rem;
    padding: 0 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 20px;
    /* Aggressive mobile performance optimizations */
    -webkit-overflow-scrolling: touch;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform;
    /* Remove scroll-behavior on mobile for native feel */
    scroll-behavior: auto;
}

.gallery-grid::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    height: 300px;
    min-width: 280px;
    width: 280px;
    flex-shrink: 0;
    /* Remove all transitions for mobile performance */
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    contain: layout style paint;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    /* Remove transitions for mobile performance */
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 215, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    color: var(--white);
}

/* Gallery Scroll Indicators */
.gallery-scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.scroll-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: pulse 2s infinite;
}

.scroll-hint i {
    color: var(--primary-color);
}

.gallery-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.gallery-nav-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.gallery-nav-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.gallery-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.gallery-navigation.prev {
    left: 10px;
}

.gallery-navigation.next {
    right: 10px;
}

.gallery-scrollbar {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1160px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    cursor: pointer;
}

.gallery-scrollbar-thumb {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    cursor: grab;
    transition: background 0.3s ease;
    position: relative;
    min-width: 20px;
    will-change: transform;
    backface-visibility: hidden;
}

.gallery-scrollbar-thumb:active {
    cursor: grabbing;
    background: var(--accent-color);
}

.gallery-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.gallery-scrollbar-thumb::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-scrollbar-thumb:hover::after {
    opacity: 1;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: var(--primary-color);
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(135deg, #1c6fa9 0%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

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

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 3rem;
}

.row {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.row-content {
    display: flex;
    gap: 20px;
    /* Remove animation - will handle in JavaScript */
    will-change: transform; /* Optimize for animations */
    transition: none; /* No transition for smooth scrolling */
}

/* Remove keyframes animation */
/*
@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
*/

.comment-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    width: 380px;
    min-width: 380px;
    max-width: 380px;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    color: var(--white);
    box-sizing: border-box;
}

.comment-card:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #f37a2c;
    transform: translateY(-2px);
}

.comment-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    color: #000000;
    background-color: #f37a2c;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
}

.username {
    font-weight: 600;
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 4px;
}

.timestamp {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.comment-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 8px;
}

.stars {
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    gap: 2px;
}

.stars svg {
    width: 20px;
    height: 20px;
    fill: #f37a2c;
}

/* Mobile animation speed - No longer needed
@media (max-width: 768px) {
    .row-content {
        animation-duration: 30s;
    }
}

@media (max-width: 480px) {
    .row-content {
        animation-duration: 20s;
    }
}
*/


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

.contact .section-title,
.contact .section-subtitle {
    color: var(--white);
}

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

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-details {
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    width: 30px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

/* Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
}

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

.form-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    pointer-events: none;
}

.form-group textarea + label {
    top: 1rem;
    transform: none;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label,
.form-group select:focus + label,
.form-group select:valid + label,
.form-group select:not([value=""]) + label {
    top: -10px;
    left: 10px;
    font-size: 0.875rem;
    background: var(--secondary-color);
    padding: 0 5px;
    color: var(--primary-color);
}

.form-group select option {
    background: var(--secondary-color);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Footer */
.footer {
    background: #0a0a0a;
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile-first performance optimization */
@media (hover: none) and (pointer: coarse) {
    /* This targets touch devices specifically */
    .gallery-grid {
        /* Override any smooth scrolling */
        scroll-behavior: auto !important;
        /* Remove snap scrolling for smooth free-form movement */
        scroll-snap-type: none !important;
        /* Prevent any interference */
        touch-action: pan-x !important;
        /* Force GPU layers */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    .gallery-item {
        /* Disable all animations and transitions */
        transition: none !important;
        animation: none !important;
        transform: translateZ(0) !important;
    }
    
    .gallery-item * {
        /* Disable animations on all child elements */
        transition: none !important;
        animation: none !important;
    }
}

/* Responsive Design */

/* Medium screens (tablets and small desktops) */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    /* Reset grid positioning for tablets */
    .services-grid .service-card {
        grid-column: auto;
        grid-row: auto;
    }
    
    .services-grid .service-card:nth-child(5) {
        grid-column: 1 / 3;
        justify-self: center;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    /* Force prevent horizontal scroll on all mobile elements */
    * {
        max-width: 100vw !important;
    }
    
    body, html {
        overflow-x: hidden !important;
        width: 100vw;
        max-width: 100vw;
    }
    
    section {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .hero, .about, .services, .gallery, .testimonials, .contact, .footer {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 80%;
        max-width: 350px;
        flex-direction: column;
        background: linear-gradient(135deg, var(--secondary-color) 0%, #0f3460 100%);
        padding: 120px 2rem 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1000;
        justify-content: flex-start;
        gap: 2rem;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        color: var(--white);
        font-size: 1.2rem;
        font-weight: 600;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease;
    }
    
    .nav-menu.active .nav-link {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-menu.active .nav-link:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .nav-link:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active .nav-link:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active .nav-link:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu.active .nav-link:nth-child(5) { transition-delay: 0.5s; }
    .nav-menu.active .nav-link:nth-child(6) { transition-delay: 0.6s; }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link:hover {
        color: var(--primary-color);
        padding-left: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-video {
        transform: translate(-50%, -50%) scale(1.2);
    }
    
    .hero-video-overlay {
        background: linear-gradient(
            135deg,
            rgba(28, 111, 169, 0.8) 0%,
            rgba(15, 52, 96, 0.9) 50%,
            rgba(26, 26, 46, 0.95) 100%
        );
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    /* Reset all grid positioning for mobile - use natural HTML order */
    .services-grid .service-card {
        grid-column: unset;
        grid-row: unset;
        order: initial;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social .social-links {
        justify-content: center;
    }
    
    .gallery {
        padding-left: 0;
        padding-right: 0;
    }
    
    .gallery .container {
        padding: 0;
        max-width: none;
        width: 100vw;
    }
    
    .gallery-container {
        margin: 0;
        width: 100vw;
        position: relative;
        left: 0;
        overflow: hidden;
    }
    
    .gallery-grid {
        padding: 0 0 20px 20px;
        width: 100%;
    }
    
    .gallery-item {
        min-width: 250px;
        width: 250px;
        height: 280px;
    }
    
    /* Complete mobile performance optimization */
    .gallery-grid {
        /* Remove snap scrolling for smooth free-form scrolling */
        scroll-snap-type: none;
        /* Force native scrolling */
        scroll-behavior: auto !important;
        -webkit-overflow-scrolling: touch;
        /* Disable all JavaScript during scroll */
        pointer-events: auto;
    }
    
    .gallery-item {
        /* Remove snap alignment for smooth scrolling */
        scroll-snap-align: none;
        /* Remove all performance-heavy properties */
        transition: none !important;
        animation: none !important;
        will-change: auto;
        contain: strict;
    }
    
    .gallery-item img {
        transition: none !important;
        animation: none !important;
        transform: translate3d(0, 0, 0) !important;
    }
    
    /* Completely disable hover effects on mobile */
    .gallery-item:hover,
    .gallery-item:active,
    .gallery-item:focus {
        transform: translate3d(0, 0, 0) !important;
        box-shadow: none !important;
    }
    
    .gallery-item:hover img,
    .gallery-item:active img,
    .gallery-item:focus img {
        transform: translate3d(0, 0, 0) !important;
    }
    
    .gallery-overlay {
        display: none !important;
    }
    
    .gallery-navigation {
        display: none;
    }
    
    .gallery-scroll-indicator {
        margin-top: 1rem;
    }
    
    .gallery-scrollbar {
        width: calc(100% - 40px);
        max-width: calc(100% - 40px);
        height: 4px;
    }
    
    .gallery-scrollbar-thumb {
        min-width: 15px;
    }


}

/* iPhone SE and similar small screens */
@media (max-width: 375px) {
    .logo-text {
        font-size: 1.1rem;
    }
    
    .hero {
        padding-top: 95px;
        min-height: 110vh;
    }
    
    .hero-content {
        padding-top: 0;
    }
    
    .contact-info h3 {
        text-align: center;
    }
    
    .contact-info .social-links {
        justify-content: center;
        margin-top: 1.5rem;
    }
    
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .contact-info h3 {
        text-align: center;
    }
    
        .contact-info .social-links {
        justify-content: center;
        margin-top: 1.5rem;
    }



    /* Ultra performance mode for small screens */
    .gallery-grid {
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
        /* Force hardware acceleration */
        will-change: scroll-position !important;
    }
    
    .gallery-item {
        /* Maximum containment for performance */
        contain: strict !important;
        isolation: isolate;
    }
    
    /* Reduce visual complexity on very small screens */
    .gallery-item {
        border-radius: 10px !important;
        min-width: 220px !important;
        width: 220px !important;
        height: 250px !important;
    }
    
    /* Ensure gallery extends to full width on very small screens */
    .gallery .container {
        padding: 0 !important;
        width: 100vw !important;
        max-width: none !important;
    }
    
    .gallery-container {
        margin: 0 !important;
        width: 100vw !important;
    }
    
    .gallery-grid {
        padding: 0 0 20px 15px !important;
    }
} 