/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    /* Catppuccin Mocha inspired colors with pinkish accent */
    --ctp-base: #2a2a3e;
    --ctp-mantle: #232337;
    --ctp-crust: #1e1e2e;
    --ctp-surface0: #3e4058;
    --ctp-surface1: #4a4d6a;
    --ctp-surface2: #565b7a;
    --ctp-overlay0: #6c7086;
    --ctp-overlay1: #7f849c;
    --ctp-overlay2: #9399b2;
    --ctp-subtext0: #a6adc8;
    --ctp-subtext1: #bac2de;
    --ctp-card: #23233c;
    --ctp-text: #e0e6ff;
    
    /* Pink accent colors instead of green */
    --ctp-pink: #f5a9b8;
    --ctp-pink-dark: #e88fa3;
    --ctp-pink-rgb: 245, 169, 184;
    
    /* Legacy variables for compatibility */
    --text-dark: var(--ctp-text);
    --text-medium: var(--ctp-subtext1);
    --text-light: var(--ctp-subtext0);
    --card-bg: var(--ctp-surface0);
    --card-shadow: rgba(0, 0, 0, 0.25);
    --paper-shadow: rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Inter', 'DM Sans', 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--ctp-text);
    background-color: var(--ctp-base);
    position: relative;
}

/* Paper texture overlay - now subtle dark theme pattern with pink */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(245, 169, 184, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(245, 169, 184, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 40% 90%, rgba(245, 169, 184, 0.02) 1px, transparent 1px);
    background-size: 60px 60px, 80px 80px, 40px 40px;
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Space Grotesk', 'DM Sans', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--ctp-subtext1);
    font-size: 1.1rem;
    font-family: 'Inter', 'DM Sans', sans-serif;
    font-weight: 400;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--ctp-surface0);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-family: 'Inter', 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ctp-pink);
    text-decoration: none;
    display: inline-block;
}

.wave-text {
    display: inline-block;
}

.wave-text span {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
    -webkit-animation: wave 2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
    -webkit-animation-delay: calc(var(--i) * 0.1s);
    transform-origin: center bottom;
    -webkit-transform-origin: center bottom;
    /* Chrome fallback */
    animation-fill-mode: both;
    -webkit-animation-fill-mode: both;
}

@keyframes wave {
    0%, 40%, 100% {
        transform: translateY(0);
        -webkit-transform: translateY(0);
    }
    20% {
        transform: translateY(-10px);
        -webkit-transform: translateY(-10px);
    }
}

@-webkit-keyframes wave {
    0%, 40%, 100% {
        transform: translateY(0);
        -webkit-transform: translateY(0);
    }
    20% {
        transform: translateY(-10px);
        -webkit-transform: translateY(-10px);
    }
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--ctp-subtext1);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--ctp-pink);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--ctp-pink);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--ctp-pink);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--ctp-text);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    background: var(--ctp-base);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Remove bubbles and replace with fun shapes */
.bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: rgba(245, 169, 184, 0.1);
    border-radius: 50%;
    opacity: 0.7;
    animation: bubbleRise 15s infinite linear;
    border: 1px solid rgba(245, 169, 184, 0.2);
}

.bubble:nth-child(1) {
    left: 10%;
    width: 40px;
    height: 40px;
    animation-delay: 0s;
    animation-duration: 15s;
}

.bubble:nth-child(2) {
    left: 20%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.bubble:nth-child(3) {
    left: 25%;
    width: 50px;
    height: 50px;
    animation-delay: 4s;
    animation-duration: 18s;
}

.bubble:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 20s;
}

.bubble:nth-child(5) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 1s;
    animation-duration: 14s;
}

.bubble:nth-child(6) {
    left: 80%;
    width: 30px;
    height: 30px;
    animation-delay: 3s;
    animation-duration: 16s;
}

.bubble:nth-child(7) {
    left: 32%;
    width: 25px;
    height: 25px;
    animation-delay: 7s;
    animation-duration: 13s;
}

.bubble:nth-child(8) {
    left: 55%;
    width: 35px;
    height: 35px;
    animation-delay: 5s;
    animation-duration: 17s;
}

.bubble:nth-child(9) {
    left: 65%;
    width: 45px;
    height: 45px;
    animation-delay: 2s;
    animation-duration: 19s;
}

.bubble:nth-child(10) {
    left: 90%;
    width: 28px;
    height: 28px;
    animation-delay: 6s;
    animation-duration: 11s;
}

@keyframes bubbleRise {
    0% {
        bottom: -100px;
        transform: translateX(0);
    }
    50% {
        transform: translateX(100px);
    }
    100% {
        bottom: 110vh;
        transform: translateX(-100px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    margin-bottom: 1.5rem;
    color: var(--ctp-text);
}

.highlight {
    color: var(--ctp-pink);
    position: relative;
    display: inline-block;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    color: var(--ctp-subtext1);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--ctp-pink);
    color: var(--ctp-crust);
    box-shadow: 0 4px 15px rgba(245, 169, 184, 0.3);
}

.btn-primary:hover {
    background: var(--ctp-pink-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 169, 184, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--ctp-pink);
    border: 2px solid var(--ctp-pink);
}

.btn-secondary:hover {
    background: rgba(245, 169, 184, 0.1);
    transform: translateY(-2px);
}

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

.section-title {
    color: var(--ctp-text);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--ctp-subtext1);
    font-size: 1.1rem;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--ctp-mantle);
    position: relative;
    overflow: hidden;
}

.about-finisher-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.about-content {
    display: grid;
    gap: 3rem;
    align-items: start;
}

.about-text {
    max-width: 100%;
}

.about-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

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

.skill-category {
    background: var(--ctp-card);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--card-shadow);
    border: 1px solid var(--ctp-surface0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(245, 169, 184, 0.2);
}

.skill-category h3 {
    color: var(--ctp-pink);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    color: var(--ctp-subtext1);
    position: relative;
    padding-left: 1.5rem;
}

.skill-category li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--ctp-pink);
    font-weight: bold;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background: var(--ctp-base);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--ctp-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--ctp-surface0);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(245, 169, 184, 0.2);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--ctp-surface0) 0%, var(--ctp-surface1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid var(--ctp-pink);
}

.project-placeholder {
    font-size: 3rem;
    opacity: 0.8;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    color: var(--ctp-text);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.project-description {
    color: var(--ctp-subtext1);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: rgba(245, 169, 184, 0.2);
    color: var(--ctp-pink);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(245, 169, 184, 0.3);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--ctp-pink);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.project-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--ctp-pink);
    transition: width 0.3s ease;
}

.project-link:hover::after {
    width: 100%;
}

.project-link:hover {
    color: var(--ctp-pink-dark);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--ctp-mantle);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    background: var(--ctp-card);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px var(--card-shadow);
    border: 1px solid var(--ctp-surface0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(245, 169, 184, 0.2);
}

.contact-item h3 {
    color: var(--ctp-pink);
    margin-bottom: 1rem;
}

.contact-item p {
    color: var(--ctp-subtext1);
    margin-bottom: 0;
}

.contact-item a {
    color: var(--ctp-pink);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--ctp-pink-dark);
}

/* Footer */
.footer {
    background: var(--ctp-crust);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--ctp-surface0);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--ctp-pink);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--ctp-subtext0);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--ctp-subtext1);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--ctp-pink);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--ctp-surface0);
}

.footer-bottom p {
    color: var(--ctp-subtext0);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(30, 30, 46, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 1rem;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
    }

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

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

    .contact-info {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.section-header,
.project-card,
.skill-category,
.contact-item {
    animation: fadeInUp 0.6s ease-out;
}
