/* ===================================
   Portfolio Website - Professional Style
   =================================== */

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --tertiary-color: #ec4899;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --card-bg: rgba(30, 41, 59, 0.8);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --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%);
    --gradient-vibrant: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ec4899 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   Global Styles
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===================================
   Epic Gate Intro Animation
   =================================== */

.gate-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    overflow: hidden;
    pointer-events: none;
}

.gate-intro.opening .gate-left {
    transform: translateX(-100%);
}

.gate-intro.opening .gate-right {
    transform: translateX(100%);
}

.gate-intro.opening .gate-content {
    opacity: 0;
    transform: scale(0.5);
}

.gate-intro.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease 0.8s, visibility 0s 1.3s;
}

/* Gate Panels */
.gate-panel {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(2, 6, 23, 0.98) 0%,
        rgba(15, 23, 42, 0.95) 50%,
        rgba(30, 41, 59, 0.98) 100%
    );
    backdrop-filter: blur(10px);
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: 0 0 100px rgba(99, 102, 241, 0.3);
}

.gate-left {
    left: 0;
    border-right: 3px solid rgba(99, 102, 241, 0.5);
}

.gate-right {
    right: 0;
    border-left: 3px solid rgba(99, 102, 241, 0.5);
}

/* Gate Decorations */
.gate-decoration {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 50px;
}

.gate-left .gate-decoration {
    align-items: flex-end;
}

.gate-right .gate-decoration {
    align-items: flex-start;
}

.gate-line {
    width: 80%;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(99, 102, 241, 0.8) 50%,
        transparent 100%
    );
    animation: gatePulse 3s ease-in-out infinite;
    position: relative;
}

.gate-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(236, 72, 153, 0.6) 50%,
        transparent 100%
    );
    transform: translateY(-50%);
    animation: lineShimmer 2s ease-in-out infinite;
}

@keyframes gatePulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes lineShimmer {
    0% { transform: translateX(-100%) translateY(-50%); }
    100% { transform: translateX(100%) translateY(-50%); }
}

/* Center Content */
.gate-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.gate-logo {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

/* Animated Rings */
.logo-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary-color);
    border-right-color: var(--secondary-color);
    border-bottom-color: var(--tertiary-color);
    animation: ringRotate 3s linear infinite;
}

.logo-ring:nth-child(1) {
    width: 220px;
    height: 220px;
    animation-duration: 3s;
}

.logo-ring:nth-child(2) {
    width: 170px;
    height: 170px;
    animation-duration: 2s;
    animation-direction: reverse;
}

.logo-ring:nth-child(3) {
    width: 120px;
    height: 120px;
    animation-duration: 4s;
}

@keyframes ringRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Gate Text */
.gate-text {
    position: relative;
    z-index: 5;
    animation: textFloat 3s ease-in-out infinite;
}

.gate-text h1 {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: titleGlow 2s ease-in-out infinite;
}

.gate-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    font-weight: 300;
}

@keyframes textFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Gate Loader */
.gate-loader {
    width: 300px;
    height: 4px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.loader-bar {
    height: 100%;
    background: var(--gradient-vibrant);
    border-radius: 10px;
    animation: loadProgress 2.5s ease-in-out forwards;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
    position: relative;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    animation: loaderShimmer 1s ease-in-out infinite;
}

@keyframes loadProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes loaderShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Gate Particles */
.gate-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    animation: particleFloat 8s ease-in-out infinite;
    opacity: 0;
}

.particle:nth-child(1) {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.particle:nth-child(2) {
    top: 20%;
    right: 20%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.particle:nth-child(3) {
    top: 60%;
    left: 10%;
    animation-delay: 0.5s;
    animation-duration: 8s;
}

.particle:nth-child(4) {
    bottom: 20%;
    right: 15%;
    animation-delay: 1.5s;
    animation-duration: 6.5s;
}

.particle:nth-child(5) {
    top: 40%;
    left: 30%;
    animation-delay: 0.8s;
    animation-duration: 7.5s;
}

.particle:nth-child(6) {
    top: 70%;
    right: 25%;
    animation-delay: 2s;
    animation-duration: 6s;
}

.particle:nth-child(7) {
    top: 30%;
    right: 40%;
    animation-delay: 1.2s;
    animation-duration: 8s;
}

.particle:nth-child(8) {
    bottom: 30%;
    left: 25%;
    animation-delay: 0.3s;
    animation-duration: 7s;
}

.particle:nth-child(9) {
    top: 50%;
    right: 10%;
    animation-delay: 1.8s;
    animation-duration: 6.5s;
}

.particle:nth-child(10) {
    bottom: 15%;
    left: 40%;
    animation-delay: 0.6s;
    animation-duration: 7.5s;
}

@keyframes particleFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(1);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(0);
    }
}

/* Responsive Gate */
@media (max-width: 768px) {
    .gate-logo {
        width: 200px;
        height: 200px;
    }
    
    .logo-ring:nth-child(1) {
        width: 180px;
        height: 180px;
    }
    
    .logo-ring:nth-child(2) {
        width: 140px;
        height: 140px;
    }
    
    .logo-ring:nth-child(3) {
        width: 100px;
        height: 100px;
    }
    
    .gate-text h1 {
        font-size: 2.5rem;
    }
    
    .gate-text p {
        font-size: 1rem;
    }
    
    .gate-loader {
        width: 250px;
    }
    
    .gate-decoration {
        padding: 0 30px;
    }
}

/* ===================================
   Navigation
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 
        var(--shadow-md),
        0 1px 0 rgba(99, 102, 241, 0.2);
    padding: 15px 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeInLeft 0.8s ease;
}

.logo-profile {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
}

.logo-profile:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.logo-text {
    background: var(--gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    animation: fadeInRight 0.8s ease;
}

.nav-link {
    position: relative;
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    animation: float 25s ease-in-out infinite;
}

.hero-particles::before {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    top: -150px;
    left: -150px;
}

.hero-particles::after {
    background: linear-gradient(135deg, var(--secondary-color), var(--tertiary-color));
    bottom: -150px;
    right: -150px;
    animation-delay: -12s;
}

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg); 
    }
    33% { 
        transform: translate(80px, -80px) scale(1.15) rotate(120deg); 
    }
    66% { 
        transform: translate(-80px, 80px) scale(0.85) rotate(240deg); 
    }
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hello-text {
    display: block;
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    animation: fadeIn 1s ease 0.2s both;
}

.name-text {
    display: block;
    font-size: 4rem;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: fadeIn 1s ease 0.4s both;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fadeIn 1s ease 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    animation: fadeIn 1s ease 0.8s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    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-vibrant);
    color: white;
    box-shadow: 
        0 4px 15px rgba(99, 102, 241, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(99, 102, 241, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-outline {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(99, 102, 241, 0.5);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.btn-outline:hover {
    background: var(--gradient-vibrant);
    color: white;
    border-color: transparent;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(99, 102, 241, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeIn 1s ease 1s both;
}

.social-links a {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(99, 102, 241, 0.3);
    font-size: 1.3rem;
    color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-vibrant);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.social-links a:hover {
    color: white;
    transform: translateY(-8px) scale(1.1);
    box-shadow: 
        0 10px 30px rgba(99, 102, 241, 0.4),
        var(--shadow-glow);
    border-color: rgba(99, 102, 241, 0.6);
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links a i {
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.social-links a:hover i {
    transform: scale(1.2) rotate(360deg);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    top: 150px;
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

/* ===================================
   Sections Common Styles
   =================================== */

section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: transparent;
}

/* Universal animated background for all sections */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

section .container {
    position: relative;
    z-index: 1;
}

/* Floating orbs for all sections */
.section-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: orbFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.section-bg-orb:nth-child(1) {
    animation-delay: 0s;
}

.section-bg-orb:nth-child(2) {
    animation-delay: -10s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(40px, -40px) scale(1.15);
    }
    66% {
        transform: translate(-40px, 40px) scale(0.85);
    }
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    background: var(--gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: titleFloat 3s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 60px;
    position: relative;
    animation: fadeIn 1s ease;
}

/* ===================================
   About Section
   =================================== */

.about {
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    animation: fadeInUp 1s ease;
}

.about-image {
    position: relative;
    animation: fadeInLeft 1s ease;
}

.image-wrapper {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 
        var(--shadow-lg),
        0 0 40px rgba(99, 102, 241, 0.2);
    border: 2px solid rgba(99, 102, 241, 0.2);
    transition: var(--transition);
}

.image-wrapper:hover {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(99, 102, 241, 0.4);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-10px);
}

.image-wrapper img {
    width: 100%;
    border-radius: 25px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95) contrast(1.05);
}

.image-wrapper:hover img {
    transform: scale(1.08);
    filter: brightness(1.05) contrast(1.1);
}

.image-decoration {
    position: absolute;
    top: -25px;
    left: -25px;
    right: 25px;
    bottom: 25px;
    background: var(--gradient-1);
    border-radius: 25px;
    z-index: -1;
    opacity: 0.3;
    animation: decorationFloat 4s ease-in-out infinite;
}

@keyframes decorationFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10px, -10px); }
}

.about-text {
    animation: fadeInRight 1s ease;
}

.about-text h3 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    background: var(--gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.9;
    font-size: 1.05rem;
}

.about-text .btn-primary {
    box-shadow: var(--shadow-glow);
}

/* ===================================
   Skills Section
   =================================== */

.skills {
    position: relative;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.skill-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(99, 102, 241, 0.15);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-vibrant);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.skill-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.8s ease;
}

.skill-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 
        0 20px 50px rgba(99, 102, 241, 0.25),
        0 0 40px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
}

.skill-card:hover::before {
    opacity: 0.15;
}

.skill-card:hover::after {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

.skill-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    background: var(--gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.skill-card:hover .skill-icon {
    animation: iconSpin 0.8s ease;
}

@keyframes iconSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.skill-name {
    font-size: 1.4rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.skill-bar {
    background: rgba(99, 102, 241, 0.15);
    height: 18px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.skill-progress {
    height: 100%;
    background: var(--gradient-vibrant);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skill-percent {
    height: auto;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===================================
   Portfolio Section
   =================================== */

.portfolio {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Portfolio Section Title Enhancement */
.portfolio .section-title {
    position: relative;
    z-index: 10;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(99, 102, 241, 0.5),
                     0 0 40px rgba(99, 102, 241, 0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(99, 102, 241, 0.8),
                     0 0 60px rgba(99, 102, 241, 0.5),
                     0 0 80px rgba(139, 92, 246, 0.3);
    }
}

.portfolio .section-subtitle {
    position: relative;
    z-index: 10;
}


/* Floating Orbs */
.portfolio-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    z-index: 1;
    animation: floatOrb 20s ease-in-out infinite;
}

.portfolio-orb:nth-child(1) {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.portfolio-orb:nth-child(2) {
    width: 250px;
    height: 250px;
    background: var(--secondary-color);
    top: 60%;
    right: 10%;
    animation-delay: -7s;
}

.portfolio-orb:nth-child(3) {
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    bottom: 15%;
    left: 15%;
    animation-delay: -14s;
}

@keyframes floatOrb {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
    }
    33% { 
        transform: translate(30px, -30px) scale(1.1);
    }
    66% { 
        transform: translate(-30px, 30px) scale(0.9);
    }
}

@keyframes backgroundPulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Grid Container */
.portfolio .container {
    position: relative;
    z-index: 2;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
    perspective: 1000px;
}

/* Portfolio Card */
.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    animation: fadeInUp 0.6s ease both;
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 1px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Animated gradient border */
.portfolio-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        rgba(99, 102, 241, 0.8),
        rgba(139, 92, 246, 0.8),
        rgba(245, 158, 11, 0.8),
        rgba(99, 102, 241, 0.8)
    );
    background-size: 300% 300%;
    border-radius: 22px;
    z-index: -1;
    animation: gradientBorder 4s ease infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

@keyframes gradientBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }

.portfolio-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(99, 102, 241, 0.4),
        0 15px 35px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.portfolio-item:hover::before {
    opacity: 1;
}

/* Portfolio Image */
.portfolio-image {
    position: relative;
    height: 320px;
    overflow: hidden;
    z-index: 2;
    background: var(--darker-bg);
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.3) 100%);
    z-index: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.portfolio-item:hover .portfolio-image::before {
    opacity: 0;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95) contrast(1.05);
    position: relative;
    z-index: 2;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
    filter: brightness(1.05) contrast(1.15);
}

/* Overlay Effect */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(99, 102, 241, 0.97) 0%, 
        rgba(139, 92, 246, 0.95) 50%,
        rgba(245, 158, 11, 0.93) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 35px;
    z-index: 3;
    backdrop-filter: blur(5px);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Overlay Decorative Elements */
.portfolio-overlay::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.5s ease 0.1s;
}

.portfolio-item:hover .portfolio-overlay::before {
    transform: scale(1);
    opacity: 1;
}

/* Portfolio Info */
.portfolio-info {
    text-align: center;
    transform: translateY(30px) scale(0.9);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
    position: relative;
    z-index: 4;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.portfolio-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: slideInDown 0.5s ease;
}

.portfolio-info p {
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 0.95rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Technology Tags */
.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    transform: translateY(10px);
    opacity: 0;
    animation: tagFadeIn 0.5s ease forwards;
}

.tech-tag:nth-child(1) { animation-delay: 0.2s; }
.tech-tag:nth-child(2) { animation-delay: 0.25s; }
.tech-tag:nth-child(3) { animation-delay: 0.3s; }
.tech-tag:nth-child(4) { animation-delay: 0.35s; }
.tech-tag:nth-child(5) { animation-delay: 0.4s; }

.portfolio-item:hover .tech-tag {
    transform: translateY(0);
    opacity: 1;
}

.tech-tag:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@keyframes tagFadeIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* View Project Button Enhancement */
.portfolio-info .btn-primary {
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    font-weight: 700;
    transform: translateY(10px);
    opacity: 0;
    animation: buttonSlideUp 0.5s ease 0.3s forwards;
}

@keyframes buttonSlideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.portfolio-info .btn-primary:hover {
    background: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* ===================================
   Contact Section
   =================================== */

.contact {
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    animation: fadeInLeft 1s ease;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 24px;
    background: var(--card-bg);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 15px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 4px rgba(99, 102, 241, 0.15),
        0 8px 20px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.95);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.contact-form button {
    align-self: flex-start;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.contact-form button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.contact-form button:hover::before {
    width: 300px;
    height: 300px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    animation: fadeInRight 1s ease;
}

.info-card {
    background: var(--card-bg);
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(99, 102, 241, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-vibrant);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.info-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 
        0 15px 40px rgba(99, 102, 241, 0.3),
        0 0 30px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
}

.info-card:hover::before {
    opacity: 0.1;
}

.info-card i {
    font-size: 3rem;
    background: var(--gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.info-card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.info-card p {
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background: var(--darker-bg);
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 2px solid rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.footer p {
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
}

/* ===================================
   Back to Top Button
   =================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--gradient-vibrant);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 
        0 8px 20px rgba(99, 102, 241, 0.4),
        var(--shadow-md);
    backdrop-filter: blur(10px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { 
        transform: scale(0); 
        opacity: 0;
    }
    50% { 
        transform: scale(1.2); 
    }
    100% { 
        transform: scale(1); 
        opacity: 1;
    }
}

.back-to-top:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 
        0 15px 35px rgba(99, 102, 241, 0.6),
        0 0 40px rgba(99, 102, 241, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.back-to-top i {
    animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes portfolioParticleFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx, 100px), var(--ty, -100px)) rotate(360deg);
        opacity: 0;
    }
}

/* Shimmer effect for portfolio cards */
.portfolio-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.8s ease;
    z-index: 10;
    pointer-events: none;
}

.portfolio-item:hover::after {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }

    .nav-menu.active {
        right: 0;
    }

    .name-text {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .portfolio-item {
        max-width: 100%;
    }

    .portfolio-image {
        height: 250px;
    }

    .portfolio-overlay {
        padding: 25px;
    }

    .portfolio-info h3 {
        font-size: 1.5rem;
    }

    .portfolio-info p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Disable 3D effects on mobile for better performance */
    .portfolio-item:hover {
        transform: translateY(-10px) scale(1.01) !important;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        gap: 25px;
    }

    .portfolio-image {
        height: 220px;
    }

    .portfolio-info h3 {
        font-size: 1.3rem;
    }

    .tech-tag {
        padding: 6px 14px;
        font-size: 0.75rem;
    }
}

/* ===================================
   Success Message Styles
   =================================== */

.success-message,
.error-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.error-message {
    background: rgba(245, 94, 108, 0.1);
    border: 1px solid #f56c6c;
    color: #f56c6c;
}

/* ===================================
   Portfolio Modal
   =================================== */

.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(20px);
    animation: fadeIn 0.4s ease;
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.3);
    backdrop-filter: blur(20px);
    animation: modalSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient-vibrant);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 
        0 8px 25px rgba(99, 102, 241, 0.5),
        0 0 30px rgba(99, 102, 241, 0.4);
}

.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-height: 90vh;
    overflow: hidden;
}

.modal-image-section {
    position: relative;
    background: var(--darker-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 500px;
}

.modal-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.1) 0%,
        rgba(139, 92, 246, 0.1) 50%,
        rgba(236, 72, 153, 0.1) 100%
    );
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}

.modal-image-section img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    animation: imageZoomIn 0.6s ease;
    padding: 20px;
}

@keyframes imageZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-details-section {
    padding: 50px 40px;
    overflow-y: auto;
    background: linear-gradient(
        180deg,
        rgba(30, 41, 59, 0.8) 0%,
        rgba(15, 23, 42, 0.9) 100%
    );
}

.modal-details-section::-webkit-scrollbar {
    width: 8px;
}

.modal-details-section::-webkit-scrollbar-track {
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
}

.modal-details-section::-webkit-scrollbar-thumb {
    background: var(--gradient-vibrant);
    border-radius: 10px;
}

.modal-header {
    margin-bottom: 30px;
    animation: fadeInRight 0.6s ease 0.2s both;
}

.modal-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: var(--gradient-vibrant);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    line-height: 1.2;
}

.modal-category {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.2);
    border: 2px solid rgba(99, 102, 241, 0.4);
    border-radius: 25px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.modal-description {
    margin-bottom: 30px;
    animation: fadeInRight 0.6s ease 0.3s both;
}

.modal-description h3,
.modal-technologies h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-description h3 i,
.modal-technologies h3 i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.modal-description p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.modal-technologies {
    margin-bottom: 35px;
    animation: fadeInRight 0.6s ease 0.4s both;
}

.modal-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.modal-tech-tag {
    padding: 10px 20px;
    background: var(--card-bg);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.modal-tech-tag:hover {
    background: var(--gradient-vibrant);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.modal-actions .btn {
    justify-content: center;
    font-size: 1.05rem;
    padding: 16px 40px;
    min-width: 200px;
}

/* Responsive Modal */
@media (max-width: 968px) {
    .modal-content {
        grid-template-columns: 1fr;
    }
    
    .modal-image-section {
        min-height: 300px;
        max-height: 350px;
    }
    
    .modal-details-section {
        padding: 30px 25px;
    }
    
    .modal-header h2 {
        font-size: 2rem;
    }
    
    .modal-container {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .modal-close {
        width: 40px;
        height: 40px;
        top: 15px;
        right: 15px;
    }
    
    .modal-details-section {
        padding: 25px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.6rem;
    }
    
    .modal-actions .btn {
        width: 100%;
        min-width: auto;
    }
}

