/* 🎨 General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #f9f9fb, #eef1f6);
    color: #333;
    line-height: 1.6;
    text-align: center;
    font-family: 'Inter', sans-serif;
}
/* 🔍 Search Bar (Fix for Project Pages) */
#search {
    width: 100%;
    max-width: 500px;
    padding: 12px 16px;
    border: 2px solid #29ABE2;
    border-radius: 8px;
    font-size: 16px;
    margin: 20px auto;
    display: block;
}

#search::placeholder {
    color: #666;
    font-style: italic;
}

/* 🏠 Navbar */
.navbar {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(44, 47, 54, 0.9);
    padding: 1rem 2rem;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.navbar .logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

.navbar nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.navbar nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.navbar nav a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #fa7343;
    transition: width 0.3s;
}

.navbar nav a:hover::after {
    width: 100%;
}

/* 📍 Navigation */
nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    background: #2c2f36;
    padding: 1rem;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    transition: all 0.3s ease-in-out;
}

nav a:hover {
    background: #fa7343;
    transform: translateY(-2px);
}

/* 🔥 Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1.2s ease-out;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* 🚀 CTA Buttons */
.cta-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cta-btn {
    background: linear-gradient(135deg, #fa7343, #ff5733);
    color: #fff;
    font-weight: 600;
    padding: 14px 22px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(250, 115, 67, 0.4);
    min-width: 160px;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(250, 115, 67, 0.6);
}

/* 🌟 Social CTA Buttons */
.social-cta {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.social-cta .float-btn {
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    min-width: 180px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* GitHub button style */
.social-cta .github {
    background: linear-gradient(135deg, #24292e, #444c56);
    color: #fff;
}
.social-cta .github:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(36,41,46,0.6);
}

/* YouTube button style */
.social-cta .youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #fff;
}
.social-cta .youtube:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(204,0,0,0.6);
}

/* 💡 Features Section */
.features {
    padding: 4rem 2rem;
    background: transparent;
}

.features h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.subheading {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.feature-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    width: 300px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fa7343;
}

.feature-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 10px 16px;
    background: linear-gradient(135deg, #fa7343, #ff5733);
    color: #fff;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s;
}

.feature-btn:hover {
    box-shadow: 0 4px 12px rgba(250, 115, 67, 0.5);
    transform: translateY(-2px);
}

/* 🎬 Embedded Video Section */
.video-section {
    margin-top: 3rem;
    text-align: center;
}

.video-section h2 {
    font-size: 2rem;
    color: #ff5733;
    margin-bottom: 1rem;
}

/* ✅ Project Page Styles */
.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    text-align: left;
}

/* 📂 Project Blocks */
.project {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project h2 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.project a {
    display: inline-block;
    margin: 4px 0;
    color: #2575fc;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.project a:hover {
    color: #fa7343;
}

/* 🦶 Footer */
footer {
    background: #2c2f36;
    color: white;
    padding: 2rem;
    margin-top: 3rem;
}

footer .social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

footer .social-links a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

footer .social-links a:hover {
    background: #fa7343;
}

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

/* Animated Gradient Background */
.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg, #6a11cb, #2575fc, #fa7343, #ff5733);
    background-size: 800% 800%;
    animation: gradientShift 20s ease infinite;
    z-index: 0;
    opacity: 0.6;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Typing Effect */
.typing-text {
    border-right: 3px solid #fff;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: blinkCaret 0.8s step-end infinite;
}
@keyframes blinkCaret {
    from, to { border-color: transparent; }
    50% { border-color: white; }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 📱 Responsive Design */
@media (max-width: 768px) {
    .feature-grid {
        flex-direction: column;
        align-items: center;
    }

    .feature-card {
        width: 90%;
    }

    .video-container iframe {
        height: 300px;
    }
}