/* ===== Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --bs-red: #ff0000;
    --bs-white: #fff;
    --bs-black: #000;
    --bs-gray-dark: #343a40;
    --bs-blue: #00f7ff;
    --bs-main-font: "Montserrat", sans-serif;
    --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
}

* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

.links {
    min-width: 120px;
    text-align: center;
}


body {
    font-family: var(--bs-main-font);
    scroll-behavior: smooth;

    background:
        radial-gradient(circle at top left, rgba(255, 0, 0, 0.05), transparent 40%),
        radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.03), transparent 40%),
        #ffffff;
}

section {
    margin-top: 80px;
    /* header height */
    scroll-margin-top: 80px;
}

@media (max-width: 992px) {
    section {
        scroll-margin-top: 240px;
    }

    #home {
        scroll-margin-top: 300px;
    }
}

#home {
    min-height: 80vh;
}

.display-4 {
    letter-spacing: -1px;
}


.name {
    color: var(--bs-red);
    font-weight: 700;
}

.custom-btn {
    background: transparent;
    border: 1.5px solid #ff0000;
    color: #ff0000;
    border-radius: 999px;
    padding: 10px 26px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.custom-btn:hover {
    background: linear-gradient(135deg, #ff0000, #ff5e5e);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.35);
}

/* ===== Statistics Section ===== */

.stat-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 30px 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.35s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(255, 0, 0, 0.15);
}

.stat-number {
    font-size: 2.6rem;
    font-weight: 700;
    color: #ff0000;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #444;
}


/* ===== Aesthetic Skills Section ===== */
/* ===== Categorized Skills Section ===== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(369px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.skills-card {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 18px;
    padding: 24px;
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.skills-title {
    text-align: center;
    font-weight: 600;
    margin-bottom: 18px;
    color: #222;
    position: relative;
}

.skills-title::after {
    content: "";
    width: 40px;
    height: 3px;
    background: #ff0000;
    display: block;
    margin: 8px auto 0;
    border-radius: 6px;
}

.skills-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.skill-pill {
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ff0000;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 0, 0, 0.25);
    transition: all 0.3s ease;
    cursor: default;
}

.skill-pill:hover {
    background: #ff0000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.25);
}


.img-fluid {
    max-width: 350px;
    height: 350px;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

@media (max-width: 768px) {
    .img-fluid {
        max-width: 250px;
        height: 250px;
        box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.2);
        object-fit: cover;
    }
}

/* ===== Navbar Overrides ===== */
.navbar-brand {
    font-size: 1.5rem;
}

/* ===== Section Spacing ===== */
.py-5 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

/* ===== Card Hover Effect ===== */
.card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-title {
    color: #ff0000;
    font-weight: 600;
}

/* ===== Mini Projects GitHub Card ===== */

.mini-project-card {
    border: 2px dashed rgba(255, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    transition: all 0.35s ease;
    cursor: pointer;
}

.mini-project-card:hover {
    background: rgba(255, 0, 0, 0.06);
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(255, 0, 0, 0.15);
}

.mini-project-card .card-title {
    color: #ff0000;
    font-weight: 600;
}

.mini-project-card .card-text {
    color: #444;
    font-size: 0.95rem;
}

.mini-project-link {
    color: #ff0000;
    font-weight: 500;
    font-size: 0.95rem;
}

/* ===== Contact Icons Section ===== */

.contact-icons {
    margin-top: 20px;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ff0000;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-link i {
    font-size: 1.8rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.contact-link:hover i {
    background: #ff0000;
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 0, 0, 0.3);
}

.contact-link span {
    font-weight: 500;
}
.contact-link:hover span {
    text-decoration: underline;
}