* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Professional minimalist background */
.hero {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a2332 0%, #2d3e50 50%, #1f3a52 100%);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Subtle gradient animation */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(74, 111, 165, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(61, 90, 128, 0.1) 0%, transparent 50%);
    animation: subtle-shift 25s ease-in-out infinite;
}

@keyframes subtle-shift {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Tech pattern background */
.tech-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    background-image:
        linear-gradient(90deg, rgba(74, 111, 165, 0.3) 1px, transparent 1px),
        linear-gradient(rgba(74, 111, 165, 0.3) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: grid-drift 20s linear infinite;
}

@keyframes grid-drift {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 80px 80px;
    }
}

/* Animated code elements */
.code-element {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    opacity: 0;
    color: rgba(74, 111, 165, 0.6);
    pointer-events: none;
    text-shadow: 0 0 10px rgba(74, 111, 165, 0.3);
}

.code-element-1 {
    top: 10%;
    left: 5%;
    animation: float-in 3s ease-out, fade-pulse 4s ease-in-out 2s infinite;
}

.code-element-2 {
    top: 20%;
    right: 8%;
    animation: float-in 3.5s ease-out 0.5s both, fade-pulse 4s ease-in-out 2.5s infinite;
}

.code-element-3 {
    bottom: 15%;
    left: 10%;
    animation: float-in 3.8s ease-out 1s both, fade-pulse 4s ease-in-out 3s infinite;
}

.code-element-4 {
    bottom: 25%;
    right: 10%;
    animation: float-in 4s ease-out 1.5s both, fade-pulse 4s ease-in-out 3.5s infinite;
}

.code-element-5 {
    top: 40%;
    left: 8%;
    animation: float-in 4.2s ease-out 2s both, fade-pulse 4s ease-in-out 4s infinite;
}

.code-element-6 {
    bottom: 30%;
    right: 15%;
    animation: float-in 4.5s ease-out 2.5s both, fade-pulse 4s ease-in-out 4.5s infinite;
}

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-pulse {
    0%, 100% {
        opacity: 0.3;
        text-shadow: 0 0 10px rgba(74, 111, 165, 0.3);
    }
    50% {
        opacity: 0.6;
        text-shadow: 0 0 20px rgba(74, 111, 165, 0.6);
    }
}

/* Soft accent line animation */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: line-flow 4s ease-in-out infinite;
}

@keyframes line-flow {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.hero-content {
    z-index: 2;
    max-width: 700px;
    padding: 2rem;
    animation: fadeInUp 0.8s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: 1px;
    animation: slideInDown 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero .subtitle {
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    animation: slideInUp 0.8s ease-out 0.15s both;
    letter-spacing: 0.5px;
}

.hero .description {
    font-size: 1rem;
    margin: 0 0 1.5rem 0;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    animation: slideInUp 0.8s ease-out 0.25s both;
    max-width: 500px;
    line-height: 1.6;
}

.skills-tags {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 0 3rem 0;
    animation: slideInUp 0.8s ease-out 0.35s both;
    opacity: 0;
}

.skill-tag {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    cursor: default;
}

.skill-tag:hover {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    animation: slideInUp 0.8s ease-out 0.45s both;
    opacity: 0;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
    min-width: 180px;
    justify-content: center;
}

.cta-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.cta-btn i {
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.5rem;
    animation: slideInUp 0.8s ease-out 0.55s both;
    opacity: 0;
}

.social-links a {
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    opacity: 0.75;
    text-decoration: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .hero .description {
        font-size: 0.95rem;
    }

    .skills-tags {
        gap: 0.5rem;
        margin: 0 0 1.5rem 0;
    }

    .skill-tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
        gap: 1rem;
        margin-top: 1rem;
    }

    .cta-btn {
        width: 100%;
        min-width: auto;
    }

    .social-links {
        gap: 1rem;
    }

    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}
