/* =========================================
   New Hero Section Styles
   ========================================= */

/* Background Elements */
:root {
    --primary: #0088CC;
    --secondary: #06d6a0;
    --text-main: #1a1a1a;

    --brand-gradient: linear-gradient(to right, #0088CC, #06d6a0);
    --bg-linearop: linear-gradient(to bottom right, rgba(0, 136, 204, 0.2), rgba(6, 214, 160, 0.2));
}
.bg-grid-pattern {
    background-image:
        linear-gradient(to right, rgba(98, 28, 28, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(128, 128, 128, 0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
}

.bg-radial-glow {
    background: radial-gradient(circle at 50% 50%, rgb(59 130 246 / 25%), #00000000 50%);
}

.bg-noise {
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.2;
    filter: brightness(100%) contrast(150%);
}

/* Typography */
.font-syne {
    font-family: var(--font-syne), sans-serif;
}

.font-space {
    font-family: var(--font-space), monospace;
}

.hero-title {
    font-size: 60px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    letter-spacing: -0.05em;
    color: var(--text-main);
    max-width: 80%;
    /* 5xl equivalent approx */
}

.hero-subtitle {
    max-width: 42rem;
    /* 2xl */
    font-size: 1.125rem;
    /* lg */
    font-weight: 500;
    line-height: 1.625;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
        /* xl */
    }
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: var(--font-en);
    font-size: 0.75rem;
    /* xs */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Buttons */
.btn-primary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 3.5rem;
    padding: 0 2rem;
    border-radius:30px;
    background: var(--brand-gradient);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.125rem;
    /* lg */
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

[data-theme="dark"] .btn-primary {
    background-color: #ffffff;
    color: #000000;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 3.5rem;
    padding: 0 2rem;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

[data-theme="dark"] .btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.btn-secondary:hover {
    /* background-color: var(--card-bg); */
    transform: scale(0.95);
}
.btn-secondary:active {
    transform: scale(0.95);
}
/* ThreeIcon Replacement Styles */
.three-icon-container {
    perspective: 1000px;
    width: 150px;
    height: 150px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate3d 10s infinite linear;
    pointer-events: none;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.cube-face {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid #3b82f6;
    /* localized blue */
    background: rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.cube-face:nth-child(1) {
    transform: rotateY(0deg) translateZ(75px);
}

.cube-face:nth-child(2) {
    transform: rotateY(90deg) translateZ(75px);
}

.cube-face:nth-child(3) {
    transform: rotateY(180deg) translateZ(75px);
}

.cube-face:nth-child(4) {
    transform: rotateY(-90deg) translateZ(75px);
}

.cube-face:nth-child(5) {
    transform: rotateX(90deg) translateZ(75px);
}

.cube-face:nth-child(6) {
    transform: rotateX(-90deg) translateZ(75px);
}

@keyframes rotate3d {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* Decorative Elements */
.deco-corner-text {
    font-family: var(--font-space), monospace;
    font-size: 0.625rem;
    /* 10px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    opacity: 0.5;
    pointer-events: none;
    position: absolute;
    bottom: 2.5rem;
    /* 10 */
    display: flex;
    gap: 1rem;
}

.deco-left {
    left: 2.5rem;
    /* 10 */
    flex-direction: column;
}

[dir="rtl"] .deco-left {
    left: auto;
    right: 2.5rem;
}

.deco-right {
    right: 2.5rem;
    /* 10 */
    align-items: center;
}

[dir="rtl"] .deco-right {
    right: auto;
    left: 2.5rem;
}

.deco-line {
    width: 5rem;
    /* 20 */
    height: 1px;
    background-color: var(--border-color);
}

/* Responsive Styles for Hero */
@media (max-width: 991px) {
    .hero-title {
        font-size: 50px;
        /* Smaller font on tablets/mobile */
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem !important;
    }

    .btn-primary,
    .btn-secondary {
        height: 3.5rem;
        /* Slightly smaller buttons */
        padding: 0 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 36px;
        /* Even smaller for phones */
    }

    .hero-anim-container .d-flex.gap-4 {
        flex-direction: column;
        width: 100%;
        gap: 1rem !important;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        /* Full width buttons on mobile */
    }
}