/* Cutting-Edge Design - Purple, Cyan, Magenta Theme */
:root {
    /* Vibrant Color Palette */
    --primary-purple: #8B5CF6;
    --primary-cyan: #06B6D4;
    --primary-magenta: #EC4899;
    --accent-yellow: #FBBF24;
    --dark-bg: #0F0F1E;
    --darker-bg: #070710;
    --card-bg: #1A1A2E;
    --text-primary: #FFFFFF;
    --text-secondary: #A0AEC0;
    --gradient-1: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    --gradient-2: linear-gradient(135deg, #06B6D4 0%, #8B5CF6 100%);
    --gradient-3: linear-gradient(135deg, #EC4899 0%, #FBBF24 100%);

    /* Pico Overrides */
    --pico-primary: var(--primary-purple);
    --pico-background-color: var(--dark-bg);
    --pico-color: var(--text-primary);
}

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

body {
    background: var(--darker-bg);
    color: var(--text-primary);
    font-family: 'Space Grotesk', Inter, system-ui, sans-serif;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 90%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Side Navigation */
.side-nav {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 80px;
    background: rgba(15, 15, 30, 0.8);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(139, 92, 246, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    z-index: 1000;
}

.side-nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin-bottom: 3rem;
}

.side-nav-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    list-style: none;
}

.side-nav-item a {
    display: block;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    font-size: 1.2rem;
}

.side-nav-item a:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateX(5px);
}

.side-nav-item a::after {
    content: attr(data-label);
    position: absolute;
    left: 70px;
    background: var(--card-bg);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
}

.side-nav-item a:hover::after {
    opacity: 1;
}

/* Main Content Area */
.main-content {
    margin-left: 80px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Hero Section - Split Screen */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    position: relative;
}

.hero-left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    position: relative;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 0.9;
    margin-bottom: 2rem;
    background: var(--gradient-1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

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

.btn-primary {
    padding: 1rem 2.5rem;
    background: var(--gradient-1);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.5);
}

.btn-outline {
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--primary-purple);
    border-radius: 50px;
    color: var(--primary-purple);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-3px);
}

.hero-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-visual {
    width: 500px;
    height: 500px;
    position: relative;
}

.floating-card {
    position: absolute;
    padding: 2rem;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    animation: float 6s ease-in-out infinite;
}

.floating-card-1 {
    top: 10%;
    left: 10%;
    width: 200px;
    animation-delay: 0s;
}

.floating-card-2 {
    top: 50%;
    right: 10%;
    width: 180px;
    animation-delay: 2s;
}

.floating-card-3 {
    bottom: 10%;
    left: 30%;
    width: 220px;
    animation-delay: 4s;
}

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

/* Diagonal Section */
.diagonal-section {
    position: relative;
    padding: 8rem 4rem;
    background: var(--card-bg);
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    margin: 4rem 0;
}

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

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

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

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.bento-card {
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.bento-card:hover::before {
    transform: scaleX(1);
}

.bento-card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
}

.bento-card.large {
    grid-column: span 2;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Asymmetric Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    padding: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-item {
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.portfolio-item:nth-child(1) {
    grid-column: span 7;
    grid-row: span 2;
}

.portfolio-item:nth-child(2) {
    grid-column: span 5;
}

.portfolio-item:nth-child(3) {
    grid-column: span 5;
}

.portfolio-item:nth-child(4) {
    grid-column: span 4;
}

.portfolio-item:nth-child(5) {
    grid-column: span 4;
}

.portfolio-item:nth-child(6) {
    grid-column: span 4;
}

.portfolio-item:hover {
    transform: scale(1.02);
    border-color: rgba(139, 92, 246, 0.5);
}

.portfolio-image {
    height: 250px;
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.portfolio-item:nth-child(1) .portfolio-image {
    height: 400px;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.portfolio-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.portfolio-tech {
    color: var(--primary-cyan);
    font-size: 0.9rem;
}

/* Contact Form - Modern Style */
.contact-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 4rem;
}

.contact-form {
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    padding: 3rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(15, 15, 30, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
footer {
    background: rgba(15, 15, 30, 0.8);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    padding: 2rem 4rem;
    margin-left: 80px;
    text-align: center;
}

.footer-content {
    color: var(--text-secondary);
}

.footer-brand {
    background: var(--gradient-1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .side-nav {
        width: 0;
        overflow: hidden;
    }

    .main-content, footer {
        margin-left: 0;
    }

    .page-header {
        padding: 3rem 1.5rem 2rem;
    }

    .page-subtitle {
        max-width: 100%;
    }

    .cta-section-base {
        padding: 4rem 1.5rem;
    }

    .diagonal-section {
        padding: 4rem 1.5rem;
        clip-path: none;
        margin: 2rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }

    .bento-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1rem;
    }

    .bento-card {
        padding: 1.5rem;
    }

    .bento-card.large {
        grid-column: span 1;
    }

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

    .hero-right {
        display: none;
    }

    .hero-left {
        padding: 2rem 1.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 3.5rem);
        margin-bottom: 1.5rem;
    }

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

    .btn-primary, .btn-outline {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1rem;
    }

    .portfolio-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    .portfolio-image {
        height: 200px;
    }

    .portfolio-item:nth-child(1) .portfolio-image {
        height: 200px;
    }

    .portfolio-content {
        padding: 1.5rem;
    }

    .contact-container {
        padding: 1.5rem 1rem;
        margin: 2rem auto;
        max-width: 100%;
    }

    .contact-form {
        padding: 1.5rem;
    }

    input, select, textarea {
        padding: 0.75rem;
        font-size: 16px;
    }

    textarea {
        min-height: 120px;
    }

    footer {
        padding: 2rem 1rem;
    }

    .footer-content {
        font-size: 0.9rem;
    }

    .tech-stack {
        padding: 2rem 1rem;
        gap: 1rem;
    }

    .tech-pill {
        padding: 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 1024px) {
    .side-nav {
        width: 0;
        overflow: hidden;
    }

    .main-content, footer {
        margin-left: 0;
    }

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

    .hero-right {
        display: none;
    }

    .portfolio-item {
        grid-column: span 12 !important;
    }

    .bento-card.large {
        grid-column: span 1;
    }

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

    .form-group.full-width {
        grid-column: span 1;
    }
}

/* Tech Stack Pills */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    padding: 4rem;
}

.tech-pill {
    padding: 1.5rem 2rem;
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tech-pill:hover {
    background: var(--gradient-2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

/* Accent Elements */
.accent-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-magenta);
    border-radius: 50%;
    display: inline-block;
    margin: 0 0.5rem;
}

.divider {
    height: 2px;
    background: var(--gradient-1);
    max-width: 100px;
    margin: 2rem auto;
}
/* Page Header - Global Utility */
.page-header {
    padding: 6rem 4rem 4rem;
    text-align: center;
}

.page-title {
    font-size: clamp(3rem, 6vw, 5rem);
}

.page-subtitle {
    max-width: 700px;
    margin: 2rem auto 0;
}

/* CTA Section - Global Utility */
.cta-section-base {
    padding: 8rem 4rem;
    text-align: center;
}

.cta-section-title {
    margin-bottom: 2rem;
}

.cta-section-subtitle {
    margin-bottom: 3rem;
}

.cta-buttons-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Form Utilities */
.form-full-width {
    width: 100%;
}

/* Mobile Menu - Hamburger Navigation */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    background: var(--gradient-1);
    border: none;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.5);
}

.mobile-nav-menu {
    display: none;
    position: fixed;
    left: 0;
    top: 60px;
    width: 100%;
    background: rgba(15, 15, 30, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 1000;
}

.mobile-nav-menu.active {
    display: flex;
    max-height: 400px;
}

.mobile-nav-menu a {
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    transition: background 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-nav-menu a:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-purple);
}

.mobile-nav-menu a:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}