/* ===== Homepage Enhancements - Font, Colors & Animated Text Frames ===== */

/* Typography Improvements */
.hero-section,
.about-preview,
.featured-projects,
.learning-preview,
.contact-preview {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Hero Section - Enhanced Typography */
.hero-text h1 {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

.title-greeting {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6a1b9a;
    margin-bottom: 0.8rem;
}

.title-name {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #1a1a1a;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: #6a1b9a;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #444;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Animated Text Frames */
.text-frame {
    position: relative;
    padding: 1.5rem 2rem;
    margin: 1rem 0;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(245, 236, 206, 0.1) 0%, rgba(155, 89, 182, 0.1) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.text-frame:hover::before {
    left: 100%;
}

.text-frame:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(106, 27, 154, 0.2);
    border-color: #6a1b9a;
}

/* Frame Variations */
.text-frame-primary {
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.15) 0%, rgba(245, 236, 206, 0.15) 100%);
    border-left: 4px solid #6a1b9a;
}

.text-frame-secondary {
    background: linear-gradient(135deg, rgba(245, 236, 206, 0.15) 0%, rgba(232, 213, 183, 0.15) 100%);
    border-left: 4px solid #F5ECCE;
}

.text-frame-accent {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.15) 0%, rgba(212, 196, 168, 0.15) 100%);
    border-left: 4px solid #9b59b6;
}

/* Text Frame Content */
.text-frame h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.text-frame p {
    font-size: 1rem;
    color: #444;
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
}

/* Animated Stats Cards */
.stat-card {
    position: relative;
    padding: 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(245, 236, 206, 0.1) 0%, rgba(155, 89, 182, 0.1) 100%);
    border: 2px solid rgba(106, 27, 154, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(106, 27, 154, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.stat-card:hover::after {
    width: 300px;
    height: 300px;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(106, 27, 154, 0.3);
    border-color: #6a1b9a;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6a1b9a 0%, #F5ECCE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: #2c2c2c;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

/* Section Titles Enhanced */
.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1a1a1a 0%, #6a1b9a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #F5ECCE 0%, #9b59b6 100%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: #666;
    letter-spacing: 0.02em;
    margin-top: 0.5rem;
}

/* Project Cards Enhanced */
.project-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    border: 2px solid rgba(106, 27, 154, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.05) 0%, rgba(245, 236, 206, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(106, 27, 154, 0.25);
    border-color: #6a1b9a;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
}

.project-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* Course Preview Cards Enhanced */
.course-preview-card {
    position: relative;
    padding: 2rem;
    border-radius: 20px;
    background: white;
    border: 2px solid rgba(106, 27, 154, 0.15);
    transition: all 0.4s ease;
    overflow: hidden;
}

.course-preview-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(106, 27, 154, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.course-preview-card:hover::after {
    opacity: 1;
}

.course-preview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(106, 27, 154, 0.2);
    border-color: #6a1b9a;
}

.course-preview-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.01em;
    margin: 1rem 0 0.5rem;
    position: relative;
    z-index: 1;
}

.course-preview-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* Skills Tags Enhanced */
.skill-tag {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    margin: 0.3rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.1) 0%, rgba(245, 236, 206, 0.1) 100%);
    color: #6a1b9a;
    border: 2px solid rgba(106, 27, 154, 0.2);
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.skill-tag:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, #6a1b9a 0%, #F5ECCE 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(106, 27, 154, 0.3);
}

/* Buttons Enhanced */
.btn {
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.95rem;
    padding: 0.9rem 2.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(106, 27, 154, 0.4);
}

/* About Text Enhanced */
.about-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #444;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin-bottom: 1.5rem;
}

.about-text h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

/* Contact Section Enhanced */
.contact-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #444;
    font-weight: 400;
    letter-spacing: 0.01em;
    max-width: 700px;
    margin: 0 auto 2rem;
}

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

.text-frame,
.stat-card,
.project-card,
.course-preview-card {
    animation: fadeInUp 0.6s ease-out;
}

.text-frame:nth-child(1) { animation-delay: 0.1s; }
.text-frame:nth-child(2) { animation-delay: 0.2s; }
.text-frame:nth-child(3) { animation-delay: 0.3s; }

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }

.course-preview-card:nth-child(1) { animation-delay: 0.1s; }
.course-preview-card:nth-child(2) { animation-delay: 0.2s; }
.course-preview-card:nth-child(3) { animation-delay: 0.3s; }

/* Responsive Typography */
@media (max-width: 768px) {
    .title-name {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .text-frame {
        padding: 1.2rem 1.5rem;
    }
    
    .text-frame h3 {
        font-size: 1.3rem;
    }
}

