:root {
    /* Colors */
    --bg-primary: #0a0a0a;
    /* main background */
    --bg-secondary: #111111;
    /* cards, navbar bg */
    --bg-card: #1a1a1a;
    /* project cards */
    --accent: #38bdf8;
    /* green — change if you want red */
    --accent-hover: #0284c7;
    /* darker accent on hover */
    --text-primary-color: #ffffff;
    /* main text */
    --text-secondary-color: #a0a0a0;
    /* subtitles, descriptions */
    --border: #2a2a2a;
    /* card borders, dividers */

    /* Typography */
    --font-heading: 'Clash Display', sans-serif;
    --font-body: 'Satoshi', sans-serif;

    /* Spacing */
    --section-padding: 100px 10%;
    --border-radius: 12px;

    /* Transitions */
    --transition: all 0.3s ease;
}

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

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

::-webkit-scrollbar-thumb {
    background: #333;
    /* Default: subtle gray */
    border-radius: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary-color);
    font-family: var(--font-body);
}

.Navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(12px);
    /* Blur magic */
    border-bottom: 1px solid #222;
}

.nav-div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    margin: 0 40px;
}

.nav-list {
    display: flex;
    gap: 26px;
    list-style: none;
    font-size: 17px;
}

.name,
.nav-list li a {
    text-decoration: none;
}

.nav-list li a {
    color: var(--text-secondary-color);
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--text-primary-color);
    transition: width 0.3s ease;
}

.name {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(45deg, #ffffff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    transition: transform 0.3s ease;
}

/* Hero Section Starts */

.Hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    padding: var(--section-padding);
}

.hero-img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    /* Round shape */
    object-fit: cover;
    border: 4px solid var(--accent);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
    /* Neon glow */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    filter: grayscale(1);
}

.hero-div {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 50%;
    color: var(--text-secondary-color);
}

.hero-heading {
    font-family: var(--font-heading);
    font-size: 35px;
    color: var(--text-primary-color);
}

.hero-name {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 600;
}

.hero-desc {
    margin: 8px 0;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    text-decoration: none;
    color: var(--text-secondary-color);
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 10px 8px;
}

.hero-buttons .btn {
    padding: 12px 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Button aur arrow ke darmiyan space */
    transition: var(--transition);
}

/* first Button: Solid Blue */
.hero-buttons .btn:first-child {
    background-color: var(--accent);
    color: #0f172a;
    /* Dark text for readability */
    border: 2px solid var(--accent);
}

/* second Button: Outline & Arrow */
.hero-buttons .btn:last-child {
    background-color: transparent;
    border: 2px solid var(--text-primary-color);
}

/* Arrow SVG Styling */
.arrow-svg {
    width: 18px;
    transition: transform 0.3s ease;
    filter: invert(1);
}

/* todos of hero section:
1. typewriter effect on heading */

/* Projects Section Starts */
.Projects {
    padding: var(--section-padding);
}

.projects-top {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.projects-top>p {
    color: var(--text-secondary-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cards-div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

/* 1. Cards General & Hover Glows */
.card {
    background-color: var(--bg-card);
    border: 1px solid #222;
    border-radius: var(--border-radius);
    padding: 20px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    /* equal sized cards */
}

/* 2. Images */
.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

/* 3. Text Styles */
.card-title {
    font-size: 22px;
    color: var(--text-primary-color);
}

.card-description {
    font-size: 15px;
    color: var(--text-secondary-color);
    line-height: 1.5;
    flex-grow: 1;
    /* this will stretch descriptio so that buttons will always lie down */
}

/* 4. Tags Styling */
.card-tags ul {
    list-style: none;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0;
}

.card-tags li {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.card1 {
    position: relative;
    overflow: hidden;
}

#new {
    position: absolute;
    top: 6px;
    right: 12px;
    color: #0f172a;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #8B5CF6;
    animation: neonPulse 2s infinite ease-in-out;
    z-index: 10;
}

/* 5. Buttons */
.card-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.card-buttons .btn {
    flex: 1;
    /* equal-sized buttons */
    text-align: center;
    border: 1px solid #333;
    background: transparent;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Skills Section Starts */
.Skills {
    padding: var(--section-padding);
}

.section-heading {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 40px;
    margin-bottom: 40px;
    color: var(--text-primary-color);
}

/* Blue line under section-headings: */
.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

.skills-div {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    /* use next line if screen is not wide enough */
}

.skill-box {
    background-color: var(--bg-primary);
    /* Darker background */
    border: 1px solid #333;
    /* Subtle border */
    padding: 25px;
    border-radius: 16px;
    flex: 1;
    min-width: 250px;
    text-align: center;
    transition: var(--transition);
}

.skill-box h3 {
    color: var(--text-primary-color);
    margin-bottom: 20px;
    font-size: 20px;
}

.badges-div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.badge {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

/* Contact Section Starts */
.Contact {
    --section-padding: 100px 10% 0 10%;
    padding: var(--section-padding);
}

.contact-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Sab center align */
    gap: 25px;
    padding-bottom: 60px;
}

.contact-div p {
    max-width: 600px;
    color: var(--text-secondary-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.contact-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #222;
    border-radius: 50%;
    color: var(--text-secondary-color);
    font-size: 24px;
    transition: var(--transition);
    text-decoration: none;
}

footer {
    width: 100%;
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #1a1a1a;
    /* Subtle divider */
    margin-top: 50px;
}

footer p {
    font-size: 14px;
    letter-spacing: 1px;
    opacity: 0.6;
}


/* For Making Hamburger: */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary-color);
    transition: var(--transition);
}

/* Styles for overlay navBar: */
.overlay-nav {
    visibility: hidden;
    height: 100vh;
    inset: 0;
    position: fixed;
    background: rgba(10, 10, 10, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 999;
    /* behind Nav bar to show the hamburger and cross. */
}

/* toggled by JS: */
.active {
    opacity: 1;
    visibility: visible;
}

/* Links Styling */
.overlay-list {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* Wide spacing */
}

.overlay-list li a {
    font-family: var(--font-heading);
    font-size: 3rem;
    /* Big links this time */
    font-weight: 700;
    color: var(--text-primary-color);
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

/* Neon Glow and scale effect on active state */
.overlay-list a:active {
    color: var(--accent);
    transform: scale(0.95);
}

/* Hover effect only for mouse devices: */
@media (hover: hover) {
    ::-webkit-scrollbar-thumb:hover {
        background: var(--accent);
    }

    .nav-list li a:hover {
        color: var(--text-primary-color);
    }

    .nav-list li a:hover::after {
        width: 100%;
    }

    .name:hover {
        transform: scale(1.05);
    }

    .hero-img:hover {
        transform: scale(1.05) rotate(2deg);
        /* tilt & zoom */
        box-shadow: 0 0 40px var(--accent);
        /* More glow on hover */
        filter: grayscale(0);
    }

    .hero-buttons .btn:first-child:hover {
        box-shadow: 0 0 15px var(--accent);
        transform: translateY(-2px);
        background-color: var(--accent-hover);
    }

    .hero-buttons .btn:last-child:hover {
        border-color: var(--accent);
        color: var(--accent);
    }

    .hero-buttons .btn:last-child:hover .arrow-svg {
        transform: translate(4px, -4px);
    }

    .card:hover {
        transform: translateY(-10px);
        /* float state */
    }

    /* AI Text Toolkit Purple: */
    .card1:hover {
        border-color: #8B5CF6;
        box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
    }

    /* Spotify Green: */
    .card2:hover {
        border-color: #1db954;
        box-shadow: 0 10px 30px rgba(29, 185, 84, 0.15);
    }

    /* Netflix Red: */
    .card3:hover {
        border-color: #E50914;
        box-shadow: 0 10px 30px rgba(229, 9, 20, 0.15);
    }

    /* Currency Blue: */
    .card4:hover {
        border-color: #38bdf8;
        box-shadow: 0 10px 30px rgba(56, 189, 248, 0.15);
    }

    .card-buttons .btn:hover {
        background-color: var(--text-primary-color);
        color: var(--bg-primary);
    }

    .skill-box:hover {
        border-color: var(--accent);
        transform: translateY(-5px);
    }

    .badge:hover {
        background: var(--accent);
        color: #0f172a;
        box-shadow: 0 0 15px var(--accent);
        transform: translateY(-3px);
    }

    .contact-links a:hover {
        color: var(--accent);
        border-color: var(--accent);
        transform: translateY(-5px);
        box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
        background: rgba(56, 189, 248, 0.05);
    }

    .overlay-list a:hover {
        color: var(--accent);
        text-shadow: 0 0 20px var(--accent);
        letter-spacing: 4px;
    }
}

/* On :active for mobile: */
.hero-buttons .btn:active,
.card-buttons .btn:active,
.badge:active,
.contact-links a:active,
.card:active,
.skill-box:active {
    transform: scale(0.96);
    transition: transform 0.1s ease;
}

.badge:active,
.contact-links a:active,
.hero-buttons .btn:last-child:active {
    color: var(--accent);
    border-color: var(--accent);
}

.card-buttons .btn:active {
    background-color: var(--accent);
    color: var(--bg-primary);
}

/* Responsivess For mobile compatibility: */
@media (max-width:768px) {
    .nav-list {
        display: none;
    }

    .hamburger {
        display: flex;
        order: 3;
    }

    .hero-heading,
    .section-heading {
        font-size: 30px;
    }

    .name {
        font-size: 20px;
    }

    .overlay-list li a {
        font-size: 2rem;
    }

    .Hero,
    .Projects,
    .Skills,
    .Contact {
        --section-padding: 60px 5%;
        padding: var(--section-padding);
    }

    .Hero {
        flex-direction: column;
        text-align: center;
    }

    .Hero .hero-div {
        width: 80%;
        align-items: center;
    }

    .Hero .hero-img-div img {
        width: 250px;
        height: 250px;
    }

    .cards-div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .contact-links {
        gap: 10px;
    }
}

@keyframes neonPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
    }
}