/* =========================
  ROOT VARIABLES: PALETTE & BASICS
========================= */
/* :root {
    --bg: #ffffff;
    --accent: #1e90ff;
    --accent-hover: #005acc;
    --text-primary: #202020;
    --text-secondary: #4a4a4a;
    --card-bg: #f9fbff;
    --border: #d3d9ff;
    --shadow-light: rgba(30, 144, 255, 0.15);
    --shadow-hover: rgba(30, 144, 255, 0.25);
} */

/* Dark Mode Variables */
:root {
    --bg: #121212;
    --accent: #1e90ff;
    /* You can keep the accent same or choose a lighter blue */
    --accent-hover: #5599ff;
    --text-primary: #e0e0e0;
    --text-secondary: #bbbbbb;
    --card-bg: #1f1f1f;
    --border: #333844;
    --shadow-light: rgba(30, 144, 255, 0.3);
    --shadow-hover: rgba(30, 144, 255, 0.55);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
}

/* =========================
  HEADER & NAVBAR SECTION
========================= */
header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 6px var(--shadow-light);
    animation: slideDownFade 0.7s ease forwards;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent);
    letter-spacing: 1.3px;
    text-transform: uppercase;
    user-select: none;
}

.navbar-nav .nav-link {
    color: var(--text-secondary);
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--accent);
    transform: translateY(-3px);
    outline: none;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after {
    width: 100%;
}

.navbar button {
    background-color: var(--accent);
}

/* =========================
  HERO SECTION
========================= */
.hero {
    text-align: center;
    padding: 4rem 1rem 3rem 1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1s;
}

.hero img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--accent);
    box-shadow: 0 0 20px var(--shadow-light);
    background: #edf6ff;
    object-position: center;
    transition: transform 0.4s, box-shadow 0.4s;
    cursor: pointer;
}

.hero img:hover {
    transform: scale(1.07) rotate(3deg);
    box-shadow: 0 0 28px var(--shadow-hover);
}

.hero h1 {
    font-size: 2.6rem;
    margin: 1rem 0 0.3rem 0;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.typed {
    color: var(--accent);
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    font-family: 'Fira Mono', Consolas, monospace;
    font-weight: 700;
    min-height: 1.5em;
    text-shadow: 0 0 8px var(--accent);
    transition: color 0.3s;
}

.btn-custom {
    background: var(--accent);
    color: #fff;
    padding: 0.65rem 1.8rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 6px 14px var(--shadow-light);
    transition: background 0.3s, box-shadow 0.4s, transform 0.2s;
    border: none;
    user-select: none;
    display: inline-block;
}

.btn-custom:hover,
.btn-custom:focus {
    background: var(--accent-hover);
    box-shadow: 0 8px 20px var(--shadow-hover);
    transform: translateY(-3px);
    outline: none;
}

/* =========================
  ABOUT SECTION
========================= */
/* Uses shared section-title, container spacing */

/* =========================
  SKILLS SECTION
========================= */
#skills .d-flex {
    margin-top: 1.2rem;
}

.skill-badge {
    display: inline-block;
    background-color: var(--bg);
    color: var(--accent);
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 30px;
    font-size: 0.95rem;
    user-select: none;
    box-shadow: 0 3px 8px var(--shadow-light);
    transition: background-color 0.3s, color 0.3s, transform 0.25s;
    cursor: default;
}

.skill-badge:hover,
.skill-badge:focus {
    background-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-4px);
    outline: none;
}

/* =========================
  EXPERIENCE SECTION
========================= */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.experience-item {
    background: var(--bg);
    border: 1.6px solid var(--border);
    border-radius: 16px;
    padding: 1.3rem 1.5rem;
    box-shadow: 0 5px 12px var(--shadow-light);
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.25s;
    cursor: default;
}

.experience-item:hover,
.experience-item:focus-within {
    box-shadow: 0 12px 28px var(--shadow-hover);
    border-color: var(--accent);
    transform: translateY(-5px);
    outline: none;
}

.experience-role {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.experience-company {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
}

.experience-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.6rem;
}

.experience-responsibilities {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0;
}

.experience-responsibilities li {
    margin-bottom: 0.4rem;
}

/* Breadcrumb Skills for Experience & Projects */
.breadcrumbs ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.breadcrumbs li {
    background-color: var(--bg);
    color: var(--accent);
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.85rem;
    user-select: none;
    box-shadow: 0 2px 6px var(--shadow-light);
    cursor: default;
    transition: background-color 0.3s, color 0.3s;
}

.breadcrumbs li:hover,
.breadcrumbs li:focus {
    background-color: var(--accent-hover);
    color: #fff;
    outline: none;
    transform: translateY(-3px);
}

/* =========================
  PROJECTS SECTION
========================= */
.project-card {
    background: var(--bg);
    border: 1.8px solid var(--border);
    border-radius: 18px;
    padding: 1.5rem 1.4rem;
    box-shadow: 0 6px 14px var(--shadow-light);
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.25s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.project-card:hover,
.project-card:focus-within {
    box-shadow: 0 12px 32px var(--shadow-hover);
    border-color: var(--accent);
    transform: translateY(-6px);
    outline: none;
}

.project-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.project-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.project-features {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0;
}

.project-features li {
    margin-bottom: 0.4rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.project-tag {
    background: #d0e2ff;
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.85rem;
    padding: 0.25rem 0.9rem;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
    user-select: none;
}

.project-card:hover .project-tag {
    background: var(--accent-hover);
    color: #fff;
}

/* =========================
CONTACT SECTION
========================= */
input.form-control,
textarea.form-control {
    border: 1.8px solid var(--accent);
    border-radius: 10px;
    background-color: var(--bg);
    color: var(--text-primary);
    transition: border-color 0.3s, box-shadow 0.3s;
    resize: vertical;
}

input.form-control::placeholder,
textarea.form-control::placeholder {
    color: var(--text-primary);
}

input.form-control:focus,
textarea.form-control:focus {
    border-color: var(--accent-hover);
    box-shadow: 0 0 8px var(--shadow-hover);
    outline: none;
    color: var(--text-primary);
    background-color: var(--bg);
}



/* =========================
SOCIAL MEDIA SECTION
========================= */
.social-icons-wrapper {
    font-size: 2.3rem;
    gap: 2.5rem !important;
    margin-top: 0.5rem;
}

.social-link {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(.4, 2, .5, 1), box-shadow 0.3s, color 0.3s;
    outline: none;
}

.social-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border-radius: 50%;
    box-shadow: 0 6px 18px var(--shadow-light), 0 0 0 1.5px var(--border);
    width: 56px;
    height: 56px;
    transition: background 0.3s, box-shadow 0.3s;
}

.social-link i {
    color: var(--accent);
    font-size: 2rem;
    line-height: 1;
    transition: color 0.3s;
}

.social-link:hover .social-icon-circle,
.social-link:focus .social-icon-circle {
    background: var(--accent);
    box-shadow: 0 10px 28px var(--shadow-hover), 0 0 0 2px var(--accent);
}

.social-link:hover i,
.social-link:focus i {
    color: #fff;
    transform: scale(1.18);
}

/* For SVG X logo: ensure it inherits correct color on hover */
.social-link:hover svg path,
.social-link:focus svg path {
    fill: #fff;
}

.social-link svg path {
    transition: fill 0.3s;
}

/* =========================
FOOTER SECTION
========================= */
.footer {
    text-align: center;
    padding: 2rem 1rem 1rem 1rem;
    color: #888;
    font-size: 0.95rem;
    user-select: none;
}

/* =========================
GLOBAL ANIMATIONS
========================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

/* =========================
MEDIA QUERIES: RESPONSIVENESS
========================= */
@media (max-width: 600px) {
    .social-icon-circle {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
    }

    .social-icons-wrapper {
        gap: 1.3rem !important;
    }
}