/* Hero Section Styles */
.hero {
    position: relative;
    padding: 120px 2rem 5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background-color: var(--bg-color);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, var(--bg-color) 25%, transparent 75%),
        url('https://images.unsplash.com/photo-1627398242454-45a1465c2479?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transition: all 0.5s ease;
    opacity: 0.9;
}

.dark-mode .hero::before {
    background-image: 
        linear-gradient(to right, var(--bg-color) 25%, transparent 75%),
        url('https://images.unsplash.com/photo-1607799279861-4dd421887fb3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    opacity: 0.8;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

.hero-image {
    flex: 1;
    position: relative;
    perspective: 1500px;
}

/* Hero Content Styles */
.hero-title {
    font-size: clamp(2.8rem, 6vw, 5rem);
    margin-bottom: 1.25rem;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 80px;
    height: 5px;
    background: var(--gradient-accent);
    border-radius: 3px;
    transform-origin: left;
    animation: scaleIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.6s;
    transform: scaleX(0);
}

.hero-subtitle {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1.25rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    padding-left: 70px;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

.hero-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.hero-description {
    font-size: 1.3rem;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.5s;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.6s;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.3);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.4);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px var(--shadow-color);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(var(--primary-color-rgb), 0.3);
}

.pulse-on-hover:hover {
    animation: pulse 1.5s infinite;
}

/* Hero Image Styles */
.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.profile-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    border: 4px solid var(--card-bg);
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards, float 6s ease-in-out infinite;
    animation-delay: 0.7s;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.profile-image:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.03);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.4);
}

/* Tech Badges */
.tech-badge {
    position: absolute;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: float 4s ease-in-out infinite;
    opacity: 0;
    transform: translateY(20px);
}

.tech-badge.html {
    background: linear-gradient(135deg, #E34F26, #EF652A);
    color: white;
    top: -10px;
    left: -20px;
    animation: fadeInUp 0.5s ease-out forwards, float 5s ease-in-out infinite 2s;
    animation-delay: 1s;
}

.tech-badge.css {
    background: linear-gradient(135deg, #1572B6, #3399FF);
    color: white;
    bottom: 30px;
    right: -30px;
    animation: fadeInUp 0.5s ease-out forwards, float 4s ease-in-out infinite 1s;
    animation-delay: 1.1s;
}

.tech-badge.js {
    background: linear-gradient(135deg, #F7DF1E, #D4BB0E);
    color: #333;
    top: 50%;
    left: -30px;
    animation: fadeInUp 0.5s ease-out forwards, float 5.5s ease-in-out infinite 1.5s;
    animation-delay: 1.2s;
}

.tech-badge.react {
    background: linear-gradient(135deg, #61DAFB, #2B6CB0);
    color: white;
    bottom: -10px;
    left: 50%;
    animation: fadeInUp 0.5s ease-out forwards, float 4.5s ease-in-out infinite 0.5s;
    animation-delay: 1.3s;
}

/* Social Icons */
.hero-social {
    display: flex;
    gap: 1.25rem;
    margin-top: 3rem;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.8s;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--primary-color);
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    color: white;
    background: var(--gradient-primary);
    box-shadow: 0 8px 20px rgba(var(--primary-color-rgb), 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 1.5s;
}

.scroll-indicator span {
    display: block;
    width: 6px;
    height: 6px;
    margin: 4px 0;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: scrollPulse 2s infinite;
}

.scroll-indicator span:nth-child(2) {
    animation-delay: 0.3s;
}

.scroll-indicator span:nth-child(3) {
    animation-delay: 0.6s;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-container {
        gap: 5rem;
    }
}

@media (max-width: 992px) {
    .hero {
        padding: 150px 2rem 5rem;
        text-align: center;
    }
    
    .hero::before {
        background-image: 
            linear-gradient(to bottom, var(--bg-color) 10%, transparent 90%),
            url('https://images.unsplash.com/photo-1627398242454-45a1465c2479?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    }
    
    .dark-mode .hero::before {
        background-image: 
            linear-gradient(to bottom, var(--bg-color) 10%, transparent 90%),
            url('https://images.unsplash.com/photo-1607799279861-4dd421887fb3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    }
    
    .hero-container {
        flex-direction: column-reverse;
        gap: 3rem;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-title::after {
        left: 50%;
        transform: translateX(-50%) scaleX(1);
    }
    
    .hero-subtitle {
        padding-left: 0;
    }
    
    .hero-subtitle::before {
        display: none;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 400px;
    }
    
    .tech-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .tech-badge.html {
        left: -10px;
    }
    
    .tech-badge.css {
        right: -15px;
    }
    
    .tech-badge.js {
        left: -15px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 120px 1.5rem 3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
    
    .hero-image {
        max-width: 280px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
}