/* ================== VARIABLES ================== */
:root {
    /* Pop Art Colors - Vibrant & Energetic */
    --primary-neon: #FF006E;      /* Hot Pink */
    --secondary-neon: #00D9FF;    /* Cyan */
    --accent-yellow: #FFBE0B;     /* Vibrant Yellow */
    --accent-purple: #8338EC;     /* Deep Purple */
    --accent-green: #3A86FF;      /* Bright Blue */
    --accent-orange: #FB5607;     /* Vibrant Orange */
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF006E, #8338EC);
    --gradient-secondary: linear-gradient(135deg, #00D9FF, #3A86FF);
    --gradient-warm: linear-gradient(135deg, #FB5607, #FFBE0B);
    
    /* Neutrals */
    --white: #FFFFFF;
    --dark-bg: #0A0E27;
    --text-dark: #1A1A2E;
    --text-light: #FFFFFF;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.75rem;
    --radius-md: 1.5rem;
    --radius-lg: 2.5rem;
    --radius-full: 50%;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-long: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================== GLOBAL STYLES ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Fredoka', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

body.dark-mode {
    background: var(--dark-bg);
    color: var(--text-light);
}

/* ================== CONTAINER ================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ================== NAVBAR ================== */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--primary-neon);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(255, 0, 110, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.1) rotate(-5deg);
}

.logo-emoji {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

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

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
}

.nav-link:hover,
.nav-link.active {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-neon);
    border-radius: 2px;
    transition: var(--transition);
}

/* ================== HERO SECTION ================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, #FFF9F5 0%, #F5E6FF 50%, #E6F7FF 100%);
    overflow: hidden;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.emoji-burst {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
    display: inline-block;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Blobs */
.blob {
    position: absolute;
    filter: blur(50px);
    opacity: 0.8;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: blobAnimation 8s ease-in-out infinite;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-neon);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: var(--secondary-neon);
    top: 50%;
    right: 10%;
    animation-delay: 2s;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-yellow);
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 40px rgba(255, 0, 110, 0.2);
    animation: floatingCard 4s ease-in-out infinite;
    z-index: 10;
    cursor: pointer;
    transition: var(--transition);
}

.floating-card:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 50px rgba(255, 0, 110, 0.3);
}

.floating-card.card-2 {
    animation-delay: 1s;
}

.floating-card.card-3 {
    animation-delay: 2s;
}

.card-emoji {
    font-size: 2.5rem;
}

.card-text {
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================== BUTTONS ================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: 'Fredoka', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(255, 0, 110, 0.5);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.5);
}

/* ================== ABOUT SECTION ================== */
.about {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, #E6F7FF 0%, #F5E6FF 100%);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #333;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.skill-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 3px solid transparent;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.skill-card:hover {
    transform: translateY(-10px) rotate(2deg);
    border-color: var(--primary-neon);
    box-shadow: 0 15px 40px rgba(255, 0, 110, 0.2);
}

.skill-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.skill-card h3 {
    color: var(--primary-neon);
    margin-bottom: 0.5rem;
}

.skill-card p {
    color: #666;
    font-size: 0.95rem;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-shape {
    position: relative;
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: shapeAnimation 6s ease-in-out infinite;
    box-shadow: 0 20px 60px rgba(255, 0, 110, 0.3);
}

.shape-inner {
    width: 280px;
    height: 280px;
    background: white;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    animation: float 4s ease-in-out infinite;
}

.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    margin-top: 3rem;
    border: 3px dashed var(--accent-yellow);
    box-shadow: 0 10px 40px rgba(255, 190, 11, 0.2);
}

.cta-section h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-section p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* ================== STATS SECTION ================== */
.stats {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, #FFF9F5 0%, #E6F7FF 100%);
}

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

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.stat-card:hover::before {
    opacity: 0.1;
}

.stat-card:hover {
    transform: scale(1.05) rotate(-3deg);
    border-color: var(--primary-neon);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
}

/* ================== PROJECTS SECTION ================== */
.projects {
    padding: var(--spacing-2xl) 0;
    background: white;
}

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

.project-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 3px solid transparent;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-15px) rotate(-2deg);
    box-shadow: 0 20px 50px rgba(255, 0, 110, 0.3);
    border-color: var(--primary-neon);
}

.project-header {
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.project-body {
    padding: 1.5rem;
}

.project-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-neon);
}

.project-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.project-stats {
    display: flex;
    gap: 1rem;
    color: #999;
}

.project-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--primary-neon);
    transform: translateX(5px);
}

.loading-spinner {
    text-align: center;
    padding: 3rem;
    grid-column: 1 / -1;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-neon);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.view-all-container {
    text-align: center;
}

/* ================== GITHUB STATS SECTION ================== */
.github-stats {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, #F5E6FF 0%, #E6F7FF 100%);
    text-align: center;
}

.stats-info {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* ================== CONTACT SECTION ================== */
.contact {
    padding: var(--spacing-2xl) 0;
    background: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    position: relative;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f5f5f5;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.info-item:hover {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.05), rgba(0, 217, 255, 0.05));
    transform: translateX(10px);
}

.info-icon {
    font-size: 2rem;
    min-width: 50px;
}

.info-item h3 {
    color: var(--primary-neon);
    margin-bottom: 0.5rem;
}

.info-item p,
.info-item a {
    color: #666;
    text-decoration: none;
    transition: var(--transition);
}

.info-item a:hover {
    color: var(--primary-neon);
    text-decoration: underline;
}

.contact-shapes {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
}

.shape-small {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 60px;
    height: 60px;
    background: var(--primary-neon);
}

.shape-2 {
    width: 80px;
    height: 80px;
    background: var(--secondary-neon);
    bottom: 30px;
    right: 50px;
    animation-delay: 1s;
}

.shape-3 {
    width: 50px;
    height: 50px;
    background: var(--accent-yellow);
    bottom: 100px;
    right: 20px;
    animation-delay: 2s;
}

/* Form Styles */
.contact-form-wrapper {
    background: linear-gradient(135deg, #FFF9F5 0%, #E6F7FF 100%);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 3px solid var(--primary-neon);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: var(--radius-md);
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-neon);
    box-shadow: 0 0 0 3px rgba(255, 0, 110, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.submit-btn {
    margin-top: 1rem;
}

.form-message {
    text-align: center;
    padding: 1rem;
    border-radius: var(--radius-md);
    display: none;
    font-weight: 600;
}

.form-message.success {
    display: block;
    background: rgba(51, 142, 236, 0.1);
    color: #338eec;
}

.form-message.error {
    display: block;
    background: rgba(255, 0, 110, 0.1);
    color: var(--primary-neon);
}

/* ================== CTA LARGE SECTION ================== */
.cta-large {
    padding: var(--spacing-2xl) 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ================== FOOTER ================== */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    color: var(--primary-neon);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

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

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-neon);
    transform: translateX(5px);
    display: inline-block;
}

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

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    transform: scale(1.2) rotate(-10deg);
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 0, 110, 0.2);
    font-size: 0.95rem;
    color: #999;
}

.heart {
    color: var(--primary-neon);
    animation: heartbeat 1.5s ease-in-out infinite;
}

.coffee {
    animation: rotate-item 2s ease-in-out infinite;
}

/* ================== ANIMATIONS ================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes blobAnimation {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

@keyframes floatingCard {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes shapeAnimation {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

@keyframes rotate-item {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(10deg); }
}

/* ================== PROJECTS PAGE HERO ================== */
.projects-hero {
    min-height: 60vh;
    background: linear-gradient(135deg, #FFF9F5 0%, #F5E6FF 50%, #E6F7FF 100%);
}

.projects-hero .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
}

.projects-hero .hero-title {
    margin-bottom: 2rem;
}

/* ================== CONTACT PAGE HERO ================== */
.contact-hero {
    min-height: 50vh;
    background: linear-gradient(135deg, #E6F7FF 0%, #F5E6FF 100%);
}

.contact-hero .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
}

/* ================== RESPONSIVE DESIGN ================== */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .hero-visual {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        display: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

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

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

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .blob {
        filter: blur(40px);
    }

    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 1rem;
    }

    .hero {
        min-height: 70vh;
    }

    .skill-card {
        padding: 1rem;
    }

    .contact-form-wrapper {
        padding: 1rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }
}
