/* ===========================
   Global Styles
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(to right, #eef2f3, #8e9eab);
    color: #333;
}

/* ===========================
   Navbar
=========================== */
.navbar {
    position: fixed;
    width: 100%;
    background-color: rgba(0, 0, 100, 0.4);
    backdrop-filter: blur(12px);
    padding: 1rem 2rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #ffc107;
}

/* ===========================
   Hero Section
=========================== */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    background-color: #011627;
    color: white;
    text-align: center;
}

.profile-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #ffc107;
    margin-bottom: 2rem;
}

.dynamic-text {
    font-size: 2.2rem;
    font-weight: bold;
}

.sub-dynamic-text {
    font-size: 1.2rem;
    margin-top: 1rem;
    color: #a0aec0;
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

.btn-primary {
    background-color: #ffc107;
    color: #011627;
}

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.social-icons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-icons a {
    color: white;
    font-size: 1.8rem;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #ffc107;
    transform: scale(1.2);
}

/* ===========================
   Section Styles
=========================== */
section {
    padding: 4rem 2rem;
    transition: all 0.4s ease-in-out;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #011627;
    margin-bottom: 2rem;
}

/* About Section */
#about {
    background-color: #f9f9fc;
    padding: 4rem 2rem;
    text-align: center;
    transition: 0.5s ease;
    border-radius: 20px;
    max-width: 1000px;
    margin: 2rem auto;
}

#about:hover {
    background: linear-gradient(to right, #eef2f3, #8e9eab);
}

.about-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ===========================
   Experience Section
=========================== */
#experience {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    background: #f9f9fc;
}

.experience-container {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    gap: 2rem; 
    margin-top: 2rem;
}

.experience-card {
    background: linear-gradient(to right, #eef2f3, #8e9eab);
    border-radius: 45px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.1);
    padding: 25px;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.experience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

.experience-card h3 {
    color: #011627;
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

.experience-card p {
    color: #555;
    margin-bottom: 0.95rem;
    font-weight: 500;
}

.experience-card a {
    display: inline-block;
    text-decoration: none;
    background: #011627;
    color: white;
    padding: 8px 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.experience-card a:hover {
    background: #134da3;
}

/* ===========================
   Skills Section
=========================== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    width: 80%;
    max-width: 900px;
    margin: 2rem auto;
    justify-items: center;
}

.skill-card {
    background: white;
    color: #011627;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 18px 25px;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease-in-out;
    width: 100%;
    max-width: 220px;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

/* ===========================
   Education Section
=========================== */
#education {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    background: #f9f9fc;
}

.education-container {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    gap: 2rem; 
    margin-top: 2rem;
}

.education-card {
    background: linear-gradient(to right, #eef2f3, #8e9eab);
    padding: 25px 30px;
    border-radius: 45px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease-in-out;
    text-align: center;
    width: 100%; 
    max-width: 1000px; 
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

.education-card h3 {
    color: #011627;
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

.education-card p {
    color: #555;
    margin-bottom: 0.95rem;
    font-weight: 500;
}

.edu-duration {
    display: inline-block;
    color: #777;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* ===========================
   Certifications Section
=========================== */
#certifications {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    background: linear-gradient(to right, #eef2f3, #8e9eab);
    padding: 4rem 2rem;
    text-align: center;
}

.certification-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.certification-card {
    background: #fff;
    padding: 25px 30px;
    border-radius: 45px;
    gap: 2rem;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.certification-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.certification-card h3 {
    color: #011627;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.certification-card p {
    color: #555;
    margin-bottom: 0.95rem;
    font-weight: 500;
}

.certification-card a {
    display: inline-block;
    text-decoration: none;
    background: #011627;
    color: white;
    padding: 8px 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.certification-card a:hover {
    background: #134da3;
}

/* ===========================
   Projects Section
=========================== */
#projects {
    background-color: #ffffff; 
    padding: 60px 0;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.project-card {
    background: linear-gradient(to right, #eef2f3, #8e9eab);
    border-radius: 45px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.1);
    padding: 25px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.project-card h3 {
    margin-bottom: 15px;
    color: #333;
}

.project-card p {
    color: #555;
    font-size: 0.95rem;
}

/* ===========================
   Contact Section
=========================== */
#contact {
    padding: 5rem 2rem;
    background: linear-gradient(to right, #eef2f3, #8e9eab);
    color: white;
    text-align: center;
    border-radius: 25px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.form-input {
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    width: 100%;
}

textarea.form-input {
    min-height: 150px;
}

.submit-btn {
    background-color: white;
    color: #011627;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.submit-btn:hover {
    background-color: #134da3;
    color: #011627;
}

/* ===========================
   Footer
=========================== */
.footer {
    background-color: rgba(0, 0, 100, 0.4);
    color: white;
    padding: 2rem;
    text-align: center;
}

/* ===========================
   Animations
=========================== */
section,
.hero {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible,
.hero.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .education-container, 
    .projects-grid,
    .certification-container {
        flex-direction: column;
        width: 100%;
    }

    #contact {
        padding: 60px 20px;
    }
}
