/* BASE STYLES & VARIABLES */
:root {
    --bg-dark: #07090f;
    --text-main: #f0f2f5;
    --text-muted: #94a3ba;
    --accent-1: #6366f1;
    /* Indigo */
    --accent-2: #a855f7;
    /* Purple */
    --accent-3: #ec4899;
    /* Pink */

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* BACKGROUND EFFECTS */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    animation: float 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 40vw;
    height: 40vw;
    background: var(--accent-1);
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 35vw;
    height: 35vw;
    background: var(--accent-2);
    bottom: -10%;
    right: -5%;
    animation-delay: -5s;
}

.orb-3 {
    width: 30vw;
    height: 30vw;
    background: var(--accent-3);
    top: 30%;
    left: 40%;
    animation-delay: -10s;
    opacity: 0.2;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(5%, 10%) scale(1.1);
    }
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-main) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818cf8;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* LAYOUT & COMPONENTS */
.container,
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.line-accent {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
    margin: 0 auto;
    border-radius: 2px;
}

/* GLASSMORPHISM */

.glass-card,
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
}

/* BUTTONS */
.btn-primary,
.btn-secondary,
.btn-primary-small {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary-small {
    padding: 0.6rem 1.2rem;
    background: var(--text-main);
    color: var(--bg-dark);
    border-radius: 8px;
}

.btn-primary-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #fff;
    border: none;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: var(--glass-highlight);
    border-color: rgba(255, 255, 255, 0.3);
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h2 {
    color: #fff;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.hero-image-wrapper {
    position: relative;
    padding: 1rem;
    aspect-ratio: 4/5;
    border-radius: 32px;
    overflow: hidden;
    transform: rotate(2deg);
    transition: var(--transition);
}

.hero-image-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    filter: contrast(1.1) saturate(1.1);
}

.image-overlay-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(7, 9, 15, 0.8) 0%, transparent 40%);
    border-radius: 20px;
    pointer-events: none;
}

/* GRID LAYOUTS */
.grid {
    display: grid;
    gap: 2rem;
}

.layout-3-col {
    grid-template-columns: repeat(3, 1fr);
}

.layout-2-col {
    grid-template-columns: repeat(2, 1fr);
}

/* VALUE CARDS */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-2);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* PORTFOLIO CARDS */
.portfolio-card {
    text-decoration: none;
    color: inherit;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-radius: 24px;
    transition: var(--transition);
}

.card-image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #111;
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.portfolio-card:hover .thumbnail-img {
    transform: scale(1.08);
}

.preview-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.portfolio-card:hover .preview-badge {
    opacity: 1;
    transform: translateY(0);
}

.project-tags {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.project-tags span {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--text-muted);
}

.explore-link {
    font-weight: 600;
    color: var(--accent-1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.explore-link i {
    transition: var(--transition);
}

.portfolio-card:hover .explore-link i {
    transform: translateX(5px);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* SKILLS SECTION */
.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 4rem;
}

.stack-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.skill-category {
    margin-bottom: 2.5rem;
}

.skill-category h4 {
    margin-bottom: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

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

.tags span {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition);
    cursor: default;
}

.tags span:hover {
    background: var(--glass-highlight);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.tool-tags span {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
    color: #c7d2fe;
}

.stack-tags span {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.2);
    color: #fbcfe8;
}

/* TIMELINE */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    padding: 2rem;
    margin-left: 60px;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -46px;
    /* 60 - 20(line pos) = 40. dot offset to center on line */
    top: 30px;
    width: 14px;
    height: 14px;
    background: var(--accent-2);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-2);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent-1);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* FOOTER */
.glass-footer {
    background: rgba(7, 9, 15, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 6rem 0 2rem;
    margin-top: 4rem;
}

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

.footer-info {
    text-align: center;
    margin-bottom: 4rem;
}

.footer-info h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.footer-info p {
    margin-bottom: 2.5rem;
    color: #fff;
    font-size: 1.1rem;
}

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

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.contact-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.contact-pill i {
    color: var(--accent-1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ANIMATIONS & RESPONSIVE */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image-wrapper {
        width: 80%;
        margin: 0 auto;
    }

    .layout-3-col {
        grid-template-columns: 1fr;
    }

    .stack-layout {
        grid-template-columns: 1fr;
    }

    .stack-text {
        text-align: center;
    }

    .nav-links {
        display: none;
    }

    /* Simplified mobile nav for demo */
}

@media (max-width: 600px) {
    .layout-2-col {
        grid-template-columns: 1fr;
    }

    .glass-container {
        padding: 2rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding-top: 8rem;
    }
}