/* Global Styles */
@import url('https://fonts.cdnfonts.com/css/satoshi');

html {
    scroll-behavior: auto;
    /* Let Lenis handle smooth scrolling */
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    background-color: #ffffff;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    color: #000000;
    overflow-x: hidden;
}

.hero-section {
    position: relative;
    padding: 120px 20px 60px 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
    text-align: center;

    background-image:
        linear-gradient(#f1f1f1 1.5px, transparent 1.5px),
        linear-gradient(90deg, #f1f1f1 1.5px, transparent 1.5px);
    background-size: 40px 40px;
    background-position: center top;
    background-attachment: fixed;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, #ffffff);
    pointer-events: none;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    letter-spacing: -0.02em;
    color: #000;
}

.hero-subtitle-line {
    font-family: 'Outfit', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.text-grey {
    color: #9CA3AF;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 0.85em;
}

.text-black {
    color: #000000;
}

.text-orange {
    color: #EA580C;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    vertical-align: middle;
    margin-left: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #D1FAE5;
}

.hero-footer {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: #000;
    color: #fff;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.hero-desc {
    font-size: 1.1rem;
    color: #4B5563;
    line-height: 1.5;
    max-width: 400px;
    margin: 0;
    text-align: left;
}

.intro-section {
    background-color: #ffffff;
    padding: 120px 20px;
    color: #000000;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.intro-container {
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.intro-heading {
    font-family: 'Satoshi', sans-serif;
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.02em;
    text-align: left;
}

.highlight-text {
    color: #FF3B30;
}

.intro-bottom-row {
    display: flex;
    justify-content: flex-end;
    padding-top: 20px;
}

.intro-desc-wrapper {
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.intro-desc {
    font-family: 'Outfit', sans-serif;
    color: #4B5563;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: left;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #111;
    border-radius: 50px;
    color: #111;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #000;
    color: #fff;
}


.bento-section {
    padding: 0 20px 140px 20px;
    display: flex;
    justify-content: center;
    background-color: #ffffff;
}

.bento-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, minmax(180px, auto));
    grid-auto-flow: dense;
    gap: 20px;
    max-width: 1000px;
    width: 100%;
}

.bento-item {
    background-color: #F8FAFC;
    border: 1px solid #F1F5F9;
    border-radius: 32px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: #E2E8F0;
}

.bento-large-1 {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-square {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-tall {
    grid-column: span 1;
    grid-row: span 2;
    background-color: #000000;
    color: #fff;
}

.bento-square-2 {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-wide {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-wide-2 {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
}

.center-content {
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}

.row-content {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    justify-content: flex-start;
}

.bento-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94A3B8;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.bento-title {
    font-family: 'Satoshi', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 5px 0 10px 0;
    line-height: 1.1;
}

.bento-text {
    font-size: 1rem;
    color: #64748B;
    margin: 0;
    line-height: 1.5;
}

.bento-tall .bento-title {
    color: #fff;
    font-size: 2rem;
    max-width: 80%;
}

.bento-visual {
    margin-top: 20px;
    position: relative;
    flex-grow: 1;
    display: flex;
    gap: 15px;
}

.ui-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    flex: 1;
    height: 100%;
    border: 1px solid #E2E8F0;
    position: relative;
    overflow: hidden;
}

.ui-card::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 40%;
    height: 8px;
    background: #E2E8F0;
    border-radius: 4px;
}

.ui-card::after {
    content: '';
    position: absolute;
    top: 28px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: #F1F5F9;
    border-radius: 8px;
    opacity: 0.5;
}

.tech-stack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tech-badge {
    background: #fff;
    border: 1px solid #E2E8F0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #475569;
}

.social-circle {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.bento-tall:hover .social-circle {
    transform: scale(1.1) rotate(45deg);
    background: #fff;
    color: #000;
}

.bento-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.location-icon {
    width: 50px;
    height: 50px;
    background: #E0F2FE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: #0EA5E9;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(14, 165, 233, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
    }
}

.bento-stat {
    font-size: 4rem;
    font-weight: 800;
    color: #111;
    margin: 0;
    line-height: 1;
}

.speed-bar {
    margin-top: 15px;
    height: 6px;
    width: 100%;
    background: #E2E8F0;
    border-radius: 3px;
    overflow: hidden;
}

.speed-fill {
    height: 100%;
    width: 98%;
    background: #10B981;
    border-radius: 3px;
}



.services-section {
    padding: 100px 20px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
}

.services-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.services-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
    margin-top: -100px;
}

.plus-icon {
    font-size: 2rem;
    font-weight: 700;
    color: #EA580C;
    line-height: 1;
}

.services-title {
    font-family: 'Satoshi', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #9CA3AF;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    position: relative;
    padding: 30px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 20px;
    border-top-left-radius: 60px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.light-card {
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #1F2937;
}

.dark-card {
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #1F2937;
}

.card-number {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.3;
    font-family: 'Satoshi', sans-serif;
}

.card-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    max-width: 100%;
    z-index: 2;
    position: relative;
}

.card-with-image {
    overflow: hidden;
}

.service-card-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-size: 8rem;
    color: #ffffff;
    opacity: 1;
    pointer-events: none;
    transition: transform 0.4s ease;
    z-index: 1;
}

.service-card:hover .service-card-icon {
    transform: translate(-50%, -65%) scale(1.1) rotate(-5deg);
    opacity: 1;
}



.design-section {
    padding: 100px 20px 60px 20px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
}

.design-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.design-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.design-header-left {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.design-subtitle {
    color: #EA580C;
    font-weight: 600;
    font-size: 1rem;
    display: block;
    margin-bottom: 15px;
}

.design-heading {
    font-family: 'Satoshi', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #111;
    line-height: 1.1;
    margin: 0;
}

.design-header-right {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 10px;
}

.design-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: #d1d5db;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 30px;
}

.design-desc {
    color: #4B5563;
}


.design-cta-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.cta-text {
    font-size: 0.9rem;
    color: #6B7280;
    font-weight: 500;
}

.design-btn {
    background-color: #EA580C;
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.design-btn:hover {
    transform: translateY(-2px);
    background-color: #C2410C;
}

.btn-arrow {
    background: #fff;
    color: #EA580C;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.design-grid {
    display: flex;
    justify-content: center;
    width: 100%;
}

.design-card {
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    height: auto;
    position: relative;
    background-color: transparent;
}

.design-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.design-card:hover .design-img {
    transform: scale(1.05);
}

.theme-toggle {
    position: fixed;
    top: 30px;
    right: 40px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #111;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: togglePopup 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

@keyframes togglePopup {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}


::view-transition-image-pair(root) {
    isolation: isolate;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
    display: block;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transition: transform 0.1s ease;
    will-change: transform;
}

@media (hover: none) {
    .cursor-follower {
        display: none;
    }
}

::view-transition-new(root) {
    z-index: 1000;
    animation: theme-reveal 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

::view-transition-old(root) {
    z-index: 1;
}

@keyframes theme-reveal {
    from {
        clip-path: circle(0% at var(--click-x) var(--click-y));
    }

    to {
        clip-path: circle(150% at var(--click-x) var(--click-y));
    }
}

body.dark-mode {
    background-color: #050505;
    color: #ffffff;
}

body.dark-mode .navbar {
    background: #111;
    border: 1px solid #333;
}

body.dark-mode .nav-logo {
    color: #fff;
}

body.dark-mode .nav-links li a {
    color: #d1d5db;
}

body.dark-mode .nav-links li a:hover {
    color: #fff;
}

body.dark-mode .nav-btn {
    background-color: #fff;
    color: #000;
}

body.dark-mode .bar {
    background-color: #fff;
}

body.dark-mode .theme-toggle {
    background-color: #fff;
    color: #000;
    border-color: #e5e7eb;
}

body.dark-mode .hero-section::after {
    background: linear-gradient(to bottom, transparent, #050505);
}

body.dark-mode .hero-section {
    background-image:
        linear-gradient(#222 1.5px, transparent 1.5px),
        linear-gradient(90deg, #222 1.5px, transparent 1.5px);
}

body.dark-mode .hero-title,
body.dark-mode .text-black,
body.dark-mode .intro-heading,
body.dark-mode .bento-stat,
body.dark-mode .bento-title,
body.dark-mode .design-heading,
body.dark-mode .footer-heading {
    color: #fff;
}

body.dark-mode .hero-desc,
body.dark-mode .intro-desc,
body.dark-mode .bento-text,
body.dark-mode .card-text,
body.dark-mode .design-desc {
    color: #9CA3AF;
}

body.dark-mode .status-badge {
    background: #111;
    border-color: #333;
    color: #e5e7eb;
}

body.dark-mode .btn-primary {
    background-color: #fff;
    color: #000;
}

body.dark-mode .intro-section,
body.dark-mode .bento-section,
body.dark-mode .services-section,
body.dark-mode .design-section,
body.dark-mode .footer-section {
    background-color: #050505;
}

body.dark-mode .bento-item {
    background-color: #0f0f0f;
    border-color: #222;
}

body.dark-mode .ui-card {
    background-color: #1a1a1a;
    border-color: #333;
}

body.dark-mode .ui-card::before {
    background: #333;
}

body.dark-mode .ui-card::after {
    background: #222;
}

body.dark-mode .tech-badge {
    background: #111;
    border-color: #333;
    color: #e5e7eb;
}

body.dark-mode .location-icon {
    background: #1e293b;
}

body.dark-mode .speed-bar {
    background: #333;
}

body.dark-mode .light-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .service-card:hover {
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05);
}

body.dark-mode .design-card {
    background-color: #111;
}

body.dark-mode .footer-icon-wrapper {
    background-color: #1f2937;
}

body.dark-mode .footer-icon {
    color: #f3f4f6;
}

body.dark-mode .btn-black {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

body.dark-mode .btn-white {
    background-color: #000;
    color: #fff;
    border-color: #333;
}

body.dark-mode .social-link:hover {
    color: #fff;
}

body.dark-mode .theme-toggle {
    background-color: #fff;
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

/* Responsive Services */
@media (max-width: 1200px) {
    .services-section {
        padding: 80px 20px;
    }

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

    .service-card-icon {
        font-size: 6rem;
    }
}

@media (max-width: 1024px) {
    .services-header {
        margin-top: -80px;
        margin-bottom: 40px;
    }

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

    .service-card {
        min-height: 240px;
        padding: 25px;
    }

    .card-text {
        font-size: 0.95rem;
    }

    .service-card-icon {
        font-size: 5rem;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle-line {
        font-size: 2.8rem;
    }

    .design-heading {
        font-size: 2.8rem;
    }

    .design-header {
        flex-direction: column;
        gap: 30px;
    }

    .design-header-right {
        flex: auto;
        width: 100%;
    }

    .bento-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .bento-large-1 {
        grid-column: span 2;
        grid-row: span 1;
    }

    .bento-tall {
        grid-column: span 1;
        grid-row: span 2;
        min-height: 250px;
    }

    .bento-wide,
    .bento-wide-2 {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 60px 15px;
    }

    .services-header {
        margin-top: 0;
        margin-bottom: 30px;
    }

    .plus-icon {
        font-size: 1.5rem;
    }

    .services-title {
        font-size: 1rem;
    }

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

    .service-card {
        min-height: 200px;
        padding: 25px;
        border-top-left-radius: 40px;
    }

    .card-number {
        font-size: 1rem;
        top: 20px;
        right: 25px;
    }

    .card-text {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .service-card-icon {
        font-size: 4.5rem;
        opacity: 0.15;
    }

    .design-heading {
        font-size: 2.2rem;
    }

    .design-cta-wrapper {
        flex-wrap: wrap;
        gap: 20px;
    }

    .theme-toggle {
        top: auto;
        bottom: 30px;
        right: 30px;
        width: 44px;
        height: 44px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .hero-section {
        padding: 100px 15px 40px 15px;
        align-items: center;
        text-align: center;
    }

    .intro-section {
        padding: 60px 20px;
    }

    .intro-heading {
        font-size: 2rem;
    }

    .intro-bottom-row {
        justify-content: flex-start;
    }

    .intro-desc-wrapper {
        max-width: 100%;
    }

    .hero-title {
        font-size: 3rem;
        gap: 10px;
        justify-content: center;
        text-align: center;
    }

    .hero-subtitle-line {
        font-size: 2rem;
        gap: 10px;
        margin: 5px 0;
        justify-content: center;
        text-align: center;
    }

    .status-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
        margin-left: 8px;
    }

    .hero-footer {
        margin-top: 40px;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .hero-desc {
        text-align: center;
    }

    .btn-primary {
        padding: 14px 30px;
        font-size: 1rem;
    }

}

@media (max-width: 600px) {
    .services-section {
        padding: 50px 15px;
    }

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

    .service-card {
        min-height: 180px;
        padding: 20px;
    }

    .card-text {
        font-size: 0.85rem;
    }

    .service-card-icon {
        font-size: 4rem;
    }

    .service-card:hover {
        transform: none;
        box-shadow: none;
    }

    .service-card:hover .service-card-icon {
        transform: translate(-50%, -60%);
        opacity: 0.15;
    }

    .bento-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .bento-large-1,
    .bento-wide,
    .bento-wide-2,
    .bento-tall {
        grid-column: span 2;
        grid-row: auto;
    }

    .bento-square,
    .bento-square-2 {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-title {
        font-size: 1.5rem;
    }

    .bento-item {
        padding: 20px;
        min-height: auto;
    }

    .tech-stack-grid {
        gap: 6px;
    }

    .tech-badge {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .bento-stat {
        font-size: 3rem;
    }

    .bento-tall {
        min-height: 180px;
    }
}

@media (max-width: 480px) {
    .services-header {
        margin-bottom: 25px;
    }

    .plus-icon {
        font-size: 1.2rem;
    }

    .services-title {
        font-size: 0.9rem;
    }

    .service-card {
        min-height: 160px;
        padding: 18px;
        border-top-left-radius: 30px;
    }

    .card-number {
        font-size: 0.9rem;
        top: 15px;
        right: 20px;
    }

    .card-text {
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .service-card-icon {
        font-size: 3.5rem;
        opacity: 1;
        color: #ffffff;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle-line {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .status-badge {
        margin-left: 0;
        margin-top: 5px;
    }
}

/* Common Animated Button */
.btn-animated {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000;
    color: #fff;
    border: 1px solid #000;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: #fff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

.btn-animated:hover {
    color: #000;
}

.btn-animated:hover::before {
    transform: scaleX(1);
    transform-origin: left;
    /* Ensure it expands from left */
}

/* Dark Mode Adjustments for Animated Button */
body.dark-mode .btn-animated {
    /* Keep Black BG, White Text, but add White Border */
    background-color: #000;
    color: #fff;
    border: 1px solid #fff;
}

body.dark-mode .btn-animated:hover {
    color: #000;
}

body.dark-mode .btn-animated::before {
    background-color: #fff;
    /* Fill with white so text becomes black. This matches the request. */
}