/* Hero Section Styles */

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    padding: 0 2rem;
    align-items: center;
    overflow: hidden;
    background: var(--bg-color);
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(90deg, var(--accent-color) 1px, transparent 1px),
        linear-gradient(180deg, var(--accent-color) 1px, transparent 1px);
    background-size: 8rem 8rem;
    opacity: var(--hero-grid-opacity);
    z-index: 1;
}

/* Glow Effect Container */
.glow-effect {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        rgba(100, 255, 218, 0.1) 0%,
        transparent 50%
    );
    pointer-events: none;
    animation: glow 4s ease-in-out infinite;
    z-index: 2;
}

/* Hero Grid Elements - Glowing Dots */
.hero-grid-element {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.5;
    animation: pulseGrid 2s infinite;
    z-index: 3;
}

.hero-content-wrapper {
    grid-column: 2 / 6;
    z-index: 5;
    position: relative;
    transform: translateY(-60px);
}

.spline-container {
    grid-column: 6 / 12;
    position: relative;
    height: 700px;
    z-index: 5;
    overflow: hidden;
    margin-right: -50px;
}

spline-viewer {
    position: absolute;
    top: -50px;
    left: 0;
    width: 120%;
    height: 120%;
    pointer-events: auto;
}

.hero-content {
    position: relative;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards 0.3s;
}

.welcome-message {
    color: var(--accent-color);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards 0.3s;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 40px;
    height: 40px;
    border-left: 2px solid var(--accent-color);
    border-top: 2px solid var(--accent-color);
    opacity: 0.5;
}

.hero-content h1 {
    text-align: left;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    position: relative;
}

.hero-title {
    text-align: left;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    position: relative;
    color: var(--text-primary);
    font-weight: 700;
    white-space: nowrap;
}

.hero-subtitle {
    text-align: left;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 500px;
    white-space: nowrap;
}

.hero-cta {
    position: relative;
    z-index: 3;
}

.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: rgba(100, 255, 218, 0.1);
    transform: translate(-50%, -50%) rotate(45deg) scale(0);
    transition: transform 0.6s var(--animation-timing);
}

.cta-button:hover::before {
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

/* Tech Decorations */
.tech-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.orbit-container {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
}

.orbit {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(100, 255, 218, 0.05);
    border-radius: 50%;
    animation: orbit 20s linear infinite;
}

.orbit-1 { transform: rotate(0deg) scale(0.8); animation-duration: 15s; }
.orbit-2 { transform: rotate(120deg) scale(1); animation-duration: 20s; }
.orbit-3 { transform: rotate(240deg) scale(1.2); animation-duration: 25s; }

.tech-item {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 34, 64, 0.8);
    border: 1px solid rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.tech-item::after {
    content: attr(data-label);
    position: absolute;
    bottom: -20px;
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.tech-item:hover::after {
    opacity: 1;
    transform: translateY(5px);
}

.tech-pills {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-pill {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    background: rgba(17, 34, 64, 0.8);
    border: 1px solid rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
    animation: float 3s ease-in-out infinite;
    margin: 0.5rem;
}

/* Explore Button Styles */
.explore-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.explore-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(100, 255, 218, 0.1);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.explore-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 255, 218, 0.2);
    color: var(--primary-color);
    background: var(--accent-color);
}

.explore-button:hover::before {
    left: 0;
}

.explore-button i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.explore-button:hover i {
    transform: translateX(5px);
}

.explore-button .button-text {
    position: relative;
    z-index: 2;
}

/* ===== HERO TRANSITIONS ===== */

/* Enhanced hero section transitions */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.hero.visible .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.spline-container {
    opacity: 0;
    transform: translateX(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.hero.visible .spline-container {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .hero {
        display: flex;
        flex-direction: column;
        min-height: 140vh;
        padding-top: calc(var(--mobile-nav-height) + 3rem);
        padding-bottom: 4rem;
        padding-left: 1rem;
        padding-right: 1rem;
        gap: 2rem;
        position: relative;
        overflow: visible;
        margin-top: 0;
        justify-content: flex-start;
    }    .hero-content-wrapper {
        order: 1;
        width: 100%;
        padding: 1rem;
        margin-top: 0;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: 40vh;
        transform: translateY(-30px);
    }

    .spline-container {
        order: 2;
        width: 160%;
        height: 65vh;
        min-height: 450px;
        max-height: 600px;
        margin: 0;
        transform: translateX(-55%) translateY(4rem);
        margin-bottom: -2rem;
        position: relative;
        z-index: 1;
        overflow: hidden;
    }

    spline-viewer {
        top: -200px;
        left: -10%;
        width: 130%;
        height: 200%;
        transform: scale(1.6);
        position: absolute;
    }

    .hero-content {
        text-align: center;
    }    .welcome-message,
    .hero-content h1,
    .hero-title,
    .hero-subtitle {
        text-align: center;
    }

    .welcome-message {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }    .hero-title {
        font-size: clamp(1.8rem, 4vw, 2.2rem);
        margin-bottom: 1rem;
        white-space: nowrap;
    }

    .explore-button {
        padding: 0.8rem 1.6rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 130vh;
    }

    .spline-container {
        width: 190%;
        height: 60vh;
        min-height: 400px;
        transform: translateX(-40%) translateY(2.5rem);
        overflow: hidden;
    }

    spline-viewer {
        top: -200px;
        height: 180%;
        transform: scale(1.3);
    }
}

@media (orientation: landscape) and (max-width: 768px) {
    .hero {
        min-height: 100vh;
    }

    .spline-container {
        width: 70%;
        height: 100%;
        transform: translateX(-30%) translateY(1rem);
        margin-right: -8%;
        overflow: hidden;
    }

    spline-viewer {
        top: -300px;
        height: 240%;
        transform: scale(1.7);
    }
}

/* Light Theme Adjustments */
body.light-theme .hero {
    background: var(--light-primary);
}

body.light-theme .welcome-message {
    color: var(--light-accent);
}

body.light-theme .hero-title {
    color: var(--light-text-primary);
}

body.light-theme .hero-content::before {
    border-color: var(--light-accent);
    opacity: 0.3;
}

body.light-theme .hero-grid-element {
    background: var(--light-accent);
    opacity: 0.3;
}

body.light-theme .glow-effect {
    background: radial-gradient(
        circle at center,
        rgba(201, 100, 66, 0.08) 0%,
        transparent 50%
    );
}

body.light-theme .tech-item {
    background: rgba(201, 100, 66, 0.05);
    border: 1px solid rgba(201, 100, 66, 0.1);
    color: var(--light-accent);
}

body.light-theme .tech-pill {
    background: rgba(201, 100, 66, 0.05);
    border: 1px solid rgba(201, 100, 66, 0.1);
    color: var(--light-accent);
}

body.light-theme .explore-button {
    color: var(--light-accent);
    border: 2px solid var(--light-accent);
}

body.light-theme .explore-button::before {
    background: rgba(201, 100, 66, 0.08);
}

body.light-theme .explore-button:hover {
    box-shadow: 0 5px 20px rgba(201, 100, 66, 0.15);
}

body.light-theme .cta-button {
    background: var(--light-accent);
    color: white;
    border: none;
}

body.light-theme .cta-button:hover {
    background: var(--light-accent-hover);
    box-shadow: 0 5px 15px rgba(201, 100, 66, 0.2);
}
