/* File: Home.css */
/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    background-image: linear-gradient(135deg, #e0e1dd 25%, #f9f9f9 25%, #f9f9f9 50%, #e0e1dd 50%, #e0e1dd 75%, #f9f9f9 75%, #f9f9f9);
    background-size: 20px 20px;
    animation: backgroundAnimation 10s linear infinite;
}
@keyframes backgroundAnimation {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}
a:hover {
    color: #4d77ff;
}
img {
    max-inline-size: 100%;
}
/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(13, 27, 42, 0.9);
    padding: 1rem 2rem;
    position: sticky;
    inset-block-start: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}
.navbar:hover {
    background-color: rgba(13, 27, 42, 1);
}
.logo {
    color: #e0e1dd;
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s;
}
.logo:hover {
    transform: scale(1.05);
}
.hamburger {
    display: none;
    cursor: pointer;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}
.nav-links a {
    color: #e0e1dd;
    font-weight: 500;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    inset-block-end: -5px;
    inline-size: 100%;
    block-size: 2px;
    background-color: #4d77ff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.nav-links a:hover::after {
    transform: scaleX(1);
}
/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 2rem;
    background: linear-gradient(to right, #1b263b, #0f1a2c);
    color: white;
    text-align: center;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
#hero-video {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    z-index: -1;
}
.hero-content {
    position: relative;
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}
.hero h1 {
    font-size: 3rem;
    margin-block-end: 1rem;
}
/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
/* About Section */
.about {
    padding: 4rem 2rem;
    background-color: #e0e1dd;
    position: relative;
    overflow: hidden;
}
.about-content {
    display: flex;
    gap: 2rem;
    margin-block-start: 2rem;
}
/* Skills Section */
.skills ul {
    list-style: none;
    padding-inline-start: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.skills li {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: default;
    min-inline-size: 160px;
    justify-content: center;
    font-size: 0.95rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: calc(0.1s * var(--i));
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.skills li:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Brand Colors for Icons */
.skills li:nth-child(1)  i { color: #E34F26; } /* HTML5 */
.skills li:nth-child(2)  i { color: #264DE4; } /* CSS3 */
.skills li:nth-child(3)  i { color: #F7DF1E; } /* JavaScript */
.skills li:nth-child(4)  i { color: #4479A1; } /* MySQL */
.skills li:nth-child(5)  i { color: #68217A; } /* C# */
.skills li:nth-child(6)  i { color: #00599C; } /* C++ */
.skills li:nth-child(7)  i { color: #F24E1E; } /* Figma */
.skills li:nth-child(8)  i { color: #F5A623; } /* Wix.com */
.skills li:nth-child(9)  i { color: #A4373A; } /* MS Access */
.skills li:nth-child(10) i { color: #875A99; } /* Odoo */
.skills li:nth-child(11) i { color: #2B5797; } /* MS Word */
.skills li:nth-child(12) i { color: #D24726; } /* PowerPoint */
.skills li:nth-child(13) i { color: #217346; } /* Excel */

/* Projects & Certificates */
.projects, .certificates {
    padding: 4rem 2rem;
    background-color: #fff;
}
.project-grid, .certificate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.project-card, .certificate-item {
    background-color: #f1f1f1;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.contact {
    padding: 4rem 2rem;
    background-color: #e0e1dd;
}
.contact-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-block-start: 2rem;
}
.socials {
    font-size: 2rem;
    gap: 1rem;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #4d77ff;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset-block-start: 0;
    inset-inline-start: 0;
    inline-size: 100%;
    block-size: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s;
}
.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    max-inline-size: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.modal span {
    position: absolute;
    inset-block-start: 10px;
    inset-inline-end: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: rgba(13, 27, 42, 0.9);
        position: absolute;
        inset-block-start: 60px;
        inset-inline-end: 0;
        inline-size: 200px;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
    .nav-links.active {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
    .about-content {
        flex-direction: column;
    }
}