/* ===== ROOT VARIABLES & GLOBAL STYLES ===== */
:root {
    --bg: #0e0e0e;
    --text: #e0e0e0;
    --accent: #ffeb3b;
    --card-bg: #1a1a1a;
    --card-border: rgba(255, 255, 255, 0.05);
    --glow-text: #ffffff;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rubik', sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    transition: background .5s ease, color .3s ease;
    overflow-x: hidden;
}

body.light {
    --bg: #f8f9fa;
    --text: #212529;
    --accent: #0d47a1;
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.1);
    --glow-text: #ffffff;
}

/* Custom vertical scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
    border: 2px solid var(--bg);
}

/* On hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--text);
}

body.light ::-webkit-scrollbar-track {
    background: var(--bg);
}

body.light ::-webkit-scrollbar-thumb {
    background: var(--accent);
    border: 2px solid var(--bg);
}

body.light ::-webkit-scrollbar-thumb:hover {
    background: var(--text);
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    font-family: 'Courier New', monospace;
}

.loader-code {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 18px;
}

.code-progress-container {
    width: 60%;
    max-width: 300px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 3px;
}

.code-progress-bar {
    height: 20px;
    background: var(--accent);
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.progress-percent {
    position: absolute;
    right: 5px;
    top: 0;
    line-height: 20px;
    font-size: 12px;
    color: var(--accent);
    mix-blend-mode: difference;
}

body.loaded .loading-screen {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* ===== MAIN LAYOUT ===== */
main {
    position: relative;
    z-index: 1;
}

section {
    padding: 80px 0;
}

/* ===== HEADER/HERO SECTION ===== */
header {
    /* background:
        linear-gradient(135deg, rgba(10, 15, 25, 0.6), rgba(20, 30, 50, 0.85)),
        url('https://images.unsplash.com/photo-1542903660-eedba2cda473?q=80&w=2940&auto=format&fit=crop') center/cover no-repeat; */
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

/* .light header {
    background: linear-gradient(135deg, rgba(70, 90, 150, 0.8), rgba(100, 120, 180, 0.7)),
        url('https://images.unsplash.com/photo-1542903660-eedba2cda473?q=80&w=2940&auto=format&fit=crop') center/cover no-repeat;
} */

/* Hero SVG fix */
.hero-svg-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    pointer-events: none;
    z-index: 0;
    /* 👈 put behind overlay */
}

.hero-svg-circle svg {
    width: 100%;
    height: 100%;
    stroke: var(--accent);
}

/* Ensure overlay is above circles */
.overlay {
    z-index: 1;
}

/* Hero content above everything */
.hero-content {
    position: relative;
    z-index: 2;
}

/* Divider fix to remove harsh color difference */
.hero-divider svg path {
    fill: var(--bg);
    /* 👈 blends smoothly with body background */
    fill-opacity: 1;
}

/* Darker circle effect */
.hero-svg-circle svg circle,
.hero-svg-circle svg path {
    opacity: 0.1;
    /* was 0.05 → darker */
    stroke-width: 1.0;
    /* slightly thicker for visibility */
}

/* Light mode adjustment */
body.light .hero-svg-circle svg circle,
body.light .hero-svg-circle svg path {
    opacity: 0.1;
    /* slightly lighter for white background */
}

/* .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
} */

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.glow-name {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(90deg,
            var(--accent),
            var(--text),
            var(--accent));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: glowGradient 3s linear infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

@keyframes glowGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Optional: Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .glow-name {
        animation: none;
        background-size: 100% 100%;
    }
}

.hero-content h3 {
    font-size: 1.8rem;
    color: var(--text);
    font-weight: 400;
    margin-bottom: 2rem;
    min-height: 60px;
}

.hero-content .btn {
    display: block;
    margin: 1.5rem auto 0;
    width: fit-content;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: var(--accent);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* ===== SIDEBAR ===== */
#sidebar-toggle {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--accent);
    color: var(--bg);
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1001;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    font-size: 1.5rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

#sidebar {
    position: fixed;
    left: -60px;
    /* partially hidden by default */
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: auto;
    background-color: var(--accent);
    /* dark mode default */
    backdrop-filter: blur(5px);
    border-radius: 0 5px 5px 0;
    transition: left 0.3s ease, background-color 0.3s ease;
    z-index: 1000;
    padding: 1rem 0;
}

#sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#sidebar ul li {
    margin: 1rem 0;
}

#sidebar ul li a {
    color: var(--bg);
    font-size: 1.5rem;
    transition: transform 0.2s, color 0.2s;
}

#sidebar ul li a:hover {
    color: var(--text);
    transform: scale(1.2);
}

#sidebar.active {
    left: 35px;
}

#sidebar-toggle.active {
    transform: translateY(-50%) rotate(180deg);
}

body.light-mode #sidebar {
    background-color: rgba(240, 240, 240, 0.9);
}

body.light-mode #sidebar-toggle {
    background-color: var(--card-g);
    color: var(--text);
}

/* ===== SECTION HEADINGS ===== */
h2 {
    color: var(--accent);
    text-align: center;
    margin: 2rem 0 3rem;
    font-size: 2.8rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    width: 100%;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* ===== ABOUT SECTION ===== */
#about p {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

/* ===== EDUCATION SECTION ===== */
.education-section {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.education-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent), rgba(255, 235, 59, 0.3));
    transform: translateX(-50%);
}

.education-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 50px;
    transition: all 0.3s ease;
}

.education-item:hover {
    transform: translateX(10px);
}

.education-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 46px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    border: 4px solid var(--bg);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(255, 235, 59, 0.2);
    transition: all 0.3s ease;
}

.education-item:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(255, 235, 59, 0.2);
}

.light .education-item::before {
    border-color: var(--bg);
}

.education-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--card-border);
}

.education-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.institution {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.institution i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.program {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.duration {
    color: #aaa;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.light .duration {
    color: #666;
}

.duration i {
    margin-right: 10px;
    color: var(--accent);
}

.description {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    opacity: 0.9;
}

/* ===== SKILLS SECTION ===== */
.skills-category {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    height: 100%;
}

.skills-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.skills-category h5 {
    color: var(--accent);
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--card-border);
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
}

.skills-category h5::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--accent);
}

.skills-list .col {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.skills-list i {
    font-size: 3.5rem;
    margin-bottom: 15px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.9;
}

.skills-list .col:hover i {
    transform: scale(1.2) translateY(-5px);
    opacity: 1;
}

.skill-name {
    font-size: 1rem;
    text-align: center;
    color: var(--text);
    font-weight: 500;
    transition: all 0.3s ease;
}

.skills-list .col:hover .skill-name {
    color: var(--accent);
    font-weight: 600;
}

/* Skill Image Styles */
.skill-img-container {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.skill-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* filter: grayscale(100%) brightness(0.8); */
    transition: all 0.3s ease;
}

/* .skills-list .col:hover .skill-img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
} */

.skills-list i,
.skill-img-container {
    margin-bottom: 5px;
    font-size: 3rem;
}

/* ===== PROJECTS SECTION ===== */
.projects-container {
    position: relative;
}

.project-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    height: 100%;
    color: var(--text);
    border-radius: 12px;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.project-card:hover .card-img-top {
    transform: scale(1.05);
}

.project-card .card-body {
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.project-card .card-title {
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.project-card .card-text {
    margin-bottom: 20px;
    line-height: 1.6;
}

.badge {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 10px;
    margin-right: 8px;
    margin-bottom: 8px;
    border-radius: 6px;
    background-color: rgba(255, 235, 59, 0.2);
    color: var(--accent);
    border: 1px solid rgba(255, 235, 59, 0.3);
}

.light .badge {
    background-color: rgba(13, 71, 161, 0.1);
    color: var(--accent);
    border: 1px solid rgba(13, 71, 161, 0.2);
}


.btn-outline-warning {
    background-color: transparent;
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-warning:hover,
.btn-outline-warning:hover {
    background-color: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 235, 59, 0.2);
}

/* Projects View Toggle Styles */
.projects-button-container {
    text-align: center;
    margin: 30px 0;
    width: 100%;
}

#viewMoreBtn,
#viewLessBtn {
    display: inline-block;
    min-width: 180px;
    margin: 0 10px;
    transition: all 0.3s ease;
}

#viewMoreBtn:hover,
#viewLessBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 235, 59, 0.3);
}

/* Important */
.project-card.hidden-project {
    display: none !important;
}

/* Hide View Less button initially */
#viewLessBtn.d-none {
    display: none !important;
}

/* ===== CONTACT SECTION ===== */
#contact {
    background: var(--card-bg);
    padding: 80px 0;
    border-radius: 15px;
    margin: 60px auto;
    max-width: 1000px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), #ff9800);
}

.contact-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--card-border);
}

#form-success {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spinner-border {
    vertical-align: middle;
    margin-right: 8px;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    animation: fadeIn 0.3s ease-out;
    display: none;
    /* Start hidden */
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.2);
    border-left: 4px solid #28a745;
    color: #28a745;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.2);
    border-left: 4px solid #dc3545;
    color: #dc3545;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spinner-border {
    vertical-align: middle;
    margin-right: 8px;
}

.form-control {
    background-color: var(--bg);
    border: 1px solid var(--card-border);
    color: var(--text);
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: var(--bg);
    color: var(--text);
    border-color: var(--accent);
    box-shadow: 0 0 0 0.25rem rgba(255, 235, 59, 0.15);
}

textarea.form-control {
    min-height: 150px;
}

/* Form placeholders */
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.light .form-control::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

/* Browser-specific placeholders */
.form-control::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-control::-moz-placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-control:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-control:-moz-placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.light .form-control::-webkit-input-placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.light .form-control::-moz-placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.light .form-control:-ms-input-placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.light .form-control:-moz-placeholder {
    color: rgba(0, 0, 0, 0.4);
}

/* ===== BUTTON STYLES ===== */
.btn-warning {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #000;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn-warning:hover {
    background-color: var(--card-bg);
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 235, 59, 0.2);
}

.btn-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.btn-warning:hover::before {
    left: 100%;
}

/* ===== SOCIAL ICONS ===== */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0 1.5rem;
    flex-wrap: wrap;
}

.social-icons a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text);
    background: var(--card-bg);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent), transparent);
    opacity: 0;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #fff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.social-icons a:hover::before {
    opacity: 0.3;
}

.social-icons a:nth-child(1):hover {
    background: #d44638;
}

.social-icons a:nth-child(2):hover {
    background: #333;
}

.social-icons a:nth-child(3):hover {
    background: #0a66c2;
}

.social-icons a:nth-child(4):hover {
    background: #e1306c;
}

.social-icons a:nth-child(5):hover {
    background: #221f1f;
}

/* ===== FOOTER ===== */
footer {
    background: var(--card-bg);
    color: rgba(255, 255, 255, .7);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--card-border);
}

.light footer {
    color: rgba(0, 0, 0, .7);
}

/* ===== UTILITY COMPONENTS ===== */
/* Theme toggle button */
.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    background: var(--card-bg);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.theme-toggle input {
    display: none;
}

.theme-toggle label {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.5s ease;
}

.light .fa-sun {
    display: none;
}

.light .fa-moon {
    display: inline-block;
}

.fa-moon {
    display: none;
}

/* Particle background */
#bg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--accent);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 992px) {
    h2 {
        font-size: 2.5rem;
    }

    section {
        padding: 60px 0;
    }

    #sidebar {
        width: 50px;
        padding: 0.5rem 0;
    }

    #sidebar ul li a {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h3 {
        font-size: 1.4rem;
    }

    .skills-list i {
        font-size: 3rem;
    }

    .education-section::before {
        left: 30px;
    }

    .education-item {
        padding-left: 60px;
    }

    .education-item::before {
        left: 26px;
    }

    #contact {
        padding: 50px 20px;
        margin: 40px 20px;
    }

    .contact-form {
        padding: 25px;
    }

    #sidebar {
        width: 50px;
    }
}

@media (max-width: 576px) {
    h2 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    section {
        padding: 50px 0;
    }

    .education-content {
        padding: 20px;
    }

    .institution {
        font-size: 1.3rem;
    }

    .program {
        font-size: 1.1rem;
    }

    #sidebar {
        width: 40px;
        padding: 0.3rem 0;
    }

    #sidebar ul li a {
        font-size: 1.1rem;
    }
}