/* ==========================================================================
   SAMET EFE YILDIZ - 3D PORTFOLIO DESIGN SYSTEM
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
    --bg-color: #050508;
    --bg-card: rgba(13, 13, 23, 0.6);
    --bg-header: rgba(5, 5, 8, 0.85);
    --text-primary: #f0f0f5;
    --text-muted: #a0a0b5;
    
    /* Neon Palettes */
    --neon-cyan: #00f2fe;
    --neon-blue: #4facfe;
    --neon-violet: #9b51e0;
    --neon-pink: #ff007f;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--neon-violet) 0%, var(--neon-pink) 100%);
    --gradient-mixed: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-violet) 50%, var(--neon-pink) 100%);
    --gradient-card-border: linear-gradient(135deg, rgba(0, 242, 254, 0.25) 0%, rgba(155, 81, 224, 0.25) 100%);
    
    /* Spacing & Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease-out;
    --radius-lg: 16px;
    --radius-md: 8px;
    --shadow-glow: 0 0 15px rgba(0, 242, 254, 0.3);
    
    /* Carousel 3D variables */
    --tz: 380px; /* Z-translation (radius) of carousel cards */
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    outline: none;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* Custom Interactive Cursor Removed for Performance Optimization */

/* Focus indicator for TV / Keyboard users */
:focus-visible {
    outline: 3px solid var(--neon-cyan) !important;
    outline-offset: 4px;
    box-shadow: 0 0 25px var(--neon-cyan) !important;
    transform: scale(1.03) translateY(-2px);
    transition: var(--transition-fast);
}

/* Typography elements */
h1, h2, h3, h4, .logo {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    font-weight: 700;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--neon-cyan), var(--neon-violet));
    border-radius: 4px;
}

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

/* Base layout & glass paneling */
.section {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    z-index: 10;
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: rgba(0, 242, 254, 0.2);
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.1);
}

/* Section Header Styles */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neon-cyan);
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.section-header .section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.section-header .section-line {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 12px auto 0 auto;
    border-radius: 2px;
}

.section-header .section-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 15px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #050508;
    border: none;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.6);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--neon-violet);
    color: var(--neon-cyan);
    transform: translateY(-2px);
}

.btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.logo-emblem {
    font-size: 1.5rem;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.6));
}

.logo-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

.logo-accent {
    color: var(--neon-cyan);
    font-weight: 900;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 5px 0;
}

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

.nav-link:hover, .nav-link.active {
    color: var(--neon-cyan);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding-top: 140px;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    z-index: 10;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.glow-tag {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--neon-cyan);
    background: rgba(0, 242, 254, 0.08);
    padding: 6px 12px;
    border-radius: 30px;
    border: 1px solid rgba(0, 242, 254, 0.2);
    margin-bottom: 24px;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 16px;
    font-weight: 900;
}

.typing-container {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 24px;
    height: 35px;
    display: flex;
    align-items: center;
}

.typing-prefix {
    color: var(--text-muted);
    margin-right: 6px;
}

.typing-text {
    color: var(--neon-cyan);
    font-weight: 600;
    border-right: 2px solid var(--neon-cyan);
    padding-right: 4px;
    animation: blink 0.7s step-end infinite;
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* 3D Hero image card styling */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.tilt-card {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

.hero-3d-card {
    width: 320px;
    height: 480px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    cursor: grab;
}

.hero-3d-card:active {
    cursor: grabbing;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 2;
}

.card-inner {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 12px;
    overflow: hidden;
    transform: translateZ(20px);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.5s ease;
}

.hero-3d-card:hover .hero-img {
    transform: scale(1.05) translateZ(10px);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px;
    background: linear-gradient(to top, rgba(5, 5, 8, 0.9) 0%, rgba(5, 5, 8, 0.4) 60%, transparent 100%);
    z-index: 3;
    transform: translateZ(15px);
}

.card-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-overlay p {
    font-size: 0.8rem;
    color: var(--neon-cyan);
    letter-spacing: 1px;
    font-weight: 500;
}

/* Scroll down indicator */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-down a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1.5px;
    transition: var(--transition-fast);
}

.scroll-down a:hover {
    color: var(--neon-cyan);
}

.mouse-icon {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
    margin-bottom: 8px;
}

.mouse-icon::after {
    /* Glowing mouse point */
}

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

/* ==========================================================================
   ABOUT ME SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.about-3d-card {
    width: 320px;
    height: 430px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.about-3d-card .card-inner {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 10px;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid var(--neon-cyan);
    padding: 8px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
    transform: translateZ(25px);
}

.about-info {
    padding: 40px;
}

.about-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.about-info p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1rem;
}

.personal-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gradient-icon {
    font-size: 1.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.detail-item strong {
    display: block;
    font-size: 0.75rem;
    color: var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
}

.detail-item span {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* ==========================================================================
   3D PHOTO GALLERY SECTION (CAROUSEL)
   ========================================================================== */
.gallery-wrapper {
    position: relative;
    width: 100%;
    height: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    overflow: visible;
}

.carousel-3d {
    position: relative;
    width: 280px;
    height: 380px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.carousel-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-card);
    transition: opacity 0.5s, filter 0.5s, border-color 0.5s;
    user-select: none;
    -webkit-user-drag: none;
    cursor: grab;
    transform-style: preserve-3d;
    will-change: transform, opacity, filter;
}

.carousel-card:active {
    cursor: grabbing;
}

/* Positions of individual cards around the cylinder */
.carousel-card:nth-child(1) { transform: rotateY(0deg) translateZ(var(--tz)); }
.carousel-card:nth-child(2) { transform: rotateY(90deg) translateZ(var(--tz)); }
.carousel-card:nth-child(3) { transform: rotateY(180deg) translateZ(var(--tz)); }
.carousel-card:nth-child(4) { transform: rotateY(270deg) translateZ(var(--tz)); }

.carousel-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.carousel-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px 16px;
    background: linear-gradient(to top, rgba(5, 5, 8, 0.9) 0%, rgba(5, 5, 8, 0.4) 70%, transparent 100%);
    color: var(--text-primary);
    transform: translateZ(10px);
}

.carousel-card-info h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.carousel-card-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Inactive visual effects to give depth */
.carousel-card {
    opacity: 0.35;
    filter: grayscale(80%) blur(1px);
}

.carousel-card.active {
    opacity: 1;
    filter: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.25), 0 15px 35px rgba(0, 0, 0, 0.7);
}

/* Carousel control buttons */
.carousel-controls {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    z-index: 10;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
    background: var(--gradient-primary);
    color: #050508;
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-glow);
    transform: scale(1.08);
}

/* Navigation dots */
.carousel-dots {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-dots .dot.active {
    background: var(--neon-cyan);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 8px var(--neon-cyan);
}

.carousel-dots .dot:focus-visible {
    outline: 2px solid var(--neon-cyan) !important;
    outline-offset: 3px;
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.skill-category {
    padding: 35px;
    height: 100%;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
}

.category-icon {
    font-size: 1.5rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.skill-category:nth-child(2) .category-icon {
    color: var(--neon-violet);
    text-shadow: 0 0 10px rgba(155, 81, 224, 0.3);
}

.skill-category:nth-child(3) .category-icon {
    color: var(--neon-pink);
    text-shadow: 0 0 10px rgba(255, 0, 127, 0.3);
}

.skill-category h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.skill-info span:first-child {
    color: var(--text-primary);
}

.skill-info span:last-child {
    color: var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
}

.skill-category:nth-child(2) .skill-info span:last-child {
    color: var(--neon-violet);
}

.skill-category:nth-child(3) .skill-info span:last-child {
    color: var(--neon-pink);
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    border-radius: 3px;
    background: var(--gradient-primary);
    position: absolute;
    top: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* Different color bar for different groups */
.skill-category:nth-child(2) .skill-progress {
    background: linear-gradient(135deg, var(--neon-violet) 0%, var(--neon-blue) 100%);
}

.skill-category:nth-child(3) .skill-progress {
    background: linear-gradient(135deg, var(--neon-pink) 0%, var(--neon-violet) 100%);
}

.skill-category.animate .skill-progress {
    transform: scaleX(1);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    align-items: flex-start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon-box {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--neon-cyan);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.05);
}

.contact-card:nth-child(2) .contact-icon-box {
    background: rgba(155, 81, 224, 0.08);
    border-color: rgba(155, 81, 224, 0.2);
    color: var(--neon-violet);
}

.contact-card-content h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.contact-card-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.contact-card-content a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.contact-card-content a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 5px var(--neon-cyan);
}

.social-links-wrapper {
    margin-top: 15px;
}

.social-links-wrapper h4 {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    backdrop-filter: blur(8px);
    letter-spacing: 0.5px;
}

.social-btn i {
    font-size: 1.1rem;
}

.social-label {
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.social-btn.instagram {
    border-color: rgba(214, 36, 159, 0.3);
}
.social-btn.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(214, 36, 159, 0.45);
}

.social-btn.youtube {
    border-color: rgba(255, 0, 0, 0.3);
}
.social-btn.youtube:hover {
    background: #ff0000;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.social-btn.linkedin {
    border-color: rgba(0, 119, 181, 0.3);
}
.social-btn.linkedin:hover {
    background: #0077b5;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.4);
}

/* Glass Contact Form */
.contact-form {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-cyan);
    letter-spacing: 0.5px;
}

.form-group input, .form-group textarea {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--neon-cyan);
    background: rgba(0, 242, 254, 0.02);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

.form-group textarea {
    resize: none;
}

.btn-submit {
    align-self: flex-start;
    border: none;
    width: 100%;
}

.form-status {
    font-size: 0.85rem;
    margin-top: 10px;
    text-align: center;
    min-height: 20px;
}

.form-status.success {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.form-status.error {
    color: var(--neon-pink);
    text-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(3, 3, 5, 0.95);
    padding: 30px 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: var(--neon-cyan);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-cyan);
    animation: pulse 1.8s infinite;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--neon-cyan); }
}

@keyframes scroll-wheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    50% { transform: translate(-50%, 8px); opacity: 0.5; }
    100% { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 242, 254, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (CROSS-PLATFORM MEDIA QUERIES)
   ========================================================================== */

/* 1. Large Screens & TVs (Console Browsers / WebTVs) */
@media screen and (min-width: 1920px) {
    :root {
        --tz: 460px; /* Wider translation for larger screen display */
    }
    
    body {
        font-size: 18px; /* Scale up typography globally */
    }
    
    .section-container, .header-container, .hero-container, .footer-container {
        max-width: 1600px;
    }
    
    .hero-3d-card {
        width: 380px;
        height: 570px;
    }
    
    .about-3d-card {
        width: 380px;
        height: 510px;
    }
    
    .carousel-3d {
        width: 340px;
        height: 460px;
    }
    
    .section {
        padding: 150px 0;
    }
}

/* 1.5. Ultra-HD / 4K Screens & Smart TVs */
@media screen and (min-width: 2560px) {
    :root {
        --tz: 580px;
    }
    body {
        font-size: 22px; /* Scale up typography even more for viewing from a distance */
    }
    .section-container, .header-container, .hero-container, .footer-container {
        max-width: 2200px;
    }
    .hero-3d-card {
        width: 460px;
        height: 690px;
    }
    .about-3d-card {
        width: 460px;
        height: 620px;
    }
    .carousel-3d {
        width: 400px;
        height: 540px;
    }
    .section {
        padding: 200px 0;
    }
}

/* 2. Tablets and Laptops (Medium screens) */
@media screen and (max-width: 1024px) {
    :root {
        --tz: 300px;
    }
    
    .hero-container {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 30px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image-wrapper {
        order: -1;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .carousel-3d {
        width: 250px;
        height: 340px;
    }
}

/* 3. Mobile Devices (Small screens) */
@media screen and (max-width: 768px) {
    :root {
        --tz: 200px; /* Reduced Z-depth so it fits within viewport margins */
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header .section-title {
        font-size: 1.8rem;
    }
    
    /* Navigation Menu collapse */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: rgba(5, 5, 8, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        transition: right 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-menu.open ~ .nav-toggle .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .nav-menu.open ~ .nav-toggle .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-menu.open ~ .nav-toggle .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Hero layout */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-image-wrapper {
        margin-top: 30px;
    }
    
    .hero-3d-card {
        width: 260px;
        height: 390px;
    }
    
    /* About layouts */
    .about-3d-card {
        width: 260px;
        height: 350px;
    }
    
    .about-info {
        padding: 24px;
    }
    
    .personal-details {
        grid-template-columns: 1fr;
    }
    
    /* Carousel layout adjustments */
    .gallery-wrapper {
        height: 480px;
    }
    
    .carousel-container {
        height: 360px;
    }
    
    .carousel-3d {
        width: 200px;
        height: 270px;
    }
    
    .carousel-card-info {
        padding: 16px 12px;
    }
    
    .carousel-card-info h4 {
        font-size: 0.9rem;
    }
    
    .carousel-controls {
        gap: 20px;
        margin-top: 15px;
    }
    
    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skill-category {
        padding: 24px;
    }
    
    /* Contact details */
    .contact-form {
        padding: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    /* Turn off custom cursor for mobile devices */
    .custom-cursor, .custom-cursor-dot {
        display: none;
    }
}
