/* =================== Root Variables =================== */
:root {
    --primary: #004FB8;
    --text-dark: #0b0b0b;
    --text-muted: #555;
    --radius: 10px;
    --transition: 0.3s;
    --section-padding: 80px 0;
    --bg-light: #f9f9f9;
    --bg-dark: #fff;
    --font: 'Poppins', sans-serif;
}

/* =================== Navbar =================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.201);

}

.nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px;

}

.nav a.logo {
    font-weight: 800;
    font-size: 1.9rem;
    font-style: italic;
    color: var(--primary);
}

.nav a.logo:hover {
    font-size: 2.2rem;
    text-shadow: 2px 8px 15px var(--primary);
    transition: 0.2s ease-in;
}

.nav-links {
    display: flex;
    gap: 45px;
    list-style: none;
}

.nav-links li a {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    transition: color 0.3s;
}

.nav-links li a.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
    font-size: 1.2rem;
    transition: 0.3s;

}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;

}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: 0.3s;
}



/* =================== Hero Section =================== */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    transition: all 1s ease;

}

.hero-left {
    max-width: 85vw;
}

#typed-text {
    font-size: 2.2rem;
    text-align: center;
    font-weight: 700;
    border-right: 3px solid var(--primary);
    color: var(--primary);
    text-shadow: 0px 4px 10px #0b71ff83;
}

.hero-left-btns {
    width: 23vw;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
}

.top-btn {
    display: flex;
    justify-content: center;
    gap: .5rem;
    align-items: center;
}

.down-btn {
    display: flex;
    width: 100%;
}

.down-btn a {
    text-align: center;
    width: 100%;
}

.hero-right img {
    max-width: 40vw;
    border-radius: var(--radius);
    transition: transform 1s ease;
    box-shadow: 2px 6px 14px var(--primary);
    border-radius: 50%;
}

.hero-right img:hover {
    transform: translateY(-6px);
}

/* =================== Stats Section =================== */

.stats {
    display: flex;
    justify-content: space-between;
    text-align: center;
    flex-wrap: wrap;
}

.stat {
    flex: 1;
    margin: 20px;
}

.stat h3 {
    font-size: 40px;
    color: #3b82f6;
}

.internship {
    text-align: center;
}

.internship-highlights {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    color: #93c5fd;
}

/* =================== WHAT I DO Section =================== */

.grid {
    display: grid;
    gap: 20px;
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
    background: var(--primary);
    padding: 25px;
    border-radius: 10px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    background: #334155;
}

.card h3 {
    color: #ffffff;
}

.card p {
    color: #cbd5e1;
}


/* =================== Education Section =================== */
.education-timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.education-timeline.visible {
    opacity: 1;
    transform: translateY(0);
}

.edu-item {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    background: #fff;
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.05);
    transition: transform var(--transition), box-shadow var(--transition);
}

.edu-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.12);
}

.edu-icon {
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.edu-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* =================== Skills Section =================== */
.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.skills-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-bar {
    width: 100%;
    height: 16px;
    background: #eee;
    border-radius: var(--radius);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    width: 0;
    background: var(--primary);
    border-radius: var(--radius);
    transition: width 1.5s ease-in-out;
}

/* =================== Contact Section =================== */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;

}

.contact-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-info {
    flex: 1;
    min-width: 250px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    background: #fff;
    padding: 12px 16px;
    border-radius: var(--radius);
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.05);
    transition: transform var(--transition);
}

.info-item:hover {
    transform: translateY(-3px);
}

.info-item img {
    width: 36px;
    height: 36px;
}

.info-item a {
    color: var(--primary);
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

.contact-form {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid #ccc;
    background: transparent;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    transition: 0.3s;
    font-weight: 500;
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -8px;
    left: 12px;
    font-size: 0.85rem;
    color: var(--primary);
    background: #fff;
    padding: 0 4px;
}

.contact-form button {
    width: 260px;
    cursor: pointer;
    font-size: 1.1rem;
}
