/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* =====================
   NAVBAR
   ===================== */
#navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px 0;
    z-index: 999;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

#navbar a:hover {
    border-bottom: 2px solid #fff;
}

#navbar a.active {
    border-bottom: 2px solid #fff;
}

#navbar.sticky {
    position: fixed;
    top: 0;
    background-color: #1a1a2e;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}


/* =====================
   HERO SECTION
   ===================== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    min-height: 60px;
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    min-height: 36px;
}

#heroTitle::after,
#heroSubtitle::after {
    content: '|';
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}


/* =====================
   ABOUT SECTION
   ===================== */
.about {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #667eea;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.profile-img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.social-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.social-links a:hover {
    color: #764ba2;
    border-color: #764ba2;
}


/* =====================
   PROJECTS / GITHUB SECTION
   ===================== */
.projects {
    padding: 80px 0;
    background-color: #ffffff;
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #667eea;
}

.projects > .container > p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.project-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.project-card p {
    margin-bottom: 15px;
    color: #666;
}

.project-card a {
    display: inline-block;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.project-card a:hover {
    background: #764ba2;
}


/* =====================
   CONTACT SECTION
   ===================== */
.contact {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #667eea;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Arial', sans-serif;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #764ba2;
}

#formConfirmation {
    max-width: 600px;
    margin: 20px auto 0;
    text-align: center;
    font-size: 1.1rem;
    padding: 15px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    color: #155724;
}


/* =====================
   FOOTER
   ===================== */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
}

.footer p {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}


/* =====================
   RESPONSIVE - Mobile
   ===================== */
@media (max-width: 768px) {

    #navbar {
        gap: 15px;
        padding: 15px 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    #navbar a {
        font-size: 13px;
        padding: 4px 8px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-img {
        width: 220px;
        height: 220px;
    }

    .social-links {
        justify-content: center;
    }

    .project-links {
        grid-template-columns: 1fr;
    }
}
