:root {
    --bg-color: #FAFAFA;
    --text-color: #111111;
    --color-primary: #0047FF; /* Electric Blue */
    --color-secondary: #E4FF00; /* Neon Yellow */
    --color-accent: #FF007F; /* Hot Pink */
    --color-cyan: #00E5FF;
    --font-main: 'Outfit', sans-serif;
    --border-radius: 24px;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
}

p {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 600px;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.pop-text {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.pop-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: var(--color-secondary);
    z-index: -1;
    transform: skewX(-15deg);
}

.pop-text-secondary {
    color: var(--color-accent);
}

.pop-highlight {
    background: linear-gradient(120deg, var(--color-secondary) 0%, var(--color-secondary) 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 88%;
}

/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
}

.logo span {
    color: var(--color-primary);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: left center;
}

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(1px, -1px);
}

.nav-toggle.open span:nth-child(2) {
    width: 0;
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(1px, 1px);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Buttons */
.btn-primary {
    background-color: var(--text-color);
    color: var(--bg-color) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid var(--text-color);
}

.btn-primary:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 71, 255, 0.3);
}

.btn-secondary {
    background-color: white;
    color: #111;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-secondary:hover {
    background-color: #111;
    color: white;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    padding-top: 5rem;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 450px;
    height: 450px;
    object-fit: cover;
    border-radius: 50%; /* Circle shape */
    z-index: 2;
    position: relative;
    border: 4px solid var(--text-color);
    box-shadow: 20px 20px 0px var(--color-primary);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-image:hover {
    transform: translate(-10px, -10px);
    box-shadow: 30px 30px 0px var(--color-accent);
}

.pop-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background-color: var(--color-secondary);
    top: -20px;
    right: -20px;
    mix-blend-mode: multiply;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background-color: var(--color-cyan);
    bottom: -30px;
    left: 20px;
    mix-blend-mode: multiply;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob 8s infinite alternate;
}

@keyframes blob {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    100% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

/* Work */
.work-section {
    padding: 8rem 5%;
    background-color: #fff;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.portfolio-card {
    background-color: var(--card-color);
    color: white;
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
    border: 2px solid var(--text-color);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at 100% 0%, rgba(255,255,255,0.2) 0%, transparent 50%);
}

.portfolio-card h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    position: relative;
    z-index: 2;
}

.portfolio-card p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    color: inherit;
    position: relative;
    z-index: 2;
}

.portfolio-card a {
    position: relative;
    z-index: 2;
    align-self: flex-start;
}

/* About */
.about-section {
    padding: 0 0 8rem 0;
    overflow: hidden;
}

.marquee-container {
    background-color: var(--color-primary);
    color: white;
    padding: 1.5rem 0;
    font-size: 2rem;
    font-weight: 900;
    display: flex;
    white-space: nowrap;
    overflow: hidden;
    transform: rotate(-2deg);
    margin: 4rem -2rem;
    width: 105vw;
    border-top: 3px solid var(--text-color);
    border-bottom: 3px solid var(--text-color);
}

.marquee-content {
    display: flex;
    animation: marquee 20s linear infinite;
}

.marquee-content span {
    margin-right: 2rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.about-content {
    padding: 4rem 5%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin: 0 auto;
    font-size: 1.5rem;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: white;
    padding: 8rem 5% 4rem 5%;
    text-align: center;
}

.mega-link {
    font-size: clamp(2.5rem, 6vw, 6rem);
    font-weight: 900;
    color: var(--color-secondary);
    text-decoration: none;
    display: block;
    margin: 3rem 0;
    transition: color 0.3s ease;
}

.mega-link:hover {
    color: var(--color-cyan);
}

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

.social-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
        gap: 2.5rem;
    }
    
    .hero-content p {
        margin: 0 auto 2rem auto;
    }
    
    .hero-image {
        width: 320px;
        height: 320px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1.25rem 6%;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(250, 250, 250, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 7rem 2.5rem 3rem 2.5rem;
        gap: 2.5rem;
        box-shadow: -10px 0 35px rgba(0,0,0,0.08);
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 100;
        border-left: 1px solid rgba(0, 0, 0, 0.05);
    }

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

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

    .nav-links a {
        font-size: 1.5rem;
        display: block;
        width: 100%;
    }

    .nav-links .btn-primary {
        display: inline-block;
        width: auto;
        font-size: 1.1rem;
        text-align: center;
        padding: 0.75rem 2rem;
    }
    
    .hero {
        padding-top: 7rem;
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-image {
        width: 260px;
        height: 260px;
        box-shadow: 12px 12px 0px var(--color-primary);
    }

    .hero-image:hover {
        transform: translate(-5px, -5px);
        box-shadow: 18px 18px 0px var(--color-accent);
    }

    .shape-1 {
        width: 180px;
        height: 180px;
        top: -10px;
        right: -10px;
    }

    .shape-2 {
        width: 130px;
        height: 130px;
        bottom: -15px;
        left: 10px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2.5rem;
    }

    .portfolio-card {
        padding: 2.5rem 1.5rem;
        min-height: 300px;
    }

    .portfolio-card h3 {
        font-size: 1.75rem;
    }

    .about-section {
        padding-bottom: 5rem;
    }
    
    .marquee-container {
        font-size: 1.5rem;
        margin: 3rem 0;
        width: 120%;
        margin-left: -10%;
        padding: 1rem 0;
    }

    .about-content {
        padding: 2rem 6%;
    }

    .about-content h2 {
        font-size: 2.2rem;
    }

    .about-content p {
        font-size: 1.25rem;
    }

    .resume-section {
        padding: 5rem 6%;
    }

    .resume-container {
        gap: 3rem;
    }

    .timeline {
        margin-left: 0.5rem;
        padding-left: 1.5rem;
    }

    .timeline-item {
        padding: 1.25rem;
        margin-bottom: 2rem;
    }

    .timeline-item::before {
        left: -26px;
        top: 24px;
        width: 14px;
        height: 14px;
    }

    .timeline-item h4 {
        font-size: 1.3rem;
    }

    .mega-link {
        font-size: clamp(1.1rem, 5.5vw, 2.2rem);
        word-break: break-all;
        overflow-wrap: break-word;
        margin: 2rem 0;
    }

    footer {
        padding: 5rem 6% 3rem 6%;
    }

    footer h2 {
        font-size: 2rem;
    }

    /* Floating bubbles mobile layout */
    .floating-bubbles {
        flex-direction: row;
        bottom: 1.25rem;
        right: 50%;
        transform: translateX(50%);
        gap: 0.75rem;
        width: max-content;
    }

    .bubble {
        max-width: 48px;
        width: 48px;
        height: 48px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .bubble:hover {
        max-width: 48px;
        padding: 0;
        transform: translateY(-3px);
    }

    .bubble-text {
        display: none !important;
        opacity: 0 !important;
    }
}

/* Resume Section */
.resume-section {
    padding: 8rem 5%;
    background-color: var(--bg-color);
}

.resume-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline {
    border-left: 2px solid rgba(0,0,0,0.1);
    padding-left: 2rem;
    margin-left: 1rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
}

.timeline-item:hover {
    transform: translateY(-5px) translateX(5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.06);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px; /* Adjusting for padding-left of the timeline container */
    top: 28px; /* Aligning with the first line of text */
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--color-primary);
    border: 3px solid var(--bg-color);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.4s ease, border-color 0.4s ease;
    z-index: 2;
}

.timeline-item:hover::before {
    transform: scale(1.5);
    background-color: var(--color-accent);
    border-color: #fff;
}

.timeline-item h4 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.timeline-date {
    font-size: 1rem;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: 1.1rem;
    opacity: 0.8;
}

.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    width: 100%;
    padding: 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.skill-bar {
    width: 100%;
    height: 12px;
    background-color: rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (max-width: 768px) {
    .resume-container {
        grid-template-columns: 1fr;
    }
}

/* Floating Bubbles */
.floating-bubbles {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.bubble {
    display: flex;
    align-items: center;
    background-color: var(--text-color);
    color: white;
    border-radius: 50px;
    padding: 0 13px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    max-width: 50px;
    height: 50px;
    box-sizing: border-box;
    white-space: nowrap;
}

.bubble:hover {
    max-width: 400px;
    padding: 0 24px;
}

.bubble-icon {
    font-size: 1.2rem;
    min-width: 24px;
    text-align: center;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bubble-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.bubble-text {
    font-weight: 700;
    margin-left: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.bubble:hover .bubble-text {
    opacity: 1;
    transition-delay: 0.1s;
}

/* Pop colors */
.bubble-email { background-color: var(--color-primary); }
.bubble-wa { background-color: var(--color-secondary); color: #111; }
.bubble-ig { background-color: var(--color-accent); }

.bubble-wa:hover { box-shadow: 0 10px 25px rgba(228, 255, 0, 0.4); }
.bubble-email:hover { box-shadow: 0 10px 25px rgba(0, 71, 255, 0.4); }
.bubble-ig:hover { box-shadow: 0 10px 25px rgba(255, 0, 127, 0.4); }

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