/* =============================================
   DESIGN TOKENS
============================================= */
:root {
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --primary-glow: rgba(124, 58, 237, 0.35);
    --accent: #06b6d4;
    --accent-glow: rgba(6, 182, 212, 0.25);
    --bg-dark: #07070f;
    --bg-1: #0d0d1a;
    --bg-2: #11111e;
    --bg-card: rgba(255, 255, 255, 0.04);
    --text-main: #f1f0ff;
    --text-muted: #9090b0;
    --text-dim: #5a5a7a;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(124, 58, 237, 0.5);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
    --radius-sm: 0.75rem;
    --radius-md: 1.25rem;
    --radius-lg: 2rem;
}

/* =============================================
   RESET & BASE
============================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(6, 182, 212, 0.07), transparent);
    background-attachment: fixed;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.15;
}

a {
    text-decoration: none;
}

img {
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 110px 0;
}

.bg-alt {
    background-color: var(--bg-2);
}

/* =============================================
   SCROLLBAR
============================================= */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 99px;
}

/* =============================================
   NAVBAR
============================================= */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(7, 7, 15, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    color: var(--text-main);
    letter-spacing: 2px;
    font-weight: 800;
}

.logo span {
    color: var(--primary-light);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 99px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile Menu Button */
.menu-btn {
    display: none;
    cursor: pointer;
    width: 28px;
    gap: 6px;
    flex-direction: column;
}

.bar {
    width: 100%;
    height: 2px;
    background: var(--text-main);
    border-radius: 99px;
    transition: var(--transition);
}

/* =============================================
   HERO SECTION
============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

/* Decorative blobs */
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: blobFloat 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: blobFloat 10s ease-in-out infinite reverse;
}

@keyframes blobFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, 20px) scale(1.05);
    }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Badge pill */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.1rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.1));
    color: var(--primary-light);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.badge::before {
    content: '';
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero h1 span {
    display: block;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero>.container>.hero-content>p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 460px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #5b21b6);
    color: #fff;
    box-shadow: 0 4px 20px var(--primary-glow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Hero image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image .img-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
}

.hero-image .img-wrapper::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: calc(var(--radius-lg) + 4px);
    z-index: 0;
    opacity: 0.6;
    filter: blur(2px);
}

.hero-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255, 255, 255, 0.08);
}

/* =============================================
   SECTION TITLES
============================================= */
.section-title {
    font-size: 2.4rem;
    margin-bottom: 3.5rem;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 45px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 99px;
}

/* =============================================
   ABOUT SECTION
============================================= */
.about-content {
    max-width: 750px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 2rem;
}

.personal-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
}

.info-item {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item span {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =============================================
   SKILLS SECTION
============================================= */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    transition: var(--transition);
}

.skill-category:hover {
    border-color: var(--glass-border-hover);
    background: rgba(124, 58, 237, 0.06);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tags span {
    background: rgba(124, 58, 237, 0.1);
    padding: 0.45rem 1rem;
    border-radius: 99px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    font-size: 0.85rem;
    color: var(--text-main);
    transition: var(--transition);
    cursor: default;
}

.tags span:hover {
    background: linear-gradient(135deg, var(--primary), #5b21b6);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* =============================================
   EXPERIENCE / TIMELINE
============================================= */
.timeline {
    position: relative;
    max-width: 820px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    height: calc(100% - 4px);
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--accent), transparent);
}

.timeline-item {
    margin-bottom: 2.5rem;
    padding-left: 3.5rem;
    position: relative;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15), 0 0 15px var(--primary-glow);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 2rem 2.5rem;
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--glass-border-hover);
    background: rgba(124, 58, 237, 0.05);
    transform: translateX(6px);
}

.timeline-date {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: var(--text-main);
}

.company {
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.timeline-content ul {
    list-style: none;
    color: var(--text-muted);
}

.timeline-content li {
    margin-bottom: 0.6rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.timeline-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-light);
}

/* =============================================
   PORTFOLIO / PROJECT CARDS
============================================= */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.project-card.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: block;
    color: inherit;
    position: relative;
}

.project-card.glass::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(6, 182, 212, 0.03));
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.project-card.glass:hover::before {
    opacity: 1;
}

.project-card.glass:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border-hover);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px var(--primary-glow);
}

.project-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card.glass:hover .project-img img {
    transform: scale(1.08);
}

.project-img.logo-mode {
    background: linear-gradient(135deg, #fff, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
}

.logo-img {
    width: 70% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.project-info {
    padding: 1.8rem 2rem;
    position: relative;
    z-index: 1;
}

.project-info h3 {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    color: var(--text-main);
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.project-tags span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-light);
    font-weight: 700;
    background: rgba(124, 58, 237, 0.12);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

/* =============================================
   GALLERY SECTION
============================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
    grid-auto-flow: dense;
    gap: 1.25rem;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), transparent 60%);
    opacity: 0;
    z-index: 1;
    transition: var(--transition);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.gallery-item:hover img {
    transform: scale(1.07);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(transparent, rgba(7, 7, 15, 0.92));
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

/* =============================================
   FOOTER
============================================= */
footer {
    padding: 80px 0 30px;
    border-top: 1px solid var(--glass-border);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-about p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 280px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h3,
.footer-social h3 {
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-light);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 6px;
}

.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 99px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
}

.social-icons a:hover {
    background: linear-gradient(135deg, var(--primary), #5b21b6);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-size: 0.88rem;
}

/* =============================================
   MOBILE RESPONSIVE
============================================= */
@media (max-width: 991px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero>.container>.hero-content>p {
        max-width: 100%;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-image .img-wrapper {
        max-width: 300px;
        margin: 0 auto;
    }

    .hero {
        padding: 130px 0 80px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .skills-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item.wide {
        grid-column: span 2;
    }

    .about-content {
        padding: 2rem;
    }

    .personal-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 200px;
    }

    .gallery-item.tall {
        grid-row: span 1;
    }

    .gallery-item.wide {
        grid-column: span 2;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }

    .gallery-item.tall,
    .gallery-item.wide {
        grid-row: span 1;
        grid-column: span 1;
    }

    .hero-image .img-wrapper {
        max-width: 260px;
    }
}