/* Override outer padding for Hero section */
#home.sec-box {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.hero-bento {
    background: #111111;
    border-radius: 40px;
    padding: 30px;
    /* Further reduced padding */
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
    min-height: 85vh;
    /* Increase height to fill screen */
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* ... existing code ... */

/* --- Phone Column (Right) --- */
.hero-phone-col {
    position: relative;
    height: 600px;
    /* Increased height for bigger image */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-phone-img {
    max-width: 140%;
    /* Allow image to be bigger than container width if needed, or fill nicely */
    max-height: 100%;
    /* Fill the increased height */
    width: auto;
    /* Maintain aspect ratio */
    height: 100%;
    /* Force height match */
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    transform: translateY(10px) translateX(20px);
    /* Adjust position */
}

/* ... existing code ... */

/* --- Phone Column (Right) --- */
.hero-phone-col {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-phone-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    transform: translateY(10px);
}

/* Floating Card near Phone */
.hero-phone-floating-card {
    position: absolute;
    bottom: 40px;
    left: -20px;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 180px;
    text-align: center;
    z-index: 5;
}

.hero-bento-grid {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr) 340px;
    /* Revert to 3 cols: Avatar | Content | Phone */
    gap: 40px;
    align-items: center;
    width: 100%;
}

/* --- Avatar Column (Left) --- */
.hero-avatar-col {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-avatar-box {
    background: linear-gradient(135deg, #1f1f1f, #141414);
    border-radius: 40px;
    /* Simulating the rounded look of the reference */
    overflow: hidden;
    position: relative;
    /* width: 100%; */
    height: 550px;
    /* Significantly taller */
    width: 100%;
    /* Fill the column */
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    /* Ensure face is visible */
}

.hero-floating-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    width: 90%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-floating-badge .icon-box {
    width: 32px;
    height: 32px;
    background: #3B82F6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.hero-floating-badge .text-box span {
    display: block;
    font-size: 10px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-floating-badge .text-box h6 {
    font-size: 13px;
    color: #fff;
    margin: 0;
    font-weight: 600;
}

/* --- Content Column (Center) --- */
.hero-content-col {
    padding: 0 10px;
}

.hero-content-col h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.hero-content-col h1 .highlight {
    color: #3B82F6;
}

/* Thinner Typing Cursor */
.hero-bento .typed-cursor {
    font-weight: 100 !important;
    color: #3B82F6;
    opacity: 1;
}

.hero-content-col p {
    color: #999;
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    padding: 5px;
    width: max-content;
    margin-bottom: 50px;
}

.hero-cta-btn {
    background: #0c0c0c;
    color: #fff;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.hero-cta-btn:hover {
    transform: scale(1.05);
    color: #fff;
}

.hero-cta-text {
    color: #0c0c0c;
    font-weight: 500;
    padding: 0 20px;
    font-size: 0.95rem;
}

.hero-stats-row {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.hero-stat-item h4 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.hero-stat-item p {
    font-size: 13px;
    color: #666;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Phone Column (Right) --- */
/* --- Phone Column (Right) --- */
/* --- Phone Column (Right) --- */
/* Decorative Shapes */
.shape-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(40px);
}

.shape-floating {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    /* Very subtle glass */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 5;
    animation: floatShape 6s ease-in-out infinite;
}

.shape-floating-1 {
    top: 60px;
    right: 40px;
    color: #3DDC84;
    /* Android Green */
    animation-delay: 0s;
}

.shape-floating-2 {
    bottom: 120px;
    left: 30px;
    color: #3B82F6;
    /* Blue */
    animation-delay: 3s;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.hero-phone-col {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    /* Center vertically for code card */
    justify-content: center;
    overflow: hidden;
    border-radius: 40px;
}

/* Isometric App Stack */
.hero-iso-stack {
    position: relative;
    width: 280px;
    height: 480px;
    /* Taller for stack */
    transform: scale(0.85) translateY(50px);
    /* Fit in container & Shift Down */
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
}

.iso-layer {
    position: absolute;
    width: 200px;
    height: 400px;
    border-radius: 30px;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    animation: isoFloat 6s ease-in-out infinite;
}

/* Base Layer (Body) */
.layer-base {
    background: #111;
    border: 2px solid #333;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    transform: rotateX(60deg) rotateZ(-45deg) translateZ(-60px);
    z-index: 1;
}

/* Wireframe Layer */
.layer-wireframe {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    transform: rotateX(60deg) rotateZ(-45deg) translateZ(0px);
    z-index: 2;
    backdrop-filter: blur(2px);
    padding: 20px;
}

.wire-grid {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(59, 130, 246, 0.3) 1px, transparent 1px);
    background-size: 20px 20px;
}

.wire-block {
    position: absolute;
    top: 40px;
    left: 20px;
    right: 20px;
    height: 100px;
    border: 1px dashed rgba(59, 130, 246, 0.5);
    border-radius: 10px;
}

.wire-block.sm {
    top: 160px;
    height: 60px;
}

/* Code Layer */
.layer-code {
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid rgba(16, 185, 129, 0.3);
    /* Green border */
    transform: rotateX(60deg) rotateZ(-45deg) translateZ(60px);
    z-index: 3;
    padding: 30px;
}

.code-line {
    height: 6px;
    background: rgba(16, 185, 129, 0.4);
    margin-bottom: 12px;
    border-radius: 4px;
}

.code-line.w-75 {
    width: 75%;
}

.code-line.w-50 {
    width: 50%;
}

.code-symbol {
    position: absolute;
    bottom: 40px;
    right: 30px;
    font-size: 40px;
    color: #10B961;
    opacity: 0.8;
}

/* UI Layer (Top) */
.layer-ui {
    background: linear-gradient(135deg, #1e1e24 0%, #2d2d3a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotateX(60deg) rotateZ(-45deg) translateZ(120px);
    z-index: 4;
    overflow: hidden;
    box-shadow: -20px 20px 60px rgba(0, 0, 0, 0.5);
}

.ui-header {
    height: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 8px;
}

.ui-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #555;
}

.ui-content {
    padding: 20px;
}

.ui-hero {
    height: 100px;
    border-radius: 12px;
    background: linear-gradient(45deg, #3B82F6, #8B5CF6);
    margin-bottom: 20px;
}

.ui-row {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.ui-card {
    flex: 1;
    height: 60px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
}

.ui-btn {
    width: 100%;
    height: 45px;
    background: #10B961;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

/* Animations */
@keyframes isoFloat {

    0%,
    100% {
        transform: rotateX(60deg) rotateZ(-45deg) translateZ(var(--z-start));
    }

    50% {
        transform: rotateX(60deg) rotateZ(-45deg) translateZ(calc(var(--z-start) + 20px));
    }
}

.layer-base {
    --z-start: -60px;
    animation-delay: 0s;
}

.layer-wireframe {
    --z-start: 0px;
    animation-delay: 0.2s;
}

.layer-code {
    --z-start: 60px;
    animation-delay: 0.4s;
}

.layer-ui {
    --z-start: 120px;
    animation-delay: 0.6s;
}



@keyframes counterSpin {
    100% {
        transform: rotate(-360deg);
    }
}

@keyframes gentleFloat {

    0%,
    100% {
        transform: perspective(1000px) rotateX(15deg) rotateY(15deg) translateY(0);
    }

    50% {
        transform: perspective(1000px) rotateX(15deg) rotateY(15deg) translateY(-10px);
    }
}

/* Ensure typing text doesn't wrap and cause layout shifts */
.hero-type-animation {
    white-space: nowrap !important;
    display: inline-block;
}

.hero-content-col h1 {
    white-space: nowrap;
    /* Prevent H1 from wrapping the span */
    overflow: visible;
}

/* Responsive Font Scaling to prevent overflow */
@media (max-width: 1200px) {
    .hero-content-col h1 {
        font-size: 2.8rem;
        /* Scale down heading */
    }
}

@media (max-width: 992px) {
    .hero-content-col h1 {
        font-size: 2.2rem;
        /* Further scale down */
        white-space: normal;
        /* Allow wrap specifically on mobile where columns stack */
    }

    .hero-type-animation {
        white-space: normal !important;
        /* Allow wrap on mobile stack */
    }
}

/* Fix for very small mobile devices */
@media (max-width: 600px) {
    .hero-content-col h1 {
        white-space: normal !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-size: 1.8rem;
    }

    .hero-type-animation {
        white-space: normal !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

.hero-bottom-fade p i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.hero-bottom-fade p:hover i {
    transform: translateX(4px);
}


/* Mockup styles removed */

/* Floating Card near Phone */
.hero-phone-floating-card {
    position: absolute;
    bottom: 80px;
    left: -40px;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 180px;
    text-align: center;
    z-index: 5;
}

.hero-phone-floating-card h5 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 5px;
}

.hero-phone-floating-card p {
    color: #666;
    font-size: 12px;
    margin: 0;
}

.hero-phone-floating-card .btn-sm {
    background: #3B82F6;
    color: #fff;
    font-size: 11px;
    padding: 6px 15px;
    border-radius: 20px;
    margin-top: 10px;
    display: inline-block;
}


/* --- Master Responsive Styles --- */

/* Tablet & Small Desktop (Stacked Layout) */
@media (max-width: 1024px) {
    .hero-bento {
        min-height: auto;
        padding: 50px 20px;
        height: auto;
    }

    .hero-bento-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    /* Order: Avatar -> Content -> Stack */
    .hero-avatar-col {
        order: 1;
        justify-content: center;
    }

    .hero-avatar-box {
        width: 100%;
        max-width: 450px;
        height: 450px;
        margin: 0 auto;
    }

    .hero-content-col {
        order: 2;
        padding: 0;
    }

    .hero-content-col h1 {
        font-size: 3rem;
        /* Allow wrapping on stack */
        white-space: normal;
        word-break: break-word;
    }

    .hero-type-animation {
        white-space: normal !important;
    }

    .hero-content-col p {
        margin: 0 auto 30px;
        max-width: 600px;
    }

    .hero-cta-group {
        margin: 0 auto 40px;
    }

    .hero-stats-row {
        justify-content: center;
        gap: 40px;
        flex-wrap: wrap;
        /* Ensure no overflow */
    }

    .hero-phone-col {
        order: 3;
        height: 500px;
        /* Space for the stack */
        margin-top: 0;
    }

    /* Center the stack in the column */
    .hero-iso-stack {
        transform: scale(0.8) translateY(20px);
    }
}

/* Mobile (Phablets/Phones) */
@media (max-width: 768px) {
    .hero-content-col h1 {
        font-size: 2.5rem;
    }

    .hero-avatar-box {
        height: 380px;
        border-radius: 30px;
    }

    .hero-phone-col {
        height: 400px;
    }

    .hero-iso-stack {
        transform: scale(0.65) translateY(0);
    }
}

/* Very Small Mobile */
@media (max-width: 375px) {
    .hero-iso-stack {
        transform: scale(0.5) translateY(0);
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .hero-stats-row {
        gap: 20px;
    }

    .hero-stat-item h4 {
        font-size: 22px;
    }
}

/* Small Screens */
@media (max-width: 480px) {
    .hero-bento {
        padding: 24px 16px;
        border-radius: 24px;
    }

    .hero-bento-grid {
        gap: 30px;
    }

    .hero-content-col {
        padding: 0 4px;
    }

    .hero-content-col h1 {
        font-size: 1.75rem;
        line-height: 1.2;
        white-space: normal !important;
        word-wrap: break-word;
    }

    .hero-content-col p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .hero-cta-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .hero-avatar-box {
        height: 320px;
        border-radius: 30px;
    }

    .hero-phone-col {
        height: 350px;
    }

    .hero-iso-stack {
        transform: scale(0.55) translateY(-20px);
    }
}

/* Extra Small Screens */
@media (max-width: 360px) {
    .hero-bento {
        padding: 20px 12px;
        border-radius: 20px;
    }

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

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