/* Global Styles */
:root {
    --bg-color: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --primary-color: #8b5cf6;
    --secondary-color: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --font-main: 'Outfit', sans-serif;
    --border-radius: 16px;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

/* Typography specifics */
.text-center {
    text-align: center;
}

.highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
.header {
    position: fixed;
    top: -5px;
    /* User requested tweak */
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background: transparent;
    /* Start transparent */
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    transition: all 0.4s ease;
    /* Smooth transition for all props */
}

/* Glassmorphic Scrolled State */
.header.scrolled {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 5%;
    /* Slight shrink for desktop too */
}

.header.hidden {
    transform: translateY(-100%);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    color: var(--secondary-color);
    font-size: 2rem;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

/* Nav Link Styling */
.nav-link {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* Space between icon and text */
}

.nav-link i {
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-color);
}

.nav-link:hover i,
.nav-link.active i {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Sliding Underline Animation */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth easing */
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Button */
.menu-btn {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1002;
    transition: var(--transition);
    margin-top: auto;
    /* User requested tweak */
}

.menu-btn__burger,
.menu-btn__burger::before,
.menu-btn__burger::after {
    width: 30px;
    height: 3px;
    background: var(--text-color);
    position: absolute;
    border-radius: 5px;
    transition: all 0.5s ease-in-out;
}

.menu-btn__burger::before {
    content: '';
    transform: translateY(-8px);
}

.menu-btn__burger::after {
    content: '';
    transform: translateY(8px);
}

/* Hamburger Animation */
.menu-btn.open .menu-btn__burger {
    transform: translateX(-50px);
    background: transparent;
    box-shadow: none;
}

.menu-btn.open .menu-btn__burger::before {
    transform: rotate(45deg) translate(35px, -35px);
}

.menu-btn.open .menu-btn__burger::after {
    transform: rotate(-45deg) translate(35px, 35px);
}


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    filter: blur(150px);
    opacity: 0.2;
    border-radius: 50%;
    z-index: -1;
}

/* Hero Shapes */
.shape {
    position: absolute;
    filter: blur(50px);
    z-index: -1;
    animation: float-shape 10s infinite linear;
    opacity: 0.6;
}

.shape-1 {
    top: -20px;
    left: -20px;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-duration: 15s;
}

.shape-2 {
    bottom: 50px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation-duration: 12s;
    animation-direction: reverse;
}

.shape-3 {
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    /* Triangle */
    transform: translate(-50%, -50%);
    animation-duration: 20s;
}

@keyframes float-shape {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -50px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}


.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.greeting {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.scramble-text {
    opacity: 0;
}

.scramble-text.active {
    opacity: 1;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.hero-interactions {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* Coffee Chip Styles */
.coffee-chip {
    position: relative;
    display: flex;
    align-items: center;
}

.chip-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.chip-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    animation: coffee-shimmer 3s infinite;
}

.chip-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
}

.chip-link:hover {
    transform: translateY(-3px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.chip-tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 23, 42, 0.9);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.coffee-chip:hover .chip-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Separated Social Icons */
.social-dock {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
}

.dock-item {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dock-item:hover {
    transform: translateY(-8px) scale(1.1);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Brand specific glows */
.dock-item[data-label="Facebook"]:hover {
    background: #1877F2;
    box-shadow: 0 0 15px rgba(24, 119, 242, 0.6);
}

.dock-item[data-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 0 15px rgba(220, 39, 67, 0.6);
}

.dock-item[data-label="Github"]:hover {
    background: #333;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.dock-item[data-label="Pinterest"]:hover {
    background: #BD081C;
    box-shadow: 0 0 15px rgba(189, 8, 28, 0.6);
}

.dock-item::after {
    content: attr(data-label);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--card-bg);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dock-item:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@keyframes coffee-shimmer {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
        box-shadow: 0 0 15px var(--secondary-color);
    }
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    z-index: -1;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-3px);
}

.hero-img-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-blob {
    position: absolute;
    width: 450px;
    height: 450px;
    background: var(--accent-gradient);
    filter: blur(0);
    opacity: 1;
    /* Static Dynamic Triangle */
    border-radius: 45% 55% 40% 60% / 60% 30% 70% 40%;
    z-index: -1;
}

.hero-img {
    width: 90%;
    /* Increase width slightly for pop-out */
    max-width: 500px;
    height: auto;
    border-radius: 0;
    /* Remove border radius to avoid clipping head */
    transform: rotate(0) translateY(-30px);
    /* Move up for pop-out */
    transition: var(--transition);
    filter: drop-shadow(-6px 4px 25px rgba(0, 0, 100, 0.4));

    /* Mask bottom to blend into shape - curved transition to match blob */
    -webkit-mask-image: radial-gradient(130% 100% at 50% 0%, black 80%, transparent 100%);
    mask-image: radial-gradient(130% 100% at 50% 0%, black 80%, transparent 100%);
}

.hero-img:hover {
    transform: scale(1.05) translateY(-35px);
}



/* Glassmorphism Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img {
    border-radius: var(--border-radius);
}

.section-subtitle {
    color: var(--primary-color);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-card {
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.skill-card:hover .skill-name i {
    transform: scale(1.2) rotate(10deg);
    color: var(--white);
    text-shadow: 0 0 15px var(--secondary-color);
}

.skill-card:hover .skill-percent {
    color: var(--white);
    transform: scale(1.1);
}

.skill-percent {
    transition: var(--transition);
}

.skill-name i {
    transition: var(--transition);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 600;
}

.skill-name i {
    margin-right: 10px;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 50px;
    width: 0;
    /* Animated with JS */
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.5, 1);
}

.skill-progress.js-loading-bar {
    transition: none;
    position: relative;
    overflow: hidden;
}

.skill-progress.js-loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 3rem auto 0;
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-gradient);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    position: relative;
}

/* Footer socials removed as requested */

/* Responsive */
@media (max-width: 992px) {
    .header {
        padding: 0.8rem 5%;
        /* Compact header for mobile */
        align-items: center;
        /* Ensure vertical alignment */
    }

    .logo {
        font-size: 1.3rem;
        /* Smaller logo */
    }

    .logo span {
        font-size: 1.8rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero {
        padding-top: 110px;
        /* Reduced spacing from 150px */
        /* Increase spacing for mobile header */
    }

    .hero-content {
        order: 2;
    }

    .hero-img-wrapper {
        order: 1;
    }

    .hero-desc {
        margin: 0 auto 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-socials {
        justify-content: center;
    }

    .hero-interactions {
        justify-content: center;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .hero-blob {
        width: 350px;
        height: 350px;
    }

    .hero-img {
        max-width: 380px;
        transform: translateY(-20px);
    }

    .about-img-wrapper {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
        z-index: 1001;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-blob {
        width: 280px;
        height: 280px;
    }

    .hero-img {
        max-width: 300px;
        transform: translateY(-15px);
    }

    .hero-interactions {
        flex-direction: column;
        gap: 1.5rem;
    }

    .social-dock {
        padding: 0;
        gap: 1.2rem;
    }

    .dock-item {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-img {
        max-width: 250px;
    }

    .hero-blob {
        width: 240px;
        height: 240px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Projects/Portfolio Page Styles */
.section-header-left {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-header-left::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 3px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    overflow: hidden;
    /* Ensure image border radius is respected */
    padding: 0;
    /* Override glass-card padding for image */
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.project-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

.project-placeholder.accent-gradient {
    background: var(--accent-gradient);
}

.project-placeholder.secondary-gradient {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2ecc71 100%);
}

.project-placeholder.coupon-gradient {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--secondary-color);
    gap: 0.8rem;
}

/* Scramble Text Dud Styling */
.dud {
    color: var(--text-muted);
    opacity: 0.7;
}

.revealed-char {
    animation: revealChar 0.3s forwards;
    display: inline-block;
}

@keyframes revealChar {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typing Cursor */
.typing-cursor {
    display: inline-block;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}
