/* Enhanced Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--seasalt) 0%, rgba(255, 255, 255, 0.95) 30%, var(--antiflash-white) 70%, rgba(248, 249, 250, 0.9) 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(26, 29, 41, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(44, 62, 80, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(90, 122, 154, 0.02) 0%, transparent 50%);
    pointer-events: none;
    animation: backgroundFloat 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23e2e8f0" stroke-width="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.15;
    pointer-events: none;
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

.hero-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
    min-height: 80vh;
}

.hero-content {
    max-width: 650px;
    animation: heroContentFloat 6s ease-in-out infinite;
}

@keyframes heroContentFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    background: linear-gradient(135deg, var(--midnight-blue) 0%, var(--prussian-blue) 25%, var(--dark-slate-blue) 60%, var(--charcoal-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.15;
    position: relative;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(26, 29, 41, 0.1);
}

.hero-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(33, 37, 41, 0.1) 0%, rgba(33, 37, 41, 0.05) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: -1;
    transform: translate(2px, 2px);
}

.hero-subtitle {
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--slate-gray) 0%, var(--outer-space) 40%, var(--onyx) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2.5rem;
    max-width: 580px;
    line-height: 1.65;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.hero-buttons {
    display: flex;
    gap: 1.8rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1rem;
}

.hero-visual {
    position: relative;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Animation Container */
.hero-animation-container {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.hero-animation-container:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

/* Geometric Shapes */
.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--midnight-blue) 0%, var(--prussian-blue) 40%, var(--dark-slate-blue) 80%, var(--charcoal-blue) 100%);
    animation: floatShape 10s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(26, 29, 41, 0.15), 0 0 25px rgba(44, 62, 80, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shape:hover {
    background: linear-gradient(135deg, var(--steel-blue) 0%, var(--accent-blue) 40%, var(--muted-teal) 80%, var(--dark-teal) 100%);
    box-shadow: 0 20px 50px rgba(26, 29, 41, 0.2), 0 0 40px rgba(90, 122, 154, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    filter: brightness(1.1) saturate(1.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.shape-1 {
    width: 90px;
    height: 90px;
    top: 8%;
    left: 12%;
    animation-delay: 0s;
}

.shape-1:hover {
    transform: scale(1.15) rotate(10deg);
}

.shape-2 {
    width: 70px;
    height: 70px;
    top: 55%;
    right: 18%;
    animation-delay: 1.5s;
    border-radius: 25%;
}

.shape-2:hover {
    transform: scale(1.15) rotate(-10deg);
}

.shape-3 {
    width: 45px;
    height: 45px;
    bottom: 25%;
    left: 8%;
    animation-delay: 3s;
    border-radius: 0;
    transform: rotate(45deg);
}

.shape-3:hover {
    transform: rotate(45deg) scale(1.2) rotate(90deg);
}

.shape-4 {
    width: 110px;
    height: 110px;
    top: 15%;
    right: 8%;
    animation-delay: 4.5s;
    opacity: 0.7;
}

.shape-4:hover {
    transform: scale(1.1) rotate(5deg);
    opacity: 0.9;
}

.shape-5 {
    width: 55px;
    height: 55px;
    bottom: 8%;
    right: 25%;
    animation-delay: 4s;
    border-radius: 10px;
}

.shape-5:hover {
    transform: scale(1.2);
}

/* Code Animation */
.code-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 120px;
    background: linear-gradient(135deg, rgba(33, 37, 41, 0.9) 0%, rgba(52, 58, 64, 0.9) 100%);
    border-radius: 10px;
    padding: 20px;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 0 30px rgba(33, 37, 41, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.code-animation::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--eerie-black) 0%, var(--onyx) 50%, var(--slate-gray) 100%);
    border-radius: 12px;
    z-index: -1;
}

.code-animation:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 0 50px rgba(33, 37, 41, 0.4);
}

.code-animation:hover::before {
    background: linear-gradient(135deg, var(--onyx) 0%, var(--slate-gray) 50%, var(--outer-space) 100%);
}

.code-line {
    height: 3px;
    background: linear-gradient(90deg, var(--eerie-black) 0%, var(--onyx) 50%, var(--slate-gray) 100%);
    margin: 8px 0;
    border-radius: 2px;
    animation: typeCode 3s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(33, 37, 41, 0.3);
}

.code-line:nth-child(1) {
    width: 80%;
    animation-delay: 0s;
}

.code-line:nth-child(2) {
    width: 60%;
    animation-delay: 0.5s;
}

.code-line:nth-child(3) {
    width: 90%;
    animation-delay: 1s;
}

.code-line:nth-child(4) {
    width: 70%;
    animation-delay: 1.5s;
}

/* Pulse Circle */
.pulse-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(33, 37, 41, 0.1) 0%, rgba(33, 37, 41, 0.05) 50%, rgba(33, 37, 41, 0.02) 100%);
    background-clip: padding-box;
    animation: pulseRing 4s ease-in-out infinite;
    pointer-events: none;
    position: relative;
}

.pulse-circle::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--eerie-black) 0%, var(--onyx) 50%, var(--slate-gray) 100%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.2;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--slate-gray);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.scroll-indicator:hover {
    color: var(--midnight-blue);
    transform: translateX(-50%) scale(1.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--eerie-black);
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--eerie-black);
    border-bottom: 2px solid var(--eerie-black);
    transform: rotate(45deg);
}