* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 3D Transformations and Advanced Animations */
.animated-element {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    perspective: 1000px;
}

.animated-element:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 70%);
    z-index: 10;
    transition: opacity 0.3s ease;
}

/* 3D Card Stack Effect */
.card-stack {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-stack .stack-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
}

.card-stack:hover .stack-item:nth-child(1) {
    transform: translateZ(20px) rotateX(5deg) rotateY(5deg);
}

.card-stack:hover .stack-item:nth-child(2) {
    transform: translateZ(10px) rotateX(3deg) rotateY(3deg);
}

.card-stack:hover .stack-item:nth-child(3) {
    transform: translateZ(5px) rotateX(1deg) rotateY(1deg);
}

/* 3D Flip Card */
.flip-3d {
    position: relative;
    width: 100%;
    min-height: 400px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    perspective: 1000px;
    height: auto;
}

.flip-3d:hover {
    transform: rotateY(180deg);
}

.flip-3d .front, .flip-3d .back {
    position: absolute;
    width: 100%;
    min-height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    top: 0;
    left: 0;
    z-index: 1;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    height: auto;
}

.flip-3d .front {
    z-index: 3;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100%;
}

.flip-3d .back {
    transform: rotateY(180deg);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    box-sizing: border-box;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    min-height: 100%;
    flex-direction: column;
    height: auto;
}

.flip-3d .back .project-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: auto;
    justify-content: space-between;
    min-height: 100%;
}

/* 3D Cube Effect */
.cube-container {
    perspective: 1000px;
    width: 200px;
    height: 200px;
    position: relative;
    margin: 50px auto;
}

.cube {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    animation: rotateCube 10s infinite linear;
}

@keyframes rotateCube {
    0% { transform: rotateX(0) rotateY(0) rotateZ(0); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid #4cc9f0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(67, 97, 238, 0.2);
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    backdrop-filter: blur(5px);
}

.cube-face.front  { transform: translateZ(100px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(100px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(100px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(100px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(100px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(100px); }

/* Warp Speed Effect */
.warp-effect {
    position: relative;
    overflow: hidden;
}

.warp-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(76, 201, 240, 0.1), 
        rgba(67, 97, 238, 0.3), 
        rgba(76, 201, 240, 0.1), 
        transparent);
    animation: warpSpeed 3s infinite;
    z-index: -1;
}

@keyframes warpSpeed {
    0% {
        left: -100%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Holographic Effect */
.holographic {
    position: relative;
}

.holographic::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 20px rgba(76, 201, 240, 0.5);
    background: linear-gradient(45deg, 
        rgba(67, 97, 238, 0.1) 0%, 
        rgba(76, 201, 240, 0.3) 50%, 
        rgba(67, 97, 238, 0.1) 100%);
    animation: hologramFlicker 4s infinite alternate;
    pointer-events: none;
    z-index: 1;
}

@keyframes hologramFlicker {
    0% {
        opacity: 0.3;
        box-shadow: inset 0 0 10px rgba(76, 201, 240, 0.3);
    }
    50% {
        opacity: 0.7;
        box-shadow: inset 0 0 30px rgba(76, 201, 240, 0.7);
    }
    100% {
        opacity: 0.4;
        box-shadow: inset 0 0 20px rgba(76, 201, 240, 0.5);
    }
}

/* Quantum Entanglement Effect */
.quantum-effect {
    position: relative;
}

.quantum-effect::before,
.quantum-effect::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: inherit;
    background: linear-gradient(45deg, #4361ee, #4cc9f0, #4361ee);
    z-index: -1;
    animation: quantumPulse 3s infinite;
    opacity: 0;
}

.quantum-effect::after {
    animation-delay: 1.5s;
}

@keyframes quantumPulse {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
    100% {
        opacity: 0;
        transform: scale(1.3);
    }
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 201, 240, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(76, 201, 240, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 201, 240, 0);
    }
}

@keyframes skillPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 201, 240, 0.3);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(76, 201, 240, 0.1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 201, 240, 0);
    }
}

@keyframes projectPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.3);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(67, 97, 238, 0.1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0);
    }
}

/* 3D Gallery Effects */
.gallery-3d {
    position: relative;
    width: 100%;
    height: 400px;
    perspective: 1000px;
    margin: 50px 0;
}

.gallery-3d .gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    opacity: 0;
}

.gallery-3d .gallery-item.active {
    opacity: 1;
    transform: translateZ(0);
}

.gallery-3d .gallery-item.prev {
    transform: translateX(-100%) translateZ(-200px) rotateY(-20deg);
    opacity: 0.7;
}

.gallery-3d .gallery-item.next {
    transform: translateX(100%) translateZ(-200px) rotateY(20deg);
    opacity: 0.7;
}

/* 3D Carousel */
.carousel-3d {
    position: relative;
    width: 100%;
    height: 300px;
    perspective: 1200px;
    margin: 50px 0;
}

.carousel-3d .carousel-container {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 1s;
}

.carousel-3d .carousel-item {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(67, 97, 238, 0.2);
    border: 2px solid #4cc9f0;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    transition: all 0.3s;
    border-radius: 10px;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.carousel-btn {
    background: rgba(76, 201, 240, 0.2);
    color: #4cc9f0;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: rgba(76, 201, 240, 0.4);
    transform: translateY(-3px);
}

@keyframes float3d {
    0% {
        transform: translateY(0) translateZ(0) rotateX(0deg);
    }
    50% {
        transform: translateY(-20px) translateZ(10px) rotateX(5deg);
    }
    100% {
        transform: translateY(0) translateZ(0) rotateX(0deg);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(76, 201, 240, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(76, 201, 240, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(76, 201, 240, 0);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* 3D Card Flip */
.flip-card {
    background-color: transparent;
    width: 300px;
    height: 200px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* Advanced Button Hover Effects */
.btn-advanced {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-advanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-advanced:hover::before {
    left: 100%;
}

/* Parallax Scrolling Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Morphing Shapes */
@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.morph-shape {
    animation: morph 8s ease-in-out infinite;
    transition: all 1s ease-in-out;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: #fff;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    background-attachment: fixed;
}

/* Particle Background Effect */
.particle {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(76, 201, 240, 0.3);
    border-radius: 50%;
    animation: floatParticle 15s infinite linear;
}

/* Magic Mouse Trail */
.mouse-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76, 201, 240, 0.8), transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    animation: trailPulse 1s infinite alternate;
}

@keyframes trailPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: rgba(10, 10, 20, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(76, 201, 240, 0.3);
}

header.scrolled {
    background: rgba(10, 10, 20, 0.95);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(67, 97, 238, 0.5);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.logo h2 {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(45deg, #4cc9f0, #4361ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.logo:hover h2 {
    text-shadow: 0 0 15px rgba(76, 201, 240, 0.7);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: #e6e6e6;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 5px 10px;
    border-radius: 5px;
    overflow: hidden;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 201, 240, 0.2), transparent);
    z-index: -1;
}

nav ul li a:hover {
    color: #4cc9f0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4361ee, #4cc9f0);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Animated Background Elements */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(45deg, #4cc9f0, #4361ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #4cc9f0;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #b8b8d9;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(76, 201, 240, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

.hero-image img:hover {
    transform: scale(1.1) rotateX(10deg) rotateY(10deg);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(0);
    backface-visibility: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn.primary {
    background: linear-gradient(45deg, #4361ee, #4cc9f0);
    color: white;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
    animation: buttonGlow 3s infinite alternate;
}

.btn.primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 25px rgba(67, 97, 238, 0.7);
}

.btn.secondary {
    background: transparent;
    color: #4cc9f0;
    border: 2px solid #4cc9f0;
}

.btn.secondary:hover {
    background: rgba(76, 201, 240, 0.15);
    transform: translateY(-5px) scale(1.05);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes buttonGlow {
    0% {
        box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
    }
    100% {
        box-shadow: 0 5px 20px rgba(76, 201, 240, 0.6);
    }
}

/* Sections */
section {
    padding: 100px 0;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    animation: fadeInUp 1s ease forwards;
    opacity: 1;
    transform: translateY(0);
}

section.visible h2 {
    opacity: 1;
    transform: translateY(0);
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #4361ee, #4cc9f0);
    border-radius: 2px;
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about {
    background: rgba(255, 255, 255, 0.03);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image img {
    width: 300px;
    height: 300px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(76, 201, 240, 0.3);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #b8b8d9;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-card {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    perspective: 1000px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transform: translateZ(0);
}

/* Skill cards are visible by default */
.skill-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: 0.5s;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1.03);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(76, 201, 240, 0.5);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px rgba(76, 201, 240, 0.3));
    transition: all 0.4s ease;
    transform: translateZ(0);
}

.skill-card:hover img {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(76, 201, 240, 0.7)) brightness(1.2);
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
}

.skill-card:hover h3 {
    color: #4cc9f0;
    text-shadow: 0 0 10px rgba(76, 201, 240, 0.7);
    transform: translateX(5px);
}

.skill-card p {
    color: #b8b8d9;
    font-size: 1rem;
    line-height: 1.6;
}

/* Projects Section */
.projects {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px;
    padding: 20px 0;
}

.project-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    height: auto;
    transition: all 0.4s ease;
    opacity: 1 !important;
    transform: translateY(0) !important;
    display: block !important;
    min-height: 400px;
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure project cards are always visible */
.project-card, .flip-3d, .flip-3d .front, .flip-3d .back {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.project-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(76, 201, 240, 0.7);
}

.flip-3d .front img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1) translateZ(0);
    filter: brightness(0.9) contrast(1.1);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    flex-grow: 0;
}

.image-fallback {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #4361ee, #4cc9f0);
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
    position: relative;
    z-index: 0;
    flex-grow: 0;
}

/* Hide fallback when image loads */
.flip-3d .front img[src]:not([src='']) ~ .image-fallback {
    display: none;
}



.flip-3d .front .project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: auto;
    min-height: 100px;
}

.flip-3d:hover .front img {
    transform: scale(1.05) rotate(2deg);
    filter: brightness(1.1) contrast(1.2) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.project-info {
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.project-card:hover .project-info h3 {
    color: #4cc9f0;
    text-shadow: 0 0 10px rgba(76, 201, 240, 0.5);
    transform: translateX(5px);
}

.project-info p {
    color: #b8b8d9;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    transition: all 0.3s ease;
    flex-grow: 1;
}

.project-card:hover .project-info p {
    color: #fff;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    flex-shrink: 0;
}

.project-tags span {
    background: rgba(67, 97, 238, 0.2);
    color: #4cc9f0;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    transform: translateZ(0);
    position: relative;
    overflow: hidden;
}

.project-tags span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.project-tags span:hover::before {
    left: 100%;
}

.project-tags span:hover {
    background: linear-gradient(45deg, #4361ee, #4cc9f0);
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(76, 201, 240, 0.4);
}

.project-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-shrink: 0;
}

.project-buttons .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 20px;
    flex: 1;
    min-width: 100px;
    margin: 5px;
}

.flip-3d .back .project-buttons {
    margin-top: auto;
}

/* Contact Section */
.contact {
    background: rgba(255, 255, 255, 0.03);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff;
}

.contact-info p {
    color: #b8b8d9;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    color: #4cc9f0;
    font-size: 1.2rem;
    width: 24px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #4cc9f0;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: linear-gradient(45deg, #4361ee, #4cc9f0);
    color: white;
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Contact Form */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border: 1px solid #4cc9f0;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(76, 201, 240, 0.4);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Footer */
footer {
    background: rgba(10, 10, 20, 0.9);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4361ee, #4cc9f0, #4361ee);
    animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.copyright {
    color: #b8b8d9;
    font-size: 0.9rem;
    margin: 20px 0;
    transition: all 0.3s ease;
    position: relative;
}

.copyright::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4cc9f0, transparent);
    transition: width 0.5s ease;
}

footer:hover .copyright::before {
    width: 100px;
}

footer:hover .copyright {
    color: #4cc9f0;
    text-shadow: 0 0 5px rgba(76, 201, 240, 0.5);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #4cc9f0;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.footer-social a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.footer-social a:hover::before {
    left: 100%;
}

.footer-social a:hover {
    background: linear-gradient(45deg, #4361ee, #4cc9f0);
    color: white;
    transform: translateY(-8px) scale(1.2) rotate(10deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: footerIconPulse 0.5s ease;
}

@keyframes footerIconPulse {
    0% {
        transform: translateY(-8px) scale(1.2) rotate(10deg);
    }
    50% {
        transform: translateY(-12px) scale(1.3) rotate(15deg);
    }
    100% {
        transform: translateY(-8px) scale(1.2) rotate(10deg);
    }
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #b8b8d9;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    padding: 5px 10px;
}

.footer-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 201, 240, 0.1), transparent);
    transition: 0.5s;
    z-index: -1;
    border-radius: 3px;
}

.footer-links a:hover::before {
    left: 100%;
}

.footer-links a:hover {
    color: #4cc9f0;
    text-shadow: 0 0 8px rgba(76, 201, 240, 0.5);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    section h2 {
        font-size: 2rem;
    }
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease;
    max-width: 350px;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-radius: 10px;
}

.notification-success .notification-content {
    background: linear-gradient(45deg, #4361ee, #4cc9f0);
    color: white;
}

.notification-error .notification-content {
    background: linear-gradient(45deg, #f72585, #b5179e);
    color: white;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-image img {
        width: 250px;
        height: 250px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .notification {
        left: 20px;
        right: 20px;
        max-width: calc(100% - 40px);
    }
}