/* =====================================================
   PORTFOLIO STYLES - Ayush Anjay
   Jackie Zhang Inspired - Red/Coral Artistic Theme
   ===================================================== */

/* =====================================================
   CSS CUSTOM PROPERTIES
   ===================================================== */
:root {
    /* Dark Theme (Default) */
    --bg-primary: #1a1a1f;
    --bg-secondary: #232328;

    /* Red/Coral Accent Colors */
    --accent-primary: #e85a4f;
    --accent-secondary: #d64545;
    --accent-light: #f4a39a;
    --accent-dark: #c43e3e;

    --text-primary: #e85a4f;
    --text-secondary: #d4a59a;
    --text-muted: #8a7a75;
    --text-dark: #1a1a1f;

    /* Card Colors */
    --card-bg: #f5e6e0;
    --card-border: #e85a4f;
    --grid-color: rgba(232, 90, 79, 0.15);

    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.4);

    /* Sizes */
    --nav-height: 60px;
    --card-radius: 30px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Light Theme - REMOVED, keeping dark only */

/* =====================================================
   RESET & BASE STYLES
   ===================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color var(--transition-normal);
}

a {
    text-decoration: none;
    color: inherit;
}

/* =====================================================
   BACKGROUND DECORATIONS
   ===================================================== */
.bg-decorations {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.deco-item {
    position: absolute;
    color: var(--accent-primary);
    opacity: 0.3;
    transition: opacity var(--transition-normal);
}

.deco-item svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.deco-1 {
    top: 10%;
    left: 3%;
    width: 60px;
    height: 60px;
    animation: float 6s ease-in-out infinite;
}

.deco-2 {
    top: 30%;
    right: 5%;
    width: 50px;
    height: 50px;
    animation: float 8s ease-in-out infinite reverse;
}

.deco-3 {
    bottom: 20%;
    left: 5%;
    width: 40px;
    height: 70px;
    animation: sway 5s ease-in-out infinite;
}

.deco-4 {
    top: 50%;
    right: 3%;
    width: 55px;
    height: 55px;
    animation: float 7s ease-in-out infinite;
}

.deco-5 {
    bottom: 10%;
    right: 8%;
    width: 70px;
    height: 50px;
    animation: sway 6s ease-in-out infinite reverse;
}

.deco-6 {
    top: 70%;
    left: 4%;
    width: 35px;
    height: 35px;
    animation: spin 20s linear infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes sway {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: rotate(180deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--accent-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width var(--transition-normal);
}

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

/* =====================================================
   MAIN CONTAINER
   ===================================================== */
.main-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* =====================================================
   HERO CARD
   ===================================================== */
.hero-card {
    position: relative;
}

.card-inner {
    background: var(--card-bg);
    border: 3px solid var(--card-border);
    border-radius: var(--card-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-card);
}

.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    min-height: 400px;
    position: relative;
    z-index: 1;
}

.hero-left {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-name {
    font-family: 'Caveat', cursive;
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.hero-role {
    font-size: 1.1rem;
    color: var(--accent-secondary);
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-tagline {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight-word {
    color: var(--accent-primary);
    position: relative;
}

.highlight-word::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
}

.hero-location {
    font-size: 0.95rem;
    color: var(--accent-secondary);
}

/* Hero Illustration */
.hero-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.hero-illustration {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.window-sketch {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 160px;
    background: var(--card-bg);
    border: 2px solid var(--accent-primary);
    border-radius: 8px;
    overflow: hidden;
}

.window-bar {
    background: var(--accent-light);
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    border-bottom: 2px solid var(--accent-primary);
}

.window-bar .dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.window-title {
    margin-left: auto;
    font-size: 0.65rem;
    color: var(--accent-dark);
    font-weight: 600;
}

.window-content {
    padding: 15px;
}

.code-line {
    height: 8px;
    background: var(--accent-light);
    border-radius: 4px;
    margin-bottom: 8px;
}

.code-line.short {
    width: 60%;
}

.squiggle {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: var(--accent-primary);
    text-align: center;
    margin-top: 10px;
}

.phone-sketch {
    position: absolute;
    bottom: 40px;
    right: 80px;
    width: 70px;
    height: 120px;
    background: var(--card-bg);
    border: 2px solid var(--accent-primary);
    border-radius: 12px;
    padding: 8px;
}

.phone-screen {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    align-items: center;
}

.app-icon {
    width: 20px;
    height: 20px;
    background: var(--accent-light);
    border: 1.5px solid var(--accent-primary);
    border-radius: 5px;
}

.plant-deco {
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 80px;
    height: 100px;
}

.plant-svg {
    width: 100%;
    height: 100%;
    stroke: var(--accent-primary);
    fill: none;
}

.character-sketch {
    position: absolute;
    bottom: 20px;
    left: 100px;
    width: 60px;
    height: 80px;
}

.character-svg {
    width: 100%;
    height: 100%;
    stroke: var(--accent-primary);
}

.character-svg circle:not([fill="none"]) {
    fill: var(--accent-primary);
}

/* =====================================================
   CONTENT CARDS
   ===================================================== */
.content-card {
    position: relative;
}

.section-content {
    padding: 40px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    align-items: start;
}

.about-text p {
    color: var(--text-dark);
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.8;
}

.accent-text {
    color: var(--accent-primary);
    font-weight: 600;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-bubble {
    background: var(--accent-light);
    border: 2px solid var(--accent-primary);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.stat-value {
    display: block;
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--accent-dark);
    font-weight: 500;
}

/* Projects */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(232, 90, 79, 0.08);
    border: 2px solid transparent;
    border-radius: 16px;
    transition: all var(--transition-fast);
}

.project-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(8px);
}

.project-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-light);
    border: 2px solid var(--accent-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.project-info {
    flex: 1;
}

.project-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.project-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.project-arrow {
    font-size: 1.3rem;
    color: var(--accent-primary);
    opacity: 0;
    transition: all var(--transition-fast);
}

.project-item:hover .project-arrow {
    opacity: 1;
    transform: translate(4px, -4px);
}

.subsection-title {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    color: var(--accent-primary);
    margin-bottom: 16px;
}

/* CP Links */
.cp-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--card-bg);
    border: 2px solid var(--accent-primary);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent-primary);
    transition: all var(--transition-fast);
}

.cp-badge:hover {
    background: var(--accent-primary);
    color: var(--card-bg);
    transform: translateY(-3px);
}

.cp-badge i {
    font-size: 1.2rem;
}

.cp-logo {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Connect Section */
.connect-subtitle {
    color: var(--text-dark);
    margin-bottom: 24px;
    font-size: 1rem;
}

.connect-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.connect-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: var(--accent-primary);
    color: var(--card-bg);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.connect-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(232, 90, 79, 0.3);
}

.connect-item i {
    font-size: 1.3rem;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    text-align: center;
    padding: 30px 20px 40px;
    position: relative;
    z-index: 1;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer i {
    color: var(--accent-primary);
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 768px) {
    .bg-decorations {
        display: none;
    }

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

    .hero-left {
        padding: 40px 30px 20px;
        text-align: center;
    }

    .hero-right {
        min-height: 250px;
    }

    .hero-name {
        font-size: 3rem;
    }

    .hero-tagline {
        font-size: 2rem;
    }

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

    .about-stats {
        flex-direction: row;
    }

    .stat-bubble {
        flex: 1;
    }

    .section-content {
        padding: 30px 20px;
    }

    .connect-links {
        flex-direction: column;
    }

    .connect-item {
        justify-content: center;
    }

    .window-sketch {
        width: 130px;
        right: 10px;
    }

    .phone-sketch {
        right: 50px;
        bottom: 20px;
    }

    .plant-deco {
        left: 10px;
        width: 60px;
    }

    .character-sketch {
        left: 70px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 20px;
    }

    .nav-link {
        font-size: 1.2rem;
    }

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

    .hero-tagline {
        font-size: 1.6rem;
    }

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

    .cp-links {
        flex-direction: column;
    }

    .cp-badge {
        justify-content: center;
    }
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
.hero-card,
.content-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-card {
    animation-delay: 0.2s;
}

.content-card:nth-child(2) {
    animation-delay: 0.4s;
}

.content-card:nth-child(3) {
    animation-delay: 0.6s;
}

.content-card:nth-child(4) {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}