/* ===========================
   Global Styles
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.25s ease;

}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(to right, #eef2f3, #8e9eab);
    color: #333;
}


/* ===========================
   Navbar
=========================== */
.navbar {
    position: fixed;
    width: 100%;
    background: rgba(1, 22, 39, 0.75);
    backdrop-filter: blur(15px);
    padding: 1rem 2rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links a {
    color: #ffffff;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
    padding-bottom: 4px;
}

a {
    text-decoration: none;
}


.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #ffc107;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}


.nav-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}


.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: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.btn:active {
    transform: scale(0.97);
}

.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 {
    transform: scale(1.25) rotate(5deg);
    color: #ffc107;
}

/* ===========================
   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 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    border-radius: 20px;
    margin: auto;
    background: linear-gradient(to right, #eef2f3, #8e9eab);
    padding: 4rem 2rem;
    cursor: pointer;
    text-align: center;
}

.about-container {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    justify-items: center;
}

.about-card {
    background: white;
    color: #011627;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 50px;
    border-radius: 45px;
    max-width: 900px;
    margin: 0 auto;
    margin-top: 2rem;
    box-shadow: 0 30px 80px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* ===========================
   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;
}


/* ===========================
   Overlay Effect
=========================== */

.experience-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 25px;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.experience-card:hover .experience-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* Overlay Button */

.experience-overlay a {
    text-decoration: none;
    background: white;
    color: #011627;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.experience-overlay a:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.experience-card {
    position: relative; /* IMPORTANT */
    overflow: hidden;   /* Required for overlay */
    background: linear-gradient(to right, #eef2f3, #8e9eab);
    border-radius: 25px;
    padding: 30px;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.experience-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.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 Timeline
=========================== */

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 3rem auto;
    padding-left: 30px;
}

/* Vertical line */
.timeline::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 0;
    width: 4px;
    height: 100%;
    background: #011627;
    border-radius: 10px;
}

/* Timeline item */
.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

/* Dot */
.timeline-dot {
    position: absolute;
    left: -3px;
    top: 25px;
    width: 20px;
    height: 20px;
    background: #10a086;
    border-radius: 50%;
    border: 4px solid #011627;
    z-index: 1;
}

/* Timeline content spacing */
.timeline-content {
    margin-left: 50px;
}

.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);
}

/* ===========================
   Skill Groups & Progress Bars
=========================== */

.skill-group {
    background: white;
    padding: 30px;
    border-radius: 45px;
    max-width: 900px;
    margin: 2rem auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;

}

.skill-group:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.skill-group-title {
    font-size: 1.4rem;
    color: #011627;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Individual skill bar */
.skill-bar {
    margin-bottom: 1.2rem;
}

.skill-bar span {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #011627;
}

/* Progress container */
.progress {
    background: #ddd;
    border-radius: 20px;
    height: 12px;
    overflow: hidden;
}

/* Progress fill */
.progress-fill {
    height: 100%;
    border-radius: 20px;
    transition: width 1s ease-in-out;
}

/* Skill Levels */
.java { width: 95%; background: #134da3; }
.spring { width: 84%; background: #ffc107 }
.api { width: 87%; background: #011627; }

.python { width: 85%; background: #ffc107; }
.ml { width: 80%; background: #011627; }
.dsa { width: 75%; background: #134da3; }

.db { width: 70%; background: #011627; }
.git { width: 80%; background: #134da3; }
.frontend { width: 70%; background: #ffc107; }


/* ===========================
   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;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.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
=========================== */

.certification-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    padding: 30px;
    border-radius: 25px;
    width: 320px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.certification-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.certification-card h3 {
    color: #011627;
    margin-bottom: 0.5rem;
}

.certification-card p {
    color: #555;
    font-weight: 500;
}

/* ===========================
   Premium Glass Overlay
=========================== */

.certification-overlay {
    position: absolute;
    inset: 0;

    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 25px;

    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;

    transition: opacity 0.4s ease, transform 0.4s ease;
}

.certification-card:hover .certification-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


/* Premium Button */

.overlay-btn {
    text-decoration: none;
    display: inline-block;
    background: linear-gradient(135deg, #011627, #134da3);
    color: white;
    padding: 12px 22px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.overlay-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ===========================
   PROJECTS SECTION
=========================== */

#projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    background: white;
    padding: 4rem 2rem;
    text-align: center;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

/* ===========================
   PROJECT CARD (Same Structure as Certification Card)
=========================== */

.project-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to right, #eef2f3, #8e9eab);
    padding: 30px;
    border-radius: 25px;
    width: 320px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
    color: #011627;
    margin-bottom: 0.5rem;
}

.project-card p {
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
}

/* ===========================
   GLASS OVERLAY (IDENTICAL STYLE)
=========================== */

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 25px;

    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.5s ease, opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* ===========================
   TECH BADGES
=========================== */

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 1rem 0;
    justify-content: center;
}

.tech-badges span {
    background: #2a5f8a;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===========================
   PREMIUM BUTTON (Same as Certification)
=========================== */

.project-overlay a {
    background: linear-gradient(135deg, #011627, #134da3);
    color: white;
    padding: 12px 22px;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-overlay a:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}



/* ===========================
   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%;
}

.form-input:focus {
    outline: none;
    border: 2px solid #011627;
    box-shadow: 0 0 0 3px rgba(1, 22, 39, 0.2);
}

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: rgba(1, 22, 39, 0.75);
    color: white;
    padding: 2rem;
    text-align: center;
}


/* ===========================
   Animations
=========================== */
section,
.hero {
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
    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;
    }
}


