/* ========================================
   HERO SECTION STYLES
   ======================================== */

.hero-section {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1) 0%, 
        rgba(139, 92, 246, 0.1) 50%, 
        rgba(236, 72, 153, 0.1) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.dark-mode .hero-section {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.05) 0%, 
        rgba(139, 92, 246, 0.05) 50%, 
        rgba(236, 72, 153, 0.05) 100%);
}

/* Particles Background */
.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    animation: float-particle 6s infinite linear;
    opacity: 0.6;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.particle:nth-child(3) {
    top: 80%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 12s;
}

.particle:nth-child(4) {
    top: 30%;
    left: 70%;
    animation-delay: 1s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    top: 70%;
    left: 90%;
    animation-delay: 3s;
    animation-duration: 11s;
}

@keyframes float-particle {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-100px) translateX(50px) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-200px) translateX(100px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-100px) translateX(50px) rotate(270deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0px) translateX(0px) rotate(360deg);
        opacity: 0.6;
    }
}

/* Hero Content */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
}

.title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }
.title-line:nth-child(4) { animation-delay: 0.8s; }

.title-line.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 4.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray);
    margin-bottom: 30px;
    min-height: 40px;
}

.dark-mode .hero-subtitle {
    color: var(--primary);
}

.hero-description {
    margin-bottom: 40px;
}

.hero-description p {
    font-size: 1.2rem;
    color: var(--gray);
    line-height: 1.8;
}

.dark-mode .hero-description p {
    color: var(--gradient-primary);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: slideInRight 1s ease-out;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-frame {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    cursor: pointer;
}

.image-frame:hover {
    transform: scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

/* Welcome Message on Image Hover */
.image-frame::after {
    content: 'Welcome! I\'m Omar Al-Shaer 👋';
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, rgba(99, 101, 241, 0.104), rgba(138, 92, 246, 0.312));
    color: white;
    padding: 8px 10px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0.5;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.image-frame:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Image Glow Effect */
.image-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(20px);
    animation: pulse 3s ease-in-out infinite;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-element {
    position: absolute;
    font-size: 2rem;
    color: var(--primary);
    animation: float 4s ease-in-out infinite;
    opacity: 0.8;
}

.float-element:nth-child(1) {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
    color: #61dafb;
}

.float-element:nth-child(2) {
    top: 60%;
    left: 10%;
    animation-delay: 1s;
    color: #f7df1e;
}

.float-element:nth-child(3) {
    bottom: 20%;
    right: 20%;
    animation-delay: 2s;
    color: #339933;
}

/* Tech Stack Showcase */
.tech-stack-showcase {
    margin-top: 80px;
    position: relative;
    z-index: 2;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.dark-mode .tech-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.tech-item:hover::before {
    left: 100%;
}

.tech-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.tech-item i {
    font-size: 2.5rem;
    transition: var(--transition);
}

.tech-item:hover i {
    transform: rotate(360deg) scale(1.2);
}

.tech-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray);
    text-align: center;
}

.dark-mode .tech-name {
    color: var(--gray-light);
}

/* Tech Item Colors */
.tech-item[data-tech="HTML5"] i { color: #e34f26; }
.tech-item[data-tech="CSS3"] i { color: #1572b6; }
.tech-item[data-tech="JavaScript"] i { color: #f7df1e; }
.tech-item[data-tech="React"] i { color: #61dafb; }
.tech-item[data-tech="Node.js"] i { color: #339933; }
.tech-item[data-tech="Python"] i { color: #3776ab; }
.tech-item[data-tech="Git"] i { color: #f05032; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gray);
    font-size: 0.9rem;
    animation: fadeIn 1s ease-out 1.5s both;
}

.dark-mode .scroll-indicator {
    color: var(--gray-light);
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--gradient-primary);
    position: relative;
    animation: scrollBounce 2s infinite;
}

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

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .title-line.highlight {
        font-size: 3.5rem;
    }

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

    .image-frame {
        width: 250px;
        height: 250px;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .title-line.highlight {
        font-size: 3rem;
    }

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

    .hero-description p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .image-frame {
        width: 200px;
        height: 200px;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .tech-item {
        padding: 15px;
    }

    .tech-item i {
        font-size: 2rem;
    }

    .tech-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .title-line.highlight {
        font-size: 2.5rem;
    }

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

    .hero-description p {
        font-size: 1rem;
    }

    .image-frame {
        width: 180px;
        height: 180px;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-item {
        padding: 12px;
    }

    .tech-item i {
        font-size: 1.8rem;
    }

    .tech-name {
        font-size: 0.75rem;
    }
}

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

/* Hover Effects */
.tech-item:hover .tech-name {
    color: var(--primary);
    font-weight: 700;
}

.tech-item:hover i {
    filter: drop-shadow(0 0 10px currentColor);
}

/* Loading States */
.hero-section.loading .hero-content {
    opacity: 0;
    transform: translateY(50px);
}

.hero-section.loaded .hero-content {
    opacity: 1;
    transform: translateY(0);
    transition: all 1s ease-out;
}

.hero-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--border-radius);
    padding: 40px;
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.hero-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.dark-mode .hero-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.dark-mode .hero-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.tech-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin: 0 15px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.tech-icon:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px) scale(1.1);
}

.dark-mode .tech-icon {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.dark-mode .tech-icon:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}
