:root {
    /* Color Palette - Dark Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #1a1a2e;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-light: rgba(255, 255, 255, 0.95);
    --text-primary: #ffffff;
    --text-secondary: #b4b4c8;
    --text-dark: #000000;
    --accent-cyan: #00d4ff;
    --accent-purple: #7c3aed;
    --accent-pink: #ec4899;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --gradient-accent: linear-gradient(135deg, #ec4899 0%, #00d4ff 100%);

    /* Typography */
    --font-primary: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* 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.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;

    /* Shadows */
    --shadow-glow-cyan: 0 0 30px rgba(0, 212, 255, 0.5);
    --shadow-glow-purple: 0 0 30px rgba(124, 58, 237, 0.5);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Video background container */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    /* Prevents video from blocking clicks */
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    text-align: center;
}

.loading-text {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 2rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-progress {
    max-width: 300px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-secondary);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.loading-percentage {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.03) 0%, transparent 50%);
    /* Make hero section background mostly transparent to let video show through */
    backdrop-filter: blur(0px);
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 var(--spacing-md);
}

/* Thunder Split Hero Box */
.hero-box {
    width: 50vw;
    max-width: 600px;
    height: 350px;
    margin: 0;
    display: flex;
    border-radius: var(--radius-lg);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 120px rgba(0, 212, 255, 0.2);
    transform: perspective(1200px) rotateX(2deg) rotateY(-5deg) rotateZ(3deg);
    transition: transform 0.8s ease;
    overflow: hidden;
    position: relative;
    background: var(--bg-card-light);
}

.hero-box:hover {
    transform: perspective(1200px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateY(-15px) scale(1.02);
}

.hero-box-left {
    width: 50%;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-box-left::before {
    content: '⚡';
    position: absolute;
    font-size: 6rem;
    opacity: 0.15;
    color: var(--accent-cyan);
    animation: flash 3s ease-in-out infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-box-right {
    width: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    position: relative;
}

.hero-box-right::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 3px;
    background: linear-gradient(180deg,
            transparent 0%,
            var(--accent-cyan) 20%,
            var(--accent-cyan) 80%,
            transparent 100%);
    box-shadow: 0 0 20px var(--accent-cyan);
}

.profile-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: var(--spacing-md);
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid var(--accent-cyan);
    box-shadow:
        0 0 40px rgba(0, 212, 255, 0.6),
        inset 0 0 20px rgba(0, 212, 255, 0.2);
    object-fit: cover;
    transition: all 0.3s ease;
}

.hero-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.hero-title-text {
    font-size: 1.1rem;
    color: #4a4a4a;
    font-family: var(--font-mono);
    text-align: center;
}

@keyframes flash {

    0%,
    100% {
        opacity: 0.1;
    }

    50% {
        opacity: 0.2;
    }
}

/* Hero Tagline */
.hero-tagline {
    max-width: 600px;
    margin: 0 auto;
}

.hero-tagline blockquote {
    font-size: 1.5rem;
    font-weight: 600;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    padding: 0 var(--spacing-lg);
}

.hero-tagline blockquote::before,
.hero-tagline blockquote::after {
    content: '"';
    font-size: 3rem;
    color: var(--accent-purple);
    position: absolute;
    line-height: 1;
}

.hero-tagline blockquote::before {
    left: 0;
    top: 0;
}

.hero-tagline blockquote::after {
    right: 0;
    bottom: 0;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.glitch {
    position: relative;
    text-shadow:
        0 0 10px var(--accent-cyan),
        0 0 20px var(--accent-cyan),
        0 0 30px var(--accent-cyan);
    animation: glitch 10s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: var(--accent-cyan);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: var(--accent-purple);
    z-index: -2;
}

@keyframes glitch {

    0%,
    100% {
        text-shadow: 0 0 10px var(--accent-cyan), 0 0 20px var(--accent-cyan), 0 0 30px var(--accent-cyan);
    }

    25% {
        text-shadow: 0 0 10px var(--accent-purple), 0 0 20px var(--accent-purple), 0 0 30px var(--accent-purple);
    }

    50% {
        text-shadow: 0 0 10px var(--accent-pink), 0 0 20px var(--accent-pink), 0 0 30px var(--accent-pink);
    }

    75% {
        text-shadow: 0 0 10px var(--accent-cyan), 0 0 20px var(--accent-cyan), 0 0 30px var(--accent-cyan);
    }
}

@keyframes glitch-1 {

    0%,
    100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }

    20% {
        clip-path: inset(20% 0 30% 0);
        transform: translate(-2px, 2px);
    }

    40% {
        clip-path: inset(50% 0 20% 0);
        transform: translate(2px, -2px);
    }

    60% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(-1px, 1px);
    }

    80% {
        clip-path: inset(80% 0 5% 0);
        transform: translate(1px, -1px);
    }
}

@keyframes glitch-2 {

    0%,
    100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
        transform: translate(2px, -1px);
    }

    40% {
        clip-path: inset(20% 0 50% 0);
        transform: translate(-2px, 1px);
    }

    60% {
        clip-path: inset(30% 0 40% 0);
        transform: translate(1px, -2px);
    }

    80% {
        clip-path: inset(5% 0 80% 0);
        transform: translate(-1px, 2px);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-mono);
    font-weight: 400;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Particles */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-cyan);
    border-radius: 50%;
    opacity: 0.6;
}

#particle1 {
    top: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

#particle2 {
    top: 60%;
    right: 10%;
    background: var(--accent-purple);
    animation: float 8s ease-in-out infinite reverse;
}

#particle3 {
    bottom: 20%;
    left: 20%;
    background: var(--accent-pink);
    animation: float 7s ease-in-out infinite;
}

@keyframes float {

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

    33% {
        transform: translateY(-20px) translateX(10px);
    }

    66% {
        transform: translateY(10px) translateX(-10px);
    }
}

/* Projects Section */
.projects-section {
    padding: var(--spacing-2xl) 5%;
    background: rgba(26, 26, 46, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Elevated sections for background visibility */

.projects-section {
    border-radius: var(--radius-lg);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.2),
        0 0 80px rgba(0, 212, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin: 3rem 5% var(--spacing-2xl) 5%;
}

.projects-scrollable {
    overflow-x: auto;
    padding: var(--spacing-md) 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.3) transparent;
}

.projects-scrollable::-webkit-scrollbar {
    height: 8px;
}

.projects-scrollable::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.projects-scrollable::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.projects-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.6);
}

.projects-container {
    display: flex;
    gap: var(--spacing-xl);
    min-width: max-content;
    padding: 0 var(--spacing-lg);
}

/* Tilted Project Cards */
.project-card-tilt {
    width: 420px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.25),
        0 0 120px rgba(0, 212, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    /* Enhanced glassy transparent effect */
}

.project-card-tilt::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 212, 255, 0.15) 50%,
            transparent 100%);
    transition: left 0.6s ease;
}

.tilt-left {
    transform: perspective(1000px) rotateY(-8deg) rotateX(2deg) translateX(-20px);
}

.tilt-center {
    transform: perspective(1000px) rotateY(0deg) rotateX(1deg) translateX(0px);
}

.tilt-right {
    transform: perspective(1000px) rotateY(8deg) rotateX(2deg) translateX(20px);
}

.project-card-tilt:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateX(0px) translateY(-15px) scale(1.02);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.3),
        0 0 120px rgba(0, 212, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(0, 212, 255, 0.6);
    background: rgba(255, 255, 255, 0.12);
}

.project-card-tilt:hover::before {
    left: 100%;
}

.card-content-tilt {
    position: relative;
    z-index: 2;
}

/* Latest Post Section */
.posts-section {
    padding: 2rem 5%;
    margin: 4rem 5% 3rem 5%;
    background: rgba(26, 26, 46, 0.25);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 60px rgba(0, 212, 255, 0.1);
    /* Glassy transparent effect */
}

.posts-section .section-title {
    margin-bottom: 0.5rem;
    text-align: center;
}

.single-post-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto;
    padding-top: 2.7rem;
    position: relative;
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 0;
}

.post-card-single {
    width: 95%;
    max-width: 1100px;
    min-height: 500px;
    background: rgba(235, 235, 240, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-lg);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.2),
        0 0 80px rgba(0, 212, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: perspective(1000px) rotateY(-4deg) rotateX(1deg) translateX(0px);
    transition: all 0.5s ease, opacity 0.5s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Enhanced glassy transparent effect */
}

.post-card-link-single {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-single::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 212, 255, 0.1) 50%,
            transparent 100%);
    transition: left 0.6s ease;
}

.post-card-single:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateX(-30px) translateY(-10px);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.25),
        0 0 120px rgba(0, 212, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: rgba(245, 245, 250, 0.95);
    border-color: rgba(0, 212, 255, 0.5);
}

.post-card-single:hover::before {
    left: 100%;
}

.post-content-single {
    padding: var(--spacing-xl);
    position: relative;
    z-index: 2;
    background: transparent;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-header-single {
    margin-bottom: var(--spacing-lg);
}

.post-category-single {
    background: var(--gradient-secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: var(--spacing-md);
}

.post-title-single {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2a2a2a;
    /* Darker grey instead of pure black for softer look */
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.post-description-single {
    color: #5a5a5a;
    /* Slightly lighter grey for softer contrast */
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.post-tech-single {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.tech-tag-single {
    background: rgba(10, 10, 25, 0.85);
    color: var(--accent-cyan);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: var(--font-mono);
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.tech-tag-single::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 212, 255, 0.3) 50%,
            transparent 100%);
    transition: left 0.6s ease;
}

.tech-tag-single:hover {
    background: rgba(10, 10, 25, 0.95);
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(0, 212, 255, 0.3),
        0 0 20px rgba(0, 212, 255, 0.2),
        inset 0 0 15px rgba(0, 212, 255, 0.1);
    backdrop-filter: blur(8px);
}

.tech-tag-single:hover::before {
    left: 100%;
}

.post-read-more {
    display: inline-flex;
    align-items: center;
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.post-read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-secondary);
    transition: width 0.3s ease;
}

.post-read-more:hover {
    transform: translateX(5px);
    color: var(--accent-purple);
}

.post-read-more:hover::after {
    width: 100%;
}

/* Section Separators */
.projects-section::after,
.posts-section::after {
    content: '';
    position: absolute;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 212, 255, 0.3) 50%,
            transparent 100%);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.projects-section::after {
    bottom: 0;
}

.posts-section::after {
    bottom: 0;
}

/* Post Card Animations */
.post-card-single.animate-out {
    animation: postFadeOut 0.3s ease-in forwards;
}

.post-card-single.scroll-in {
    animation: postScrollIn 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card-single.slide-in-from-right {
    animation: postSlideInFromRight 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card-single.fall-off {
    animation: postFallOff 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card-single.fade-rotate {
    animation: postFadeRotate 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes postFadeOut {
    from {
        transform: perspective(1000px) rotateY(-6deg) rotateX(2deg) translateX(0px);
        opacity: 1;
    }

    to {
        transform: perspective(1000px) rotateY(-6deg) rotateX(2deg) translateX(0px) scale(0.8);
        opacity: 0;
    }
}

@keyframes postScrollIn {
    from {
        transform: perspective(1000px) rotateY(-6deg) rotateX(2deg) translateX(100px) rotateZ(-5deg);
        opacity: 0;
        filter: blur(10px);
    }

    to {
        transform: perspective(1000px) rotateY(-6deg) rotateX(2deg) translateX(0px) rotateZ(0deg);
        opacity: 1;
        filter: blur(0px);
    }
}

@keyframes postSlideInFromRight {
    from {
        transform: perspective(1000px) rotateY(-6deg) rotateX(2deg) translateX(150px) scale(0.9);
        opacity: 0;
    }

    to {
        transform: perspective(1000px) rotateY(-6deg) rotateX(2deg) translateX(0px) scale(1);
        opacity: 1;
    }
}

@keyframes postFallOff {
    from {
        transform: perspective(1000px) rotateY(-6deg) rotateX(2deg) translateX(0px) rotateZ(0deg);
        opacity: 1;
    }

    50% {
        transform: perspective(1000px) rotateY(-6deg) rotateX(15deg) translateX(0px) translateY(-50px) rotateZ(180deg);
        opacity: 0.8;
    }

    to {
        transform: perspective(1000px) rotateY(-6deg) rotateX(15deg) translateX(0px) translateY(200px) rotateZ(360deg);
        opacity: 0;
    }
}

@keyframes postFadeRotate {
    from {
        transform: perspective(1000px) rotateY(180deg) rotateX(10deg) scale(0.5);
        opacity: 0;
    }

    50% {
        transform: perspective(1000px) rotateY(90deg) rotateX(5deg) scale(0.8);
        opacity: 0.5;
    }

    to {
        transform: perspective(1000px) rotateY(-6deg) rotateX(2deg) scale(1);
        opacity: 1;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: var(--spacing-lg);
    transition: transform var(--transition-medium);
}

.project-card {
    min-width: 350px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: var(--transition-medium);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 15px 40px rgba(0, 212, 255, 0.3),
        0 0 80px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.6);
    background: rgba(255, 255, 255, 0.12);
}

.card-link:hover .project-card {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow-cyan);
    border-color: var(--accent-cyan);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.project-tag {
    background: var(--gradient-secondary);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.project-tech {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.tech-tag {
    background: var(--glass-bg);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: var(--font-mono);
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.tech-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 212, 255, 0.3) 50%,
            transparent 100%);
    transition: left 0.6s ease;
}

.tech-tag:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(0, 212, 255, 0.3),
        0 0 20px rgba(0, 212, 255, 0.2),
        inset 0 0 15px rgba(0, 212, 255, 0.1);
    backdrop-filter: blur(8px);
}

.tech-tag:hover::before {
    left: 100%;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-btn:hover {
    background: var(--accent-cyan);
    box-shadow: var(--shadow-glow-cyan);
    transform: scale(1.1);
}

.carousel-indicators {
    display: flex;
    gap: var(--spacing-sm);
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.indicator.active {
    background: var(--accent-cyan);
    width: 24px;
    border-radius: 4px;
}

.indicator:hover {
    background: var(--accent-purple);
}

/* Footer */
.footer {
    background: #000000;
    padding: var(--spacing-2xl) 0 var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

.footer-section h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    color: var(--text-secondary);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    color: var(--accent-cyan);
    background: var(--accent-cyan);
    box-shadow: var(--shadow-glow-cyan);
    transform: scale(1.1);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--accent-cyan);
}

.footer-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.email-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.email-link:hover {
    text-shadow: 0 0 10px var(--accent-cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .nav-links {
        gap: var(--spacing-md);
    }

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

    .hero-box {
        width: 80vw;
        max-width: 500px;
        height: 280px;
    }

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

    .hero-tagline blockquote {
        font-size: 1.2rem;
        padding: 0 var(--spacing-md);
    }

    .post-card-single {
        width: 90%;
        max-width: 600px;
        transform: perspective(1000px) rotateY(-4deg) rotateX(1deg) translateX(0px);
    }

    .post-card-single:hover {
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateX(0px) translateY(-8px);
    }

    .projects-container {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-lg);
    }

    .project-card-tilt {
        width: 100%;
        max-width: 420px;
    }

    .tilt-left,
    .tilt-center,
    .tilt-right {
        transform: perspective(1000px) rotateX(1deg) translateX(0px);
    }

    .project-card-tilt:hover {
        transform: perspective(1000px) rotateX(0deg) translateX(0px) translateY(-10px) scale(1.02);
    }

    .carousel-track {
        flex-direction: column;
        align-items: center;
    }

    .project-card-tilt {
        width: 90%;
        max-width: 380px;
    }

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

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

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

    .hero-box {
        height: 220px;
        transform: perspective(1200px) rotateX(2deg) rotateY(-3deg) rotateZ(2deg);
    }

    .hero-box:hover {
        transform: perspective(1200px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateY(-10px) scale(1.02);
    }

    .post-card-single {
        width: 90%;
        transform: perspective(1000px) rotateY(-5deg) rotateX(1deg) translateX(-30px);
    }

    .post-card-single:hover {
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateX(-20px) translateY(-8px);
    }

    .post-content-single {
        padding: var(--spacing-lg);
    }

    .post-title-single {
        font-size: 1.4rem;
    }

    .hero-tagline blockquote {
        font-size: 1rem;
    }

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

    .footer {
        padding: var(--spacing-xl) 0 var(--spacing-sm);
    }
}