/* Home.css - Styles specific to the home page */

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 0 4rem;
    background-image: url(../assets/images/Background/Background-index.gif);
    background-size: cover;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Animated background effect */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s infinite linear;
    z-index: 1;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -50px) rotate(360deg); }
}

.hero-content {
    position: relative;
    gap: 4rem;
    z-index: 2;
    max-width: 50%;
    animation: slideInLeft 1s ease-out;
}

.hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: slideInRight 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hero typography */
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-wrap: wrap;
}

.gradient-text {
    background: linear-gradient(45deg, #ffd89b, #19547b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.6;
}

/* Hero buttons */
.hero-buttons {
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: white;
    color: #8b5cf6;
    margin-bottom: 15px;
    margin-inline-end: 15px;
}

.btn-primary:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #8b5cf6;
    transform: translateY(-2px);
}

/* Floating cards in hero */
.floating-card {
    display: flexbox;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    margin-left: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

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

.floating-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.05);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.floating-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.floating-card p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ===== SKILLS PREVIEW SECTION ===== */
.skills-preview {
    padding: 5rem 2rem;
    background: #f8fafc;
}

.skills-preview .container {
    max-width: 1200px;
    margin: 0 auto;
}

.skills-preview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #8b5cf6;
}

.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
    border-left-color: #3b82f6;
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.skill-item h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.skill-item p {
    color: #666;
    line-height: 1.6;
}

/* ===== FEATURED PROJECTS SECTION ===== */
.featured-projects {
    padding: 5rem 2rem;
    background: white;
}

.featured-projects .container {
    max-width: 1200px;
    margin: 0 auto;
}

.featured-projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.projects-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.project-card.preview {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.project-card.preview:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

.project-badge {
    display: inline;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 2em;
    margin-bottom: 2rem;
    z-index: 2;
}

.project-card.preview .project-content {
    padding: 1.5rem;
}

.project-card.preview h3 {
    color: #5962aa;
    margin-top: 0.9rem;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.project-card.preview p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
    margin-top: 1rem;
}

.project-tags {
    display: list-item;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.project-tags span {
    background: #f1f5f9;
    color: #475569;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    scroll-margin-left: 75px;
}

.project-link {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    margin-bottom: 1rem;
    align-items: center;
    gap: 0.5rem;
}

.project-link:hover {
    color: #3b82f6;
    transform: translateX(5px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        max-width: 100%;
        margin-left : 10px;
    }
    
    .hero-visual {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        margin-right: 30px;
    }
    
    .floating-card {
        width: 200px;     
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-preview {
        grid-template-columns: 1fr;
    }
    
    .floating-card {
        min-width: 150px;
        padding: 1rem;
    }
    
    .card-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .skills-preview,
    .featured-projects {
        padding: 3rem 1rem;
    }
    
    .skill-item {
        padding: 1.5rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .floating-card,
    .skill-item,
    .project-card.preview {
        animation: none;
        transition: none;
    }
}
