/* BASE STYLES & VARIABLES */
:root {
    --bg-color: #0A0A0A;
    --text-primary: #F4F4F5;
    --text-secondary: #A1A1AA;
    --accent-pink: #FF477E;
    --accent-yellow: #FFD166;
    --accent-mint: #06D6A0;
    --accent-orange: #F77F00;
    --accent-blue: #3A86FF;
    --accent-purple: #8338EC;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* GRID BACKGROUND */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    pointer-events: none;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* LAYOUT & SECTIONS */
main {
    padding: 0 5%;
}

.section {
    padding: 6rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    border-bottom: 2px solid var(--text-primary);
    margin-bottom: 3rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* HERO SECTION */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 5rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -2px;
    margin-bottom: 2rem;
    padding-top: 3rem;
    white-space: nowrap;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.hero-sub .bio {
    margin-bottom: 1rem;
    font-weight: 500;
}

/* HERO TAGS (Modern Pills) */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2.5rem;
    max-width: 700px;
}

.hero-tag {
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: default;
    user-select: none;
}

.hero-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--accent-mint);
    transform: translateY(-2px);
}

@keyframes float {
    0% {
        margin-top: 0px;
    }

    50% {
        margin-top: -15px;
    }

    100% {
        margin-top: 0px;
    }
}

/* ABOUT SECTION */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.edu-item {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--card-border);
}

.edu-item .institution {
    color: var(--text-secondary);
    font-weight: 500;
}

.edu-item .meta {
    font-size: 0.85rem;
    color: var(--accent-pink);
    margin-top: 0.5rem;
    font-weight: 600;
}

/* SKILLS MARQUEE */
.marquee-section {
    padding: 3rem 0;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    background: var(--accent-mint);
    color: var(--bg-color);
    max-width: 100%;
}

.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    display: flex;
}

.marquee {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 2rem;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    animation: scroll 20s linear infinite;
    padding-right: 2rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* EXPERIENCE TIMELINE */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
}

.timeline-date {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-yellow);
    font-size: 1.2rem;
}

.timeline-content h4 {
    font-family: var(--font-sans);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style-position: outside;
    margin-left: 1rem;
    color: var(--text-secondary);
    text-align: justify;
    line-height: 1.6;
}

.timeline-content li {
    margin-bottom: 0.5rem;
}

/* PROJECTS GRID */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-mint);
}

.project-card:nth-child(2)::before {
    background: var(--accent-orange);
}

.project-card:nth-child(3)::before {
    background: var(--accent-pink);
}

.project-card:nth-child(4)::before {
    background: var(--accent-blue);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-header h3 {
    font-size: 2rem;
}

.icon-link {
    font-size: 1.8rem;
    color: var(--text-primary);
}

.icon-link:hover {
    color: var(--accent-pink);
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.project-subtitle {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.project-body {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.project-body ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
    text-align: justify;
    line-height: 1.6;
}

.project-body li {
    margin-bottom: 0.5rem;
}

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

.project-tags span {
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
}

/* CERTIFICATIONS GRID */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.cert-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-mint);
}

.cert-icon {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.brand-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: invert(1);
    opacity: 0.9;
}

.cert-info h3 {
    font-size: 1.1rem;
}

.cert-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cert-info .credential {
    margin-top: 0.3rem;
    font-family: monospace;
    color: var(--accent-yellow);
}

/* CONTACT SECTION */
.contact-section {
    text-align: center;
}

.contact-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(255, 71, 126, 0.1) 0%, rgba(255, 209, 102, 0.1) 100%);
}

.contact-box h2 {
    margin-bottom: 1rem;
    border: none;
}

.contact-box p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.about-text {
    display: block;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

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

.profile-pic-container {
    float: left;
    margin-right: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-mint);
    box-shadow: 0 0 20px rgba(6, 214, 160, 0.2);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-item {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item:hover {
    color: var(--accent-mint);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    font-size: 2rem;
    color: var(--text-primary);
    background: var(--card-bg);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-orange);
    color: var(--bg-color);
    transform: translateY(-5px);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--card-border);
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
    .hero-section {
        padding-top: 100px;
        gap: 2rem;
    }

    .profile-pic-container {
        float: none;
        display: flex;
        justify-content: center;
        margin-right: 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .hero-title {
        font-size: clamp(3rem, 12vw, 5rem);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70vw;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
        border-left: 1px solid var(--card-border);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .sticker {
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
    }

    .hero-section {
        align-items: center;
        text-align: center;
    }

    .sticker {
        display: none;
        /* Hide stickers on mobile to avoid overlapping issues */
    }
}