:root {
    --primary-bg: #0f0f0f;
    --primary-text: #ffffff;
    --accent: #7f5af0;
    --accent-hover: #684ce5;
    --card-bg: #1a1a1a;
    --border-radius: 16px;
    --font: 'Inter', sans-serif;
}

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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2.2rem;
    justify-items: center;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    min-width: 0;
    /* prevent horizontal scroll */
}

.skill-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    width: 100%;
    max-width: 160px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.skill-card img {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.skill-card h3 {
    margin: 0;
    color: var(--primary-text);
    font-size: 1rem;
}

.skill-card:hover {
    transform: translateY(-8px);
    background-color: #222;
}

.skills h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

body {
    height: 100vh;
    font-family: var(--font);
    background-color: var(--primary-bg);
    color: var(--primary-text);
    width: fit-content;
}

/* Header */
.header {
    width: 100%;
    padding: 1.5rem 2rem;
    background-color: var(--primary-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
    letter-spacing: 1px;
}

#nav-logo {
    text-decoration: none;
}

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

.hamburger span {
    height: 3px;
    width: 25px;
    background-color: var(--accent);
    transition: 0.3s ease;
}

/* Navigation */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: var(--primary-text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links li a::after {
    content: "";
    display: block;
    width: 0%;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s;
    position: absolute;
    left: 0;
    bottom: -5px;
}

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

.nav-links li a:hover {
    color: var(--accent);
}

.resume-btn {
    padding: 0.5rem 1rem;
    background-color: var(--accent);
    border-radius: var(--border-radius);
    color: white !important;
    font-weight: bold;
    transition: background 0.3s;
}

.resume-btn:hover {
    background-color: var(--accent-hover);
}

/* =============================
   HERO SECTION STYLING
============================= */

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 2rem;
    gap: 2rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
}

.intro {
    flex: 1 1 500px;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.4;
    font-weight: 700;
    color: var(--primary-text);
}

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

.intro p {
    font-size: 1.1rem;
    color: #ccc;
    margin: 1.5rem 0 2rem;
    line-height: 1.6;
}

/* Social Icons */
.socials {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.socials a img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.socials a img:hover {
   transform: scale(1.1);
filter: brightness(80%) contrast(20%);

}

/* CTA Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.7rem 1.4rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: 0.3s ease;
}

.primary-btn {
    background-color: var(--accent);
    color: white;
}

.primary-btn:hover {
    background-color: var(--accent-hover);
}

.secondary-btn {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.secondary-btn:hover {
    background-color: var(--accent);
    color: white;
}

/* Hero Image */
.hero-image {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 400px;
    width: 100%;
    height: auto;
}


.intro p {
    margin: 1rem 0 2rem;
}

.socials a {
    text-decoration: none;
}

.socials a img {
    width: 30px;
    height: 30px;
    margin-right: 1rem;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0) invert(1);
}

.socials a img:hover {
    transform: scale(1.1);
}

/* About */
.about,
.skills,
.experience,
.projects,
.contact {
    padding: 4rem 2rem;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    flex-direction: row;
}

.about-image img {
    width: 300px;
    margin-right: 2rem;
    margin-top: 20%;
    max-width: 100%;
    border-radius: 12px;
}

.about-text {
    max-width: 600px;
    line-height: 1.8;
    font-size: 1rem;
    color: #ccc;
    flex: 1;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.about-list ul li {
    word-wrap: break-word;
    text-decoration: none;
    color: var(--primary-text);
}

.about-text span,
.about-text strong {
    color: var(--accent);
}

.about-text p {
    margin-bottom: 1.2rem;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2.2rem;
    justify-items: center;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    min-width: 0;
    /* prevent horizontal scroll */
}

.skill-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    width: 100%;
    max-width: 160px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.skill-card img {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.skill-card h3 {
    margin: 0;
    color: var(--primary-text);
    font-size: 1rem;
}

.skill-card:hover {
    transform: translateY(-8px);
    background-color: #222;
}

.skills h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Projects */
.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(250, 250, 250, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--primary-text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.project-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
}

#heading-project {
    text-align: center;
    font-size: 2rem;
}

.project-subheading {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-text);
    margin-top: -0.5rem;
}

.project-description {
    font-size: 0.95rem;
    color: var(--primary-text);
    line-height: 1.6;
}

.project-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 1rem;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #475569;
}

.project-meta strong {
    color: var(--accent);
}

.live-btn {
    background-color: var(--accent);
    color: #ffffff;
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(29, 78, 216, 0.2);
}

.live-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.25);
}

/* Contact */
.contact h2 {
    text-align: center;
    margin-bottom: 1.2rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

form:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

input,
textarea {
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #333;
    background-color: #1f1f1f;
    color: white;
    font-size: 1rem;
    transition: border 0.3s, background-color 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: #2a2a2a;
}

::placeholder {
    color: #aaa;
    transition: transform 0.2s ease, font-size 0.2s ease;
}

input:focus::placeholder,
textarea:focus::placeholder {
    transform: translateY(-10px);
    font-size: 0.85rem;
    opacity: 0.8;
}

button {
    padding: 1rem;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(127, 90, 240, 0.3);
}

button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(127, 90, 240, 0.45);
}

/* Footer */
.footer {
    width: 100%;
    background-color: var(--primary-bg);
    color: #d1d5db;
    padding: 1.5rem 1rem;
    text-align: center;
}

.footer-links {
    margin-bottom: 0.5rem;
}

.footer-links a {
    margin: 0 1rem;
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer p {
    margin-top: 2rem;
}

/* Additional Skills Styling */
.skill[data-skill]::after {
    content: attr(data-skill);
    display: block;
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {

    .project-cards {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-heading {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .project-description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
html {
  scroll-behavior: smooth;
}
    .live-btn {
        align-self: flex-start;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }


    nav {
        position: relative;
        flex-direction: column;
        align-items: flex-start;
    }

    .hamburger {
        display: flex;
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-90%);
    }

    .nav-links.active {
        display: flex;
    }

    .resume-btn {
        margin-top: 1rem;
        align-self: center;
    }


    .nav-links {
        position: absolute;
        top: 110%;
        right: 0;
        max-width: 100vw;
        width: 100%;
        height: max-content;
        padding: 1.5rem;
        background-color: var(--card-bg);
        display: none;
        z-index: 100;
        flex-direction: column;
        text-align: left;
        gap: 2rem;
        border-radius: 5px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .logo {
        margin-bottom: 1rem;
 
    }

    .hero-image img {
        display: none;
        max-width: 280px;
    }

    .about,
    .contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 3rem 1rem;
        text-align: center;
    }

    .about-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 0;
        text-align: center;
        gap: 2rem;
    }

    .about-text {
        text-align: start;
        margin-top: -2rem;
        color: var(--primary-text);
        max-width: 100%;
        padding: 0 1rem;
    }

    .about-text h2 {
        color: var(--accent);
    }

    .about-image img {
        width: 180px;
        margin-top: 0;
    }
    .tech-stack {
        display: flex;
        flex-wrap: wrap;
        justify-content: start;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .skills {
        margin: -4rem auto 0;
        text-align: center;
        width: 100%;
        max-width: 1200px;
        padding: 4rem 2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        /* two side-by-side on small screen */
        gap: 1.5rem;
        max-width: 100%;
        padding: 2rem 1rem;
    }


    .skill-card {
        max-width: 120px;
        /* slightly smaller cards */
        padding: 1rem;
    }

    .skill-card img {
        width: 40px;
        height: 40px;
    }

    .skill-card h3 {
        font-size: 0.85rem;
    }

    .skill-card:hover {
        transform: translateY(-5px);
    }

    .experience #heading-project {
        text-align: center;
        font-size: 2rem;
        padding: 1rem;
    }

    .project-cards {
        gap: 3rem;
    }

    form {
        width: 100%;
        padding: 1.5rem;
    }

    .footer {
        padding: 2rem 1rem;
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.8rem;
        margin-bottom: 1rem;
    }

    .footer-links a {
        margin: 0;
        font-size: 1rem;
    }

    .footer p {
        font-size: 0.9rem;
    }
}
@media (max-width:480px ){
    
    .skills {
        margin: -4rem auto 0;
        text-align: center;
        width: 100%;
        max-width: 1200px;
        padding: 4rem 2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 4fr);
        /* two side-by-side on small screen */
        gap: 1.5rem;
        max-width: 100%;
        padding: 2rem 1rem;
    }


    .skill-card {
        max-width: 120px;
        /* slightly smaller cards */
        padding: 1rem;
    }

    .skill-card img {
        width: 40px;
        height: 40px;
    }

    .skill-card h3 {
        font-size: 0.85rem;
    }

    .skill-card:hover {
        transform: translateY(-5px);
    }

    .experience #heading-project {
        text-align: center;
        font-size: 2rem;
        padding: 1rem;
    }



    nav {
        position: relative;
        flex-direction: column;
        align-items: flex-start;
    }

    .hamburger {
        display: flex;
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-90%);
    }

    .nav-links.active {
        display: flex;
    }

    .resume-btn {
        margin-top: 1rem;
        align-self: center;
    }

   .logo {
        margin-bottom: 1rem;
        /* color: red; */
       
    }

    .nav-links {
        position: absolute;
        top: 110%;
        right: 0;
        max-width: 100vw;
        width: 100%;
        height: max-content;
        padding: 1.5rem;
        background-color: var(--card-bg);
        display: none;
        z-index: 100;
        flex-direction: column;
        text-align: left;
        gap: 2rem;
        border-radius: 5px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

.intro h1{
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--primary-text);
}
.socials a img {
    width: 30px;
    height: 30px;
    margin-right: 1rem;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0) invert(1);
}

}