* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: text;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    width: 100%;
    max-width: 100vw;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Disable tap highlight for all interactive elements */
button, a, .cta-btn, .contact-btn, .theme-toggle, .mobile-menu-btn,
.nav-menu a, .service-card, .star, .tech-item,
input, textarea, select {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
}

/* Theme Toggle Button */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 2px;
    transition: all 0.3s ease;
    margin-left: 1rem;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.theme-slider {
    position: absolute;
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: translateX(0);
}

.theme-slider::before {
    content: '☀️';
    position: absolute;
    transition: all 0.3s ease;
    opacity: 1;
}

.theme-slider::after {
    content: '🌙';
    position: absolute;
    transition: all 0.3s ease;
    opacity: 0;
}

/* Dark mode styles */
body.dark-theme {
    background-color: #0a0e1a;
    color: #e2e8f0;
}

body.dark-theme .theme-toggle {
    background: linear-gradient(45deg, #4a5568, #2d3748);
}

body.dark-theme .theme-slider {
    transform: translateX(30px);
    background: #1a202c;
}

body.dark-theme .theme-slider::before {
    opacity: 0;
}

body.dark-theme .theme-slider::after {
    opacity: 1;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 35, 126, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

body.dark-theme .header {
    background: rgba(16, 20, 32, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.nav-right {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 8px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    transition: all 0.3s ease;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.nav-menu a:hover {
    color: #667eea;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    margin-left: 1rem;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9)), 
                url('/image/imageHero.avif') center/cover;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0 2rem;
}

body.dark-theme .hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(15, 23, 42, 0.95)), 
                url('/image/imageHero.avif') center/cover;
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Left Content */
.hero-content {
    color: white;
    text-align: left;
    animation: slideInLeft 1.2s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content .logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-content .logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 12px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    color: #cbd5e0;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-content .cta-btn {
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.8s both;
    text-align: center;
}

.cta-btn {
    padding: 16px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    text-align: center;
    white-space: nowrap;
    min-width: fit-content;
    max-width: 250px;
    width: auto;
    flex-shrink: 0;
    box-sizing: border-box;
}

.cta-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    text-align: center;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    text-align: center;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

/* Prevent button expansion on touch/press */
.cta-btn:active {
    transform: scale(0.98) !important;
    transition: all 0.1s ease !important;
    width: auto !important;
    min-width: auto !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.cta-primary:active {
    transform: scale(0.98) !important;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3) !important;
    width: auto !important;
    min-width: auto !important;
}

.cta-secondary:active {
    transform: scale(0.98) !important;
    width: auto !important;
    min-width: auto !important;
}

/* Specific styles for hero buttons content */
.cta-btn span {
    display: inline-block;
    flex-shrink: 0;
}

.cta-btn:active span {
    display: inline-block !important;
    flex-shrink: 0 !important;
}

/* Hero section specific button fixes */
.hero .cta-btn {
    width: auto !important;
    max-width: none !important;
    min-width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 16px 35px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.hero .cta-btn:active {
    transform: scale(0.98) !important;
    width: auto !important;
    max-width: none !important;
    min-width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.1s ease !important;
    flex-shrink: 0 !important;
}

/* Right Side */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1.2s ease-out;
    min-height: 500px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image-container {
    position: relative;
    width: 500px;
    height: 500px;
    cursor: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.creative-gallery {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    padding: 20px;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 1.5s ease;
}

.image-wrapper:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.image-wrapper:hover .gallery-image {
    transition: all 1.5s ease;
}

.image-wrapper:nth-child(1) {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: rotate(-5deg);
    animation: float 6s ease-in-out infinite;
}

.image-wrapper:nth-child(1):hover {
    transform: scale(1.08) rotate(0deg) !important;
    z-index: 10;
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.5);
    animation: none !important;
}

.image-wrapper:nth-child(2) {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(135deg, #667eea, #9c88ff);
    transform: rotate(8deg);
    animation: float 6s ease-in-out infinite 1s;
}

.image-wrapper:nth-child(2):hover {
    transform: scale(1.08) rotate(0deg) !important;
    z-index: 10;
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.5);
    animation: none !important;
}

.image-wrapper:nth-child(3) {
    border-radius: 50% 50% 80% 20% / 25% 75% 25% 75%;
    background: linear-gradient(135deg, #764ba2, #f093fb);
    transform: rotate(-3deg);
    animation: float 6s ease-in-out infinite 2s;
}

.image-wrapper:nth-child(3):hover {
    transform: scale(1.08) rotate(0deg) !important;
    z-index: 10;
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.5);
    animation: none !important;
}

.image-wrapper:nth-child(4) {
    border-radius: 70% 30% 50% 50% / 60% 40% 60% 40%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: rotate(6deg);
    animation: float 6s ease-in-out infinite 3s;
}

.image-wrapper:nth-child(4):hover {
    transform: scale(1.08) rotate(0deg) !important;
    z-index: 10;
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.5);
    animation: none !important;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: all 0.8s ease-out;
    border-radius: inherit;
}

.gallery-image.active {
    opacity: 0.6;
    filter: brightness(0.7) contrast(1.1);
}

.image-wrapper:nth-child(1):hover .gallery-image {
    opacity: 1;
    filter: brightness(1.1) contrast(1.2);
    transform: scale(1.1);
}

.image-wrapper:nth-child(2):hover .gallery-image {
    opacity: 1;
    filter: brightness(1.1) contrast(1.2);
    transform: scale(1.1);
}

.image-wrapper:nth-child(3):hover .gallery-image {
    opacity: 1;
    filter: brightness(1.1) contrast(1.2);
    transform: scale(1.1);
}

.image-wrapper:nth-child(4):hover .gallery-image {
    opacity: 1;
    filter: brightness(1.1) contrast(1.2);
    transform: scale(1.1);
}

/* Mouse Follower Element */
.mouse-follower {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    z-index: 15;
    opacity: 0;
}

.mouse-follower.active {
    opacity: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
}

.decorative-element {
    position: absolute;
    z-index: 5;
    opacity: 0.7;
    animation: sparkle 3s ease-in-out infinite;
}

.decorative-element.star1 {
    top: 50px;
    left: 30px;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.decorative-element.star2 {
    bottom: 80px;
    right: 40px;
    width: 15px;
    height: 15px;
    animation-delay: 1s;
}

.decorative-element.line1 {
    top: 20%;
    right: -20px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    border-radius: 2px;
    animation-delay: 2s;
}

.decorative-element.line2 {
    bottom: 30%;
    left: -20px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f093fb, transparent);
    border-radius: 2px;
    animation-delay: 1.5s;
}

.decorative-element.circle1 {
    top: 60%;
    left: -10px;
    width: 12px;
    height: 12px;
    border: 2px solid #9c88ff;
    border-radius: 50%;
    animation-delay: 0.5s;
}

.decorative-element.circle2 {
    top: 10%;
    right: 20px;
    width: 8px;
    height: 8px;
    background: #764ba2;
    border-radius: 50%;
    animation-delay: 2.5s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Floating Elements */
.floating-element {
    position: absolute;
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.floating-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    right: 10%;
    animation: floatMove 8s ease-in-out infinite;
}

.floating-2 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: -10%;
    animation: floatMove 10s ease-in-out infinite reverse;
}

.floating-3 {
    width: 100px;
    height: 100px;
    top: 60%;
    right: -15%;
    animation: floatMove 12s ease-in-out infinite;
}

@keyframes floatMove {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        padding: 0 1.5rem;
    }
    
    .hero-container {
        gap: 3rem;
    }

    .hero-image-container {
        width: 400px;
        height: 400px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 1rem 2rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        order: 1;
    }

    .hero-content .logo {
        justify-content: center;
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .hero-content .logo-icon {
        width: 50px;
        height: 50px;
        margin-right: 12px;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-visual {
        order: 2;
    }

    .hero-image-container {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    .cta-buttons {
        justify-content: center;
        gap: 1rem;
    }

    .cta-btn {
        padding: 14px 28px;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
        flex-shrink: 0;
        width: auto;
        max-width: 220px !important;
    }

    .cta-btn:active {
        width: auto !important;
        max-width: 220px !important;
        transform: scale(0.95) !important;
        transition: all 0.1s ease !important;
    }

    /* Hero specific overrides for tablet */
    .hero .cta-btn {
        width: auto !important;
        max-width: 220px !important;
        display: inline-block !important;
        text-align: center !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .hero .cta-btn:active {
        width: auto !important;
        max-width: 220px !important;
        transform: scale(0.95) !important;
        display: inline-block !important;
    }

    .mouse-follower {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }

    .floating-element {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0.5rem 1rem;
    }

    .hero-container {
        gap: 1.5rem;
    }

    .hero-content .logo {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .hero-content .logo-icon {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .hero-image-container {
        width: 250px;
        height: 250px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .cta-btn {
        width: 200px;
        padding: 12px 24px;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
        flex-shrink: 0;
        max-width: 200px !important;
        min-width: 200px !important;
    }

    .cta-btn:active {
        width: 200px !important;
        max-width: 200px !important;
        min-width: 200px !important;
        transform: scale(0.95) !important;
        transition: all 0.1s ease !important;
    }

    /* Hero specific overrides for mobile */
    .hero .cta-btn {
        width: 200px !important;
        max-width: 200px !important;
        min-width: 200px !important;
        display: inline-block !important;
        text-align: center !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .hero .cta-btn:active {
        width: 200px !important;
        max-width: 200px !important;
        min-width: 200px !important;
        transform: scale(0.95) !important;
        display: inline-block !important;
    }

    .mouse-follower {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .hero {
        padding: 70px 0.3rem 0.8rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.95rem;
        padding: 0 0.2rem;
    }

    .hero-image-container {
        width: 220px;
        height: 220px;
    }

    .cta-btn {
        width: 180px;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
        flex-shrink: 0;
        max-width: 180px !important;
        min-width: 180px !important;
    }

    .cta-btn:active {
        width: 180px !important;
        max-width: 180px !important;
        min-width: 180px !important;
        transform: scale(0.95) !important;
        transition: all 0.1s ease !important;
    }

    /* Hero specific overrides for small mobile */
    .hero .cta-btn {
        width: 180px !important;
        max-width: 180px !important;
        min-width: 180px !important;
        display: inline-block !important;
        text-align: center !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .hero .cta-btn:active {
        width: 180px !important;
        max-width: 180px !important;
        min-width: 180px !important;
        transform: scale(0.95) !important;
        display: inline-block !important;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
.section {
    padding: 5rem 0;
    width: 100%;
}

body.dark-theme .section {
    background-color: #0a0e1a;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a237e;
    position: relative;
}

body.dark-theme .section-title {
    color: #667eea;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Wave Divider */
.wave-divider {
    position: relative;
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #6e64c6 100%);
    overflow: hidden;
}

body.dark-theme .wave-divider {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
}

.wave-divider svg {
    position: relative;
    left: -5%;
    width: 110%;
    height: 100%;
    display: block;
}

.wave-divider.wave-top {
    transform: rotate(180deg);
}

.wave-divider.wave-bottom {
    transform: none;
}

@keyframes waveMove {
    0% { 
        transform: translateX(0px); 
    }
    100% { 
        transform: translateX(15px); 
    }
}

/* Dark mode */
body.dark-theme .wave-divider svg path {
    fill: url(#heroGradientDark);
}

@media (max-width: 768px) {
    .wave-divider {
        height: 60px;
        background:  #667eea;
    }
}

@media (max-width: 480px) {
    .wave-divider {
        height: 40px;
        background: #667eea;
    }
}

/* Services Section */
.services {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

body.dark-theme .services {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
}

.services .section-title {
    color: white;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.dark-theme .service-card {
    background: rgba(45, 55, 72, 0.6);
    border: 1px solid rgba(226, 232, 240, 0.2);
}

.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-text {
    flex: 1;
}

.service-card .cta-btn {
    margin-top: auto;
    align-self: center;
}

.service-info {
    margin-top: 35px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-card:hover::before {
    left: 100%;
}

.service-image {
    height: 200px;
    overflow: hidden;
    border-radius: 20px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.service-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffeb3b;
    margin-bottom: 1rem;
}

/* About Section */
.about {
    background: #f8f9ff;
}

body.dark-theme .about {
    background: #1a202c;
}

.about-content {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 2.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.about-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.about-image .about-horario {
    color: #1a237e;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-align: center;
}

.schedule-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

body.dark-theme .schedule-section {
    background: #2d3748;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-theme .about-horario {
    color: #e2e8f0;
}

.about-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.dark-theme .about-info {
    background: #2d3748;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    text-align: justify;
}

body.dark-theme .about-text {
    color: #cbd5e0;
}

.company-details {
    list-style: none;
}

.company-details li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

body.dark-theme .company-details li {
    color: #e2e8f0;
}

.company-details li::before {
    content: '✓';
    color: #667eea;
    font-weight: bold;
    margin-right: 10px;
    background: rgba(8, 12, 27, 0.1);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

body.dark-theme .company-details li::before {
    background: rgba(102, 126, 234, 0.2);
}

.about-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.dark-theme .about-main-content {
    background: #2d3748;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-text-content h3 {
    color: #1a237e;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

body.dark-theme .about-text-content h3 {
    color: #667eea;
}

.about-image-content {
    text-align: center;
}

.about-image-content img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.about-image {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

body.dark-theme .about-image {
    background: #2d3748;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Technologies Section */
.technologies {
    margin-top: 3rem;
}

.tech-title {
    text-align: center;
    font-size: 1.8rem;
    color: #1a237e;
    margin-bottom: 2rem;
    position: relative;
}

body.dark-theme .tech-title {
    color: #667eea;
}

.tech-title::after {
    content: '';
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
}

.tech-container {
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

body.dark-theme .tech-container {
    background: #2d3748;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tech-scroll {
    display: flex;
    gap: 2rem;
    overflow: hidden;
    padding: 1rem 0;
    transition: transform 0.3s ease;
    will-change: transform;
    width: max-content;
}

.tech-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9ff;
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    min-width: 120px;
    cursor: pointer;
}

body.dark-theme .tech-item {
    background: #4a5568;
    border-color: transparent;
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    background: white;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
}

body.dark-theme .tech-item:hover {
    background: #2d3748;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.tech-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.tech-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tech-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

body.dark-theme .tech-name {
    color: #e2e8f0;
}

/* Tech specific colors */
.tech-html { 
    background: #fff; 
    color: white; 
}
.tech-css { 
    background: #fff; 
    color: white; 
}
.tech-js { 
    background: #f7df1e; 
    color: black; 
}
.tech-python { 
    background: #3776ab; 
    color: white; 
}
.tech-java { 
    background: #fff; 
    color: white; 
}
.tech-spring { 
    background: #fff; 
    color: white; 
}
.tech-mysql { 
    background: #4479a1; 
    color: white; 
}
.tech-android { 
    background: #3ddc84; 
    color: black; 
}
.tech-ios { 
    background: #fff; 
    color: white; 
}



/* Reviews Summary Section */
#resumen-reviews {
    background-image: url("../image/Reunion.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

#resumen-reviews::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

body.dark-theme #resumen-reviews::before {
    background: rgba(0, 0, 0, 0.7);
}

#resumen-reviews .container-reviews {
    position: relative;
    z-index: 2;
}

.reviews-summary {
    background: #f8f9ff;
    padding: 4rem 0;
}

body.dark-theme .reviews-summary {
    background: #1a202c;
}

.reviews-summary .section-title {
    color: #1a237e;
}

body.dark-theme .reviews-summary .section-title {
    color: #667eea;
}

.reviews-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.average-rating-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 2rem;
    border-radius: 25px;
    text-align: center;
    color: white;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

body.dark-theme .average-rating-card {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.average-rating-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmerCard 3s linear infinite;
}

@keyframes shimmerCard {
    0% { 
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% { 
        transform: translateX(100%) translateY(100%) rotate(45deg); 
    }
}

.rating-number {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #ffeb3b;
    text-shadow: 0 2px 10px rgba(255, 235, 59, 0.5);
    animation: pulse 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.rating-stars-display {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.display-star {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    animation: starFloat 3s ease-in-out infinite;
}

.display-star:nth-child(1) { 
    animation-delay: 0s; 
}
.display-star:nth-child(2) { 
    animation-delay: 0.2s; 
}
.display-star:nth-child(3) {
     animation-delay: 0.4s; 
    }
.display-star:nth-child(4) { 
    animation-delay: 0.6s; 
}
.display-star:nth-child(5) {
     animation-delay: 0.8s; 
    }

@keyframes starFloat {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-5px); 
    }
}

.display-star.active {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.rating-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.total-reviews {
    font-size: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rating-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
}

.bar-label {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    min-width: 30px;
}

.bar-container {
    height: 12px;
    background: #e0e7ff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

body.dark-theme .bar-container {
    background: #4a5568;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 20px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: barShimmer 2s infinite;
}

@keyframes barShimmer {
    0% { 
        left: -100%; 
    }
    100% { 
        left: 100%; 
    }
}

.bar-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    min-width: 40px;
    text-align: right;
}

/* Rating Section */
.rating {
    background: linear-gradient(135deg, #1a237e 0%, #1565c0 50%, #1976d2 100%);
    color: white;
    text-align: center;
}

body.dark-theme .rating {
    background: linear-gradient(135deg, #0a0e1a 0%, #1a202c 50%, #2d3748 100%);
}

.rating .section-title {
    color: white;
}

.rating-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.dark-theme .rating-container {
    background: rgba(45, 55, 72, 0.4);
    border: 1px solid rgba(226, 232, 240, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.rating-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.stars-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.star {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
}

.star:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    color: rgba(255, 255, 255, 0.6);
}

.star.active {
    color: #ffd700;
    animation: starPulse 0.3s ease;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.star.active:hover {
    color: #ffed4e;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
}

@keyframes starPulse {
    0% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.3); 
    }
    100% { 
        transform: scale(1.1); 
    }
}

.rating-message {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffeb3b;
    margin-top: 1rem;
    min-height: 30px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rating-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Section */
.contact {
    background: #1a237e;
    color: white;
    text-align: center;
}

body.dark-theme .contact {
    background: #0a0e1a;
}

.contact .section-title {
    color: white;
}

.contact-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 200px;
    width: 200px;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.whatsapp-btn {
    background: #25d366;
    color: white;
}

.whatsapp-btn:hover {
    background: #1eb855;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.facebook-btn {
    background: #1877f2;
    color: white;
}

.facebook-btn:hover {
    background: #166fe5;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(24, 119, 242, 0.3);
}

.gmail-btn {
    background: linear-gradient(45deg, #ea4335, #fbbc04);
    color: white;
}

.gmail-btn:hover {
    background-color: #f84442;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(234, 67, 53, 0.4);
}

/* Prevent contact button expansion on touch/press */
.contact-btn:active {
    transform: scale(0.98) !important;
    transition: all 0.1s ease !important;
    width: auto !important;
    min-width: auto !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.whatsapp-btn:active {
    transform: scale(0.98) !important;
    background: #1eb855 !important;
}

.facebook-btn:active {
    transform: scale(0.98) !important;
    background: #166fe5 !important;
}

.gmail-btn:active {
    transform: scale(0.98) !important;
    background: #f84442 !important;
}

.contact-info {
    margin-top: 3rem;
    font-size: 1.1rem;
}

body.dark-theme .contact-info {
    color: #cbd5e0;
}

/* Footer */
.footer {
    background: #0d1421;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

body.dark-theme .footer {
    background: #0a0e1a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 35, 126, 0.98);
        flex-direction: column;
        padding: 2rem;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    body.dark-theme .nav-menu {
        background: rgba(16, 20, 32, 0.98);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        margin-bottom: 1rem;
    }

    .nav-menu a {
        font-size: 1.1rem;
        padding: 10px 0;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-btn {
        display: block;
    }

    .theme-toggle {
        margin-left: 0.5rem;
        width: 50px;
        height: 25px;
    }

    .theme-slider {
        width: 21px;
        height: 21px;
        font-size: 10px;
    }

    body.dark-theme .theme-slider {
        transform: translateX(25px);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .about-main-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .about-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .schedule-section div {
        grid-template-columns: 1fr !important;
    }

    .tech-scroll {
        display: flex;
        gap: 2rem;
        padding: 1rem 0;
        will-change: transform;
        width: max-content;
    }

    .tech-item {
        min-width: 100px;
        padding: 1rem;
    }

    .tech-logo {
        width: 40px;
        height: 40px;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .stars-container {
        gap: 5px;
    }

    .star {
        font-size: 2.5rem;
    }

    .reviews-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .average-rating-card {
        padding: 2rem 1.5rem;
    }

    .rating-number {
        font-size: 3rem;
    }

    .display-star {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .service-card, .about-info {
        padding: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .about-main-content {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .rating-container {
        padding: 2rem 1rem;
    }

    .star {
        font-size: 2rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.tech-scroll {
    display: flex;
    gap: 2rem;
    padding: 1rem 0;
    will-change: transform;
    width: max-content;
}

@keyframes scrollLeftToRight {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* CRITICAL FIX: Prevent hero button expansion - Maximum Priority */
.hero .cta-buttons .cta-btn,
.hero-content .cta-buttons .cta-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

.hero .cta-buttons .cta-btn:active,
.hero-content .cta-buttons .cta-btn:active {
    transform: scale(0.98) !important;
    width: auto !important;
    min-width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.1s ease !important;
}

/* Mobile specific critical fixes */
@media (max-width: 480px) {
    .hero .cta-buttons .cta-btn,
    .hero-content .cta-buttons .cta-btn {
        width: 200px !important;
        max-width: 200px !important;
        min-width: 200px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .hero .cta-buttons .cta-btn:active,
    .hero-content .cta-buttons .cta-btn:active {
        width: 200px !important;
        max-width: 200px !important;
        min-width: 200px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        transform: scale(0.95) !important;
    }
}

@media (max-width: 360px) {
    .hero .cta-buttons .cta-btn,
    .hero-content .cta-buttons .cta-btn {
        width: 180px !important;
        max-width: 180px !important;
        min-width: 180px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .hero .cta-buttons .cta-btn:active,
    .hero-content .cta-buttons .cta-btn:active {
        width: 180px !important;
        max-width: 180px !important;
        min-width: 180px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        transform: scale(0.95) !important;
    }
}