/* ===================================
   PREMIUM PORTFOLIO CSS
   =================================== */

/* CSS VARIABLES */
:root {
    /* Light Theme Colors */
    --primary-color: #6C5CE7;
    --secondary-color: #00B894;
    --accent-color: #FD79A8;
    --text-primary: #2D3436;
    --text-secondary: #636E72;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-tertiary: #ECEFF1;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --gradient-1: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    --gradient-2: linear-gradient(135deg, #F093FB 0%, #F5576C 100%);
    --gradient-3: linear-gradient(135deg, #4FACFE 0%, #00F2FE 100%);
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 25px;
}

/* Dark Theme Colors */
[data-theme="dark"] {
    --primary-color: #8B7FE8;
    --secondary-color: #00D9A5;
    --accent-color: #FF8FB1;
    --text-primary: #E8EAED;
    --text-secondary: #B8BCC2;
    --bg-primary: #0F0F1E;
    --bg-secondary: #1A1A2E;
    --bg-tertiary: #25253D;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* ===================================
   GLOBAL STYLES
   =================================== */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

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

.section {
    padding: var(--section-padding);
    position: relative;
}

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

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

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

ul {
    list-style: none;
}

/* ===================================
   PRELOADER
   =================================== */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

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

/* 3D Cube Loader */
.cube-loader {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    transform-style: preserve-3d;
    animation: rotateCubeLoader 3s infinite ease-in-out;
}

.cube {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 5px;
    animation: cubeFloat 2s infinite ease-in-out;
}

.cube1 {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.cube2 {
    top: 0;
    right: 0;
    animation-delay: 0.2s;
    background: var(--gradient-2);
}

.cube3 {
    bottom: 0;
    left: 0;
    animation-delay: 0.4s;
    background: var(--gradient-3);
}

.cube4 {
    bottom: 0;
    right: 0;
    animation-delay: 0.6s;
    background: var(--gradient-1);
}

@keyframes rotateCubeLoader {
    0%, 100% {
        transform: perspective(500px) rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: perspective(500px) rotateX(180deg) rotateY(0deg);
    }
    50% {
        transform: perspective(500px) rotateX(180deg) rotateY(180deg);
    }
    75% {
        transform: perspective(500px) rotateX(0deg) rotateY(180deg);
    }
}

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

.loading-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.progress-bar {
    width: 300px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
    margin: 20px auto;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-1);
    width: 0;
    animation: loadProgress 2s ease-in-out forwards;
}

@keyframes loadProgress {
    to { width: 100%; }
}

.loading-percentage {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    color: var(--text-secondary);
}

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: transparent;
    z-index: 1000;
    transition: all var(--transition-medium);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px var(--shadow-color);
    padding: 15px 0;
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(15, 15, 30, 0.95);
}

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

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-bracket {
    color: var(--primary-color);
    font-size: 32px;
}

.logo-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    transition: var(--transition-fast);
}

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

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Theme Toggle */
.theme-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.theme-toggle .moon,
.theme-toggle .sun {
    position: absolute;
    transition: all var(--transition-medium);
}

.theme-toggle .sun {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

[data-theme="dark"] .theme-toggle .moon {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

[data-theme="dark"] .theme-toggle .sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 5px;
    transition: all var(--transition-medium);
}

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

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

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

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Floating Shapes Animation */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    top: 50%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: var(--accent-color);
    bottom: 10%;
    left: 30%;
    animation-delay: 4s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: #4FACFE;
    top: 30%;
    left: 50%;
    animation-delay: 1s;
}

.shape-5 {
    width: 200px;
    height: 200px;
    background: #F093FB;
    bottom: 30%;
    right: 30%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }
    75% {
        transform: translate(30px, 50px) scale(1.05);
    }
}

.hero-container {
    padding: 60px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typing-container {
    margin-bottom: 25px;
}

.hero-typing {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    color: var(--text-secondary);
    font-weight: 500;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    margin-bottom: 50px;
}

/* Button Styles */
.btn {
    padding: 15px 35px;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3);
}

.hero-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-primary);
    transition: all var(--transition-medium);
}

.social-link:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px var(--shadow-color);
}

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

.visual-3d {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Rotating 3D Cube */
.rotating-cube {
    width: 250px;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

@keyframes rotateCube {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }
    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.cube-face {
    position: absolute;
    width: 250px;
    height: 250px;
    background: var(--gradient-1);
    opacity: 0.8;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.front {
    transform: translateZ(125px);
}

.back {
    transform: rotateY(180deg) translateZ(125px);
    background: var(--gradient-2);
}

.right {
    transform: rotateY(90deg) translateZ(125px);
    background: var(--gradient-3);
}

.left {
    transform: rotateY(-90deg) translateZ(125px);
    background: var(--gradient-1);
}

.top {
    transform: rotateX(90deg) translateZ(125px);
    background: var(--gradient-2);
}

.bottom {
    transform: rotateX(-90deg) translateZ(125px);
    background: var(--gradient-3);
}

/* Orbits */
.orbit {
    position: absolute;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: rotateOrbit 10s infinite linear;
}

.orbit-1 {
    width: 350px;
    height: 350px;
}

.orbit-2 {
    width: 450px;
    height: 450px;
    animation-duration: 15s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 550px;
    height: 550px;
    animation-duration: 20s;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    margin: 0 auto 10px;
    position: relative;
}

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

@keyframes scroll {
    0% {
        opacity: 1;
        top: 8px;
    }
    100% {
        opacity: 0;
        top: 30px;
    }
}

.scroll-indicator p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===================================
   SECTION HEADERS
   =================================== */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.title-line {
    width: 100px;
    height: 4px;
    background: var(--gradient-1);
    margin: 20px auto;
    border-radius: 5px;
}

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

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

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

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-slow);
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.image-border {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: var(--radius-lg);
    z-index: -1;
    transition: var(--transition-medium);
}

.image-wrapper:hover .image-border {
    top: 10px;
    left: 10px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0.3;
    transition: opacity var(--transition-medium);
}

.image-wrapper:hover .image-overlay {
    opacity: 0.1;
}

.floating-card {
    position: absolute;
    background: var(--bg-primary);
    padding: 20px 30px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px var(--shadow-color);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: floatCard 3s infinite ease-in-out;
}

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

.floating-card i {
    font-size: 32px;
    color: var(--primary-color);
}

.floating-card p {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.floating-card span {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.card-1 {
    top: -20px;
    right: -30px;
    animation-delay: 0s;
}

.card-2 {
    bottom: -20px;
    left: -30px;
    animation-delay: 1.5s;
}

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

.about-text p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 5px;
}

.info-item h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item p {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

/* ===================================
   SKILLS SECTION
   =================================== */

.skills-content {
    display: grid;
    gap: 40px;
}

.skills-category {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px var(--shadow-color);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.category-header i {
    font-size: 36px;
    color: var(--primary-color);
}

.category-header h3 {
    font-size: 28px;
    font-weight: 700;
}

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

.skill-card {
    background: var(--bg-primary);
    padding: 25px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition-medium);
    border: 2px solid transparent;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.skill-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    transition: var(--transition-medium);
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(360deg);
}

.skill-card h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-1);
    width: 0;
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

.skill-card.animate .skill-progress {
    width: var(--progress);
}

.skill-percentage {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

/* ===================================
   SERVICES SECTION
   =================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-secondary);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-medium);
    border: 2px solid transparent;
}

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

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

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px var(--shadow-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    margin-bottom: 25px;
    transition: var(--transition-medium);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(360deg);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.service-features i {
    color: var(--secondary-color);
}

/* ===================================
   PROJECTS SECTION
   =================================== */

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-medium);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-1);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-medium);
    border: 2px solid transparent;
}

.project-card.hide {
    display: none;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px var(--shadow-color);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(108, 92, 231, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
    transition: all var(--transition-medium);
    transform: translateY(20px);
    opacity: 0;
}

.project-card:hover .project-link {
    transform: translateY(0);
    opacity: 1;
}

.project-link:nth-child(1) {
    transition-delay: 0.1s;
}

.project-link:nth-child(2) {
    transition-delay: 0.2s;
}

.project-link:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.2);
}

.project-content {
    padding: 25px;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.tag {
    padding: 5px 15px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
}

.project-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.project-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================
   EXPERIENCE SECTION
   =================================== */

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-1);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    padding: 0 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-icon {
    position: absolute;
    top: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 0 0 6px var(--bg-primary), 0 0 0 10px var(--primary-color);
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -30px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -30px;
}

.timeline-content {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: all var(--transition-medium);
    border: 2px solid transparent;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.timeline-date {
    display: inline-block;
    padding: 5px 15px;
    background: var(--gradient-1);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-content h3 {
    font-size: 24px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.timeline-content h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.timeline-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
}

.timeline-content ul {
    list-style: none;
}

.timeline-content ul li {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.timeline-content ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ===================================
   TESTIMONIALS SECTION
   =================================== */

.testimonials-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto 40px;
    min-height: 400px;
}

.testimonial-card {
    background: var(--bg-secondary);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 50px var(--shadow-color);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: scale(0.9);
    transition: all var(--transition-slow);
    pointer-events: none;
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.quote-icon {
    font-size: 48px;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.testimonial-author img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.author-info h4 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.author-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.rating {
    display: flex;
    gap: 5px;
}

.rating i {
    color: #FFD700;
    font-size: 16px;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.testimonial-btn {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all var(--transition-medium);
}

.testimonial-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.testimonial-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.dot.active {
    background: var(--gradient-1);
    width: 30px;
    border-radius: 10px;
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.contact-info > p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item a,
.contact-item p {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--primary-color);
}

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

.social-links a {
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-primary);
    transition: all var(--transition-medium);
}

.social-links a:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

/* Contact Form */
.contact-form {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 50px var(--shadow-color);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg-primary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-size: 16px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all var(--transition-medium);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.2);
}

.form-group label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all var(--transition-medium);
}

.form-group textarea + label {
    top: 25px;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    background: var(--bg-secondary);
    padding: 0 10px;
    color: var(--primary-color);
}

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

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--bg-secondary);
    padding: 60px 0 30px;
    text-align: center;
    border-top: 3px solid var(--primary-color);
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 20px;
}

.footer-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-primary);
    transition: all var(--transition-medium);
}

.footer-social a:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-5px);
}

.copyright {
    font-size: 14px;
    color: var(--text-secondary);
    padding-top: 30px;
    border-top: 1px solid var(--bg-tertiary);
}

/* ===================================
   SCROLL TO TOP BUTTON
   =================================== */

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
    z-index: 999;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

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

@media (max-width: 1024px) {
    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-container {
        padding: 50px 0;
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .skills-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 80px;
        padding-right: 0;
        text-align: left !important;
    }
    
    .timeline-icon {
        left: 0 !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: calc(100vh - 80px);
        background: var(--bg-primary);
        flex-direction: column;
        padding: 30px;
        box-shadow: -5px 0 20px var(--shadow-color);
        transition: right var(--transition-medium);
        gap: 20px;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-section {
        padding-top: 60px;
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-typing {
        font-size: 24px;
    }
    
    .hero-content {
        gap: 50px;
    }
    
    .hero-container {
        padding: 40px 0;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-buttons {
        gap: 15px;
    }
    
    .hero-social {
        justify-content: center;
    }
    
    .floating-shapes {
        display: none;
    }
    
    .hero-visual {
        height: 350px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .skills-grid,
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .about-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: 50px;
        min-height: 85vh;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-typing {
        font-size: 20px;
    }
    
    .hero-content {
        gap: 40px;
    }
    
    .hero-container {
        padding: 30px 0;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-buttons {
        gap: 12px;
    }
    
    .hero-social {
        justify-content: center;
        gap: 12px;
    }
    
    .floating-shapes {
        display: none;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .floating-card {
        padding: 15px 20px;
    }
    
    .floating-card i {
        font-size: 24px;
    }
    
    .floating-card p {
        font-size: 18px;
    }
}

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

[data-aos] {
    opacity: 0;
    transition: all 0.8s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-down"] {
    transform: translateY(-50px);
}

[data-aos="fade-down"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(50px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

/* Performance Optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
