/* ============================================
   PREMIUM 3D PORTFOLIO UI - ENHANCED VERSION
   ============================================ */

:root {
    --primary-color: #00d9ff;
    --primary-dark: #0066cc;
    --secondary-color: #0052a3;
    --accent-color: #00a3ff;
    --neon-pink: #ff006e;
    --neon-purple: #9d4edd;
    --dark-bg: #0a0e27;
    --lighter-bg: #f8f9fa;
    --text-light: #1a1a1a;
    --text-light-inv: #ffffff;
    --text-muted: #666666;
    --border-color: #cccccc;
    --blue-light: #e6f2ff;
    --blue-dark: #003d7a;
    --glass-light: rgba(255, 255, 255, 0.08);
    --glass-dark: rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 50%, #f8f9fa 100%);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* ============================================
   ENHANCED ANIMATIONS
   ============================================ */

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #e6f2ff 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: splashFadeOut 0.8s ease-in-out 4.8s forwards;
    overflow: hidden;
}

.splash-screen::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: 10%;
    right: 10%;
    animation: float 4s ease-in-out infinite;
}

.splash-screen::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 10%;
    left: 10%;
    animation: float 5s ease-in-out infinite;
}

.splash-content {
    text-align: center;
    perspective: 1000px;
    position: relative;
    z-index: 1;
}

.splash-text {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0066cc, #00d9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: splashTextIn 1s ease-out;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(0, 102, 204, 0.3);
}

.splash-text-sub {
    font-size: 2.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #00d9ff, #0052a3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    animation: splashTextIn 1.2s ease-out 0.3s backwards;
    letter-spacing: 2px;
}

.loading-bar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 60px;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(0, 102, 204, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #0066cc, #00d9ff);
    border-radius: 10px;
    animation: loadingProgress 4.8s ease-in-out forwards;
    box-shadow: 0 0 15px #00d9ff;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes splashFadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

@keyframes splashTextIn {
    0% {
        opacity: 0;
        transform: translateY(30px) rotateX(50deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cubeSpin {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 180, 216, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 180, 216, 0.6); }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes glowNeon {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(0, 217, 255, 0.3),
                    inset 0 0 20px rgba(0, 217, 255, 0.1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(0, 217, 255, 0.6),
                    inset 0 0 30px rgba(0, 217, 255, 0.2);
    }
}

@keyframes rotateSlowly {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 217, 255, 0.6);
    }
}

@keyframes orbitParticles {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    25% {
        transform: translate(80px, -80px);
    }
    50% {
        transform: translate(0, -130px);
        opacity: 0.5;
    }
    75% {
        transform: translate(-80px, -80px);
    }
    100% {
        transform: translate(0, 0);
        opacity: 1;
    }
}

@keyframes zoomInOut {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ============================================
   NAVIGATION BAR - 3 DOT MENU
   ============================================ */

.navbar {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(0, 102, 204, 0.2);
    animation: slideInRight 1s ease-out;
    padding: 0;
}

.nav-container {
    display: none;
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 15px;
    z-index: 2000;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
}

.hamburger-menu span {
    width: 6px;
    height: 6px;
    background: #0066cc;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: block;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(-8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(8px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 102, 204, 0.15);
    flex-direction: column;
    gap: 0;
    min-width: 180px;
    overflow: hidden;
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: block;
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
    text-align: center;
}

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

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(0, 102, 204, 0.08);
    color: #0066cc;
    text-shadow: 0 0 10px rgba(0, 102, 204, 0.3);
}

.nav-link {
    display: none;
}


/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    opacity: 0;
    animation: fadeInUp 1s ease-out 4.8s forwards;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 40px;
    scroll-margin-top: 30px;
}

/* ============================================
   HOME SECTION
   ============================================ */

.home-section {
    background: linear-gradient(135deg, #ffffff 0%, #e6f2ff 100%);
    position: relative;
    overflow: hidden;
}

.home-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.08) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
    z-index: 0;
}

.home-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatSlow 8s ease-in-out infinite;
    z-index: 0;
}

.home-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1400px;
    width: 100%;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.home-text {
    flex: 1;
    animation: slideInLeft 1s ease-out;
}

.title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0066cc, #00d9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #0052a3, #00d9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-weight: 600;
}

.description {
    font-size: 1.1rem;
    color: #666666;
    margin-bottom: 20px;
    line-height: 1.8;
    position: relative;
}

.description::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #00d9ff, #0066cc);
    border-radius: 3px;
    opacity: 0.6;
}

.passion {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 30px;
    line-height: 1.8;
    padding: 15px 20px;
    background: rgba(0, 217, 255, 0.05);
    border-left: 3px solid #00d9ff;
    border-radius: 5px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.btn {
    padding: 15px 35px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    background: linear-gradient(135deg, #0066cc, #00d9ff);
    color: white;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.3);
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.5);
    border-color: #00d9ff;
}

.btn-secondary {
    background: transparent;
    color: #0066cc;
    border: 2px solid #0066cc;
    box-shadow: inset 0 0 20px rgba(0, 102, 204, 0.1);
}

.btn-secondary:hover {
    background: #0066cc;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 102, 204, 0.3);
    border-color: #00d9ff;
}

.home-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    animation: slideInRight 1s ease-out;
}

/* ANIMATED VISUAL - PREMIUM */
.animated-visual {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 0 30px rgba(0, 217, 255, 0.2));
    animation: float 4s ease-in-out infinite;
}

.animation-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    animation: zoomInOut 8s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.3));
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.3);
}

.tech-illustration {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: rotateSlowly 20s linear infinite;
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.3));
}

.visual-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.15), transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
    top: 0;
    left: 0;
}

.visual-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #00d9ff, #0066cc);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.6);
    animation: orbitParticles 8s infinite linear;
}

.particle:nth-child(1) {
    animation-delay: 0s;
    top: 50%;
    left: 50%;
}

.particle:nth-child(2) {
    animation-delay: 1.6s;
    top: 50%;
    left: 50%;
}

.particle:nth-child(3) {
    animation-delay: 3.2s;
    top: 50%;
    left: 50%;
}

.particle:nth-child(4) {
    animation-delay: 4.8s;
    top: 50%;
    left: 50%;
}

.particle:nth-child(5) {
    animation-delay: 6.4s;
    top: 50%;
    left: 50%;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e6f2ff 100%);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatSlow 10s ease-in-out infinite;
}

.about-section::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -15%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.about-content {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #0066cc, #00d9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    perspective: 1200px;
    position: relative;
    z-index: 2;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(157, 78, 221, 0.2));
    border-radius: 50%;
    z-index: -1;
    filter: blur(20px);
    animation: glowNeon 3s ease-in-out infinite;
}

.about-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 3px solid #00d9ff;
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.4), inset 0 0 40px rgba(0, 217, 255, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.about-image img:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 0 60px rgba(0, 217, 255, 0.6), inset 0 0 60px rgba(0, 217, 255, 0.2);
}

.about-text {
    animation: slideInRight 1s ease-out;
}

.about-text h3 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #0066cc, #00d9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.about-text p {
    font-size: 1rem;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.skills-section {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05), rgba(157, 78, 221, 0.05));
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.skills-section h4 {
    font-size: 1.3rem;
    background: linear-gradient(135deg, #0066cc, #00d9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.skill-badge {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(157, 78, 221, 0.1));
    border: 1.5px solid #00d9ff;
    color: #0066cc;
    padding: 10px 15px;
    border-radius: 20px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 217, 255, 0.1);
}

.skill-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.skill-badge:hover::before {
    left: 100%;
}

.skill-badge:hover {
    background: linear-gradient(135deg, #0066cc, #00d9ff);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5), inset 0 0 20px rgba(0, 217, 255, 0.2);
    border-color: #00d9ff;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */

.portfolio-section {
    background: linear-gradient(135deg, #ffffff 0%, #e6f2ff 100%);
    position: relative;
}

.portfolio-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 12s ease-in-out infinite;
}

.portfolio-content {
    max-width: 1400px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.section-subtitle {
    text-align: center;
    color: #666666;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(0, 217, 255, 0.3);
    color: #666666;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.05);
}

.tab-btn:hover,
.tab-btn.active {
    background: linear-gradient(135deg, #0066cc, #00d9ff);
    border-color: #00d9ff;
    color: white;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.4);
    transform: translateY(-2px);
}

.tab-content {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.tab-content.active {
    display: block;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background: linear-gradient(135deg, rgba(230, 242, 255, 0.7), rgba(255, 255, 255, 0.5));
    border: 1.5px solid rgba(0, 217, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 0;
}

.portfolio-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(0, 217, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.portfolio-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    border-color: #00d9ff;
    box-shadow: 0 15px 50px rgba(0, 217, 255, 0.3);
}

.portfolio-card:hover::before {
    opacity: 1;
    animation: float 3s ease-in-out infinite;
}

.portfolio-card:hover::after {
    opacity: 1;
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #0066cc, #00d9ff);
    position: relative;
}

.card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(0, 217, 255, 0.2));
    z-index: 1;
}

/* ============================================
   CAROUSEL STYLES
   ============================================ */

.carousel-card .card-image {
    height: 250px;
}

.carousel-container {
    position: relative;
    height: 250px;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-item {
    display: none;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.5s ease-in-out;
}

.carousel-item.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot.active {
    background: rgba(0, 217, 255, 1);
    border-color: rgba(0, 217, 255, 1);
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.9);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.3), rgba(0, 217, 255, 0.2));
    position: relative;
    z-index: 0;
}

.card-content {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.card-content h3 {
    font-size: 1.3rem;
    background: linear-gradient(135deg, #0066cc, #00d9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.card-content p {
    color: #666666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.card-tech {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.card-tech span {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(0, 102, 204, 0.1));
    color: #0066cc;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 217, 255, 0.2);
    transition: all 0.3s ease;
}

.card-tech span:hover {
    background: linear-gradient(135deg, #0066cc, #00d9ff);
    color: white;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
    transform: scale(1.1);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e6f2ff 100%);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatSlow 10s ease-in-out infinite;
}

.contact-content {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 50px 0;
    align-items: start;
}

.contact-info {
    animation: slideInLeft 0.8s ease-out;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(230, 242, 255, 0.3));
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(0, 217, 255, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #0066cc, #00d9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.contact-info > p {
    color: #666666;
    font-size: 1rem;
    margin-bottom: 30px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: rgba(0, 217, 255, 0.05);
    border-left: 3px solid #00d9ff;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(0, 217, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.contact-label {
    color: #0066cc;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.contact-link,
.contact-item p {
    color: #666666;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #0066cc;
    text-decoration: underline;
}

.social-links {
    animation: slideInRight 0.8s ease-out;
}

.social-links h3 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #0066cc, #00d9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(230, 242, 255, 0.4));
    border: 1.5px solid rgba(0, 217, 255, 0.2);
    border-radius: 15px;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    min-height: 140px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 0;
}

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

.social-btn:hover {
    transform: translateY(-10px) rotateX(5deg);
    border-color: #00d9ff;
    box-shadow: 0 15px 50px rgba(0, 217, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(0, 102, 204, 0.05));
}

.social-btn .icon {
    font-size: 3rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.social-btn .social-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    position: relative;
    z-index: 1;
}

.social-btn:hover .icon {
    transform: scale(1.3) rotate(15deg);
}

.social-btn:hover .social-icon {
    transform: scale(1.4);
    filter: drop-shadow(0 0 15px rgba(0, 217, 255, 0.5));
}

.social-btn span {
    position: relative;
    z-index: 1;
}

.social-btn.email:hover {
    background: rgba(0, 102, 204, 0.1);
}

.social-btn.instagram:hover {
    background: rgba(230, 72, 102, 0.1);
    border-color: #E54864;
}

.social-btn.linkedin:hover {
    background: rgba(0, 119, 181, 0.1);
    border-color: #0077B5;
}

.social-btn.github:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: #000;
}

.social-btn.whatsapp:hover {
    background: rgba(37, 211, 102, 0.1);
    border-color: #25D366;
}

.footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
    color: #666666;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .home-content {
        flex-direction: column;
        gap: 40px;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section {
        padding: 80px 30px;
    }

    .animated-visual {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .navbar {
        top: 15px;
        right: 15px;
        padding: 0;
    }

    .home-content {
        flex-direction: column;
        gap: 40px;
    }

    .section {
        padding: 60px 20px;
        min-height: auto;
        margin-top: 60px;
    }

    .section:first-child {
        margin-top: 0;
    }

    .title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 1.3rem;
    }

    .splash-text {
        font-size: 2rem;
    }

    .splash-text-sub {
        font-size: 1.4rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .home-visual {
        flex: 1;
        width: 100%;
    }

    .animated-visual {
        width: 250px;
        height: 250px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .about-image img {
        width: 220px;
        height: 220px;
        max-width: 100%;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .about-text h3 {
        font-size: 1.4rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .skill-badge {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .portfolio-tabs {
        gap: 10px;
        margin-bottom: 30px;
    }

    .tab-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .contact-container {
        gap: 30px;
    }

    .mobile-nav-link {
        padding: 12px 18px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        top: 12px;
        right: 12px;
    }

    .hamburger-menu {
        width: 45px;
        height: 45px;
        padding: 12px;
    }

    .hamburger-menu span {
        width: 5px;
        height: 5px;
    }

    .section {
        padding: 40px 15px;
        min-height: auto;
    }

    .home-section {
        padding: 40px 15px;
        min-height: auto;
    }

    .home-content {
        flex-direction: column;
        gap: 25px;
    }

    .title {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .subtitle {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        border-radius: 5px;
    }

    .splash-text {
        font-size: 1.5rem;
    }

    .splash-text-sub {
        font-size: 1rem;
    }

    .animated-visual {
        width: 200px;
        height: 200px;
    }

    .mobile-nav-link {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .about-image img {
        width: 180px;
        height: 180px;
        max-width: 90%;
        display: block;
        margin: 0 auto;
    }

    .about-text {
        width: 100%;
        text-align: left;
    }

    .about-text h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .about-text p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .skills-section {
        margin-top: 20px;
        padding: 20px;
    }

    .skills-section h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .skill-badge {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    .portfolio-tabs {
        gap: 8px;
        margin-bottom: 20px;
    }

    .tab-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .portfolio-card {
        border-radius: 10px;
    }

    .carousel-prev,
    .carousel-next {
        font-size: 1.2rem;
        padding: 8px;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .contact-info h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .contact-list {
        gap: 15px;
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .social-btn {
        flex-direction: column;
        padding: 12px 8px;
    }

    .social-icon {
        width: 30px;
        height: 30px;
    }

    .social-btn span {
        font-size: 0.7rem;
    }

    .about-image {
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }

    .footer {
        padding: 15px;
        font-size: 0.85rem;
    }

    .description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .description::before {
        left: -15px;
    }

    .passion {
        font-size: 0.9rem;
        padding: 12px 15px;
    }

    .mobile-menu {
        top: 60px;
        min-width: 160px;
    }

    .about-image::before {
        inset: -10px;
    }
}
