/* ============================================
   COSMIC EXPLORER PORTFOLIO - STYLE.CSS
   Three.js Space Theme
   ============================================ */

/* CSS Variables */
:root {
    --bg-dark: #050505;
    --primary: #3b82f6;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(5, 5, 5, 0.6);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Exo 2', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Three.js Canvas */
#space-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Warp Speed Overlay Effect */
.warp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(ellipse at center, transparent 0%, transparent 50%, rgba(59, 130, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.warp-overlay.active {
    opacity: 1;
}

/* Section Transition Effects */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    position: relative;
    transition: transform 0.5s ease;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, var(--bg-dark), transparent);
    pointer-events: none;
    z-index: 1;
}

.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    pointer-events: none;
    z-index: 1;
}

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

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-ring {
    width: 80px;
    height: 80px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Navigation */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-container.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo-bracket {
    color: var(--primary);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

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

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.language-switch {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(5, 5, 5, 0.75);
    backdrop-filter: blur(14px);
}

.language-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.language-btn:hover {
    color: var(--text-primary);
}

.language-btn.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.22), rgba(139, 92, 246, 0.22));
    color: var(--text-primary);
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-dot:hover,
.progress-dot.active {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

/* Content Wrapper */
.content-wrapper {
    position: relative;
    z-index: 10;
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    position: relative;
}

.section-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.title-accent {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section */
.hero-section {
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-avatar-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
}

.avatar-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.3;
    animation: pulse 3s ease-in-out infinite;
    border-radius: 50%;
}

.hero-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    border: 3px solid var(--primary);
}

.avatar-ring {
    position: absolute;
    inset: -10px;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.avatar-ring::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--secondary);
    border-radius: 50%;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

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

.hero-title {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title-line {
    display: block;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
}

.title-gradient {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    width: 10ch;
    min-width: 10ch;
    min-height: 1.2em;
    margin: 0 auto;
    text-align: center;
    white-space: nowrap;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    transition: opacity 0.22s ease, transform 0.22s ease;
    transform-origin: center;
}

.title-gradient.is-changing {
    opacity: 0.35;
    transform: translateY(4px);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.hero-pill {
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.24);
    background: rgba(59, 130, 246, 0.08);
    color: var(--text-primary);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--text-primary);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

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

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

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

@keyframes scroll {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(10px); }
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Glass Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
}

.section-intro {
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.8;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 0.85rem;
    color: var(--accent);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

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

.about-image-wrapper {
    position: relative;
    max-width: 350px;
    margin: 0 auto;
}

.about-image-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.2;
    border-radius: 50%;
}

.about-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.about-image-border {
    position: absolute;
    inset: -15px;
    border: 2px dashed var(--secondary);
    border-radius: 50%;
    animation: rotate 30s linear infinite reverse;
}

.about-subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

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

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Collaboration Section */
.collaboration-section .section-container {
    width: 100%;
}

.collaboration-intro {
    margin-bottom: 2.5rem;
}

.collaboration-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.collaboration-card {
    height: 100%;
}

.collaboration-card h3,
.availability-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.9rem;
}

.collaboration-card p,
.availability-note {
    color: var(--text-secondary);
    line-height: 1.8;
}

.availability-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.availability-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.availability-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--text-primary);
    font-size: 0.88rem;
}

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

.skill-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--skill-color, var(--primary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.skill-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--skill-color, var(--primary));
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2),
                0 0 30px color-mix(in srgb, var(--skill-color, var(--primary)) 30%, transparent);
}

.skill-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-icon-svg {
    width: 50px;
    height: 50px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-icon-svg svg {
    width: 100%;
    height: 100%;
}

.skill-card:hover .skill-icon-svg {
    transform: scale(1.1) rotateY(10deg);
}

.skill-icon-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(15px);
    transition: opacity 0.3s ease;
}

.skill-card:hover .skill-icon-glow {
    opacity: 0.4;
    animation: pulseGlow 1.5s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

.skill-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    font-size: 1.8rem;
}

.skill-name {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Projects Section */
.projects-carousel {
    width: 100%;
    position: relative;
    outline: none;
}

.projects-carousel-viewport {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    perspective: 1400px;
}

.project-card {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(520px, 82vw);
    min-height: 620px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    transform:
        translateX(calc(-50% + (var(--project-offset, 0) * 68%)))
        translateY(34px)
        scale(0.86)
        rotateY(calc(var(--project-offset, 0) * -12deg));
    transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.project-card.visible {
    opacity: 0.42;
}

.project-card.is-active {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1) rotateY(0);
    pointer-events: auto;
    z-index: 20;
}

.project-card.is-prev,
.project-card.is-next {
    opacity: 0.55;
    pointer-events: auto;
    z-index: 10;
}

.project-card.is-hidden-card {
    opacity: 0;
    pointer-events: none;
}

.project-card.is-active:hover {
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(59, 130, 246, 0.3);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card.is-active:hover .project-image {
    transform: scale(1.1);
}

.project-image-wrapper {
    position: relative;
    overflow: hidden;
}

.project-image-wrapper.is-logo-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 240px;
    padding: 2rem;
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.12), transparent 35%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(226, 232, 240, 0.9));
}

.project-image-wrapper.is-logo-tile .project-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: none;
}

.project-card.is-active:hover .project-image-wrapper.is-logo-tile .project-image {
    transform: none;
}

.project-image-wrapper.is-logo-tile .project-overlay {
    opacity: 0;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.9), transparent);
    opacity: 0.8;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.project-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.project-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.tech-tag {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

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

.project-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

.project-link.is-disabled {
    color: var(--text-secondary);
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 999px;
    font-size: 0.72rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.project-status.is-live {
    color: #7dd3fc;
    background: rgba(6, 182, 212, 0.12);
}

.project-status.is-progress {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.25);
}

.project-link-more {
    background: none;
    border: none;
    font-size: 0.85rem;
    color: var(--secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.project-link-more:hover {
    color: var(--accent);
}

.projects-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.project-nav-btn {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.project-nav-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.16);
}

.projects-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    max-width: 520px;
}

.project-dot {
    width: 10px;
    height: 10px;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.project-dot.active {
    width: 28px;
    border-color: var(--primary);
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-card {
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    stroke: var(--text-primary);
}

.contact-details h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

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

.contact-social-copy {
    margin-bottom: 0.85rem;
}

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

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease, transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.social-link svg {
    flex-shrink: 0;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link[data-testid="github-link"] {
    color: #f8fafc;
}

.social-link[data-testid="github-link"]:hover {
    color: #ffffff;
    border-color: rgba(248, 250, 252, 0.35);
    background: rgba(248, 250, 252, 0.08);
}

.social-link[data-testid="facebook-link"] {
    color: #60a5fa;
}

.social-link[data-testid="facebook-link"]:hover {
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.35);
    background: rgba(96, 165, 250, 0.08);
}

.social-link[data-testid="instagram-link"] {
    color: #f472b6;
}

.social-link[data-testid="instagram-link"]:hover {
    color: #f9a8d4;
    border-color: rgba(244, 114, 182, 0.35);
    background: rgba(244, 114, 182, 0.08);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.form-group textarea {
    resize: none;
    min-height: 120px;
}

.form-status {
    text-align: center;
    font-weight: 600;
    padding: 1rem;
    border-radius: 12px;
}

.form-status.is-success {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.form-status.is-error {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
}

.btn-primary.is-loading {
    opacity: 0.8;
    cursor: wait;
}

.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Footer */
.footer {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(20px);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.hidden {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.modal-image.is-logo {
    object-fit: contain;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(226, 232, 240, 0.92));
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.modal-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-line;
}

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

.modal-buttons {
    display: flex;
    gap: 1rem;
}

.modal-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.modal-btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--text-primary);
    border: none;
}

.modal-btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.modal-btn:hover {
    transform: translateY(-2px);
}

.modal-btn.is-disabled {
    opacity: 0.55;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--secondary));
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image-wrapper {
        max-width: 250px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .content-wrapper,
    .section,
    .section-container {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    .section {
        min-height: auto;
        padding: 5rem 1.25rem;
        align-items: flex-start;
    }

    .hero-section {
        min-height: 100vh;
        align-items: center;
        padding-top: 6rem;
    }

    .section-title {
        margin-bottom: 2.25rem;
    }

    .section-intro {
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        padding: 2rem;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .scroll-progress {
        display: none;
    }
    
    .hero-avatar-container {
        width: 140px;
        height: 140px;
    }

    .nav-container {
        padding: 0.9rem 1rem;
        gap: 0.75rem;
    }

    .nav-logo {
        font-size: 1.05rem;
        line-height: 1;
        flex-shrink: 0;
    }

    .nav-actions {
        gap: 0.55rem;
        min-width: 0;
    }

    .language-switch {
        order: -1;
        flex-shrink: 0;
    }

    .language-btn {
        padding: 0.4rem 0.65rem;
        font-size: 0.72rem;
    }

    .mobile-toggle {
        flex-shrink: 0;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .hero-title {
        width: 100%;
        max-width: 100%;
        margin-bottom: 1.25rem;
        overflow: hidden;
    }

    .title-line {
        width: 100%;
        max-width: 100%;
        font-size: clamp(1.75rem, 8.5vw, 2.65rem);
        line-height: 1.12;
        text-align: center;
    }

    .title-gradient {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        font-size: clamp(2rem, 11vw, 3.35rem);
        line-height: 1.12;
        letter-spacing: 0.01em;
    }

    .hero-description {
        max-width: 34rem;
        padding: 0 0.15rem;
        font-size: 1rem;
        line-height: 1.7;
    }

    .hero-pill {
        max-width: 100%;
        text-align: center;
        line-height: 1.45;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }

    .about-grid,
    .contact-grid {
        gap: 1.5rem;
    }

    .collaboration-grid {
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .availability-panel {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .skills-grid {
        gap: 1rem;
    }

    .projects-carousel {
        max-width: 540px;
        margin: 0 auto;
    }

    .projects-carousel-viewport {
        display: grid;
        min-height: 0;
        overflow: visible;
        perspective: none;
    }

    .project-card {
        position: relative;
        top: auto;
        left: auto;
        grid-area: 1 / 1;
        width: 100%;
        min-height: 0;
        opacity: 0;
        transform: translateX(18px) scale(0.98);
        visibility: hidden;
        transition: opacity 0.3s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.3s ease, border-color 0.3s ease;
    }

    .project-card.visible {
        opacity: 0;
    }

    .project-card:not(.is-active) {
        position: absolute;
        inset: 0;
        width: 100%;
    }

    .project-card.is-active {
        position: relative;
        opacity: 1;
        transform: translateX(0) scale(1);
        visibility: visible;
    }

    .project-card.is-prev,
    .project-card.is-next,
    .project-card.is-hidden-card {
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transform: translateX(calc(var(--project-offset, 0) * 24px)) scale(0.98);
    }

    .project-content {
        padding: 1.25rem;
    }

    .project-image {
        height: 180px;
    }

    .project-image-wrapper.is-logo-tile {
        height: 200px;
        padding: 1.5rem;
    }

    .projects-carousel-controls {
        margin-top: 1rem;
        gap: 0.75rem;
    }

    .projects-carousel-dots {
        max-width: 260px;
        gap: 0.45rem;
    }
    
    .glass-panel {
        padding: 1.5rem;
    }
    
    .modal-meta {
        grid-template-columns: 1fr;
    }
    
    .modal-buttons {
        flex-direction: column;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 4.25rem 1rem;
    }

    .hero-section {
        padding-top: 5.75rem;
    }

    .section-title {
        margin-bottom: 1.75rem;
    }

    .title-line {
        font-size: clamp(1.45rem, 7.8vw, 2rem);
        letter-spacing: -0.02em;
    }

    .title-gradient {
        font-size: clamp(2rem, 10.5vw, 2.8rem);
        letter-spacing: 0;
    }

    .hero-avatar-container {
        width: 132px;
        height: 132px;
        margin-bottom: 1.65rem;
    }

    .hero-description,
    .about-text,
    .collaboration-card p,
    .availability-note {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .hero-buttons {
        flex-direction: column;
        margin-bottom: 2rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skill-card {
        padding: 1.1rem 0.75rem;
    }

    .skill-icon-wrapper {
        width: 56px;
        height: 56px;
    }

    .project-header {
        gap: 0.65rem;
    }

    .project-description {
        font-size: 0.88rem;
    }

    .project-nav-btn {
        width: 42px;
        height: 42px;
        font-size: 1.7rem;
    }

    .project-dot {
        width: 9px;
        height: 9px;
    }

    .project-dot.active {
        width: 22px;
    }

    .hero-highlights {
        flex-direction: column;
        align-items: center;
        gap: 0.65rem;
    }

    .hero-pill {
        width: min(100%, 320px);
        padding: 0.65rem 0.9rem;
    }

    .contact-item {
        gap: 0.8rem;
        padding: 1rem 0;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
    }

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

    .modal {
        padding: 1rem;
    }

    .modal-image,
    .modal-image.is-logo {
        height: 190px;
    }

    .language-btn {
        padding: 0.4rem 0.65rem;
    }

    .availability-tags,
    .social-links {
        gap: 0.65rem;
    }
}

@media (max-width: 380px) {
    .nav-container {
        padding: 0.75rem 0.8rem;
    }

    .nav-logo {
        font-size: 0.95rem;
    }

    .language-btn {
        padding: 0.36rem 0.55rem;
        font-size: 0.68rem;
    }

    .mobile-toggle span {
        width: 22px;
    }

    .title-line {
        font-size: clamp(1.32rem, 7.2vw, 1.7rem);
    }

    .title-gradient {
        font-size: clamp(1.85rem, 10vw, 2.35rem);
    }

    .hero-description {
        font-size: 0.92rem;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}
