/* --- 1. PRESETS & VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    padding: 0; margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --accent: #c23dfb;
    --accent-glow: rgba(194, 61, 251, 0.4);
    --secondary: #2d40cf;
    --bg-dark: #050505;
    --text-main: #ffffff;
    --text-dim: #a1a1aa;
    --transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(194, 61, 251, 0.15) 0px, transparent 50%), 
        radial-gradient(at 100% 100%, rgba(45, 64, 207, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    overflow-x: hidden;
}

/* --- 2. NAVIGATION BAR (CLASSIC DROP-DOWN) --- */
.Navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 2000;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(194, 61, 251, 0.1);
}

.Navbar__s1 { font-size: 1.5rem; font-weight: 700; }
.Navbar__s1 span { color: var(--accent); text-shadow: 0 0 10px var(--accent-glow); }

.Navbar__s2 { display: flex; gap: 35px; }
.Navbar__s2 a {
    color: var(--text-dim);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
    font-weight: 500;
}
.Navbar__s2 a:hover { color: var(--accent); }

.Navbar__menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* --- 3. HOME SECTION --- */
.Home {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 120px 10% 60px;
    gap: 80px;
}

.Home__s1 { flex: 1; display: flex; justify-content: center; }
.Home__s1 img {
    width: 100%;
    max-width: 420px;
    filter: drop-shadow(0 0 30px var(--accent-glow));
    border-bottom: 4px solid var(--accent);
    border-radius: 0 0 50px 50px;
    transition: var(--transition);
}

.Home__s2 { flex: 1; }
.Home__s2__a1 p:first-child { color: var(--accent); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }
.Home__s2__a1 h1 { font-size: 4.5rem; line-height: 1.1; margin: 10px 0; }
.Home__s2__a1 h3 { font-size: 1.8rem; font-weight: 300; color: #e2e8f0; margin-bottom: 20px; }
.Home__s2__a1 p:last-child { color: var(--text-dim); line-height: 1.8; max-width: 500px; }

.Home__socials { margin: 25px 0; display: flex; gap: 20px; }
.Home__socials a { color: var(--text-dim); font-size: 1.6rem; transition: 0.3s; }
.Home__socials a:hover { color: var(--accent); transform: translateY(-5px); }

.Home__s2__a3 { display: flex; gap: 20px; margin-top: 30px; }
.Home__s2__a3 a { text-decoration: none; }

button {
    padding: 15px 35px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
}

.cv-btn { background: linear-gradient(135deg, var(--accent), var(--secondary)); color: white; }
.contact-btn { background: transparent; border: 2px solid var(--accent); color: var(--accent); }

button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--accent-glow);
    filter: brightness(1.1);
}

/* --- 4. CONTACT SECTION --- */
.Contact { padding: 100px 10%; display: flex; justify-content: center; }
.Contact__container { display: flex; gap: 60px; width: 100%; max-width: 1200px; }
.Contact__info { flex: 1; }
.Contact__info h1 { font-size: 3.5rem; margin: 10px 0 20px; }
.Contact__info h1 span { color: var(--accent); }

.Info__item {
    display: flex; align-items: center; gap: 20px; margin-top: 25px;
    background: rgba(255, 255, 255, 0.03); padding: 20px; border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.Info__item i { color: var(--accent); font-size: 1.4rem; }

.Contact__form {
    flex: 1.2; background: rgba(255, 255, 255, 0.02); padding: 50px;
    border-radius: 30px; border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px); display: flex; flex-direction: column; gap: 20px;
}

.Input__group { display: flex; gap: 20px; }
input, textarea {
    width: 100%; padding: 18px; background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px;
    color: white; outline: none; transition: 0.3s;
}
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 15px var(--accent-glow); }

.Submit__btn {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: white; padding: 18px; font-size: 1.1rem;
}

/* --- 5. RESPONSIVE DESIGN (DROP-DOWN STYLE) --- */
@media screen and (max-width: 992px) {
    .Navbar { padding: 15px 5%; }

    /* Drop-down Navbar Logic */
    .Navbar__s2 {
        display: none; 
        flex-direction: column;
        position: absolute; /* Drops down from the header */
        top: 100%; 
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98); 
        padding: 30px 0;
        text-align: center; 
        gap: 25px; 
        border-bottom: 2px solid var(--accent);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    .Navbar__s2.active {
        display: flex;
        animation: dropDown 0.4s ease forwards;
    }

    .Navbar__menu-icon { display: block; }

    /* Home Alignment & Image Reduction */
    .Home { 
        flex-direction: column; 
        text-align: center; 
        align-items: center; 
        padding-top: 140px;
        gap: 30px;
    }
    
    .Home__s1 { order: 1; width: 100%; }
    .Home__s1 img { 
        max-width: 260px; /* Reduced image size */
        margin: 0 auto;
    }

    .Home__s2 { 
        order: 2; width: 100%; 
        display: flex; flex-direction: column; align-items: center; 
    }
    
    .Home__s2__a1 h1 { font-size: 3rem; }
    .Home__s2__a1 p:last-child { margin: 0 auto; }
    .Home__socials, .Home__s2__a3 { justify-content: center; }

    .Contact__container { flex-direction: column; align-items: center; gap: 40px; }
    .Contact__info, .Contact__form { width: 100%; }
    .Info__item { justify-content: center; }
}

@keyframes dropDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media screen and (max-width: 600px) {
    .Home__s1 img { max-width: 210px; } /* Even smaller for small screens */
    .Home__s2__a1 h1 { font-size: 2.2rem; }
    .Home__s2__a1 h3 { font-size: 1.3rem; }
    .Home__s2__a3 { flex-direction: column; width: 100%; max-width: 280px; }
    .Home__s2__a3 a, button { width: 100%; }
    .Input__group { flex-direction: column; }
    .Contact__form { padding: 25px 20px; }
}

/* --- ABOUT SECTION ALIGNMENT --- */
.About {
    padding: 100px 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh; /* Ensures vertical balance */
}

.About__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
}

/* Left Content Area */
.About__content {
    flex: 1.2;
    text-align: left;
}

.About__content .subtitle {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.About__content h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.About__content h1 span {
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
}

.About__content .description {
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
    text-align: justify; /* Keeps text edges clean */
}

.About__content strong {
    color: var(--text-main);
    border-bottom: 1px solid var(--accent);
}

/* Right Stats Area */
.About__stats {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.Stat-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 35px;
    border-radius: 20px;
    border: 1px solid rgba(194, 61, 251, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Hover effect to match your theme */
.Stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent);
    background: rgba(194, 61, 251, 0.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.Stat-card h2 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.Stat-card p {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* --- RESPONSIVE ALIGNMENT --- */
@media screen and (max-width: 992px) {
    .About__container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .About__content {
        text-align: center;
    }

    .About__content .description {
        text-align: center;
    }

    .About__stats {
        width: 100%;
        flex-direction: row; /* Side by side on tablets */
    }

    .Stat-card {
        flex: 1;
    }
}

@media screen and (max-width: 600px) {
    .About {
        padding: 60px 5%;
    }

    .About__content h1 {
        font-size: 2.5rem;
    }

    .About__stats {
        flex-direction: column; /* Stacked on mobile */
    }
}


/* --- SKILLS SECTION --- */
.Skills {
    padding: 100px 10%;
    background: rgba(255, 255, 255, 0.01); /* Subtle contrast */
}

.Skills__header {
    text-align: center;
    margin-bottom: 60px;
}

.Skills__header p {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
}

.Skills__header h1 {
    font-size: 3.5rem;
}

.Skills__header h1 span {
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
}

.Skills__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.Skill__card {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px 30px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    text-align: center;
}

.Skill__card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    background: rgba(194, 61, 251, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.Skill__icon {
    font-size: 2.8rem;
    color: var(--accent);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.Skill__card h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--text-main);
}

.Skill__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.Skill__tags span {
    background: rgba(194, 61, 251, 0.1);
    color: var(--text-dim);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(194, 61, 251, 0.2);
    transition: 0.3s ease;
}

.Skill__card:hover .Skill__tags span {
    border-color: var(--accent);
    color: var(--text-main);
    background: rgba(194, 61, 251, 0.2);
}

/* --- RESPONSIVE SKILLS --- */
@media screen and (max-width: 992px) {
    .Skills { padding: 80px 5%; }
    .Skills__header h1 { font-size: 2.8rem; }
}

@media screen and (max-width: 600px) {
    .Skills__container { grid-template-columns: 1fr; }
    .Skill__card { padding: 30px 20px; }
}

/* --- JOURNEY SECTION --- */
.Journey {
    padding: 100px 10%;
    position: relative;
}

.Journey__header {
    text-align: center;
    margin-bottom: 80px;
}

.Journey__header p {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.Journey__header h1 { font-size: 3.5rem; }
.Journey__header h1 span { color: var(--accent); text-shadow: 0 0 15px var(--accent-glow); }

/* Timeline Container */
.Timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* The Vertical Line */
.Timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--secondary), transparent);
    top: 0;
    bottom: 0;
    left: 20px;
}

.Timeline__item {
    padding-left: 60px;
    margin-bottom: 50px;
    position: relative;
}

/* Timeline Dots */
.Timeline__dot {
    position: absolute;
    height: 18px;
    width: 18px;
    background: var(--bg-dark);
    border: 3px solid var(--accent);
    border-radius: 50%;
    left: 12px;
    top: 5px;
    z-index: 10;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Timeline Content Card */
.Timeline__content {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.Timeline__item:hover .Timeline__content {
    transform: translateX(10px);
    border-color: var(--accent);
    background: rgba(194, 61, 251, 0.05);
}

.Timeline__content .date {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.Timeline__content h2 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.Timeline__content h3 {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 15px;
    font-weight: 400;
}

.Timeline__content p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cert-list {
    list-style: none;
    margin-top: 10px;
}

.cert-list li {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cert-list i {
    color: var(--accent);
    font-size: 0.8rem;
}

/* --- RESPONSIVE JOURNEY --- */
@media screen and (max-width: 768px) {
    .Journey { padding: 60px 5%; }
    .Journey__header h1 { font-size: 2.5rem; }
    .Timeline::after { left: 10px; }
    .Timeline__dot { left: 2px; }
    .Timeline__item { padding-left: 40px; }
}