/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: #0a0a0f;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 0, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 0, 150, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    animation: backgroundShift 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundShift {
    0%, 100% { 
        background: 
            radial-gradient(circle at 20% 50%, rgba(120, 0, 255, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 40% 80%, rgba(255, 0, 150, 0.15) 0%, transparent 50%),
            linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    }
    33% { 
        background: 
            radial-gradient(circle at 60% 70%, rgba(120, 0, 255, 0.2) 0%, transparent 50%),
            radial-gradient(circle at 30% 40%, rgba(0, 255, 255, 0.18) 0%, transparent 50%),
            radial-gradient(circle at 70% 20%, rgba(255, 0, 150, 0.12) 0%, transparent 50%),
            linear-gradient(135deg, #16213e 0%, #0a0a0f 50%, #1a1a2e 100%);
    }
    67% { 
        background: 
            radial-gradient(circle at 80% 30%, rgba(120, 0, 255, 0.12) 0%, transparent 50%),
            radial-gradient(circle at 10% 80%, rgba(0, 255, 255, 0.2) 0%, transparent 50%),
            radial-gradient(circle at 50% 60%, rgba(255, 0, 150, 0.18) 0%, transparent 50%),
            linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0a0a0f 100%);
    }
}

/* Floating Particles */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(120, 0, 255, 0.8) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(0, 255, 255, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 150, 0.4) 1px, transparent 1px);
    background-size: 200px 200px, 150px 150px, 100px 100px;
    animation: particleFloat 25s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes particleFloat {
    0% { transform: translateY(0px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(120, 0, 255, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: navSlideDown 0.8s ease-out;
}

@keyframes navSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 8px 32px rgba(120, 0, 255, 0.2);
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #7c3aed, #06b6d4, #ec4899);
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.5));
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
    background: linear-gradient(45deg, #7c3aed, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

.nav-logo-img {
    height: 52px;
    width: auto;
    max-width: 60px;
    vertical-align: middle;
    margin-right: 8px;
    display: inline-block;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.nav-btn{
    text-decoration: none;
    color: #e2e8f0;
    background-color: #06b6d4;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 20px; 
}
.nav-btn:hover {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.nav-btn::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #7c3aed, #06b6d4);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-btn:hover::after {
    width: 80%;
}

.nav-btn.active {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.15);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.nav-link {
    text-decoration: none;
    color: #e2e8f0;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.nav-link:hover {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #7c3aed, #06b6d4);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link.active {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.15);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(6, 182, 212, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    background-size: 200% 200%, 250% 250%, 300% 300%, 100% 100%;
    animation: heroBackgroundMove 15s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

@keyframes heroBackgroundMove {
    0%, 100% { background-position: 0% 0%, 100% 100%, 50% 50%, 0% 0%; }
    33% { background-position: 100% 50%, 0% 50%, 100% 0%, 0% 0%; }
    67% { background-position: 50% 100%, 50% 0%, 0% 100%, 0% 0%; }
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.6) 2px, transparent 2px),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.4) 1px, transparent 1px),
        radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.5) 1.5px, transparent 1.5px),
        radial-gradient(circle at 60% 60%, rgba(168, 85, 247, 0.3) 1px, transparent 1px);
    background-size: 80px 80px, 120px 120px, 60px 60px, 100px 100px;
    animation: particleFloat 25s linear infinite, particleRotate 30s ease-in-out infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-30px) translateX(20px); }
    50% { transform: translateY(-60px) translateX(-10px); }
    75% { transform: translateY(-30px) translateX(-20px); }
    100% { transform: translateY(0px) translateX(0px); }
}

@keyframes particleRotate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #e2e8f0;
    animation: titleSlideUp 1s ease-out 0.3s both;
}

@keyframes titleSlideUp {
    from { 
        transform: translateY(50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.gradient-text {
    background: linear-gradient(45deg, #7c3aed, #06b6d4, #ec4899, #a855f7);
    background-size: 300% 300%;
    animation: gradientFlow 4s ease-in-out infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(124, 58, 237, 0.5));
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn i {
    margin-right: 0.5rem;
}

.btn-primary {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-elements {
    position: relative;
    width: 300px;
    height: 300px;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    animation: floatCard 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 0;
    right: 0;
    animation-delay: 2s;
}

.floating-card:nth-child(3) {
    bottom: 0;
    left: 0;
    animation-delay: 4s;
}

.floating-card:nth-child(4) {
    bottom: 0;
    right: 0;
    animation-delay: 6s;
}

.floating-card:nth-child(5) {
    top: 30%;
    left: 110%;
    
    animation-delay: 8s;
}

.floating-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #ffd700;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

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

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #e2e8f0;
    background: linear-gradient(45deg, #7c3aed, #06b6d4, #ec4899, #a855f7);
    background-size: 300% 300%;
    animation: titleGradientFlow 6s ease-in-out infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.5));
    position: relative;
    z-index: 1;
}

@keyframes titleGradientFlow {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

.section-subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
    animation: subtitleFadeIn 1.2s ease-out 0.3s both;
    position: relative;
    z-index: 1;
}

@keyframes subtitleFadeIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* About Section - Dark Modern Theme */
.about {
    background: 
        radial-gradient(circle at 70% 30%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, #16213e 0%, #0f0f17 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 60% 40%, rgba(236, 72, 153, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    animation: aboutSectionShift 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes aboutSectionShift {
    0%, 100% { 
        transform: translateX(0px) translateY(0px);
        opacity: 1;
    }
    50% { 
        transform: translateX(-15px) translateY(10px);
        opacity: 0.8;
    }
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.about-text {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.about-card {
    background: linear-gradient(145deg, rgba(20, 20, 35, 0.9), rgba(15, 15, 25, 0.95));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(124, 58, 237, 0.3);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    animation: aboutCardSlideIn 0.8s ease-out both;
    overflow: hidden;
}

.about-card:nth-child(1) { animation-delay: 0.1s; }
.about-card:nth-child(2) { animation-delay: 0.3s; }
.about-card:nth-child(3) { animation-delay: 0.5s; }

@keyframes aboutCardSlideIn {
    from {
        transform: translateY(50px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.about-card:hover {
    transform: translateY(-20px) scale(1.05) rotateX(-2deg);
    box-shadow: 
        0 25px 60px rgba(124, 58, 237, 0.4),
        0 0 0 2px rgba(6, 182, 212, 0.4),
        0 0 80px rgba(168, 85, 247, 0.3),
        inset 0 0 100px rgba(255, 255, 255, 0.08);
    border-color: rgba(6, 182, 212, 0.6);
    animation: aboutCardZoom 0.6s ease-out;
}

@keyframes aboutCardZoom {
    0% { transform: translateY(-10px) scale(1.02); }
    50% { transform: translateY(-30px) scale(1.08); }
    100% { transform: translateY(-20px) scale(1.05) rotateX(-2deg); }
}

.about-icon {
    width: 80px;
    height: 80px;
    background: 
        linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(6, 182, 212, 0.9), rgba(236, 72, 153, 0.9)),
        radial-gradient(circle at center, rgba(168, 85, 247, 0.7) 0%, transparent 70%);
    background-size: 200% 200%, 100% 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    animation: aboutIconPulse 4s ease-in-out infinite;
    transition: all 0.4s ease;
    border: 2px solid rgba(124, 58, 237, 0.4);
    position: relative;
    overflow: hidden;
}

.about-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: aboutIconRotate 3s linear infinite;
}

@keyframes aboutIconPulse {
    0%, 100% { 
        background-position: 0% 50%, center;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.5);
    }
    50% { 
        background-position: 100% 50%, center;
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(124, 58, 237, 0);
    }
}

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

.about-card:hover .about-icon {
    transform: scale(1.15);
    border-color: rgba(6, 182, 212, 0.7);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.7);
}

.about-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e2e8f0;
    background: linear-gradient(45deg, #7c3aed, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: aboutTitleGlow 3s ease-in-out infinite;
}

@keyframes aboutTitleGlow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.6)); }
    50% { filter: drop-shadow(0 0 16px rgba(6, 182, 212, 0.8)); }
}

.about-card p {
    color: #94a3b8;
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Projects Section */
.projects {
    background: 
        radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, #0f0f17 0%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(236, 72, 153, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(168, 85, 247, 0.08) 0%, transparent 40%);
    animation: sectionBackground 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes sectionBackground {
    0%, 100% { opacity: 1; transform: translateY(0px); }
    50% { opacity: 0.7; transform: translateY(-20px); }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.project-card {
    background: linear-gradient(145deg, rgba(30, 30, 45, 0.8), rgba(20, 20, 35, 0.9));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    animation: cardSlideUp 0.6s ease-out both;
    cursor: pointer;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardSlideUp {
    from {
        transform: translateY(60px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(124, 58, 237, 0.3),
        0 0 0 1px rgba(124, 58, 237, 0.3),
        0 0 60px rgba(6, 182, 212, 0.2),
        inset 0 0 80px rgba(255, 255, 255, 0.03);
    border-color: rgba(6, 182, 212, 0.4);
}

/* Laptop Frame Design */
.laptop-frame {
    position: relative;
    height: 220px;
    padding: 10px;
    background: linear-gradient(145deg, #2d3748, #1a202c);
    border-radius: 15px 15px 5px 5px;
    box-shadow: 
        0 5px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.laptop-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: 15px 15px 5px 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.laptop-frame:hover::before {
    opacity: 1;
}

.laptop-screen {
    position: relative;
    width: 100%;
    height: 180px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #374151;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.laptop-base {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 8px;
    background: linear-gradient(to right, #4a5568, #2d3748, #4a5568);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.laptop-base::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 3px;
    background: #1a202c;
    border-radius: 2px;
}

.project-demo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 6px;
    transform: scale(1);
}

.video-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    border-radius: 6px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15), 0 0 0 1px rgba(6, 182, 212, 0.08);
    opacity: 1;
    animation: overlayPulse 3s ease-in-out infinite;
    overflow: hidden;
}

.video-overlay img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 1;
    opacity: 0.8;
    margin: 0;
    padding: 0;
    border-radius: 6px;
}

.video-overlay span {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    opacity: 0.95;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 0 4px rgba(0,0,0,0.6);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 8px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

@keyframes overlayPulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15), 0 0 0 1px rgba(6, 182, 212, 0.08); }
    50% { box-shadow: 0 16px 48px rgba(6, 182, 212, 0.22), 0 0 0 3px rgba(124, 58, 237, 0.12); }
}

.video-overlay::after {
    content: '↗ Click to explore';
    position: absolute;
    bottom: 14px;
    right: 20px;
    left: auto;
    transform: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.48rem;
    background: rgba(6, 182, 212, 0.13);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    animation: hoverIndicatorPulse 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.06);
    opacity: 0.92;
}

@keyframes hoverIndicatorPulse {
    0%, 100% { 
        opacity: 0.7;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.03);
    }
}

.laptop-frame:hover {
    transform: perspective(1000px) rotateX(-2deg) rotateY(2deg);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(124, 58, 237, 0.2);
}

.laptop-frame:hover .laptop-screen {
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 
        inset 0 0 25px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(6, 182, 212, 0.3);
}

.laptop-frame:hover .project-demo-video {
    opacity: 1;
    transform: scale(1.05);
}

.laptop-frame:hover .video-overlay {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.laptop-frame:hover .video-overlay img {
    opacity: 0 !important;
    visibility: hidden !important;
}

.project-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e2e8f0;
    background: linear-gradient(45deg, #7c3aed, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(124, 58, 237, 0.5)); }
    50% { filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.7)); }
}

.project-content p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    display: -webkit-box;
  
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.tag {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: #06b6d4;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
    border-color: rgba(6, 182, 212, 0.6);
    color: #7c3aed;
}

/* Project Details Modal */
.project-details-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: overlayFadeIn 0.3s ease-out;
    overflow-y: auto;
    padding: 2rem 1rem;
    margin-bottom: 100px; /* Add this line */
}

.video-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: overlayFadeIn 0.3s ease-out;
    overflow-y: auto;
    padding: 2rem 1rem;
    margin-bottom: 100px; /* Add this line */
}

.project-details-container {
    position: relative;
    width: 90vw;
    max-width: 1200px;
    max-height: 90vh;
    background: linear-gradient(145deg, rgba(30, 30, 45, 0.95), rgba(20, 20, 35, 0.98));
    backdrop-filter: blur(30px);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.8),
        0 0 0 2px rgba(124, 58, 237, 0.4),
        0 0 60px rgba(6, 182, 212, 0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
     overflow-y: auto;
}


.project-details-container::-webkit-scrollbar {
    display: none;
}
@keyframes overlayFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(20px);
    }
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.7) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.project-details-close {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(6, 182, 212, 0.9));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.project-details-close:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.6);
}

.project-details-header {
    text-align: center;
    margin-bottom: 3rem;
}

.project-details-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #7c3aed, #06b6d4, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-details-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.project-details-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 768px) {
    .project-details-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-details-container {
        padding: 2rem;
        margin: 1rem;
        width: calc(100vw - 2rem);
    }
    
    .project-details-title {
        font-size: 2rem;
    }
}

.project-video-section {
    background: linear-gradient(145deg, #2d3748, #1a202c);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.project-details-video {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 15px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.project-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-description {
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.project-description h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #7c3aed;
}

.project-description p {
    color: #e2e8f0;
    line-height: 1.7;
    font-size: 1rem;
}

.project-features {
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.project-features h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #06b6d4;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #e2e8f0;
    font-size: 1rem;
}

.features-list li i {
    color: #06b6d4;
    font-size: 1.2rem;
    min-width: 20px;
}

.project-tech-stack {
    background: rgba(236, 72, 153, 0.05);
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.project-tech-stack h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ec4899;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-tag {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(6, 182, 212, 0.3));
    border: 1px solid rgba(124, 58, 237, 0.4);
    color: #e2e8f0;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
    border-color: rgba(6, 182, 212, 0.6);
}
/* Services Section */
.services {
    background: 
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, #1a1a2e 0%, #0f0f17 100%);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 40% 60%, rgba(124, 58, 237, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 60% 40%, rgba(236, 72, 153, 0.04) 0%, transparent 60%);
    animation: servicesSectionShift 25s ease-in-out infinite;
    z-index: 0;
}

@keyframes servicesSectionShift {
    0%, 100% { 
        transform: translateX(0px) translateY(0px);
        opacity: 1;
    }
    50% { 
        transform: translateX(20px) translateY(-10px);
        opacity: 0.8;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: linear-gradient(145deg, rgba(25, 25, 40, 0.8), rgba(15, 15, 25, 0.9));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    animation: serviceCardSlideIn 0.8s ease-out both;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.3s; }
.service-card:nth-child(3) { animation-delay: 0.5s; }

@keyframes serviceCardSlideIn {
    from {
        transform: translateY(60px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.service-card:hover {
    transform: translateY(-20px) scale(1.06) rotateX(-1deg);
    box-shadow: 
        0 30px 60px rgba(168, 85, 247, 0.4),
        0 0 0 2px rgba(168, 85, 247, 0.5),
        0 0 100px rgba(6, 182, 212, 0.3),
        inset 0 0 80px rgba(255, 255, 255, 0.05);
    border-color: rgba(6, 182, 212, 0.6);
    animation: serviceCardZoom 0.5s ease-out;
}

@keyframes serviceCardZoom {
    0% { transform: translateY(-15px) scale(1.03); }
    50% { transform: translateY(-25px) scale(1.09); }
    100% { transform: translateY(-20px) scale(1.06) rotateX(-1deg); }
}

.service-icon {
    width: 80px;
    height: 80px;
    background: 
        linear-gradient(135deg, rgba(124, 58, 237, 0.8), rgba(6, 182, 212, 0.8), rgba(236, 72, 153, 0.8)),
        radial-gradient(circle at center, rgba(168, 85, 247, 0.6) 0%, transparent 70%);
    background-size: 200% 200%, 100% 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    animation: iconPulse 4s ease-in-out infinite;
    transition: all 0.3s ease;
    border: 2px solid rgba(124, 58, 237, 0.3);
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: iconRotate 3s linear infinite;
}

@keyframes iconPulse {
    0%, 100% { 
        background-position: 0% 50%, center;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4);
    }
    50% { 
        background-position: 100% 50%, center;
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(124, 58, 237, 0);
    }
}

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

.service-card:hover .service-icon {
    transform: scale(1.1);
    border-color: rgba(6, 182, 212, 0.6);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e2e8f0;
    background: linear-gradient(45deg, #7c3aed, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: serviceTextGlow 4s ease-in-out infinite;
}

@keyframes serviceTextGlow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.6)); }
    50% { filter: drop-shadow(0 0 16px rgba(6, 182, 212, 0.8)); }
}

.service-card p {
    color: #94a3b8;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* Contact Section - Dark Theme */
.contact {
    background: 
        radial-gradient(circle at 50% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 60%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    animation: contactSectionShift 18s ease-in-out infinite;
    z-index: 0;
}

@keyframes contactSectionShift {
    0%, 100% { 
        transform: translateX(0px);
        opacity: 1;
    }
    50% { 
        transform: translateX(10px);
        opacity: 0.8;
    }
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-info, .contact-form {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: linear-gradient(145deg, rgba(20, 20, 35, 0.8), rgba(15, 15, 25, 0.9));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 15px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    animation: contactCardSlideIn 0.6s ease-out both;
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes contactCardSlideIn {
    from {
        transform: translateX(-40px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.contact-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(124, 58, 237, 0.3),
        0 0 0 1px rgba(6, 182, 212, 0.3);
    border-color: rgba(6, 182, 212, 0.4);
}

.contact-card i {
    font-size: 1.8rem;
    color: #06b6d4;
    width: 50px;
    text-align: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.2));
    padding: 15px;
    border-radius: 50%;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.contact-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #e2e8f0;
    background: linear-gradient(45deg, #7c3aed, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-card p {
    color: #94a3b8;
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: linear-gradient(145deg, rgba(20, 20, 35, 0.6), rgba(15, 15, 25, 0.8));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: contactFormSlideIn 0.8s ease-out 0.3s both;
}

@keyframes contactFormSlideIn {
    from {
        transform: translateX(40px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.form-group input,
.form-group textarea {
    padding: 1.2rem;
    background: rgba(30, 30, 45, 0.8);
    border: 2px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    color: #e2e8f0;
    transition: all 0.3s ease;
    font-family: inherit;
    backdrop-filter: blur(10px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #64748b;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    background: rgba(30, 30, 45, 0.9);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: 
        radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 0%, rgba(236, 72, 153, 0.05) 0%, transparent 60%);
    animation: footerBackground 30s ease-in-out infinite;
    z-index: 0;
}

@keyframes footerBackground {
    0%, 100% { 
        transform: translateY(0px);
        opacity: 1;
    }
    50% { 
        transform: translateY(-15px);
        opacity: 0.7;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #7c3aed, #06b6d4, #ec4899);
    background-size: 200% 200%;
    animation: footerLogoGlow 3s ease-in-out infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(124, 58, 237, 0.6));
}

@keyframes footerLogoGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.footer-logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
    background: linear-gradient(45deg, #7c3aed, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: iconPulse 2s ease-in-out infinite;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #7c3aed, #06b6d4);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer-links a:hover {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.footer-links a:hover::before {
    width: 80%;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 50%;
    color: #06b6d4;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.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.1), transparent);
    transition: left 0.5s ease;
}

.footer-social a:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.8), rgba(6, 182, 212, 0.8));
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
    border-color: rgba(6, 182, 212, 0.6);
    color: white;
}

.footer-social a:hover::before {
    left: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
    color: #64748b;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1.5s ease-out 0.5s both;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .floating-elements {
        display: none;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

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

    .container {
        padding: 0 1rem;
    }
    .video-popup-container {
        width: 95vw; /* Adjust width for smaller screens */
        padding: 10px; /* Reduce padding */
    }
    .video-popup-close {
        top: -10px; /* Adjust close button position */
        right: -10px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .project-card,
    .service-card,
    .about-card {
        margin: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
    }
    .contact-card i {
        font-size: 1rem;
        color: #06b6d4;
        width: 50px;
        text-align: center;
        background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.2));
        padding: 15px;
        border-radius: 50%;
        border: 1px solid rgba(124, 58, 237, 0.3);
    }
    .contact-card {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1.2rem;
      
    }
    .contact-card h3 {
        font-size: 0.7rem; /* Smaller font size for card titles */
    }
    .contact-card p {
        font-size: 0.6rem; /* Smaller font size for card paragraphs */
    }
    .form-group input,
    .form-group textarea {
        padding: 0.8rem; /* Adjust padding for input fields */
        font-size: 0.9rem; /* Smaller font size for input text */
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

/* Smooth transitions for all interactive elements */
* {
    transition: transform 0.3s ease, opacity 0.3s ease;
}