/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;800&family=Roboto:wght@400;500;700&display=swap');

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed navbar */
}

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

:root {
    --bg-primary: #00040e;
    --star-soft: #93C5FD;
    --star-bright: #38BDF8;
    --btn-primary: #3B82F6;
    --btn-hover: #1E3A8A;
    --text-primary: #d9e7f6;
    --text-accent: #a3ceff;
    --neon-glow: rgba(1, 30, 74, 0.6);
    --gradient: linear-gradient(135deg, #1E3A8A, #3B82F6);
}

/* Base Typography */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Headings, Nav & Buttons */
h1, h2, h3, h4,
.hero-title, .section-title,
.nav-links a, .btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* Particles Background */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    backdrop-filter: blur(20px);
    background: transparent;          /* ← was black */
    border-bottom: 1px solid rgba(0, 9, 20, 0.1);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

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

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

/* Highlighted nav link */
.nav-links a.active {

  border-bottom: 2px solid #38BDF8;
}


.icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.nav-links a:hover .icon {
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    margin-top: -10%;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--text-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
        font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: var(--text-accent);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.8;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
    z-index: 1000;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
        z-index: 1000;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

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

.btn-secondary:hover {
    background: var(--text-accent);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* Sections */
section {
    position: relative;
    z-index: 1;
    padding: 6rem 0;
    scroll-margin-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: #F8FAFC;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-section {
    background-color: #0F172A;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.profile-img {
    width: 100%;
    max-width: 300px;
    border-radius: 20px;
    filter: grayscale(20%);
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.profile-img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.about-text {
    text-align: justify;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.8;
    opacity: 0.9;
}

.highlight {
    color: var(--text-accent);
    font-weight: 600;
}

/* Experience Section */

.exp-grid {
    display: flex;              /* switch to flex layout */
    flex-wrap: wrap;            /* allow wrapping */
    justify-content: center;    /* center items horizontally */
    gap: 2rem;                  /* spacing between cards */
    margin-top: 3rem;
}


.exp-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(147, 197, 253, 0.1);
    transition: all 0.3s ease;
    position: relative;
    width: 380px;
    text-align:left;
}

.exp-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.3);
}

.exp-content {
    padding: 1.5rem;
}

.exp-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.exp-description {
    font-weight: 400;
    opacity: 0.8;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Skills Section */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center items horizontally */
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(147, 197, 253, 0.1);
    transition: all 0.3s ease;
    width: 320px; /* Fixed width for clean alignment */
    text-align: center; /* Optional: centers content inside */
    justify-content: center;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
    border-color: rgba(147, 197, 253, 0.3);
}


.skill-category h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--text-accent);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: rgba(59, 130, 246, 0.2);
    color: var(--text-accent);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Projects Section */
.projects-grid {
    display: flex;              /* switch to flex layout */
    flex-wrap: wrap;            /* allow wrapping */
    justify-content: center;    /* center items horizontally */
    gap: 2rem;                  /* spacing between cards */
    margin-top: 3rem;
}


.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(147, 197, 253, 0.1);
    transition: all 0.3s ease;
    position: relative;
    width: 350px;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.3);
}

.project-image {
    height: 200px;
    background: var(--gradient);
    position: flex;
    justify-content: center;
    overflow: hidden;
}

.project-image img {
    width: 100%;                 /* fill container width */
    height: 100%;                /* fill container height */
    object-fit: cover;           /* crop/scale to cover without distortion */
    object-position: center;     /* center the focal point */
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-description {
    font-weight: 400;
    opacity: 0.8;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: rgba(59, 130, 246, 0.2);
    color: var(--text-accent);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    color: var(--text-accent);
    text-decoration: none;
    font-weight: 500;
}

.project-links a:hover {
    color: var(--text-primary);
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-accent);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-accent);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.social-link:hover {
    background: var(--btn-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient);
    z-index: 1001;
    transition: width 0.1s ease;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
        justify-content: center;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}
