/* ===== HERO SECTION - REDESIGNED ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    overflow-x: clip;
    overflow-y: visible;
    background: #0a0a0f;
}

/* Light Theme Hero */
[data-theme="light"] .hero {
    background: #ffffff;
}

/* 3D Grid Background - Dark Theme */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: center top;
    opacity: 0.3;
    z-index: 0;
}

/* 3D Grid Background - Light Theme */
[data-theme="light"] .hero::before {
    background-image:
        linear-gradient(rgba(0, 153, 204, 0.2) 1.5px, transparent 1.5px),
        linear-gradient(90deg, rgba(0, 153, 204, 0.2) 1.5px, transparent 1.5px);
    opacity: 0.35;
}

/* Gradient Overlay - Dark Theme */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at center, rgba(0, 212, 255, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse at 20% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        linear-gradient(to bottom, transparent 0%, rgba(10, 10, 15, 0.8) 100%);
    z-index: 1;
}

/* Gradient Overlay - Light Theme */
[data-theme="light"] .hero::after {
    background:
        radial-gradient(ellipse at center, rgba(0, 153, 204, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse at 20% 80%, rgba(107, 70, 193, 0.08) 0%, transparent 50%),
        linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.9) 100%);
}

.hero-container {
    text-align: center;
    max-width: 1400px;
    padding: 0 40px;
    position: relative;
    z-index: 10;
    animation: heroFadeIn 1.2s ease 0.3s both;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Title */
.hero-title {
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 40px;
    margin-top: 20px;
    letter-spacing: -2px;
    color: var(--text-primary);
    text-shadow: 0 0 80px rgba(0, 212, 255, 0.3);
}

.title-highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
}

/* Hero Description */
.hero-description {
    font-size: clamp(16px, 2vw, 22px);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    font-weight: 400;
}

.hero-description strong {
    color: var(--text-primary);
    display: block;
    margin-top: 15px;
}

.title-line-2 {
    display: inline-block;
    margin-top: 15px;
}

/* ===== FLOATING GEOMETRIC SHAPES ===== */
.geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.15;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

/* Shape 1 - Triangle */
.shape-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 180px solid var(--accent-cyan);
    top: 15%;
    left: 10%;
    animation: float1 20s infinite;
    filter: blur(2px);
}

[data-theme="light"] .shape-1 {
    border-bottom-color: rgba(0, 153, 204, 0.6);
}

/* Shape 2 - Circle */
.shape-2 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--accent-purple);
    top: 60%;
    right: 15%;
    animation: float2 18s infinite;
    filter: blur(3px);
}

[data-theme="light"] .shape-2 {
    background: rgba(107, 70, 193, 0.5);
}

/* Shape 3 - Square */
.shape-3 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    top: 40%;
    right: 8%;
    animation: rotate360 25s linear infinite, float3 15s infinite;
    filter: blur(2px);
}

[data-theme="light"] .shape-3 {
    background: linear-gradient(135deg, rgba(0, 153, 204, 0.5), rgba(107, 70, 193, 0.5));
}

/* Shape 4 - Diamond */
.shape-4 {
    width: 80px;
    height: 80px;
    background: var(--accent-cyan);
    transform: rotate(45deg);
    bottom: 20%;
    left: 20%;
    animation: float4 22s infinite;
    filter: blur(2px);
}

[data-theme="light"] .shape-4 {
    background: rgba(0, 153, 204, 0.6);
}

/* Shape 5 - Hexagon (using clip-path) */
.shape-5 {
    width: 140px;
    height: 140px;
    background: var(--accent-purple);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    top: 25%;
    right: 25%;
    animation: float5 19s infinite;
    filter: blur(3px);
    opacity: 0.1;
}

[data-theme="light"] .shape-5 {
    background: rgba(107, 70, 193, 0.4);
    opacity: 0.3;
}

/* Shape 6 - Line */
.shape-6 {
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    bottom: 30%;
    right: 30%;
    animation: float6 16s infinite;
    filter: blur(1px);
}

[data-theme="light"] .shape-6 {
    background: linear-gradient(90deg, transparent, rgba(0, 153, 204, 0.6), transparent);
}

/* Float Animations */
@keyframes float1 {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    25% {
        transform: translateY(-30px) translateX(20px) rotate(15deg);
    }

    50% {
        transform: translateY(-60px) translateX(-10px) rotate(-10deg);
    }

    75% {
        transform: translateY(-30px) translateX(-30px) rotate(20deg);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translateY(0) translateX(0) scale(1);
    }

    33% {
        transform: translateY(40px) translateX(-30px) scale(1.1);
    }

    66% {
        transform: translateY(-40px) translateX(30px) scale(0.9);
    }
}

@keyframes float3 {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-50px) translateX(-40px);
    }
}

@keyframes float4 {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(45deg);
    }

    50% {
        transform: translateY(50px) translateX(50px) rotate(225deg);
    }
}

@keyframes float5 {

    0%,
    100% {
        transform: translateY(0) translateX(0) scale(1);
    }

    50% {
        transform: translateY(-35px) translateX(25px) scale(1.15);
    }
}

@keyframes float6 {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.15;
    }

    50% {
        transform: translateY(30px) translateX(-50px) rotate(15deg);
        opacity: 0.25;
    }
}

@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-title {
        font-size: clamp(36px, 7vw, 80px);
        margin-bottom: 30px;
    }

    .hero-description {
        font-size: clamp(14px, 2vw, 18px);
    }

    .shape-1 {
        border-left: 70px solid transparent;
        border-right: 70px solid transparent;
        border-bottom: 120px solid var(--accent-cyan);
    }

    .shape-2,
    .shape-5 {
        width: 100px;
        height: 100px;
    }

    .shape-3 {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
    }

    .hero-container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: clamp(32px, 10vw, 60px);
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-description br {
        display: none;
    }

    /* Hide some shapes on mobile for performance */
    .shape-5,
    .shape-6 {
        display: none;
    }
}

/* ===== HERO OFFERS (80% DISCOUNT SECTION) ===== */
.hero-offers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 140px auto 40px auto;
    max-width: 1200px;
    position: relative;
    z-index: 10;
}

.offer-card {
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: floatOffer 6s ease-in-out infinite;
}

[data-theme="light"] .offer-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.offer-card.glow-cyan {
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.15), inset 0 0 20px rgba(0, 212, 255, 0.05);
}

.offer-card.glow-purple {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.15), inset 0 0 20px rgba(139, 92, 246, 0.05);
    animation-delay: 3s;
}

.offer-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.offer-card.glow-cyan:hover {
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.3), inset 0 0 30px rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.5);
}

.offer-card.glow-purple:hover {
    box-shadow: 0 15px 50px rgba(139, 92, 246, 0.3), inset 0 0 30px rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.5);
}

.discount-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, #FF3366, #FF9933);
    color: white;
    font-weight: bold;
    padding: 8px 40px;
    transform: rotate(45deg);
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.4);
    animation: pulseBadge 2s infinite;
    z-index: 5;
    letter-spacing: 1px;
}

[dir="ltr"] .discount-badge {
    right: auto;
    left: -35px;
    transform: rotate(-45deg);
}

.offer-image {
    width: 100%;
    height: 250px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.offer-card:hover .offer-image img {
    transform: scale(1.1);
}

.shimmer-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    animation: shimmer 4s infinite;
}

.offer-content h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 800;
}

.offer-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
}

.offer-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    width: 100%;
}

.offer-actions .btn {
    padding: 12px 25px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 30px;
    flex: 1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.offer-actions .btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.offer-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
    color: white;
}

.offer-actions .btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.offer-actions .btn-outline:hover {
    background: var(--bg-hover);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

[data-theme="light"] .offer-actions .btn-outline {
    border-color: rgba(0,0,0,0.1);
    color: #333;
}
[data-theme="light"] .offer-actions .btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* Animations */
@keyframes floatOffer {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes pulseBadge {
    0% { transform: rotate(45deg) scale(1); }
    50% { transform: rotate(45deg) scale(1.05); }
    100% { transform: rotate(45deg) scale(1); }
}

[dir="ltr"] @keyframes pulseBadge {
    0% { transform: rotate(-45deg) scale(1); }
    50% { transform: rotate(-45deg) scale(1.05); }
    100% { transform: rotate(-45deg) scale(1); }
}

@keyframes shimmer {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

@media (max-width: 768px) {
    .hero-offers {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .offer-actions {
        flex-direction: column;
    }
}