/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-cyan: #34B2EA;
    --primary-green: #2FB24B;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #FFFFFF;
    --bg-gray: #F8F9FA;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header/Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 1.5rem 0;
    background: transparent;
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-cyan);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

.nav-link:hover {
    color: var(--primary-cyan);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-cyan);
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(52, 178, 234, 0.25), transparent 45%),
                radial-gradient(circle at 80% 30%, rgba(47, 178, 75, 0.25), transparent 50%),
                linear-gradient(135deg, #0d1b2a, #1b4332);
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: -40% -40% -30%;
    background: conic-gradient(from 180deg at 50% 50%, rgba(52, 178, 234, 0.7), rgba(47, 178, 75, 0.45), rgba(52, 178, 234, 0.7));
    filter: blur(140px);
    opacity: 0.55;
    animation: heroGlow 26s linear infinite;
    z-index: -3;
}

.hero::after {
    content: '';
    position: absolute;
    inset: -10%;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 55%),
                linear-gradient(245deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 60%);
    mix-blend-mode: screen;
    opacity: 0.35;
    animation: heroSweep 14s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

.hero-background canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 4rem 3.5rem;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.75) 0%, rgba(26, 47, 74, 0.65) 100%);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    overflow: hidden;
    will-change: transform, opacity;
    transform-origin: center;
    animation: heroHorizonReveal 2.2s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
    opacity: 0;
    transform: scaleY(0.01) scaleX(0.1);
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(52, 178, 234, 0.6) 50%, transparent);
    opacity: 0.8;
}

.hero-content::after {
    content: '';
    position: absolute;
    inset: -100%;
    background: conic-gradient(from 180deg at 50% 50%,
        rgba(52, 178, 234, 0.1) 0deg,
        transparent 60deg,
        transparent 120deg,
        rgba(47, 178, 75, 0.08) 180deg,
        transparent 240deg,
        transparent 300deg,
        rgba(52, 178, 234, 0.1) 360deg);
    animation: heroContentRotate 20s linear infinite;
    opacity: 0.4;
    z-index: -1;
}

@keyframes heroContentRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes heroHorizonReveal {
    0% {
        opacity: 0;
        transform: scaleY(0.01) scaleX(0.1);
        border-radius: 50px;
    }
    30% {
        opacity: 1;
        transform: scaleY(0.01) scaleX(1);
        border-radius: 50px;
    }
    60% {
        opacity: 1;
        transform: scaleY(0.5) scaleX(1);
        border-radius: 32px;
    }
    100% {
        opacity: 1;
        transform: scaleY(1) scaleX(1);
        border-radius: 32px;
    }
}

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

@keyframes heroGlow {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.05);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes heroSweep {
    0% {
        transform: translate3d(-6%, -4%, 0);
        opacity: 0.25;
    }
    50% {
        transform: translate3d(6%, 5%, 0);
        opacity: 0.5;
    }
    100% {
        transform: translate3d(-6%, -4%, 0);
        opacity: 0.25;
    }
}

@keyframes portfolioGlow {
    0% {
        transform: translate3d(-4%, -2%, 0) scale(0.95);
        opacity: 0.75;
    }
    50% {
        transform: translate3d(3%, 4%, 0) scale(1.05);
        opacity: 0.95;
    }
    100% {
        transform: translate3d(-4%, -2%, 0) scale(0.96);
        opacity: 0.75;
    }
}

@keyframes sweep {
    0% {
        transform: translateX(-20%);
        opacity: 0.2;
    }
    50% {
        transform: translateX(20%);
        opacity: 0.45;
    }
    100% {
        transform: translateX(-20%);
        opacity: 0.2;
    }
}

@keyframes floatSoft {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(6%, 8%, 0) scale(1.05);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes contentDrift {
    0% {
        transform: translate3d(-3%, -2%, 0);
    }
    50% {
        transform: translate3d(4%, 3%, 0);
    }
    100% {
        transform: translate3d(-3%, -2%, 0);
    }
}

@keyframes newsletterPulse {
    0% {
        transform: translate3d(-5%, -4%, 0) scale(0.9);
        opacity: 0.4;
    }
    50% {
        transform: translate3d(4%, 6%, 0) scale(1.05);
        opacity: 0.7;
    }
    100% {
        transform: translate3d(-5%, -4%, 0) scale(0.9);
        opacity: 0.4;
    }
}

.hero-content h1 {
    position: relative;
    font-size: 3.8rem;
    margin-bottom: 1.8rem;
    font-weight: 700;
    line-height: 1.15;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(52, 178, 234, 0.3);
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(20px);
    animation: heroContentFadeIn 0.8s ease 1.8s forwards;
}

.hero-content h1::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-green));
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(52, 178, 234, 0.6);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    margin-top: 2rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
    letter-spacing: 0.01em;
    opacity: 0;
    transform: translateY(20px);
    animation: heroContentFadeIn 0.8s ease 2.1s forwards;
}

.cta-button {
    position: relative;
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-green));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow:
        0 10px 30px rgba(52, 178, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    animation: heroContentFadeIn 0.8s ease 2.4s forwards;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-cyan));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 20px 50px rgba(52, 178, 234, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:hover::after {
    width: 300px;
    height: 300px;
}

.cta-button:active {
    transform: translateY(-2px) scale(0.98);
}

/* Portfolio Section */
.portfolio {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.04), rgba(47, 178, 75, 0.05) 55%, rgba(255, 255, 255, 0.9)),
                url('https://contenidos.4d3.org:9443/cdn/web/building-blocks.png');
    background-size: auto 100%;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    isolation: isolate;
}

.portfolio::before {
    content: '';
    position: absolute;
    inset: -40% 10% 30%;
    background: radial-gradient(circle at 20% 20%, rgba(52, 178, 234, 0.25), transparent 55%),
                radial-gradient(circle at 80% 40%, rgba(47, 178, 75, 0.18), transparent 60%);
    filter: blur(60px);
    opacity: 0.8;
    animation: portfolioGlow 24s ease-in-out infinite alternate;
    z-index: -2;
}

.portfolio::after {
    content: '';
    position: absolute;
    inset: 10% 5%;
    background: linear-gradient(120deg, rgba(52, 178, 234, 0.08), rgba(255, 255, 255, 0) 60%);
    mix-blend-mode: screen;
    animation: sweep 16s linear infinite;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.portfolio-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-cyan);
}

.portfolio-logo {
    width: 80px;
    height: 80px;
    background-color: var(--bg-gray);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-cyan);
}

.portfolio-card h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.portfolio-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* About Section */
.about {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--bg-gray), var(--bg-light));
    overflow: hidden;
    isolation: isolate;
}

.about::before,
.about::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

.about::before {
    width: 360px;
    height: 360px;
    top: -140px;
    right: -160px;
    background: radial-gradient(circle, rgba(52, 178, 234, 0.22), rgba(52, 178, 234, 0));
    animation: floatSoft 28s ease-in-out infinite;
}

.about::after {
    width: 420px;
    height: 420px;
    bottom: -180px;
    left: -160px;
    background: radial-gradient(circle, rgba(47, 178, 75, 0.22), rgba(47, 178, 75, 0));
    animation: floatSoft 32s ease-in-out infinite reverse;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    position: relative;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-visual {
    position: relative;
    flex: 1;
    min-width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    isolation: isolate;
}

.about-visual img {
    width: 100%;
    max-width: 430px;
    border-radius: 24px;
    box-shadow: 0 35px 80px rgba(9, 22, 32, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    float: right;
    margin-left: 30px;
}

.about-visual__glow {
    position: absolute;
    inset: 10% 0 -10%;
    background: radial-gradient(circle at 30% 30%, rgba(52, 178, 234, 0.25), transparent 60%),
                radial-gradient(circle at 70% 70%, rgba(47, 178, 75, 0.18), transparent 65%);
    filter: blur(50px);
    opacity: 0.85;
    z-index: -1;
    animation: floatSoft 26s ease-in-out infinite;
}

/* Flip Card Styles */
.flip-card {
    position: relative;
    width: 100%;
    max-width: 430px;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    perspective: 1500px;
    transition: transform 0.3s ease;
}

.flip-card:hover {
    transform: scale(1.02);
}

.flip-card:focus {
    outline: 2px solid rgba(52, 178, 234, 0.8);
    outline-offset: 4px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

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

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 35px 80px rgba(9, 22, 32, 0.35);
}

.flip-card-front {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.95), rgba(26, 47, 74, 0.98));
}

.flip-card-front img,
.flip-card-back img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Flip Hint */
.flip-hint {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg,
        rgba(52, 178, 234, 0.85) 0%,
        rgba(47, 178, 75, 0.8) 100%);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    animation: hintFadeIn 0.6s ease 1.5s forwards;
}

.flip-card:hover .flip-hint {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 12px 32px rgba(52, 178, 234, 0.4);
}

.flip-hint svg {
    width: 18px;
    height: 18px;
    animation: flipHintPulse 2s ease-in-out infinite;
}

@keyframes hintFadeIn {
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

@keyframes flipHintPulse {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(4px);
    }
}

/* Team Overlay on Back */
.team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top,
        rgba(13, 27, 42, 0.95) 0%,
        rgba(13, 27, 42, 0.7) 70%,
        transparent 100%);
    color: white;
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.flip-card.flipped .team-overlay {
    transform: translateY(0);
    opacity: 1;
}

.team-overlay h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-overlay p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .flip-card-inner {
        transition: transform 0.3s ease;
    }

    .flip-hint {
        animation: none;
        opacity: 0.9;
        transform: translateY(0);
    }

    .flip-hint svg {
        animation: none;
    }

    .team-overlay {
        transition: opacity 0.3s ease;
    }
}

/* Services Button */
.services-trigger-container {
    margin-top: 2.5rem;
    text-align: center;
}

.services-trigger {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-trigger:hover {
    transform: translateY(-4px) scale(1.02);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.services-grid.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Service Card */
.service-card {
    position: relative;
    background: linear-gradient(135deg,
        rgba(52, 178, 234, 0.1) 0%,
        rgba(47, 178, 75, 0.08) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 30px 80px rgba(52, 178, 234, 0.2),
        0 0 0 1px rgba(52, 178, 234, 0.3);
    background: linear-gradient(135deg,
        rgba(52, 178, 234, 0.15) 0%,
        rgba(47, 178, 75, 0.12) 100%);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(52, 178, 234, 0.05) 0%,
        rgba(47, 178, 75, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Card Icon */
.service-card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-green));
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(52, 178, 234, 0.3);
    transition: all 0.4s ease;
}

.service-card:hover .service-card-icon {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(52, 178, 234, 0.5);
}

.service-card-icon svg {
    width: 35px;
    height: 35px;
}

/* Card Title */
.service-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.service-card:hover .service-card-title {
    color: var(--primary-cyan);
}

/* Card Content */
.service-card-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.5s ease;
    margin-top: 0;
}

.service-card.expanded .service-card-content {
    max-height: 500px;
    opacity: 1;
    margin-top: 1.5rem;
}

.service-card-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    text-align: left;
}

/* Toggle Button */
.service-card-toggle {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(52, 178, 234, 0.2);
    border: 1px solid rgba(52, 178, 234, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-cyan);
    font-size: 1.5rem;
    font-weight: 300;
}

.service-card-toggle:hover {
    background: var(--primary-cyan);
    border-color: var(--primary-cyan);
    color: white;
    transform: scale(1.1);
}

.service-card.expanded .toggle-icon {
    transform: rotate(45deg);
    display: inline-block;
    transition: transform 0.3s ease;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

/* Card Reveal Animation */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Service Modal */
.service-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.service-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.service-modal-content {
    position: relative;
    max-width: 600px;
    width: 90%;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.95) 0%, rgba(26, 47, 74, 0.92) 100%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    padding: 3rem;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-modal.active .service-modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.modal-body h3 {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #34B2EA 0%, #2FB24B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-body p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* Success Cases Section */
.success-cases-section {
    position: relative;
    padding: 100px 0 120px;
    background: linear-gradient(165deg, #0a1628 0%, #1a2f4a 50%, #0d1b2a 100%);
    overflow: hidden;
    isolation: isolate;
}

.success-cases-section .section-title {
    color: #ffffff;
    font-size: 3rem;
    margin-bottom: 1.2rem;
}

.success-cases-section .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.3rem;
    margin-bottom: 4rem;
}

.success-cases-section::before {
    content: '';
    position: absolute;
    inset: -30% -20% -30%;
    background: radial-gradient(circle at 30% 40%, rgba(52, 178, 234, 0.15), transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(47, 178, 75, 0.12), transparent 55%);
    animation: contentDrift 30s ease-in-out infinite;
    pointer-events: none;
    z-index: -2;
}

.success-cases-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg, transparent 0%, rgba(52, 178, 234, 0.03) 50%, transparent 100%),
        radial-gradient(ellipse at top, rgba(255, 255, 255, 0.05), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.carousel-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.carousel-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item {
    min-width: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(52, 178, 234, 0.08) 0%, rgba(47, 178, 75, 0.06) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
}

.carousel-item:hover::before {
    opacity: 1;
}

.carousel-inner {
    display: flex;
    align-items: stretch;
    min-height: 480px;
    position: relative;
}

.carousel-image {
    flex: 0 0 55%;
    position: relative;
    overflow: hidden;
}

.carousel-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(10, 22, 40, 0.4) 100%);
    z-index: 2;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
    filter: brightness(0.85) contrast(1.1);
}

.carousel-item:hover .carousel-image img {
    transform: scale(1.08);
    filter: brightness(0.95) contrast(1.05);
}

.carousel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 50px;
    background: linear-gradient(110deg, rgba(13, 27, 42, 0.95) 0%, rgba(26, 47, 74, 0.92) 100%);
    position: relative;
    z-index: 3;
}

.carousel-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 80px;
    background: linear-gradient(180deg, var(--primary-cyan), var(--primary-green));
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 20px rgba(52, 178, 234, 0.6);
    opacity: 0;
    transition: opacity 0.5s ease, height 0.5s ease;
}

.carousel-item:hover .carousel-content::before {
    opacity: 1;
    height: 120px;
}

.carousel-content h3 {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #34B2EA 0%, #2FB24B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    font-weight: 700;
    transform: translateY(10px);
    opacity: 0;
    animation: slideInContent 0.8s ease forwards;
    animation-delay: 0.2s;
}

@keyframes slideInContent {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.carousel-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.9;
    transform: translateY(10px);
    opacity: 0;
    animation: slideInContent 0.8s ease forwards;
    animation-delay: 0.4s;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border: 2px solid rgba(52, 178, 234, 0.4);
    background: rgba(13, 27, 42, 0.85);
    color: var(--primary-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    z-index: 10;
}

.carousel-arrow-left {
    left: -30px;
}

.carousel-arrow-right {
    right: -30px;
}

.carousel-arrow:hover {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-green));
    border-color: transparent;
    color: white;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 12px 35px rgba(52, 178, 234, 0.5);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.98);
}

.carousel-arrow svg {
    width: 26px;
    height: 26px;
    stroke-width: 2.5;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 35px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.4s ease;
}

.carousel-indicator.active {
    width: 40px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-green));
    box-shadow: 0 0 15px rgba(52, 178, 234, 0.6);
}

.carousel-indicator:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

/* Contact Form Section */
.contact-form-section {
    position: relative;
    text-align: center;
    margin-top: 60px;
    padding: 50px 40px;
    background: linear-gradient(135deg,
        rgba(52, 178, 234, 0.1) 0%,
        rgba(47, 178, 75, 0.08) 50%,
        rgba(9, 22, 32, 0.85) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 24px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(52, 178, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%,
        rgba(52, 178, 234, 0.15) 0%,
        transparent 50%),
        radial-gradient(circle at 70% 70%,
        rgba(47, 178, 75, 0.12) 0%,
        transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.contact-form-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.05) 100%);
    border-radius: 24px;
    z-index: -1;
    pointer-events: none;
}

.contact-form-section h3 {
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
}

.contact-form-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-form-trigger {
    margin: 0 auto;
}

.multi-step-form-container {
    max-width: 580px;
    margin: 30px auto 0;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.multi-step-form-container.active {
    opacity: 1;
    transform: translateY(0);
}

/* Progress Indicator */
.form-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.form-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    z-index: -1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.step-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-green));
    border-color: transparent;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(52, 178, 234, 0.4);
}

.progress-step.active .step-label {
    color: white;
    font-weight: 600;
}

.progress-step.completed .step-number {
    background: rgba(47, 178, 75, 0.3);
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.progress-step.completed .step-label {
    color: rgba(255, 255, 255, 0.7);
}

/* Form Cards */
.multi-step-form {
    position: relative;
    min-height: 320px;
}

.form-card {
    position: absolute;
    width: 100%;
    padding: 40px;
    background: linear-gradient(135deg,
        rgba(52, 178, 234, 0.08) 0%,
        rgba(47, 178, 75, 0.06) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(100px) scale(0.95);
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-card.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: all;
}

.form-card.exiting {
    opacity: 0;
    transform: translateX(-100px) scale(0.95);
}

.form-card label {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    text-align: left;
}

.form-card input,
.form-card textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: white;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.form-card input::placeholder,
.form-card textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-card input:focus,
.form-card textarea:focus {
    outline: none;
    border-color: var(--primary-cyan);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(52, 178, 234, 0.15);
}

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

/* Form Buttons */
.form-card-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.form-next-btn,
.form-back-btn,
.form-submit-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
}

.form-next-btn,
.form-submit-btn {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-green));
    color: white;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(52, 178, 234, 0.3);
}

.form-next-btn:hover,
.form-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(52, 178, 234, 0.4);
}

.form-next-btn:active,
.form-submit-btn:active {
    transform: translateY(-1px);
}

.form-back-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-3px);
}

.form-submit-btn {
    width: 100%;
}

.form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success State */
.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
    min-height: 320px;
}

.success-icon {
    margin-bottom: 24px;
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-icon svg {
    stroke: var(--primary-green);
    filter: drop-shadow(0 8px 20px rgba(47, 178, 75, 0.4));
}

@keyframes successPop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.form-success h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 12px;
}

.form-success p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 1.8rem;
    color: var(--primary-cyan);
    margin-bottom: 15px;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 20px;
    color: var(--primary-green);
}

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

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-contact p {
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-cyan);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #999;
}

/* Animations */
[data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
}

body.js-enabled [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    filter: blur(6px);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease, filter 0.8s ease;
    transition-delay: var(--reveal-delay, 0s);
}

body.js-enabled [data-reveal="left"] {
    transform: translate3d(-40px, 0, 0);
}

body.js-enabled [data-reveal="right"] {
    transform: translate3d(40px, 0, 0);
}

body.js-enabled [data-reveal="scale"] {
    transform: scale(0.96);
}

body.js-enabled [data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
}

body.js-enabled [data-reveal="scale"].is-visible {
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    body.js-enabled [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition-duration: 0.01ms !important;
    }

    .hero::before,
    .hero::after,
    .portfolio::before,
    .portfolio::after,
    .about::before,
    .about::after,
    .content-section::before,
    .content-section::after,
    .newsletter::before,
    .newsletter::after {
        animation: none !important;
    }

    .hero-content {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .hero-content h1,
    .hero-content p,
    .cta-button {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .service-card {
        animation: none !important;
        transition: none !important;
    }

    .services-grid {
        transition: opacity 0.1s ease !important;
    }

    .service-modal-content {
        transition: none !important;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        padding: 2.5rem 2rem;
        border-radius: 24px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h1::after {
        width: 60px;
        height: 3px;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .cta-button {
        padding: 0.9rem 2.5rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .success-cases-section .section-title {
        font-size: 2.2rem;
    }

    .success-cases-section .section-subtitle {
        font-size: 1.1rem;
    }

    .carousel-container {
        padding: 0 10px;
    }

    .carousel-inner {
        flex-direction: column;
        min-height: auto;
    }

    .carousel-image {
        flex: 0 0 auto;
        width: 100%;
    }

    .carousel-image img {
        height: 250px;
    }

    .carousel-content {
        padding: 35px 25px;
    }

    .carousel-content h3 {
        font-size: 1.8rem;
        opacity: 1;
        transform: none;
        animation: none;
    }

    .carousel-content p {
        font-size: 1rem;
        opacity: 1;
        transform: none;
        animation: none;
    }

    .carousel-arrow {
        width: 50px;
        height: 50px;
    }

    .carousel-arrow-left {
        left: 10px;
    }

    .carousel-arrow-right {
        right: 10px;
    }

    .carousel-indicators {
        margin-top: 25px;
    }
    
    /* Contact Form Mobile */
    .contact-form-section {
        padding: 30px 20px;
        margin-top: 40px;
    }

    .contact-form-section h3 {
        font-size: 1.8rem;
    }

    .contact-form-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .multi-step-form-container {
        max-width: 100%;
    }

    .form-progress {
        margin-bottom: 30px;
    }

    .progress-step {
        gap: 4px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .form-card {
        padding: 25px 20px;
    }

    .form-card label {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .form-card input,
    .form-card textarea {
        padding: 14px 16px;
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .form-card textarea {
        min-height: 100px;
    }

    .form-card-actions {
        flex-direction: column;
        gap: 10px;
    }

    .form-next-btn,
    .form-back-btn,
    .form-submit-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .form-back-btn {
        order: 2;
    }

    .form-next-btn,
    .form-submit-btn {
        order: 1;
    }

    .form-success {
        padding: 40px 20px;
    }

    .form-success h3 {
        font-size: 1.6rem;
    }

    .form-success p {
        font-size: 1rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-visual {
        padding: 0;
    }

    .about-visual img {
        max-width: 320px;
    }

    .flip-card {
        max-width: 100%;
    }

    .flip-hint {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .flip-hint svg {
        width: 16px;
        height: 16px;
    }

    .team-overlay {
        padding: 20px;
    }

    .team-overlay h3 {
        font-size: 1.4rem;
    }

    .team-overlay p {
        font-size: 0.9rem;
    }

    /* Services Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 2rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-card-icon {
        width: 60px;
        height: 60px;
    }

    .service-card-icon svg {
        width: 30px;
        height: 30px;
    }

    .service-card-title {
        font-size: 1.2rem;
    }

    .service-card-content p {
        font-size: 0.95rem;
    }

    .service-card-toggle {
        width: 36px;
        height: 36px;
        bottom: 1rem;
        right: 1rem;
        font-size: 1.3rem;
    }

    .service-modal-content {
        padding: 2rem;
    }

    .modal-body h3 {
        font-size: 1.8rem;
    }

    .modal-body p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .nav-container {
        padding: 0 15px;
    }
}

/* Hamburger Animation */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
