/* Hero Section Reimagined for reddy.sh */

/* Remove old hero animations */
.hero {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Large background text */
.hero-background-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(80px, 18vw, 280px);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    letter-spacing: -0.02em;
    user-select: none;
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
}

[data-theme="light"] .hero-background-text {
    color: rgba(0, 0, 0, 0.02);
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl) var(--spacing-xl);
    position: relative;
    z-index: 2;
    background: none;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    animation: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - var(--nav-height) - 120px);
}

/* Terminal intro */
.terminal-intro {
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    color: var(--color-accent);
    margin-bottom: var(--spacing-xl);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.terminal-prompt {
    color: var(--color-accent-secondary);
    margin-right: 8px;
}

.terminal-command {
    color: var(--color-text-secondary);
}

/* Main layout */
.hero-main {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--spacing-xl);
    align-items: center;
    max-height: 80vh;
    overflow: visible;
}

.hero-left {
    text-align: left;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 100px;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.badge-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(34, 197, 94, 0.9);
    font-weight: 600;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Headlines */
.hero-headline {
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.3s forwards;
}

.hero-greeting {
    display: block;
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 400;
    color: var(--color-text-tertiary);
    margin-bottom: 12px;
}

.hero-name {
    display: block;
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
}

.name-regular {
    color: var(--color-text-primary);
}

.name-accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Title rotation */
.hero-title-container {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: clamp(22px, 3.5vw, 28px);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.4s forwards;
}

.title-prefix {
    color: var(--color-text-secondary);
}

.rotating-titles {
    position: relative;
    height: 35px;
    overflow: hidden;
    display: inline-block;
}

.rotating-title {
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.rotating-title.active {
    opacity: 1;
    transform: translateY(0);
}

/* Description */
.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 500px;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.5s forwards;
}

.company-highlight {
    color: var(--color-accent);
    font-weight: 600;
}

/* Stats */
.hero-stats {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.6s forwards;
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-tertiary);
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.7s forwards;
}

.btn-glow {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--color-accent), var(--color-accent-secondary), var(--color-accent-tertiary), var(--color-accent));
    border-radius: var(--radius-md);
    opacity: 0.7;
    z-index: -1;
    animation: glowing 3s linear infinite;
    background-size: 400%;
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.btn-glow:hover .btn-icon {
    transform: translateX(4px);
}

.btn-ghost {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-dark);
    backdrop-filter: blur(10px);
    border: var(--border-glass);
    border-radius: 50%;
    color: var(--color-text-primary);
    transition: all 0.3s ease;
    font-size: 18px;
}

[data-theme="light"] .btn-ghost {
    background: var(--glass-white);
}

.btn-ghost:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Profile section */
.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-container {
    position: relative;
    width: 280px;
    height: 280px;
    opacity: 0;
    animation: fadeInScale 0.8s ease 0.5s forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.profile-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid;
    pointer-events: none;
}

.profile-ring:nth-child(1) {
    width: 100%;
    height: 100%;
    border-color: rgba(0, 212, 255, 0.1);
    animation: rotate 20s linear infinite;
}

.profile-ring:nth-child(2) {
    width: 110%;
    height: 110%;
    border-color: rgba(124, 58, 237, 0.1);
    animation: rotate 25s linear infinite reverse;
}

.profile-ring:nth-child(3) {
    width: 120%;
    height: 120%;
    border-color: rgba(255, 0, 128, 0.1);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.profile-container .profile-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 120px rgba(120, 119, 198, 0.3);
}

/* Curved text along bottom of profile circle */
.curved-text-bottom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.curved-text {
    font-size: 13px;
    font-weight: 600;
    fill: var(--color-text-secondary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: fadeIn 1s ease 1s forwards;
    opacity: 0;
}

[data-theme="light"] .curved-text {
    fill: var(--color-text-primary);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
    z-index: 10;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-text-tertiary);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--color-text-tertiary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

.scroll-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-tertiary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-left {
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .stat-item {
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-right {
        margin-top: var(--spacing-xl);
    }

    .profile-container {
        width: 240px;
        height: 240px;
    }

    .profile-container .profile-image {
        width: 180px;
        height: 180px;
    }

    .hero-background-text {
        font-size: clamp(60px, 15vw, 150px);
    }
}