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

:root {
    --primary: #0d6efd;
    --secondary: #0dcaf0;
    --dark: #212529;
    --light: #f8f9fa;
    --gray: #6c757d;
    --sidebar-width: 195px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark);
    background: linear-gradient(135deg, #e0f2fe 0%, #f8f9fa 50%, #e0e7ff 100%);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(13, 110, 253, 0.15);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    padding: 0 20px;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.sidebar-nav {
    flex: 1;
    padding: 30px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.nav-link svg {
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info {
    margin-bottom: 16px;
    padding: 0 4px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    word-break: break-all;
    line-height: 1.4;
}

.contact-item svg {
    flex-shrink: 0;
    min-width: 16px;
    margin-top: 2px;
}

.contact-item span {
    flex: 1;
    overflow-wrap: break-word;
}

.btn-contact-sidebar {
    width: 100%;
    padding: 10px 16px;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.btn-contact-sidebar:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 202, 240, 0.3);
}

.social-links {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mobile-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: rgba(13, 110, 253, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(13, 110, 253, 0.12);
    border-color: rgba(13, 110, 253, 0.3);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span {
    background: var(--primary);
    width: 22px;
}

.mobile-menu-toggle.active {
    background: var(--primary);
    border-color: var(--primary);
}

.mobile-menu-toggle.active span {
    background: white;
}

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

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

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

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

.mobile-logo-image {
    height: 56px;
    width: auto;
    object-fit: contain;
    max-width: 200px;
}

.mobile-header-right {
    display: flex;
    align-items: center;
}

.mobile-user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-profile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary);
}

.mobile-profile-icon.logged-in {
    background: var(--primary);
    color: white;
}

.mobile-profile-icon:hover {
    background: var(--primary);
    color: white;
}

.mobile-profile-icon svg {
    width: 20px;
    height: 20px;
}

/* Hide old mobile elements */
.mobile-menu-toggle-old {
    display: none !important;
}

.mobile-logo-old {
    display: none !important;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* Top Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.top-nav-links {
    display: flex;
    gap: 32px;
}

.top-nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-login-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-login-icon svg {
    flex-shrink: 0;
}

/* User Profile Dropdown */
.user-profile-dropdown {
    position: relative;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    color: var(--dark);
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile-btn:hover {
    border-color: var(--primary);
    background: rgba(13, 110, 253, 0.05);
}

.user-profile-btn .dropdown-arrow {
    transition: transform 0.3s ease;
}

.user-profile-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(13, 110, 253, 0.05);
    color: var(--primary);
}

.dropdown-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.dropdown-item:hover svg {
    opacity: 1;
}

/* Logout Success Message */
.logout-success-message {
    position: fixed;
    top: 100px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.logout-success-message.show {
    opacity: 1;
    transform: translateX(0);
}

.logout-success-message svg {
    flex-shrink: 0;
}

.top-nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
    position: relative;
}

.top-nav-link:hover,
.top-nav-link.active {
    color: var(--primary);
}

.top-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.btn-contact-top {
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-contact-top:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 202, 240, 0.3);
}

.btn-contact-top:active {
    transform: translateY(0);
}

/* Button click feedback */
.btn-contact-top.clicking,
.btn-contact-sidebar.clicking,
.pulse-btn.clicking {
    animation: buttonClick 0.3s ease;
}

@keyframes buttonClick {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 60px;
    min-height: calc(100vh - 80px);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(224, 242, 254, 0.4) 0%, 
        rgba(248, 249, 250, 0.6) 25%,
        rgba(224, 231, 255, 0.4) 50%,
        rgba(248, 249, 250, 0.6) 75%,
        rgba(224, 242, 254, 0.4) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

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

/* Animated Background */
.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    animation: float 20s infinite ease-in-out;
    filter: blur(40px);
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(225deg, var(--secondary), var(--primary));
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(315deg, var(--primary), #60a5fa);
    bottom: 20%;
    left: 20%;
    animation-delay: 10s;
}

.shape-4 {
    width: 180px;
    height: 180px;
    background: linear-gradient(45deg, var(--secondary), #93c5fd);
    top: 30%;
    right: 30%;
    animation-delay: 15s;
}

/* Additional tech lines */
.hero-bg-animation::before,
.hero-bg-animation::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--primary), transparent);
    opacity: 0.1;
    animation: techLine 8s infinite linear;
}

.hero-bg-animation::before {
    left: 20%;
    animation-delay: 0s;
}

.hero-bg-animation::after {
    right: 25%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(40px, -40px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translate(30px, 40px) rotate(270deg) scale(1.05);
    }
}

@keyframes techLine {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* Grid lines background */
.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(13, 110, 253, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(13, 110, 253, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Floating particle dots */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.particle-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: particleFade 4s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
}

@keyframes particleFade {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5) translateY(0);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2) translateY(-20px);
    }
}

.hero-content {
    max-width: 550px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 20px;
    min-height: 120px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Enhanced Typing Animation */
.typing-text {
    display: inline-block;
    position: relative;
}

.typing-text::after {
    content: '|';
    position: absolute;
    right: -8px;
    animation: blink 0.7s infinite;
    color: var(--primary);
    font-weight: 400;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Character animation */
.typing-text .char {
    display: inline-block;
    opacity: 0;
    animation: fadeInChar 0.1s forwards;
}

@keyframes fadeInChar {
    to {
        opacity: 1;
    }
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 32px;
    line-height: 1.6;
}

.btn-primary {
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 202, 240, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(13, 202, 240, 0.4);
}

/* Enhanced Pulse Animation for CTA */
.pulse-btn {
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 14px rgba(13, 110, 253, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(13, 110, 253, 0.6), 
                    0 0 0 0 rgba(13, 110, 253, 0.4),
                    0 0 0 15px rgba(13, 110, 253, 0);
    }
    100% {
        box-shadow: 0 4px 14px rgba(13, 110, 253, 0.3);
    }
}

/* Glow effect on hover */
.pulse-btn:hover {
    animation: none;
    box-shadow: 0 0 20px rgba(13, 202, 240, 0.6),
                0 0 40px rgba(13, 202, 240, 0.4),
                0 8px 25px rgba(13, 202, 240, 0.5);
}

/* Ripple effect */
.btn-primary .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-illustration {
    width: 100%;
    max-width: 600px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(13, 110, 253, 0.15));
    animation: floatIllustration 6s ease-in-out infinite;
    position: relative;
}

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

/* Shine effect overlay */
.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    animation: shine 3s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 150%;
    }
}

/* Device animations */
.device-desktop {
    animation: deviceBounce 3s ease-in-out infinite;
    transform-origin: center bottom;
}

.device-tablet {
    animation: deviceBounce 3s ease-in-out infinite 0.5s;
    transform-origin: center bottom;
}

.device-mobile {
    animation: deviceBounce 3s ease-in-out infinite 1s;
    transform-origin: center bottom;
}

@keyframes deviceBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

/* Services Section */
.services-section {
    padding: 100px 60px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    color: var(--dark);
    margin-bottom: 40px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: white;
    color: var(--dark);
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Flip Card Effect */
.flip-card {
    perspective: 1000px;
    height: 280px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.flip-card-front {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.flip-card-back {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    transform: rotateY(180deg);
}

.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Bounce Icon Animation */
.bounce-icon {
    animation: bounce 2s infinite;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}

.flip-card-back .service-title {
    color: white;
    margin-bottom: 20px;
}

.service-description {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
}

.service-details {
    list-style: none;
    text-align: left;
    width: 100%;
}

.service-details li {
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.service-details li:last-child {
    border-bottom: none;
}

.btn-center {
    display: block;
    margin: 0 auto;
}

/* Why Section */
.why-section {
    padding: 100px 60px;
    background: rgba(255, 255, 255, 0.5);
}

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

.why-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(13, 110, 253, 0.15);
}

.why-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
}

.why-icon svg {
    width: 100%;
    height: 100%;
}

.why-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.why-description {
    font-size: 14px;
    color: var(--gray);
}

/* Portfolio Section */
.portfolio-section {
    padding: 100px 60px;
}

.portfolio-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.portfolio-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    overflow: hidden;
}

.portfolio-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(13, 110, 253, 0.2);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

/* Zoom Hover Effect */
.zoom-hover {
    overflow: hidden;
}

.zoom-hover .project-preview {
    transition: transform 0.5s ease;
}

.zoom-hover:hover .project-preview {
    transform: scale(1.1);
}

.project-preview {
    width: 100%;
    height: 100%;
    display: block;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 110, 253, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.btn-view-project {
    padding: 12px 28px;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-project:hover {
    background: var(--secondary);
    color: white;
    transform: scale(1.05);
}

.portfolio-title {
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    text-align: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 5px;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 60px;
    background: rgba(255, 255, 255, 0.5);
}

.testimonials-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.testimonials-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 36px 28px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(13, 110, 253, 0.15);
}

.quote-icon {
    font-size: 60px;
    color: var(--primary);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 10px;
}

.testimonial-text {
    font-size: 15px;
    color: var(--dark);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    justify-content: center;
}

.star {
    color: #fbbf24;
    font-size: 18px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.client-avatar svg {
    width: 100%;
    height: 100%;
}

.client-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.client-position {
    font-size: 13px;
    color: var(--gray);
}

/* Contact Section */
.contact-section {
    padding: 100px 60px;
    position: relative;
    transition: all 0.5s ease;
}

/* Section Highlight Animation */
.section-highlight {
    animation: sectionPulse 2s ease-out;
}

@keyframes sectionPulse {
    0% {
        background: transparent;
    }
    15% {
        background: rgba(13, 110, 253, 0.05);
        transform: scale(1.01);
    }
    30% {
        background: rgba(13, 110, 253, 0.08);
    }
    100% {
        background: transparent;
        transform: scale(1);
    }
}

/* Contact section title animation on highlight */
.section-highlight .section-title {
    animation: titleBounce 0.6s ease-out;
}

@keyframes titleBounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-10px);
    }
    50% {
        transform: translateY(-5px);
    }
    75% {
        transform: translateY(-7px);
    }
}

/* Contact form animation on highlight */
.section-highlight .contact-form {
    animation: formFadeIn 0.8s ease-out;
}

@keyframes formFadeIn {
    0% {
        opacity: 0.5;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Scroll padding for fixed header offset */
html {
    scroll-padding-top: 100px;
}

/* Focus visible for accessibility */
.contact-section:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 5px;
}

/* Scroll indicator (optional visual feedback) */
.scroll-indicator {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 100;
}

.scroll-indicator.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all 0.3s ease;
    cursor: pointer;
}

.scroll-dot.active {
    background: var(--primary);
    transform: scale(1.5);
}

.scroll-dot:hover {
    background: var(--secondary);
    transform: scale(1.3);
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(13, 110, 253, 0.1);
    z-index: 9999;
    pointer-events: none;
}

.scroll-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-content {
    text-align: left;
}

.contact-subtitle {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.7;
    margin-top: 20px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

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

/* Form Validation */
.error-message {
    display: block;
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    min-height: 18px;
}

.form-input.error {
    border-color: #dc3545;
}

.form-input.success {
    border-color: #10b981;
}

.success-message {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
}

.success-message.show {
    display: flex;
    animation: slideDown 0.3s ease;
}

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

/* Error Message Box */
.error-message-box {
    display: none;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
    border-left: 4px solid #dc2626;
}

.error-message-box.show {
    display: flex;
    animation: slideDown 0.3s ease;
}

.error-message-box svg {
    flex-shrink: 0;
    color: #dc2626;
}

.error-message-box strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.error-message-box p {
    margin: 0;
    opacity: 0.9;
}

.btn-submit {
    width: 100%;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--light);
    padding: 60px 60px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-description {
    font-size: 14px;
    color: rgba(248, 249, 250, 0.7);
    line-height: 1.6;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(248, 249, 250, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 249, 250, 0.1);
    border-radius: 8px;
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(248, 249, 250, 0.1);
    font-size: 14px;
    color: rgba(248, 249, 250, 0.6);
}

/* Portfolio Modal/Lightbox */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 2002;
}

.modal-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
}

.modal-project-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 24px;
}

.modal-project-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.modal-project-description {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 24px;
}

.modal-project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.project-tag {
    padding: 6px 16px;
    background: #e0f2fe;
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

.back-to-top:hover {
    background: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(13, 202, 240, 0.4);
}

/* Sticky Mobile CTA */
.sticky-mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 998;
}

.sticky-mobile-cta .btn-primary {
    width: 100%;
}

/* WhatsApp Chat Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    text-decoration: none;
}

.whatsapp-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

.whatsapp-widget svg {
    width: 32px;
    height: 32px;
}

/* Authentication Modal */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.auth-modal.active {
    display: flex;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.auth-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 3001;
    animation: authModalSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes authModalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.auth-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f8f9fa;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3002;
}

.auth-modal-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    padding: 0 40px;
}

.auth-tab {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.auth-tab.active {
    color: var(--primary);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

/* Auth Form Container */
.auth-form-container {
    display: none;
    padding: 40px;
}

.auth-form-container.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--gray);
}

/* Form Label */
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

/* Input with Icon */
.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    pointer-events: none;
}

.input-with-icon .form-input {
    padding-left: 44px;
    padding-right: 44px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

/* Custom Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--dark);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Auth Button */
.btn-auth {
    width: 100%;
    position: relative;
    margin-bottom: 24px;
}

.btn-auth .btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.btn-auth.loading .btn-text {
    opacity: 0.5;
}

.btn-auth.loading .btn-loader {
    display: block;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Auth Divider */
.auth-divider {
    text-align: center;
    position: relative;
    margin: 24px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    position: relative;
    background: white;
    padding: 0 16px;
    font-size: 13px;
    color: var(--gray);
}

/* Social Login */
.social-login {
    display: flex;
    gap: 12px;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-social:hover {
    border-color: var(--primary);
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    width: 33%;
    background: #ef4444;
}

.strength-fill.medium {
    width: 66%;
    background: #f59e0b;
}

.strength-fill.strong {
    width: 100%;
    background: #10b981;
}

.strength-text {
    font-size: 12px;
    font-weight: 600;
}

.strength-text.weak {
    color: #ef4444;
}

.strength-text.medium {
    color: #f59e0b;
}

.strength-text.strong {
    color: #10b981;
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #e0f2fe;
}

.link-primary {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-primary:hover {
    color: var(--secondary);
    text-decoration: underline;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 40px;
    }

    .hero-title {
        font-size: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-track {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-track {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Show Mobile Header */
    .mobile-header {
        display: flex;
    }

    /* Hide Desktop Top Nav */
    .top-nav {
        display: none;
    }

    /* Adjust Main Content for Mobile Header */
    .main-content {
        margin-left: 0;
        padding-top: 60px;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        top: 60px;
        height: calc(100vh - 60px);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    /* Hero Section Mobile Optimization */
    .hero-section {
        padding: 40px 20px 40px;
        min-height: auto;
    }

    .hero-title {
        font-size: 32px;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .hero-subtitle {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        max-width: 100%;
        padding: 14px 24px;
        font-size: 15px;
        justify-content: center;
    }

    /* Section Titles Mobile */
    .section-title {
        font-size: 32px;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin-bottom: 16px;
    }

    .section-subtitle {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 32px;
    }

    /* Sections Spacing */
    .services-section,
    .why-section,
    .portfolio-section,
    .testimonials-section,
    .contact-section {
        padding: 50px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .flip-card {
        height: auto;
        min-height: 280px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portfolio-track {
        grid-template-columns: 1fr;
    }

    .testimonials-track {
        grid-template-columns: 1fr;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Floating Buttons - Prevent Overlap */
    .sticky-mobile-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 12px 20px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        z-index: 998;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }

    .sticky-mobile-cta .btn-primary {
        width: 100%;
        padding: 14px 24px;
        font-size: 15px;
        justify-content: center;
    }

    .back-to-top {
        bottom: 90px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .whatsapp-widget {
        bottom: 145px;
        right: 16px;
        width: 54px;
        height: 54px;
    }

    .whatsapp-widget svg {
        width: 28px;
        height: 28px;
    }

    /* Modal Mobile */
    .modal-body {
        padding: 24px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .modal-project-title {
        font-size: 24px;
        line-height: 1.3;
    }

    .auth-modal-content {
        max-width: 95%;
        margin: 20px auto;
        border-radius: 16px;
    }

    .auth-tabs {
        padding: 0 20px;
    }

    .auth-form-container {
        padding: 24px 20px;
    }

    .auth-title {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* Contact Form Mobile */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info-card {
        padding: 24px;
    }

    .contact-form {
        padding: 24px;
    }

    .form-row {
        flex-direction: column;
        gap: 16px;
    }

    .form-group {
        width: 100%;
    }

    /* Stats Counter Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-label {
        font-size: 13px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.why-card,
.portfolio-card,
.testimonial-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth transitions for all interactive elements */
a, button, .service-card, .portfolio-card, .testimonial-card {
    transition: all 0.3s ease;
}

/* Loading animation for images */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    animation: shimmer 2s infinite;
    background: linear-gradient(to right, #f0f0f0 4%, #e0e0e0 25%, #f0f0f0 36%);
    background-size: 1000px 100%;
}

/* Accessibility improvements */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Medium mobile devices (phones 481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .mobile-logo-image {
        height: 60px;
        max-width: 220px;
    }
}

/* Extra small devices (phones in portrait, less than 480px) */
@media (max-width: 480px) {
    .mobile-header {
        padding: 0 12px;
    }

    .mobile-logo-image {
        height: 50px;
        max-width: 180px;
    }

    .mobile-profile-icon {
        width: 38px;
        height: 38px;
    }

    .mobile-profile-icon svg {
        width: 18px;
        height: 18px;
    }

    /* Hero Section Extra Small */
    .hero-section {
        padding: 30px 16px 30px;
    }

    .hero-title {
        font-size: 26px;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .hero-buttons {
        gap: 10px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Section Titles Extra Small */
    .section-title {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .section-subtitle {
        font-size: 14px;
        margin-bottom: 28px;
    }

    /* Sections Spacing Extra Small */
    .services-section,
    .why-section,
    .portfolio-section,
    .testimonials-section,
    .contact-section {
        padding: 40px 16px;
    }

    /* Cards Extra Small */
    .service-card-front h3,
    .service-card-back h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .service-card-front p,
    .service-card-back li {
        font-size: 13px;
    }

    .why-card h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .why-card p {
        font-size: 13px;
    }

    .testimonial-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .testimonial-author {
        font-size: 14px;
    }

    .testimonial-role {
        font-size: 12px;
    }

    /* Forms Extra Small */
    .form-input,
    .form-textarea {
        font-size: 14px;
        padding: 12px 14px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Modals Extra Small */
    .auth-modal-content {
        max-width: 100%;
        margin: 10px;
        border-radius: 12px;
    }

    .modal-content {
        max-width: 100%;
        margin: 10px;
    }

    .auth-title {
        font-size: 22px;
    }

    .modal-project-title {
        font-size: 20px;
    }

    /* Floating Buttons Extra Small */
    .back-to-top {
        bottom: 85px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .whatsapp-widget {
        bottom: 135px;
        right: 12px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-widget svg {
        width: 26px;
        height: 26px;
    }

    .sticky-mobile-cta {
        padding: 10px 16px;
    }

    .sticky-mobile-cta .btn-primary {
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Top Nav Actions Extra Small */
    .btn-contact-top {
        display: none;
    }

    .user-name {
        max-width: 70px;
    }

    .btn-login-icon {
        width: 38px;
        height: 38px;
    }

    /* Stats Grid Extra Small */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-number {
        font-size: 28px;
    }

    /* Footer Extra Small */
    .footer {
        padding: 32px 16px 16px;
    }

    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 13px;
    }
}

/* Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section {
        padding: 100px 60px;
    }

    .hero-title {
        font-size: 56px;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .portfolio-track {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonials-track {
        grid-template-columns: repeat(3, 1fr);
    }

    .container {
        max-width: 1200px;
    }
}

/* Extra large devices (large desktops, 1400px and up) */
@media (min-width: 1400px) {
    .hero-title {
        font-size: 64px;
    }

    .container {
        max-width: 1320px;
    }

    .services-section,
    .why-section,
    .portfolio-section,
    .testimonials-section,
    .contact-section {
        padding: 100px 60px;
    }
}

/* Landscape orientation for mobile devices */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 40px 20px;
    }

    .sidebar {
        overflow-y: auto;
    }

    .modal-content,
    .auth-modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Print styles */
@media print {
    .sidebar,
    .mobile-menu-toggle,
    .back-to-top,
    .whatsapp-widget,
    .sticky-mobile-cta {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
}
