/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
   :root {
    /* Color Palette */
    --bg-dark: #050505;
    --bg-darker: #020202;
    --surface-light: rgba(255, 255, 255, 0.03);
    --surface-border: rgba(255, 255, 255, 0.08);
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    
    --brand-purple: #7e22ce;
    --brand-magenta: #d946ef;
    --brand-pink: #f472b6;
    
    --gradient-primary: linear-gradient(135deg, var(--brand-purple), var(--brand-magenta), var(--brand-pink));
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 8rem;
    
    /* Layout */
    --container-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: var(--spacing-xxl) 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 100px;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-medium);
    z-index: 1;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--brand-magenta), var(--brand-pink), var(--brand-purple));
    opacity: 0;
    transition: var(--transition-medium);
    z-index: -1;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(217, 70, 239, 0.2);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--surface-border);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

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

.btn-outline-small {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--brand-purple);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.btn-outline-small:hover {
    background: var(--brand-purple);
}

/* ==========================================================================
   Background Effects
   ========================================================================== */
.bg-gradient {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    animation: floatBlob 20s infinite alternate;
}

.bg-gradient-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--brand-purple);
}

.bg-gradient-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: var(--brand-magenta);
    animation-delay: -5s;
}

.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: -1;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 10%) scale(1.1); }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-medium);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--surface-border);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

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

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

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

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

.mobile-menu-btn {
    display: none;
    color: white;
    font-size: 1.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--brand-pink);
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-profession {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 400px;
}

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

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

.hero-portrait-wrapper {
    position: relative;
    width: 350px;
    height: 450px;
    border-radius: 30px;
    padding: 10px;
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid var(--surface-border);
    z-index: 2;
    backdrop-filter: blur(10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    animation: float 6s ease-in-out infinite;
}

.portrait-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 30px;
    background: var(--gradient-primary);
    filter: blur(40px);
    opacity: 0.3;
    z-index: -1;
}

.hero-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    filter: contrast(1.05) saturate(1.1);
}

.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
    z-index: 3;
}

.float-1 { top: 10%; right: 10%; animation: float 4s ease-in-out infinite alternate; color: var(--brand-pink); }
.float-2 { bottom: 15%; left: 0; animation: float 5s ease-in-out infinite alternate-reverse; color: var(--brand-purple); }

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

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: 24px;
    padding: 1rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--surface-border);
    z-index: 2;
}

.about-image {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--gradient-primary);
    filter: blur(60px);
    opacity: 0.2;
    z-index: -1;
}

.highlight-cards {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.hl-card {
    position: absolute;
    background: rgba(10,10,10,0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--surface-border);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hl-card i {
    color: var(--brand-magenta);
    font-size: 1.25rem;
}

.hl-card:nth-child(1) { top: 10%; right: -10%; animation: float 4s ease-in-out infinite; }
.hl-card:nth-child(2) { bottom: 20%; left: -10%; animation: float 5s ease-in-out infinite reverse; }
.hl-card:nth-child(3) { bottom: -5%; right: 10%; animation: float 6s ease-in-out infinite 1s; }

.about-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

/* ==========================================================================
   Experience Section
   ========================================================================== */
.exp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.exp-card {
    background: var(--surface-light);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.exp-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.05);
    border-color: rgba(217, 70, 239, 0.3);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.exp-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(217, 70, 239, 0.1);
    color: var(--brand-magenta);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.exp-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.exp-desc {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ==========================================================================
   Showcase / Portfolio
   ========================================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--surface-light);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition-medium);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.15);
}

.portfolio-media {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.portfolio-info {
    padding: 2rem;
}

.portfolio-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand-pink);
    font-weight: 600;
}

.portfolio-title {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.portfolio-desc {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.portfolio-software {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255,255,255,0.05);
    border-radius: 50px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Editable Videos
   ========================================================================== */
.editable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.editable-card {
    display: flex;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: var(--transition-medium);
}

.editable-card:hover {
    background: rgba(255,255,255,0.04);
}

.editable-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    z-index: 2;
    letter-spacing: 1px;
}

.editable-media {
    width: 40%;
    aspect-ratio: 1/1;
}

.editable-content {
    width: 60%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.editable-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.editable-meta {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.editable-meta i {
    color: var(--brand-purple);
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--surface-light);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-medium);
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.04);
}

.skill-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
}

.gradient-bg {
    background: var(--gradient-primary);
}

.skill-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.skill-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.skill-level {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--brand-pink);
    font-weight: 500;
}

/* ==========================================================================
   Why Me
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: transparent;
    border-left: 2px solid var(--surface-border);
    transition: var(--transition-fast);
}

.feature-card:hover {
    border-left-color: var(--brand-magenta);
}

.feature-card i {
    font-size: 2rem;
    color: var(--brand-purple);
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-desc {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--surface-border);
    transition: var(--transition-fast);
}

.contact-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(217, 70, 239, 0.1);
    color: var(--brand-magenta);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.contact-value {
    display: block;
    font-weight: 500;
    font-size: 1.125rem;
}

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

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--brand-purple);
    transform: translateY(-3px);
}

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

.contact-gradient-blob {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.contact-card-glass {
    position: relative;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.glass-icon {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    border-top: 1px solid var(--surface-border);
    padding: 4rem 0 2rem;
    background: var(--bg-dark);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
}

.footer-profession {
    font-size: 0.875rem;
    color: var(--brand-pink) !important;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.footer-col a:hover {
    color: var(--brand-magenta);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--surface-border);
    padding-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

.fade-up { transform: translateY(40px); }
.fade-left { transform: translateX(40px); }
.fade-right { transform: translateX(-40px); }

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container, .about-grid, .contact-wrapper {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: rgba(5,5,5,0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition-medium);
        border-left: 1px solid var(--surface-border);
    }
    
    .nav-links.nav-active {
        right: 0;
    }
    
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }
    
    .hero-container, .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding-top: 120px;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-tagline {
        margin: 0 auto 2.5rem;
    }
    
    .hero-visual {
        height: auto;
        margin-top: 2rem;
    }
    
    .hero-portrait-wrapper {
        width: 100%;
        max-width: 350px;
        height: auto;
        aspect-ratio: 3/4;
        margin: 0 auto;
    }
    
    .hl-card {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .editable-card {
        flex-direction: column;
    }
    
    .editable-media, .editable-content {
        width: 100%;
    }
    
    .footer-links {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-profession {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* ==========================================================================
   Portfolio Video Embeds
   ========================================================================== */
.portfolio-item {
    display: flex;
    flex-direction: column;
}

.portfolio-media {
    overflow: hidden;
    background: #000;
}

.portfolio-embed {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
