/* Hero Section */
#hero {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10%;
}
.hero-content {
    flex: 1;
    z-index: 2;
}
.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.typing-container {
    font-size: 2rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1.5rem;
    height: auto;
    min-height: 2.5rem;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    .typing-container {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
}
.cursor-blink {
    animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.cta-buttons {
    display: flex;
    gap: 1.5rem;
}

/* 3D Tilt Card Component in Hero */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.hero-3d-card {
    width: 350px;
    height: 450px;
    background: rgba(255, 255, 255, 0.03); /* Lighter glass */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
    transition: box-shadow 0.3s ease;
}

.hero-3d-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 40px;
    padding: 2px;
    background: linear-gradient(135deg, var(--color-primary), transparent 50%, var(--color-secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    animation: neonPulse 4s infinite alternate;
}

@keyframes neonPulse {
    from { opacity: 0.3; filter: brightness(1); }
    to { opacity: 0.8; filter: brightness(1.5); }
}

.hero-3d-card .card-inner {
    transform-style: preserve-3d;
    text-align: center;
    padding: 2rem;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid var(--color-primary);
    margin-bottom: 2rem;
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.4);
    transform: translateZ(60px); /* Deeper lift */
    object-fit: cover;
}

.hero-3d-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    transform: translateZ(40px);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-3d-card p {
    font-size: 1rem;
    color: var(--text-muted);
    transform: translateZ(30px);
}

@media (max-width: 992px) {
    #hero {
        flex-direction: column-reverse;
        text-align: center;
        gap: 4rem;
        padding-top: 150px;
    }
    .hero-content h1 { font-size: 3rem; }
    .cta-buttons { justify-content: center; }
}

@media (max-width: 480px) {
    .hero-3d-card {
        width: 300px;
        height: 380px;
    }
    .profile-img {
        width: 140px;
        height: 140px;
    }
    .hero-content h1 { font-size: 2.2rem; }
}
