/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    min-height: 100vh;
    padding: 4rem 0 0;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero .container {
    width: 100%;
    padding: 0 calc(24px + 2rem);
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.hero-content {
    flex: 0 0 600px;
    max-width: 600px;
    width: 600px;
    animation: fadeInUp 0.8s var(--ease) 0.2s both;
}

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

.hero-greeting {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-weight: 500;
    opacity: 0.8;
}

.hero-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    max-width: 560px;
}

/* Trust Badge */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1.5rem;
    background: var(--neo-bg);
    border-radius: 50px;
    margin-bottom: 2rem;
    box-shadow:
            inset 3px 3px 6px var(--neo-shadow-dark),
            inset -3px -3px 6px var(--neo-shadow-light);
    animation: fadeInUp 0.8s var(--ease) 0.4s both;
}

.trust-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.trust-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.trust-text strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.trust-text span {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.2;
}

.hero-buttons {
    display: flex;
    gap: 0.875rem;
    flex-wrap: wrap;
    align-items: center;
    animation: fadeInUp 0.8s var(--ease) 0.6s both;
}

.hero-buttons .btn {
    padding: 1rem 2rem;
}

/* Enhanced Secondary Button */
.btn-secondary-new {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-secondary-new::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.btn-secondary-new span,
.btn-secondary-new i {
    position: relative;
    z-index: 1;
}

.btn-secondary-new:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.btn-secondary-new:hover::before {
    opacity: 1;
}

.btn-secondary-new:hover i {
    transform: translateX(4px);
}

.btn-secondary-new i {
    transition: transform 0.3s ease;
}

/* Hero Visual - Interactive Code Demo */
.hero-visual {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    min-width: 0;
    animation: fadeInRight 0.8s var(--ease) 0.4s both;
}

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

.animation-placeholder {
    width: 100%;
    height: 520px;
    background: #1e1e1e;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    box-shadow:
            0 20px 40px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.interactive-demo {
    background: #1e1e1e;
}

/* Demo Header */
.demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    background: #252526;
    border-bottom: 1px solid #333;
}

.demo-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.dot:hover {
    transform: scale(1.2);
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.demo-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: #cccccc;
    font-weight: 500;
}

.demo-title i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Code Editor */
.code-editor {
    padding: 2rem 1.5rem;
    flex: 1;
    background: #1e1e1e;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow: auto;
}

.code-line {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.25rem;
    opacity: 0;
    animation: fadeInCode 0.5s ease forwards;
}

.code-line:nth-child(1) { animation-delay: 1s; }
.code-line:nth-child(2) { animation-delay: 1.3s; }
.code-line:nth-child(3) { animation-delay: 1.6s; }
.code-line:nth-child(4) { animation-delay: 1.9s; }
.code-line:nth-child(5) { animation-delay: 2.2s; }
.code-line:nth-child(6) { animation-delay: 2.5s; }
.code-line:nth-child(7) { animation-delay: 2.8s; }
.code-line:nth-child(8) { animation-delay: 3.1s; }
.code-line:nth-child(9) { animation-delay: 3.4s; }

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

.line-number {
    color: #858585;
    min-width: 24px;
    text-align: right;
    user-select: none;
}

.code-text {
    color: #d4d4d4;
}

/* Code Syntax Highlighting */
.keyword {
    color: #569cd6;
    font-weight: 600;
}

.variable {
    color: #9cdcfe;
}

.function {
    color: #dcdcaa;
}

.string {
    color: #ce9178;
}

.punctuation {
    color: #d4d4d4;
}

.operator {
    color: #d4d4d4;
}

/* Typing Animation */
.typing-line {
    animation: fadeInCode 0.5s ease 3.4s forwards;
}

.cursor {
    color: var(--primary-color);
    animation: blink 1s step-end infinite;
    font-weight: 100;
}

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

/* Demo Footer */
.demo-footer {
    padding: 0.75rem 1.25rem;
    background: #252526;
    border-top: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #cccccc;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #27c93f;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.section-padding {
    padding: 5rem 0;
}


.section-title {
    text-align: center;
    margin-bottom: 1.25rem;
}

.section-title h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 3.5rem;
    line-height: 1.7;
    text-align: center;
}

/* ========================================
   STATS SECTION - ALIGNED
   ======================================== */

.stats-social-wrapper {
    max-width: 100%;
    padding: 0 calc(24px + 2rem);
    margin: 0 auto;
    box-sizing: border-box;
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2.5rem; margin-bottom: 4rem; }
.stat-box { background: var(--neo-bg); padding: 2.5rem 2rem; border-radius: 24px; text-align: center; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 10px 10px 20px var(--neo-shadow-dark), -10px -10px 20px var(--neo-shadow-light); }
.stat-box:hover { transform: translateY(-8px); box-shadow: 12px 12px 24px var(--neo-shadow-dark), -12px -12px 24px var(--neo-shadow-light); }
.stat-number { font-family: 'Space Grotesk', sans-serif; font-size: 3.5rem; font-weight: 800; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.2; margin-bottom: 0.5rem; }
.stat-label { font-size: 1.05rem; color: var(--text-dark); font-weight: 600; margin-bottom: 0.4rem; }
.stat-description { font-size: 0.9rem; color: var(--text-light); line-height: 1.5; }

.social-connect-section { max-width: 850px; margin: 0 auto; background: var(--neo-bg); padding: 2.75rem 2.5rem; border-radius: 26px; text-align: center; box-shadow: 10px 10px 20px var(--neo-shadow-dark), -10px -10px 20px var(--neo-shadow-light); }
.social-connect-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 0.625rem; color: var(--text-dark); }
.social-connect-subtitle { font-size: 1rem; color: var(--text-light); margin-bottom: 2rem; line-height: 1.6; }
.social-links-enhanced { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.social-link-enhanced { background: var(--neo-bg); width: 85px; height: 85px; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; text-decoration: none; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 7px 7px 14px var(--neo-shadow-dark), -7px -7px 14px var(--neo-shadow-light); }
.social-link-enhanced:hover { transform: translateY(-6px) scale(1.05); box-shadow: 10px 10px 20px var(--neo-shadow-dark), -10px -10px 20px var(--neo-shadow-light); }
.social-link-enhanced i { font-size: 1.75rem; color: var(--text-dark); transition: all 0.3s ease; }
.social-link-enhanced span { font-size: 0.75rem; font-weight: 600; color: var(--text-light); transition: all 0.3s ease; }
.social-link-enhanced:hover i, .social-link-enhanced:hover span { color: var(--primary-color); }
.social-link-enhanced.whatsapp:hover { background: linear-gradient(135deg, #25D366, #128C7E); }
.social-link-enhanced.whatsapp:hover i, .social-link-enhanced.whatsapp:hover span { color: white; }
.social-link-enhanced.linkedin:hover { background: linear-gradient(135deg, #0077b5, #00a0dc); }
.social-link-enhanced.linkedin:hover i, .social-link-enhanced.linkedin:hover span { color: white; }
.social-link-enhanced.instagram:hover { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link-enhanced.instagram:hover i, .social-link-enhanced.instagram:hover span { color: white; }

.services-preview-grid { max-width: 100%; padding: 0 calc(24px + 2rem); margin: 0 auto; box-sizing: border-box; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.25rem; counter-reset: serviceCard; }

/* Mobile service visibility */
.service-mobile-show { display: block; }
.service-mobile-hide { display: block; }
.service-preview-card {
    counter-increment: serviceCard;
    position: relative;
    overflow: hidden;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.9), rgba(245, 248, 253, 0.78));
    border: 1px solid rgba(255, 255, 255, 0.85);
    padding: 1.15rem;
    border-radius: 24px;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow:
        0 18px 40px rgba(41, 50, 73, 0.12),
        0 8px 18px rgba(41, 50, 73, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
}

.service-preview-card::before {
    content: '';
    position: absolute;
    right: -90px;
    bottom: -90px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.18), rgba(255, 107, 53, 0));
    z-index: 0;
    transition: transform 0.45s ease, opacity 0.45s ease;
    opacity: 0.8;
}

.service-preview-card::after {
    content: counter(serviceCard, decimal-leading-zero);
    position: absolute;
    top: 0.95rem;
    right: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: rgba(24, 39, 63, 0.75);
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    z-index: 3;
}

.service-preview-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 22px 44px rgba(41, 50, 73, 0.16),
        0 10px 22px rgba(41, 50, 73, 0.08);
}

.service-preview-card:hover::before {
    transform: scale(1.1);
    opacity: 1;
}

.service-preview-icon {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    margin: 0 0 1.1rem;
    position: relative;
    background: #dfe7f3;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
    box-shadow: 0 10px 24px rgba(30, 41, 59, 0.18);
    z-index: 1;
}

.service-preview-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 19, 32, 0) 45%, rgba(9, 19, 32, 0.35) 100%);
    z-index: 1;
}

.service-preview-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.service-preview-card:hover .service-preview-icon img {
    transform: scale(1.06);
}

.service-preview-chip {
    position: absolute;
    left: 0.7rem;
    bottom: 0.7rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #f8fafc;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    backdrop-filter: blur(3px);
}

.service-preview-card h3 {
    position: relative;
    z-index: 1;
    font-size: 1.26rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    text-align: left;
    line-height: 1.3;
}

.service-preview-card p {
    position: relative;
    z-index: 1;
    color: #5f6d82;
    line-height: 1.72;
    font-size: 0.94rem;
    text-align: left;
}

.work-preview-grid { max-width: 100%; padding: 0 calc(24px + 2rem); margin: 0 auto; box-sizing: border-box; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 3rem; }
.work-preview-card { background: var(--neo-bg); border-radius: 24px; overflow: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 10px 10px 20px var(--neo-shadow-dark), -10px -10px 20px var(--neo-shadow-light); display: flex; flex-direction: column; }
.work-preview-card:hover { transform: translateY(-10px); box-shadow: 14px 14px 28px var(--neo-shadow-dark), -14px -14px 28px var(--neo-shadow-light); }
.work-image { width: 100%; aspect-ratio: 3 / 2; background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(255, 140, 66, 0.08)); display: flex; align-items: center; justify-content: center; font-size: 4rem; color: var(--primary-color); transition: all 0.3s ease; overflow: hidden; position: relative; }
.work-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.work-preview-card:hover .work-image img { transform: scale(1.05); }
.work-preview-card:hover .work-image { background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 140, 66, 0.15)); }
.work-content { padding: 2rem; display: flex; flex-direction: column; flex-grow: 1; }
.work-category { display: inline-block; padding: 0.5rem 1.25rem; background: var(--neo-bg); border-radius: 20px; font-size: 0.85rem; font-weight: 600; color: var(--primary-color); margin-bottom: 1.25rem; box-shadow: inset 4px 4px 8px var(--neo-shadow-dark), inset -4px -4px 8px var(--neo-shadow-light); align-self: flex-start; }
.work-content h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.875rem; color: var(--text-dark); }
.work-content p { color: var(--text-light); line-height: 1.7; margin-bottom: 1.25rem; font-size: 0.95rem; flex-grow: 1; }
.work-link { display: inline-flex; align-items: center; gap: 0.625rem; padding: 0.875rem 1.75rem; background: var(--neo-bg); border-radius: 16px; color: var(--primary-color); font-weight: 600; text-decoration: none; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); font-size: 1rem; box-shadow: 6px 6px 12px var(--neo-shadow-dark), -6px -6px 12px var(--neo-shadow-light); align-self: flex-start; }
.work-link:hover { gap: 1rem; transform: translateY(-2px); box-shadow: 8px 8px 16px var(--neo-shadow-dark), -8px -8px 16px var(--neo-shadow-light); }

.tech-stack-grid { max-width: 100%; padding: 0 calc(24px + 2rem); margin: 0 auto; box-sizing: border-box; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2.5rem; }
.tech-item { background: var(--neo-bg); padding: 2rem 1.5rem; border-radius: 20px; text-align: center; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 8px 8px 16px var(--neo-shadow-dark), -8px -8px 16px var(--neo-shadow-light); }
.tech-item:hover { transform: translateY(-6px); box-shadow: 10px 10px 20px var(--neo-shadow-dark), -10px -10px 20px var(--neo-shadow-light); }
.tech-item i { font-size: 3rem; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.75rem; }
.tech-item p { font-size: 1rem; font-weight: 600; color: var(--text-dark); }

.why-choose-grid { max-width: 100%; padding: 0 calc(24px + 2rem); margin: 0 auto; box-sizing: border-box; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 3rem; }
.why-choose-card { background: var(--neo-bg); padding: 2.5rem 2rem; border-radius: 24px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 10px 10px 20px var(--neo-shadow-dark), -10px -10px 20px var(--neo-shadow-light); }
.why-choose-card:hover { transform: translateY(-8px); box-shadow: 12px 12px 24px var(--neo-shadow-dark), -12px -12px 24px var(--neo-shadow-light); }
.why-icon { width: 65px; height: 65px; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; color: white; margin-bottom: 1.5rem; box-shadow: 6px 6px 12px rgba(255, 107, 53, 0.3), -3px -3px 8px rgba(255, 255, 255, 0.5); transition: transform 0.4s ease; }
.why-choose-card:hover .why-icon { transform: scale(1.1) rotate(-10deg); }
.why-choose-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-dark); }
.why-choose-card p { color: var(--text-light); line-height: 1.8; font-size: 1rem; }

.cta-section { background: var(--neo-bg); padding: 5rem 1.25rem; text-align: center; }
.cta-content { max-width: 850px; margin: 0 auto; background: var(--neo-bg); padding: 4rem 3rem; border-radius: 30px; box-shadow: 12px 12px 24px var(--neo-shadow-dark), -12px -12px 24px var(--neo-shadow-light); }
.cta-content h2 { font-family: 'Space Grotesk', sans-serif; font-size: 2.5rem; font-weight: 800; margin-bottom: 1.25rem; background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-color) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -0.02em; }
.cta-content p { font-size: 1.125rem; color: var(--text-light); margin-bottom: 2.5rem; line-height: 1.7; }
.cta-buttons { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .hero { min-height: 75vh; }
    .hero .container { flex-direction: column; text-align: center; gap: 3rem; }
    .hero-content { flex: 0 0 auto; width: 100%; max-width: 100%; margin-top: 0; }
    .hero-visual { flex: 0 0 auto; width: 100%; max-width: 600px; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .trust-badge { margin-left: auto; margin-right: auto; }
}

@media (max-width: 991px) {
    .hero .container { padding: 0 calc(20px + 1.5rem); }
    .section-padding { padding: 4rem 0; }
    .section-title h2 { font-size: 2.75rem; }
    .stats-social-wrapper,
    .services-preview-grid,
    .work-preview-grid,
    .tech-stack-grid,
    .why-choose-grid { padding: 0 calc(20px + 1.5rem); }
    
    /* Reduce top spacing for stats section (right after hero) */
    .hero + .section-padding {
        padding-top: 2rem;
    }
}

@media (max-width: 768px) {
    .hero { min-height: 100vh; padding: 4rem 0 0; }
    .hero .container { padding: 0 1.4rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .hero-visual, .animation-placeholder, .code-editor { display: none; }
    .section-padding { padding: 4rem 0; }
    .section-title h2 { font-size: 2.25rem; }
    .stats-social-wrapper,
    .tech-stack-grid,
    .why-choose-grid { padding: 0 1.4rem; }
    .stats-section {
        padding: 1rem 0;
    }
    
    /* Reduce top spacing for stats section */
    .hero + .section-padding {
        padding-top: 1.5rem;
    }
    
    /* Section Headings - Maintain margins on smaller screens */
    .section-title h2 {
        padding: 0 1.4rem;
    }
    
    .section-subtitle {
        padding: 0 1.4rem;
    }
    
    /* Keep services subheading hidden on smaller screens too */
    #services .section-subtitle {
        display: none;
    }
    
    /* Reduce gap between carousel and button */
    #services > div[style*="text-align"] {
        margin-top: 1.25rem !important;
    }
    
    /* Mobile Carousel - Class-Based Styling */
    .services-preview-grid {
        overflow: hidden;
        position: relative;
        padding: 3rem 0 1rem;
        min-height: 450px;
    }
    
    .services-slider {
        display: flex;
        gap: 0.75rem;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
    }
    
    /* Base card styling */
    .services-preview-grid .service-preview-card {
        flex-shrink: 0;
        width: 70vw;
        max-width: 340px;
        min-height: 390px;
        cursor: grab;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                    filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Side cards - small, blurred, faded - IMPORTANT to override hover */
    .services-preview-grid .service-preview-card.carousel-side {
        transform: scale(0.85) !important;
        opacity: 0.4;
        filter: blur(2px);
    }
    
    /* Center card - large, sharp, opaque - IMPORTANT to override hover */
    .services-preview-grid .service-preview-card.carousel-center {
        transform: scale(1) !important;
        opacity: 1;
        filter: blur(0);
    }
    
    .service-mobile-hide { display: none; }
    .service-preview-card::after { display: none; }
    .service-preview-chip { display: none; }
    .service-preview-icon {
        clip-path: none;
        border-radius: 16px;
    }
    
    /* Section Headings - Add margins on mobile */
    .section-title h2 {
        padding: 0 1.4rem;
    }
    
    .section-subtitle {
        padding: 0 1.4rem;
    }
    
    /* Hide subheading ONLY for services section on mobile */
    #services .section-subtitle {
        display: none;
    }
    
    /* Reduce gap between carousel and button */
    #services > div[style*="text-align"] {
        margin-top: 1.5rem !important;
    }
    
    /* Carousel Swipe Indicator */
    .carousel-swipe-hint {
        position: absolute;
        bottom: 0.5rem;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0.75rem 1.5rem;
        background: var(--neo-bg);
        border-radius: 50px;
        box-shadow: 6px 6px 12px var(--neo-shadow-dark),
                    -6px -6px 12px var(--neo-shadow-light);
        z-index: 10;
        opacity: 0;
        animation: fadeInHint 0.5s ease 1s forwards;
    }
    
    @keyframes fadeInHint {
        to { opacity: 1; }
    }
    
    .swipe-arrow {
        font-size: 1.2rem;
        color: var(--primary-color);
        animation: slideHint 1.5s ease-in-out infinite;
    }
    
    .swipe-arrow.left {
        animation-delay: 0s;
    }
    
    .swipe-arrow.right {
        animation-delay: 0.75s;
    }
    
    @keyframes slideHint {
        0%, 100% {
            transform: translateX(0);
            opacity: 0.4;
        }
        50% {
            transform: translateX(8px);
            opacity: 1;
        }
    }
    
    .swipe-text {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--text-light);
        white-space: nowrap;
    }
    
    /* Hide hint after interaction */
    .carousel-swipe-hint.hide {
        animation: fadeOutHint 0.3s ease forwards;
    }
    
    @keyframes fadeOutHint {
        to { 
            opacity: 0;
            pointer-events: none;
        }
    }
    
    .work-preview-grid { padding: 0 1.4rem; }
    .stats-grid { 
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .stat-number { font-size: 2.5rem; }
    .stat-label { font-size: 0.85rem; }
    .stat-description { font-size: 0.8rem; }
    .why-choose-section { display: none; }
    .trust-badge { padding: 0.625rem 1.25rem; }
    .trust-icon { width: 32px; height: 32px; font-size: 0.9rem; }
    .trust-text strong { font-size: 0.85rem; }
    .trust-text span { font-size: 0.7rem; }
    
    /* Social buttons - Single row on mobile */
    .social-links-enhanced {
        gap: 1rem;
        justify-content: space-between;
    }
    
    .social-link-enhanced {
        width: 75px;
        height: 75px;
    }
    
    .social-link-enhanced i {
        font-size: 1.5rem;
    }
    
    .social-link-enhanced span {
        font-size: 0.7rem;
    }
    
    /* CTA Card - Reduce internal padding */
    .cta-content {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero { padding: 3rem 0 0; }
    .hero .container { padding: 0 1.4rem; }
    .hero-title { font-size: 2rem; }
    .hero-visual, .animation-placeholder, .code-editor { display: none; }
    .section-padding { padding: 3rem 0; }
    .section-title h2 { font-size: 1.875rem; }
    .stats-social-wrapper,
    .tech-stack-grid,
    .why-choose-grid { padding: 0 1.4rem; }
    .stats-section {
        padding: 1rem 0;
    }
    
    /* Reduce top spacing for stats section even more */
    .hero + .section-padding {
        padding-top: 1rem;
    }
    
    /* Mobile Carousel - Smaller Screens */
    .services-preview-grid {
        padding: 2.5rem 0 1rem;
        min-height: 400px;
    }
    
    .services-slider {
        gap: 0.75rem;
    }
    
    .services-preview-grid .service-preview-card {
        width: 72vw;
        max-width: 300px;
        min-height: 380px;
    }
    
    /* Keep same class-based styling for smaller screens - IMPORTANT to override hover */
    .services-preview-grid .service-preview-card.carousel-side {
        transform: scale(0.85) !important;
        opacity: 0.4;
        filter: blur(2px);
    }
    
    .services-preview-grid .service-preview-card.carousel-center {
        transform: scale(1) !important;
        opacity: 1;
        filter: blur(0);
    }
    
    .work-preview-grid { padding: 0 1.4rem; grid-template-columns: 1fr; gap: 2rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .stat-box { padding: 1.5rem 1rem; }
    .stat-number { font-size: 2rem; }
    .stat-label { font-size: 0.75rem; }
    .stat-description { font-size: 0.7rem; }
    
    /* Social buttons - Even smaller on tiny screens but still single row */
    .social-links-enhanced {
        gap: 0.75rem;
    }
    
    .social-link-enhanced {
        width: 70px;
        height: 70px;
    }
    
    .social-link-enhanced i {
        font-size: 1.4rem;
    }
    
    .social-link-enhanced span {
        font-size: 0.65rem;
    }
    
    /* CTA Card - Even less padding for small screens */
    .cta-content {
        padding: 2.5rem 1.2rem;
    }
}
