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

html {
    scroll-behavior: smooth;
}

:root {
    /* Catppuccin Mocha inspired colors with softer contrast */
    --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;
    --ctp-green: #a6e3a1;
    --ctp-green-dark: #94d687;
    --ctp-green-rgb: 166, 227, 161;
    
    /* 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 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(166, 227, 161, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(166, 227, 161, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 40% 90%, rgba(166, 227, 161, 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-green);
    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-green);
}

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

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

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

.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(166, 227, 161, 0.1);
    border-radius: 50%;
    opacity: 0.7;
    animation: bubbleRise 15s infinite linear;
    border: 1px solid rgba(166, 227, 161, 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: 45px;
    height: 45px;
    animation-delay: 5s;
    animation-duration: 17s;
}

.bubble:nth-child(9) {
    left: 5%;
    width: 35px;
    height: 35px;
    animation-delay: 6s;
    animation-duration: 19s;
}

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

@keyframes bubbleRise {
    0% {
        bottom: -100px;
        transform: translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        bottom: 100vh;
        transform: translateX(-100px);
        opacity: 0;
    }
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 2rem;
    color: var(--ctp-text);
    font-weight: 700;
}

.highlight {
    background: linear-gradient(135deg, var(--ctp-green) 0%, var(--ctp-green-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--ctp-green) 0%, var(--ctp-green-dark) 100%);
    color: var(--ctp-base);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(var(--ctp-green-rgb), 0.3);
}

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

.btn-secondary:hover {
    background: var(--ctp-green);
    color: var(--ctp-base);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
}

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

.section-title {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 800;
    text-shadow: 2px 2px 0px var(--sunny-yellow);
    transform: rotate(-1deg);
    display: inline-block;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
}

/* About Section */
/* About Section */
.about {
    background: linear-gradient(135deg, var(--mint-green) 0%, var(--lavender) 100%);
    position: relative;
    overflow: hidden;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.about-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-dark);
    background: var(--paper-white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px var(--card-shadow);
    border: 3px solid var(--ctp-green);
    transform: rotate(1deg);
}

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

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px var(--card-shadow);
    border: 3px solid white;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.skill-category:nth-child(2n) {
    transform: rotate(2deg);
    border-color: white;
}

.skill-category:nth-child(3n) {
    transform: rotate(-1deg);
    border-color: white;
}

.skill-category:hover {
    transform: rotate(0deg) translateY(-5px);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 800;
}

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

.skill-category li {
    padding: 0.5rem 0;
    color: var(--text-medium);
    font-weight: 500;
}

.skill-category li:last-child {
    border-bottom: none;
}
/* Projects Section */
.projects {
    position: relative;
    background: var(--ctp-base);
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.25;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--ctp-green) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, var(--ctp-green) 1px, transparent 1px),
        radial-gradient(circle at 50% 100%, var(--ctp-subtext0) 0.5px, transparent 0.5px),
        radial-gradient(circle at 100% 50%, var(--ctp-subtext0) 0.5px, transparent 0.5px);
    background-size: 40px 40px, 40px 40px, 20px 20px, 20px 20px;
    background-position: 0 0, 20px 20px, 10px 10px, 30px 30px;
    z-index: 1;
}

.projects > .container {
    position: relative;
    z-index: 2;
}

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

.project-card {
    background: var(--ctp-surface0);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 4px solid white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: rotate(-1deg);
}

.project-card:nth-child(2n) {
    transform: rotate(1deg);
}

.project-card:nth-child(3n) {
        border: 4px solid white;
}

.project-card:hover {
    transform: rotate(0deg) translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--ctp-green) 0%, var(--ctp-teal) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-card:nth-child(2n) .project-image {
    background: linear-gradient(135deg, var(--ctp-green) 0%, var(--ctp-sapphire) 100%);
}

.project-card:nth-child(3n) .project-image {
    background: linear-gradient(135deg, var(--ctp-green) 0%, var(--ctp-blue) 100%);
}

.project-placeholder {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;}

.project-content {
    padding: 2rem;
}

.project-title {
    margin-bottom: 1rem;
    color: var(--ctp-text);
    font-weight: 800;
    text-shadow: none;
}

.project-description {
    margin-bottom: 1.5rem;
    color: var(--ctp-subtext1);
    font-weight: 500;
}

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

.tech-tag {
    font-family: 'DM Sans', sans-serif;
    background: var(--ctp-surface1);
    color: var(--ctp-text);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.tech-tag:nth-child(2n) {
    background: var(--ctp-surface1);
    border-color: white
}

.tech-tag:nth-child(3n) {
    background: var(--ctp-surface1);
    border-color: white;
}

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

.project-link {
    font-family: 'DM Sans', sans-serif;
    color: var(--ctp-crust);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 15px;
    background: var(--ctp-green);
    border: 2px solid var(--ctp-green);
    box-shadow: 0 3px 0px rgba(0, 0, 0, 0.2);
}

.project-link:hover {
    background: var(--ctp-teal);
    transform: translateY(2px);
    box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--peach) 0%, var(--sunny-yellow) 100%);
}

.contact-content {
    display: flex;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

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

.contact-item {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 20px;
    border: 3px solid var(--electric-blue);
    box-shadow: 0 8px 25px var(--card-shadow);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.contact-item:nth-child(2n) {
    transform: rotate(2deg);
    border-color: var(--pomegranate-pink);
}

.contact-item:hover {
    transform: rotate(0deg) translateY(-5px);
}

.contact-item h3 {
    margin-bottom: 1rem;
    color: var(--pomegranate-red);
    font-weight: 800;
    text-shadow: 1px 1px 0px var(--sunny-yellow);
}

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

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

/* Footer */
.footer {
    background: var(--ctp-crust);
    color: var(--ctp-text);
    padding: 60px 0 20px;
    border-top: 1px solid var(--ctp-surface0);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 40%, rgba(166, 227, 161, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 70% 80%, rgba(166, 227, 161, 0.05) 1px, transparent 1px);
    background-size: 50px 50px, 70px 70px;
    opacity: 0.3;
    z-index: 1;
}

.footer > .container {
    position: relative;
    z-index: 2;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--sunny-yellow);
    font-weight: 800;
    text-shadow: 2px 2px 0px var(--pomegranate-red);
}

.footer-section p {
    color: var(--paper-white);
    font-weight: 500;
}

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

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

.footer-section ul li a {
    color: var(--paper-white);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-section ul li a:hover {
    color: var(--peach);
}

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

.social-links a {
    font-family: 'DM Sans', sans-serif;
    color: var(--paper-white);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 15px;
    background: var(--pomegranate-red);
    border: 2px solid var(--sunny-yellow);
}

.social-links a:hover {
    background: var(--sunny-yellow);
    color: var(--text-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px dotted var(--peach);
}

.footer-bottom p {
    color: var(--paper-white);
    margin: 0;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--ctp-base);
        width: 100%;
        text-align: center;
        transition: right 0.3s ease-in-out;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.2);
        padding: 2rem 0;
        border-top: 1px solid var(--ctp-surface0);
    }

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

    .nav-link {
        margin: 10px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding: 120px 0 80px;
        text-align: center;
    }

    .hero-content {
        transform: rotate(0deg);
        margin: 0 10px;
    }

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

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        margin: 5px;
    }

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

    .project-card {
        transform: rotate(0deg);
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .contact-item {
        transform: rotate(0deg);
    }

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

    .skill-category {
        transform: rotate(0deg);
    }

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .project-content {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for better accessibility */
.nav-link:focus,
.btn:focus {
    outline: 3px solid var(--pomegranate-pink);
    outline-offset: 2px;
    box-shadow: 0 0 10px var(--sunny-yellow);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero {
        background: linear-gradient(135deg, var(--vibrant-orange) 0%, var(--pomegranate-pink) 50%, var(--electric-blue) 100%);
    }
    
    .highlight {
        background: var(--pomegranate-red);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

/* Fun additional animations */
@keyframes wiggle {
    0%, 7% {
        transform: rotateZ(0);
    }
    15% {
        transform: rotateZ(-15deg);
    }
    20% {
        transform: rotateZ(10deg);
    }
    25% {
        transform: rotateZ(-10deg);
    }
    30% {
        transform: rotateZ(6deg);
    }
    35% {
        transform: rotateZ(-4deg);
    }
    40%, 100% {
        transform: rotateZ(0);
    }
}

.nav-logo a:hover {
    animation: wiggle 0.8s ease-in-out;
}

/* Playful hover effects for section titles */
.section-title:hover {
    animation: wiggle 0.6s ease-in-out;
    cursor: pointer;
}

/* Add some fun to the wave animation */
.wave-text span:hover {
    animation: wave 0.5s ease-in-out;
    color: var(--pomegranate-pink);
}
