/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #6c5ce7;
    text-decoration: none;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
}

.nav-logo .logo {
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(108, 92, 231, 0.2));
}

.nav-logo a:hover .logo {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(108, 92, 231, 0.3));
}

/* Animation for logo on page load */
.nav-logo .logo {
    animation: logoFadeIn 1s ease-out;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: #6c5ce7;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
    animation: backgroundShift 20s ease-in-out infinite;
}

/* Animated background elements */
.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: backgroundDots 30s linear infinite;
}

/* Background animated shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: bgShapeFloat 15s ease-in-out infinite;
}

.bg-shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.bg-shape-2 {
    width: 150px;
    height: 150px;
    top: 70%;
    right: 10%;
    animation-delay: 5s;
    animation-duration: 25s;
}

.bg-shape-3 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 20%;
    animation-delay: 10s;
    animation-duration: 18s;
}

.bg-shape-4 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: 15%;
    animation-delay: 15s;
    animation-duration: 22s;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title span {
    display: inline-block;
    animation: letterFloat 2s ease-in-out infinite;
}

.hero-title span:nth-child(1) { animation-delay: 0s; }
.hero-title span:nth-child(2) { animation-delay: 0.1s; }
.hero-title span:nth-child(3) { animation-delay: 0.2s; }

.highlight {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: highlightPulse 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: buttonFloat 4s ease-in-out infinite;
}

.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: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation-delay: 0s;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation-delay: 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px) scale(1.05);
}

.hero-image {
    animation: slideInRight 1s ease-out;
}

.hero-graphic {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heroImageFloat 6s ease-in-out infinite;
}

/* Animated Hero Image */
.hero-image-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.hero-main-image {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 3s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.3);
}

.hero-main-image::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

.hero-main-image::after {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: rotate 15s linear infinite reverse;
}

.hero-icon {
    font-size: 4rem;
    color: white;
    z-index: 2;
    position: relative;
    animation: iconFloat 4s ease-in-out infinite;
}

.floating-element {
    position: absolute;
    border-radius: 20px;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    box-shadow: 0 10px 20px rgba(255, 236, 210, 0.4);
}

.element-2 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    top: 70%;
    right: 10%;
    animation-delay: 2s;
    box-shadow: 0 10px 20px rgba(168, 237, 234, 0.4);
}

.element-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #d299c2, #fef9d7);
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 4s;
    box-shadow: 0 10px 20px rgba(210, 153, 194, 0.4);
}

.element-4 {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    top: 30%;
    right: 30%;
    animation-delay: 1s;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(116, 185, 255, 0.4);
}

.element-5 {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #fd79a8, #e84393);
    bottom: 40%;
    left: 20%;
    animation-delay: 3s;
    border-radius: 50%;
    box-shadow: 0 8px 16px rgba(253, 121, 168, 0.4);
}

/* Animated particles */
.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: particleFloat 8s ease-in-out infinite;
}

.particle-1 { top: 15%; left: 25%; animation-delay: 0s; }
.particle-2 { top: 25%; right: 15%; animation-delay: 1s; }
.particle-3 { bottom: 30%; left: 15%; animation-delay: 2s; }
.particle-4 { bottom: 15%; right: 25%; animation-delay: 3s; }
.particle-5 { top: 45%; left: 5%; animation-delay: 4s; }
.particle-6 { top: 55%; right: 5%; animation-delay: 5s; }

/* Animations */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
    }
    33% { 
        transform: translateY(-15px) rotate(5deg) scale(1.05); 
    }
    66% { 
        transform: translateY(-5px) rotate(-3deg) scale(0.95); 
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 20px 40px rgba(108, 92, 231, 0.3);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 25px 50px rgba(108, 92, 231, 0.4);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes particleFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        opacity: 0.8;
    }
    25% { 
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
    50% { 
        transform: translateY(-10px) scale(0.8);
        opacity: 0.6;
    }
    75% { 
        transform: translateY(-30px) scale(1.1);
        opacity: 0.9;
    }
}

/* New Hero Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes letterFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes highlightPulse {
    0%, 100% { 
        background-size: 100% 100%;
        filter: brightness(1);
    }
    50% { 
        background-size: 120% 120%;
        filter: brightness(1.2);
    }
}

@keyframes buttonFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

@keyframes heroImageFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(-5px) rotate(-1deg); }
}

@keyframes backgroundShift {
    0%, 100% { 
        background-position: 0% 0%;
        opacity: 0.8;
    }
    50% { 
        background-position: 100% 100%;
        opacity: 1;
    }
}

@keyframes backgroundDots {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(50px, 50px) rotate(360deg); }
}

@keyframes bgShapeFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.05;
    }
    25% { 
        transform: translateY(-30px) translateX(20px) scale(1.1);
        opacity: 0.08;
    }
    50% { 
        transform: translateY(-10px) translateX(-15px) scale(0.9);
        opacity: 0.03;
    }
    75% { 
        transform: translateY(-40px) translateX(10px) scale(1.05);
        opacity: 0.06;
    }
}

/* Portfolio Animations */
@keyframes portfolioGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes portfolioShimmer {
    0% { 
        background-position: -200% -200%;
        opacity: 0;
    }
    50% { 
        background-position: 200% 200%;
        opacity: 1;
    }
    100% { 
        background-position: -200% -200%;
        opacity: 0;
    }
}

@keyframes portfolioDots {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(20px, 20px) rotate(360deg); }
}

@keyframes overlayPulse {
    0%, 100% { 
        background: linear-gradient(135deg, 
            rgba(0, 0, 0, 0.8) 0%, 
            rgba(108, 92, 231, 0.7) 50%,
            rgba(0, 0, 0, 0.8) 100%);
    }
    50% { 
        background: linear-gradient(135deg, 
            rgba(0, 0, 0, 0.7) 0%, 
            rgba(108, 92, 231, 0.8) 50%,
            rgba(0, 0, 0, 0.7) 100%);
    }
}

@keyframes borderGlow {
    0%, 100% { 
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 0 0 0 rgba(255, 255, 255, 0.2);
    }
    50% { 
        border-color: rgba(255, 255, 255, 0.6);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }
}

/* Web Development Animations */
@keyframes webCodeScan {
    0%, 100% { 
        background-position: -200% 0%, 0% 0%;
    }
    50% { 
        background-position: 200% 0%, 0% 0%;
    }
}

@keyframes webCodePulse {
    0%, 100% { 
        opacity: 0.1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes webFloatUp {
    0% {
        transform: translateY(0px) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-100px) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translateY(-200px) scale(0.8);
        opacity: 0;
    }
}

/* Mobile App Animations */
@keyframes mobileCircuit {
    0% { 
        background-position: 0px 0px, 0px 0px;
        opacity: 0.3;
    }
    50% { 
        background-position: 15px 15px, 15px 15px;
        opacity: 0.6;
    }
    100% { 
        background-position: 30px 30px, 30px 30px;
        opacity: 0.3;
    }
}

@keyframes mobileFrame {
    0%, 100% { 
        border-color: rgba(0, 255, 255, 0.3);
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0, 255, 255, 0.3);
    }
    50% { 
        border-color: rgba(0, 255, 255, 0.8);
        transform: scale(1.02);
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    }
}

@keyframes mobileFloatUp {
    0% {
        transform: translateY(0px) scale(1);
        opacity: 0.8;
        box-shadow: 0 0 0 rgba(0, 255, 255, 0.5);
    }
    50% {
        transform: translateY(-100px) scale(1.2);
        opacity: 1;
        box-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
    }
    100% {
        transform: translateY(-200px) scale(0.8);
        opacity: 0;
        box-shadow: 0 0 0 rgba(0, 255, 255, 0.5);
    }
}

/* Design Animations */
@keyframes designParticles {
    0% { 
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%;
        opacity: 0.4;
    }
    25% { 
        background-position: 25% 25%, -25% 25%, 25% -25%, -25% -25%;
        opacity: 0.8;
    }
    50% { 
        background-position: 50% 50%, -50% 50%, 50% -50%, -50% -50%;
        opacity: 0.6;
    }
    75% { 
        background-position: 75% 75%, -75% 75%, 75% -75%, -75% -75%;
        opacity: 0.9;
    }
    100% { 
        background-position: 100% 100%, -100% 100%, 100% -100%, -100% -100%;
        opacity: 0.4;
    }
}

@keyframes designSparkle {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0.6;
    }
    25% { 
        transform: translate(-50%, -50%) scale(1.2) rotate(90deg);
        opacity: 1;
    }
    50% { 
        transform: translate(-50%, -50%) scale(0.8) rotate(180deg);
        opacity: 0.8;
    }
    75% { 
        transform: translate(-50%, -50%) scale(1.1) rotate(270deg);
        opacity: 0.9;
    }
}

@keyframes designFloatUp {
    0% {
        transform: translateY(0px) scale(1) rotate(0deg);
        opacity: 0.8;
    }
    33% {
        transform: translateY(-70px) scale(1.3) rotate(120deg);
        opacity: 1;
    }
    66% {
        transform: translateY(-140px) scale(0.9) rotate(240deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-200px) scale(0.6) rotate(360deg);
        opacity: 0;
    }
}

/* Legacy animation for fallback */
@keyframes portfolioFloatUp {
    0% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-100px) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translateY(-200px) scale(0.8);
        opacity: 0;
    }
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item h4 {
    font-size: 2rem;
    font-weight: 700;
    color: #6c5ce7;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #666;
    font-size: 0.9rem;
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
}

.about-card i {
    font-size: 3rem;
    color: #6c5ce7;
    margin-bottom: 1rem;
}

.about-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.about-card p {
    color: #666;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Service Pages - Other Services Section */
.other-services {
    padding: 80px 0;
    background: #f8f9fa;
    position: relative;
    z-index: 2;
    margin-top: 0;
    margin-bottom: 2rem;
    clear: both;
}

.other-services .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.other-services .service-link-card {
    display: block;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.other-services .service-link-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: inherit;
}

.other-services .service-link-card .service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.other-services .service-link-card .service-icon i {
    font-size: 1.8rem;
    color: white;
}

.other-services .service-link-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.other-services .service-link-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: #6c5ce7;
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio {
    background: #f8f9fa;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #6c5ce7;
    border-color: #6c5ce7;
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(108, 92, 231, 0.1) 0%, 
        rgba(162, 155, 254, 0.1) 25%,
        rgba(255, 236, 210, 0.1) 50%,
        rgba(252, 182, 159, 0.1) 75%,
        rgba(108, 92, 231, 0.1) 100%);
    background-size: 400% 400%;
    animation: portfolioGradient 8s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
    z-index: 1;
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-image {
    height: 250px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    position: relative;
    overflow: hidden;
}

/* Web Development - Code-like animations */
.portfolio-item[data-category="web"] .portfolio-image {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.portfolio-item[data-category="web"] .portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(0, 255, 0, 0.1) 50%, transparent 100%),
        repeating-linear-gradient(90deg, 
            transparent 0px, 
            transparent 18px, 
            rgba(0, 255, 0, 0.05) 20px, 
            rgba(0, 255, 0, 0.05) 22px);
    background-size: 200% 100%, 100% 100%;
    animation: webCodeScan 4s ease-in-out infinite;
    z-index: 1;
}

.portfolio-item[data-category="web"] .portfolio-image::after {
    content: '</>';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Courier New', monospace;
    font-size: 3rem;
    color: rgba(0, 255, 0, 0.1);
    animation: webCodePulse 3s ease-in-out infinite;
    z-index: 1;
}

/* Mobile App - Circuit board animations */
.portfolio-item[data-category="mobile"] .portfolio-image {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
}

.portfolio-item[data-category="mobile"] .portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(0deg, transparent 48%, rgba(0, 255, 255, 0.2) 50%, transparent 52%),
        linear-gradient(90deg, transparent 48%, rgba(0, 255, 255, 0.2) 50%, transparent 52%);
    background-size: 30px 30px;
    animation: mobileCircuit 6s linear infinite;
    z-index: 1;
}

.portfolio-item[data-category="mobile"] .portfolio-image::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    animation: mobileFrame 4s ease-in-out infinite;
    z-index: 1;
}

/* Design - Creative particle animations */
.portfolio-item[data-category="design"] .portfolio-image {
    background: linear-gradient(135deg, #fd79a8, #e84393);
}

.portfolio-item[data-category="design"] .portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 0, 0.2) 3px, transparent 3px),
        radial-gradient(circle at 80% 40%, rgba(255, 0, 255, 0.2) 2px, transparent 2px),
        radial-gradient(circle at 40% 80%, rgba(0, 255, 255, 0.2) 4px, transparent 4px),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.2) 2px, transparent 2px);
    background-size: 50px 50px, 70px 70px, 60px 60px, 40px 40px;
    animation: designParticles 8s ease-in-out infinite;
    z-index: 1;
}

.portfolio-item[data-category="design"] .portfolio-image::after {
    content: '✨';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    animation: designSparkle 2s ease-in-out infinite;
    z-index: 1;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(108, 92, 231, 0.7) 50%,
        rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    color: white;
    text-align: center;
    padding: 2rem;
    z-index: 5;
    backdrop-filter: blur(5px);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    animation: overlayPulse 2s ease-in-out infinite;
}

.portfolio-overlay::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    animation: borderGlow 3s ease-in-out infinite;
}

.portfolio-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

/* Web Development Floating Elements */
.portfolio-item[data-category="web"] .portfolio-float-item {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(0, 255, 0, 0.8);
    border-radius: 2px;
    animation: webFloatUp 4s ease-in-out infinite;
}

.portfolio-item[data-category="web"] .portfolio-float-item:nth-child(1)::before {
    content: '{ }';
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 8px;
    color: rgba(0, 255, 0, 0.8);
    top: -2px;
    left: -4px;
}

.portfolio-item[data-category="web"] .portfolio-float-item:nth-child(2)::before {
    content: '<>';
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 8px;
    color: rgba(0, 255, 0, 0.8);
    top: -2px;
    left: -4px;
}

/* Mobile App Floating Elements */
.portfolio-item[data-category="mobile"] .portfolio-float-item {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(0, 255, 255, 0.8);
    border-radius: 50%;
    animation: mobileFloatUp 4s ease-in-out infinite;
}

.portfolio-item[data-category="mobile"] .portfolio-float-item:nth-child(1) {
    width: 6px;
    height: 10px;
    border-radius: 2px;
    border: 1px solid rgba(0, 255, 255, 0.6);
    background: transparent;
}

.portfolio-item[data-category="mobile"] .portfolio-float-item:nth-child(3) {
    width: 4px;
    height: 4px;
    background: rgba(0, 255, 255, 1);
    box-shadow: 0 0 4px rgba(0, 255, 255, 0.5);
}

/* Design Floating Elements */
.portfolio-item[data-category="design"] .portfolio-float-item {
    position: absolute;
    animation: designFloatUp 4s ease-in-out infinite;
}

.portfolio-item[data-category="design"] .portfolio-float-item:nth-child(1) {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 0, 0.8);
    border-radius: 50%;
}

.portfolio-item[data-category="design"] .portfolio-float-item:nth-child(2) {
    width: 6px;
    height: 6px;
    background: rgba(255, 0, 255, 0.8);
    transform: rotate(45deg);
}

.portfolio-item[data-category="design"] .portfolio-float-item:nth-child(3) {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 6px solid rgba(0, 255, 255, 0.8);
}

.portfolio-item[data-category="design"] .portfolio-float-item:nth-child(4) {
    width: 8px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
}

/* Common positioning for all floating elements */
.portfolio-float-item:nth-child(1) {
    top: 80%;
    left: 20%;
    animation-delay: 0s;
    animation-duration: 4s;
}

.portfolio-float-item:nth-child(2) {
    top: 70%;
    left: 60%;
    animation-delay: 1s;
    animation-duration: 5s;
}

.portfolio-float-item:nth-child(3) {
    top: 85%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 3.5s;
}

.portfolio-float-item:nth-child(4) {
    top: 75%;
    left: 40%;
    animation-delay: 0.5s;
    animation-duration: 4.5s;
}

.portfolio-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #6c5ce7;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    z-index: 10;
    transition: transform 0.3s ease;
}

.portfolio-link:hover {
    transform: scale(1.1);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-details p {
    color: #666;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.25);
}

/* Form validation styles */
.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Form loading state */
#contact-form.loading {
    opacity: 0.7;
    pointer-events: none;
}

#contact-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success/Error messages */
.form-message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced form styling */
.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

/* Character counter for textarea */
.char-counter {
    font-size: 0.75rem;
    color: #666;
    text-align: right;
    margin-top: 0.25rem;
}

.char-counter.warning {
    color: #ffc107;
}

.char-counter.error {
    color: #dc3545;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #2d3436;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0.9);
    transition: all 0.3s ease;
}

.footer-logo-img:hover {
    filter: brightness(1.1) drop-shadow(0 2px 8px rgba(108, 92, 231, 0.4));
    transform: scale(1.02);
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #6c5ce7;
}

.footer-section p {
    color: #b2bec3;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #b2bec3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #6c5ce7;
}

.footer-section p i {
    margin-right: 0.5rem;
    color: #6c5ce7;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #636e72;
    color: #b2bec3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .other-services .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .portfolio-filter {
        justify-content: center;
    }
    
    /* Responsive animated banner */
    .hero-image-container {
        width: 250px;
        height: 250px;
    }
    
    .hero-main-image {
        width: 150px;
        height: 150px;
    }
    
    .hero-main-image::before {
        width: 170px;
        height: 170px;
    }
    
    .hero-main-image::after {
        width: 190px;
        height: 190px;
    }
    
    .hero-icon {
        font-size: 3rem;
    }
    
    .floating-element {
        transform: scale(0.8);
    }
    
    .element-1 { width: 60px; height: 60px; }
    .element-2 { width: 45px; height: 45px; }
    .element-3 { width: 75px; height: 75px; }
    .element-4 { width: 30px; height: 30px; }
    .element-5 { width: 55px; height: 55px; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .service-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Extra small screens - animated banner */
    .hero-image-container {
        width: 200px;
        height: 200px;
    }
    
    .hero-main-image {
        width: 120px;
        height: 120px;
    }
    
    .hero-main-image::before {
        width: 140px;
        height: 140px;
    }
    
    .hero-main-image::after {
        width: 160px;
        height: 160px;
    }
    
    .hero-icon {
        font-size: 2.5rem;
    }
    
    .floating-element {
        transform: scale(0.6);
    }
    
    .particle {
        width: 4px;
        height: 4px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a4fcf, #8b7ff7);
}
