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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Main Container */
.main-container {
    width: 100%;
}

.section-panel {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 0;
}

/* Navigation Styles */
nav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Logo Styles */
#nav-logo {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

#nav-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Footer logo styles */
.footer-logo-img {
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
    drop-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

.footer-logo-img:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1);
    drop-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

#footer-logo {
    transition: all 0.3s ease;
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff9447, #0ea5e9);
    transition: width 0.3s ease;
}

/* Scroll Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-slideInUp {
    animation: slideInUp 0.8s ease-out forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Smooth scroll behavior */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .section-panel {
        padding: 2rem 0;
    }
    
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
}

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

/* Mobile Menu Animation */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
}

#mobile-menu.show {
    transform: translateX(0);
}

/* Service Cards */
.service-card {
    transform: translateY(0);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.9);
}

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

/* Portfolio Items */
.portfolio-item {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-item:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Progress Indicator */
.progress-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background-color: #facc15 !important;
    transform: scale(1.2);
}

/* Animations */
@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);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(5px, -10px) rotate(1deg);
    }
    50% {
        transform: translate(-5px, -20px) rotate(-1deg);
    }
    75% {
        transform: translate(-10px, -10px) rotate(0.5deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease forwards;
}

.animate-slideInLeft {
    animation: slideInFromLeft 0.8s ease forwards;
}

.animate-slideInRight {
    animation: slideInFromRight 0.8s ease forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.6s ease forwards;
}

.animate-rotateIn {
    animation: rotateIn 0.8s ease forwards;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Section Animations */
.section-panel > * {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.section-panel.active > * {
    animation-delay: 0.2s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-panel {
        min-height: auto;
        padding: 2rem 0;
    }
    
    /* Mobile-specific optimizations */
    .parallax-content {
        padding: 1rem;
    }
    
    /* Disable complex animations on mobile for performance */
    .floating-shape {
        display: none;
    }
    
    /* Optimize mobile typography */
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 2rem !important;
        line-height: 1.3;
    }
    
    /* Mobile grid optimizations */
    .grid {
        gap: 1rem;
    }
    
    /* Hero section mobile optimization */
    .grid-cols-1.lg\:grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Statistics responsive layout */
    .grid-cols-2.lg\:grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Projects carousel mobile optimization */
    #projects-carousel-container {
        gap: 1rem;
        padding-bottom: 1rem;
    }
    
    .carousel-item {
        width: 280px !important;
        flex-shrink: 0;
    }
    
    /* Gallery responsive grid */
    .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3.xl\:grid-cols-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Services grid mobile */
    .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Partner logos mobile */
    .grid-cols-2.md\:grid-cols-3.lg\:grid-cols-4.xl\:grid-cols-5.\\32xl\:grid-cols-10 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Footer mobile optimization */
    .grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Mobile navigation improvements */
    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    /* Mobile button optimization */
    button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Mobile spacing improvements */
    .space-y-8 > * + * {
        margin-top: 1.5rem;
    }
    
    .space-y-6 > * + * {
        margin-top: 1rem;
    }
    
    .space-y-4 > * + * {
        margin-top: 0.75rem;
    }
    
    /* Mobile text size adjustments */
    .text-xl {
        font-size: 1.125rem;
    }
    
    .text-lg {
        font-size: 1rem;
    }
    
    .text-sm {
        font-size: 0.875rem;
    }
    
    /* Mobile image optimization */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Mobile container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Reduce motion for better performance */
    * {
        animation-duration: 0.3s !important;
        transition-duration: 0.3s !important;
    }
}

@media (max-width: 480px) {
    .section-panel {
        padding: 1rem 0;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Further reduce typography */
    h1 {
        font-size: 1.875rem !important;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.625rem !important;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    /* Compact spacing */
    .space-y-8 > * + * {
        margin-top: 1rem;
    }
    
    .space-y-6 > * + * {
        margin-top: 0.75rem;
    }
    
    .space-y-4 > * + * {
        margin-top: 0.5rem;
    }
    
    /* Ultra-mobile carousel optimization */
    .carousel-item {
        width: 260px !important;
    }
    
    /* Ultra-mobile button sizing */
    button {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    /* Ultra-mobile text adjustments */
    .text-4xl {
        font-size: 1.5rem !important;
    }
    
    .text-3xl {
        font-size: 1.375rem !important;
    }
    
    .text-2xl {
        font-size: 1.25rem !important;
    }
    
    .text-xl {
        font-size: 1rem !important;
    }
    
    .text-lg {
        font-size: 0.9375rem !important;
    }
    
    /* Ultra-mobile padding optimization */
    .py-20 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .py-16 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .py-12 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .px-8 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .px-6 {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    /* Ultra-mobile margins */
    .mb-16 {
        margin-bottom: 2rem !important;
    }
    
    .mb-12 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-8 {
        margin-bottom: 1rem !important;
    }
    
    .mb-6 {
        margin-bottom: 0.75rem !important;
    }
    
    /* Statistics cards ultra-mobile */
    .grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    /* Footer ultra-mobile optimization */
    .lg\:col-span-1 {
        grid-column: span 1;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0ea5e9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0284c7;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: scale(0.8);
    animation: loadIn 0.5s ease forwards;
}

@keyframes loadIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading Spinner Styles */
#loading-spinner {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-spinner.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.spinner-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid #facc15;
    border-radius: 50%;
    animation: spinner-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #facc15 transparent transparent transparent;
}

.spinner-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.spinner-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.spinner-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes spinner-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Loading spinner fade out */
.loading-fadeout {
    animation: fadeOutUp 0.5s ease forwards;
}

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

/* Lazy Loading Optimizations */
.lazy {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy.loaded {
    opacity: 1;
}

/* Placeholder for lazy images */
.lazy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-placeholder 1.5s infinite;
}

.lazy.loaded::before {
    display: none;
}

@keyframes loading-placeholder {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Performance optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* GPU acceleration for animations */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Critical above-the-fold optimization */
.above-fold {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* Below-the-fold lazy rendering */
.below-fold {
    content-visibility: auto;
    contain-intrinsic-size: 0 300px;
}

/* Intersection observer optimizations */
.section-panel {
    content-visibility: auto;
    contain-intrinsic-size: 0 100vh;
}

/* Reduce paint for off-screen elements */
.off-screen {
    content-visibility: hidden;
}

/* Optimize images for performance */
img {
    image-rendering: optimizeQuality;
    image-rendering: -webkit-optimize-contrast;
}

/* Performance-first carousel */
.carousel-container {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

/* Optimize text rendering */
.optimized-text {
    text-rendering: optimizeSpeed;
    font-smooth: never;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Button Hover Effects */
button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

button::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 ease;
}

button:hover::before {
    left: 100%;
}

/* Form Styles */
input, textarea {
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(14, 165, 233, 0.3);
}

/* Map Container */
#map {
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

#map:hover {
    border-color: #facc15;
}

/* Parallax Background Elements */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    will-change: transform;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Smooth scroll enhancements */
.smooth-scroll {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhanced floating shapes */
.floating-shape {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Mobile Touch Improvements */
@media (max-width: 768px) {
    /* Improve touch targets */
    button, a, input, textarea {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better touch scrolling */
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .overflow-x-auto::-webkit-scrollbar {
        display: none;
    }
    
    /* Prevent zoom on input focus */
    input, textarea, select {
        font-size: 16px;
    }
    
    /* Better tap highlighting */
    * {
        -webkit-tap-highlight-color: rgba(14, 165, 233, 0.2);
    }
    
    /* Mobile-specific carousel improvements */
    #projects-carousel-container {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .carousel-item {
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
    
    /* Gallery mobile grid snap */
    .gallery-item {
        scroll-snap-align: start;
    }
    
    /* Mobile navigation touch improvements */
    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Mobile menu overlay */
    #mobile-menu {
        touch-action: manipulation;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    /* Mobile hero section improvements */
    .section-panel {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    #home {
        padding-top: 5rem;
        min-height: 100vh;
    }
    
    /* Mobile navigation bar */
    nav {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    /* Mobile menu enhancements */
    #mobile-menu {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    #mobile-menu .nav-link {
        justify-content: flex-start;
        padding: 12px 16px;
        margin: 2px 0;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    #mobile-menu .nav-link:hover {
        background: rgba(250, 204, 21, 0.1);
        transform: translateX(5px);
    }
    
    /* Mobile hero text improvements */
    #hero-title {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        line-height: 1.1;
    }
    
    #hero-description {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
        line-height: 1.4;
    }
    
    /* Mobile button improvements */
    #hero-cta {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
    
    /* Mobile reviews section */
    #hero-customer-images {
        justify-content: center;
    }
    
    #hero-customer-images img {
        width: 40px;
        height: 40px;
    }
    
    /* Mobile statistics improvements */
    .grid-cols-2 {
        gap: 1rem;
    }
    
    /* Mobile loading spinner adjustments */
    .spinner-ring {
        width: 60px;
        height: 60px;
    }
    
    .spinner-ring div {
        width: 48px;
        height: 48px;
        margin: 6px;
        border-width: 6px;
    }
    
    .loading-container {
        padding: 2rem;
    }
    
    /* Mobile logo adjustments */
    #nav-logo {
        height: 32px;
        max-height: 32px;
    }
    
    #footer-logo {
        height: 40px;
        max-height: 40px;
    }
    
    #nav-company-name {
        font-size: 1rem;
    }
    
    #footer-company-name {
        font-size: 1.25rem;
    }
}

/* Section transition effects */
.section-transition {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-transition.active {
    opacity: 1;
    transform: translateY(0);
}

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

.animate-slideInUp {
    animation: slideInUp 0.8s ease forwards;
}

/* Section Specific Styles */
#home {
    background-image: 
        linear-gradient(135deg, rgba(14, 165, 233, 0.9) 0%, rgba(30, 64, 175, 0.9) 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    position: relative;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

#products {
    background-image: 
        linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%),
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.02'%3E%3Cpath d='M20 20c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20zm-30 0c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10z'/%3E%3C/g%3E%3C/svg%3E");
}

#about {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

#about::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(14, 165, 233, 0.05) 100%);
    z-index: 1;
}

#portfolio {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    position: relative;
}

#portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23facc15' fill-opacity='0.03'%3E%3Cpath d='M0 0h80v80H0V0zm20 20v40h40V20H20zm20 35a15 15 0 1 1 0-30 15 15 0 0 1 0 30z' fill-rule='evenodd'/%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

#contact {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.95) 0%, rgba(30, 64, 175, 0.95) 100%);
    position: relative;
}

/* Brand Color Variables */
:root {
    /* Legrand Colors */
    --legrand-red: #ED1C24;
    --legrand-blue: #003DA5;
    
    /* Finolex Colors */
    --finolex-red: #E31E24;
    --finolex-orange: #FF6600;
    
    /* KEI Wire Colors */
    --kei-red: #C8102E;
    --kei-blue: #003DA5;
    
    /* Panasonic Colors */
    --panasonic-blue: #0032A0;
    --panasonic-navy: #002B7F;
    
    /* Orient Colors */
    --orient-red: #D2232A;
    --orient-maroon: #8B0000;
    
    /* Usha Colors */
    --usha-red: #E31E24;
    --usha-orange: #FF6600;
    
    /* Philips Colors */
    --philips-blue: #0E4194;
    --philips-navy: #003C71;
    
    /* ABB Colors */
    --abb-red: #FF0000;
    --abb-white: #FFFFFF;
    
    /* Siemens Colors */
    --siemens-teal: #009999;
    --siemens-navy: #003C71;
    
    /* Havells Colors */
    --havells-red: #E31E24;
    --havells-orange: #FF6600;
}

/* Brand Color Classes */
.text-legrand-red { color: var(--legrand-red); }
.text-legrand-blue { color: var(--legrand-blue); }
.text-finolex-red { color: var(--finolex-red); }
.text-finolex-orange { color: var(--finolex-orange); }
.text-kei-red { color: var(--kei-red); }
.text-kei-blue { color: var(--kei-blue); }
.text-panasonic-blue { color: var(--panasonic-blue); }
.text-panasonic-navy { color: var(--panasonic-navy); }
.text-orient-red { color: var(--orient-red); }
.text-orient-maroon { color: var(--orient-maroon); }
.text-usha-red { color: var(--usha-red); }
.text-usha-orange { color: var(--usha-orange); }
.text-philips-blue { color: var(--philips-blue); }
.text-philips-navy { color: var(--philips-navy); }
.text-abb-red { color: var(--abb-red); }
.text-siemens-teal { color: var(--siemens-teal); }
.text-siemens-navy { color: var(--siemens-navy); }
.text-havells-red { color: var(--havells-red); }
.text-havells-orange { color: var(--havells-orange); }

/* Brand Background Classes */
.from-legrand-red\/20 { --tw-gradient-from: rgb(237 28 36 / 0.2); }
.to-legrand-blue\/20 { --tw-gradient-to: rgb(0 61 165 / 0.2); }
.from-finolex-red\/20 { --tw-gradient-from: rgb(227 30 36 / 0.2); }
.to-finolex-orange\/20 { --tw-gradient-to: rgb(255 102 0 / 0.2); }
.from-kei-red\/20 { --tw-gradient-from: rgb(200 16 46 / 0.2); }
.to-kei-blue\/20 { --tw-gradient-to: rgb(0 61 165 / 0.2); }
.from-panasonic-blue\/20 { --tw-gradient-from: rgb(0 50 160 / 0.2); }
.to-panasonic-navy\/20 { --tw-gradient-to: rgb(0 43 127 / 0.2); }
.from-orient-red\/20 { --tw-gradient-from: rgb(210 35 42 / 0.2); }
.to-orient-maroon\/20 { --tw-gradient-to: rgb(139 0 0 / 0.2); }
.from-usha-red\/20 { --tw-gradient-from: rgb(227 30 36 / 0.2); }
.to-usha-orange\/20 { --tw-gradient-to: rgb(255 102 0 / 0.2); }
.from-philips-blue\/20 { --tw-gradient-from: rgb(14 65 148 / 0.2); }
.to-philips-navy\/20 { --tw-gradient-to: rgb(0 60 113 / 0.2); }
.from-abb-red\/20 { --tw-gradient-from: rgb(255 0 0 / 0.2); }
.to-abb-white\/20 { --tw-gradient-to: rgb(255 255 255 / 0.2); }
.from-siemens-teal\/20 { --tw-gradient-from: rgb(0 153 153 / 0.2); }
.to-siemens-navy\/20 { --tw-gradient-to: rgb(0 60 113 / 0.2); }
.from-havells-red\/20 { --tw-gradient-from: rgb(227 30 36 / 0.2); }
.to-havells-orange\/20 { --tw-gradient-to: rgb(255 102 0 / 0.2); }

/* Brand Logos */
.brand-logo {
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 120px;
    height: auto;
    opacity: 0.7;
}

.brand-logo:hover {
    filter: grayscale(0%) brightness(1.1) saturate(1.2);
    transform: scale(1.1);
    opacity: 1;
}

/* Enhanced Group Hover Effects */
.group:hover .brand-logo {
    filter: grayscale(0%) brightness(1.1) saturate(1.2);
    transform: scale(1.1);
    opacity: 1;
}

/* Brand-Specific Hover Effects */
.brand-legrand:hover {
    border-color: var(--legrand-red);
    box-shadow: 0 10px 25px rgba(237, 28, 36, 0.25);
    background: linear-gradient(135deg, rgba(237, 28, 36, 0.05), rgba(0, 61, 165, 0.05));
}

.brand-legrand:hover .brand-logo-wrapper::before {
    background: linear-gradient(90deg, transparent, rgba(237, 28, 36, 0.3), transparent);
}

.brand-legrand:hover .brand-logo {
    filter: grayscale(0%) brightness(1.2) saturate(1.3) hue-rotate(0deg);
}

.brand-finolex:hover {
    border-color: var(--finolex-red);
    box-shadow: 0 10px 25px rgba(227, 30, 36, 0.25);
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.05), rgba(255, 102, 0, 0.05));
}

.brand-finolex:hover .brand-logo-wrapper::before {
    background: linear-gradient(90deg, transparent, rgba(227, 30, 36, 0.3), transparent);
}

.brand-finolex:hover .brand-logo {
    filter: grayscale(0%) brightness(1.2) saturate(1.3) hue-rotate(0deg);
}

.brand-kei:hover {
    border-color: var(--kei-red);
    box-shadow: 0 10px 25px rgba(200, 16, 46, 0.25);
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.05), rgba(0, 61, 165, 0.05));
}

.brand-kei:hover .brand-logo-wrapper::before {
    background: linear-gradient(90deg, transparent, rgba(200, 16, 46, 0.3), transparent);
}

.brand-kei:hover .brand-logo {
    filter: grayscale(0%) brightness(1.2) saturate(1.3) hue-rotate(0deg);
}

.brand-panasonic:hover {
    border-color: var(--panasonic-blue);
    box-shadow: 0 10px 25px rgba(0, 50, 160, 0.25);
    background: linear-gradient(135deg, rgba(0, 50, 160, 0.05), rgba(0, 43, 127, 0.05));
}

.brand-panasonic:hover .brand-logo-wrapper::before {
    background: linear-gradient(90deg, transparent, rgba(0, 50, 160, 0.3), transparent);
}

.brand-panasonic:hover .brand-logo {
    filter: grayscale(0%) brightness(1.2) saturate(1.3) hue-rotate(0deg);
}

.brand-orient:hover {
    border-color: var(--orient-red);
    box-shadow: 0 10px 25px rgba(210, 35, 42, 0.25);
    background: linear-gradient(135deg, rgba(210, 35, 42, 0.05), rgba(139, 0, 0, 0.05));
}

.brand-orient:hover .brand-logo-wrapper::before {
    background: linear-gradient(90deg, transparent, rgba(210, 35, 42, 0.3), transparent);
}

.brand-orient:hover .brand-logo {
    filter: grayscale(0%) brightness(1.2) saturate(1.3) hue-rotate(0deg);
}

.brand-usha:hover {
    border-color: var(--usha-red);
    box-shadow: 0 10px 25px rgba(227, 30, 36, 0.25);
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.05), rgba(255, 102, 0, 0.05));
}

.brand-usha:hover .brand-logo-wrapper::before {
    background: linear-gradient(90deg, transparent, rgba(227, 30, 36, 0.3), transparent);
}

.brand-usha:hover .brand-logo {
    filter: grayscale(0%) brightness(1.2) saturate(1.3) hue-rotate(0deg);
}

.brand-philips:hover {
    border-color: var(--philips-blue);
    box-shadow: 0 10px 25px rgba(14, 65, 148, 0.25);
    background: linear-gradient(135deg, rgba(14, 65, 148, 0.05), rgba(0, 60, 113, 0.05));
}

.brand-philips:hover .brand-logo-wrapper::before {
    background: linear-gradient(90deg, transparent, rgba(14, 65, 148, 0.3), transparent);
}

.brand-philips:hover .brand-logo {
    filter: grayscale(0%) brightness(1.2) saturate(1.3) hue-rotate(0deg);
}

.brand-abb:hover {
    border-color: var(--abb-red);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.25);
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.05), rgba(255, 255, 255, 0.05));
}

.brand-abb:hover .brand-logo-wrapper::before {
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.3), transparent);
}

.brand-abb:hover .brand-logo {
    filter: grayscale(0%) brightness(1.2) saturate(1.3) hue-rotate(0deg);
}

.brand-siemens:hover {
    border-color: var(--siemens-teal);
    box-shadow: 0 10px 25px rgba(0, 153, 153, 0.25);
    background: linear-gradient(135deg, rgba(0, 153, 153, 0.05), rgba(0, 60, 113, 0.05));
}

.brand-siemens:hover .brand-logo-wrapper::before {
    background: linear-gradient(90deg, transparent, rgba(0, 153, 153, 0.3), transparent);
}

.brand-siemens:hover .brand-logo {
    filter: grayscale(0%) brightness(1.2) saturate(1.3) hue-rotate(0deg);
}

.brand-havells:hover {
    border-color: var(--havells-red);
    box-shadow: 0 10px 25px rgba(227, 30, 36, 0.25);
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.05), rgba(255, 102, 0, 0.05));
}

.brand-havells:hover .brand-logo-wrapper::before {
    background: linear-gradient(90deg, transparent, rgba(227, 30, 36, 0.3), transparent);
}

.brand-havells:hover .brand-logo {
    filter: grayscale(0%) brightness(1.2) saturate(1.3) hue-rotate(0deg);
}

/* Enhanced Brand Logo Container Styles */
.brand-logo-container {
    cursor: pointer;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.brand-logo-container:hover {
    border-color: rgba(250, 204, 21, 0.3);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.brand-logo-wrapper {
    position: relative;
    overflow: hidden;
    padding: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
}

.brand-logo-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.3), transparent);
    transition: left 0.5s ease;
}

.brand-logo-container:hover .brand-logo-wrapper::before {
    left: 100%;
}

/* Pulse animation on hover */
@keyframes brandPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(250, 204, 21, 0);
    }
}

.brand-logo-container:hover {
    animation: brandPulse 1.5s infinite;
}

/* Mobile optimizations for brand logos */
@media (max-width: 768px) {
    .brand-logo-container {
        padding: 12px;
    }
    
    .brand-logo {
        height: 12px;
        width: 20px;
    }
    
    .brand-logo-container:hover {
        transform: translateY(-2px);
    }
}

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.box-shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Print Styles */
@media print {
    .horizontal-scroll-container {
        display: block;
        width: 100%;
        height: auto;
    }
    
    .section-panel {
        width: 100%;
        height: auto;
        page-break-after: always;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .nav-link {
        border: 1px solid transparent;
    }
    
    .nav-link:focus {
        border-color: #0ea5e9;
        outline: 2px solid #0ea5e9;
    }
}

/* Lightbox Gallery Styles */
#lightbox-modal {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

#lightbox-image {
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

#lightbox-loading {
    transition: opacity 0.3s ease;
}

#lightbox-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Lightbox Navigation Buttons */
#lightbox-prev,
#lightbox-next {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#lightbox-prev:hover,
#lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

#lightbox-prev:disabled,
#lightbox-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#lightbox-prev:disabled:hover,
#lightbox-next:disabled:hover {
    transform: none;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Lightbox Close Button */
#lightbox-close {
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#lightbox-close:hover {
    transform: scale(1.1);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* Lightbox Thumbnails */
#lightbox-thumbnails {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#lightbox-thumbnails::-webkit-scrollbar {
    display: none;
}

.lightbox-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
    border: 2px solid transparent;
}

.lightbox-thumb:hover {
    opacity: 0.9;
    transform: scale(1.1);
}

.lightbox-thumb.active {
    opacity: 1;
    border-color: #facc15;
    transform: scale(1.1);
}

/* Lightbox Info Panel */
.lightbox-info {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Lightbox Animations */
@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes lightboxSlideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#lightbox-modal.active #lightbox-image {
    animation: lightboxFadeIn 0.4s ease;
}

#lightbox-modal.active .lightbox-info {
    animation: lightboxSlideIn 0.4s ease 0.2s both;
}

/* Mobile Lightbox Optimizations */
@media (max-width: 768px) {
    #lightbox-prev,
    #lightbox-next {
        font-size: 1.5rem;
        padding: 12px;
        left: 4px;
        right: 4px;
    }
    
    #lightbox-close {
        font-size: 2rem;
        top: 20px;
        right: 20px;
    }
    
    #lightbox-modal .relative.max-w-6xl {
        max-width: 95vw;
        margin: 0 2.5vw;
    }
    
    #lightbox-image {
        max-height: 70vh;
    }
    
    .lightbox-info {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    #lightbox-title {
        font-size: 1.25rem;
    }
    
    #lightbox-thumbnails {
        max-width: 90vw;
        padding: 8px;
    }
    
    .lightbox-thumb {
        width: 50px;
        height: 50px;
    }
}

/* Ultra-mobile Lightbox */
@media (max-width: 480px) {
    #lightbox-prev,
    #lightbox-next {
        font-size: 1.25rem;
        padding: 8px;
    }
    
    #lightbox-close {
        font-size: 1.5rem;
        top: 16px;
        right: 16px;
    }
    
    #lightbox-image {
        max-height: 60vh;
    }
    
    .lightbox-info {
        padding: 0.75rem;
    }
    
    #lightbox-title {
        font-size: 1.125rem;
    }
    
    .lightbox-thumb {
        width: 40px;
        height: 40px;
    }
}

/* Gallery Item Click Cursor */
.gallery-item {
    cursor: zoom-in;
}

.gallery-item:hover {
    cursor: zoom-in;
}

/* Keyboard Navigation Hints */
.lightbox-keyboard-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    text-align: center;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    20%, 80% { opacity: 1; }
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
    overflow: hidden;
    height: 100vh;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .horizontal-scroll-container {
        transition: none;
    }
    
    #lightbox-modal,
    #lightbox-image,
    .lightbox-thumb,
    #lightbox-prev,
    #lightbox-next,
    #lightbox-close {
        transition: none !important;
        animation: none !important;
    }
}