/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a463f5;
    --accent-color: #00d2ff;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --danger-color: #d63031;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #6c5ce7 0%, #a463f5 100%);
    --gradient-3: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    --gradient-4: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 40px rgba(108, 92, 231, 0.2);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
    background: var(--light-color);
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-sphere {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(108,92,231,0.1) 0%, rgba(164,99,245,0.05) 100%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: float 20s infinite;
}

.gradient-sphere-2 {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,210,255,0.1) 0%, rgba(58,123,213,0.05) 100%);
    border-radius: 50%;
    bottom: -200px;
    left: -200px;
    animation: float 15s infinite reverse;
}

.gradient-sphere-3 {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(240,147,251,0.1) 0%, rgba(245,87,108,0.05) 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 25s infinite;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, var(--primary-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    animation: particleMove 20s linear infinite;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-text {
    color: var(--dark-color);
}

.logo-dot {
    color: var(--primary-color);
    font-size: 2.2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-2);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient-2);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: transform 0.3s ease !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.nav-cta.active {
    background: var(--gradient-2);
    color: white !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-subtitle {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.gradient-text {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-2);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 400px;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.float-item {
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    animation: float 3s infinite;
    transition: var(--transition);
}

.float-item:hover {
    transform: scale(1.1) !important;
    box-shadow: var(--shadow-hover);
}

.html-icon { top: 20%; left: 20%; animation-delay: 0s; color: #e34f26; }
.css-icon { top: 50%; right: 20%; animation-delay: 0.5s; color: #264de4; }
.js-icon { bottom: 20%; left: 30%; animation-delay: 1s; color: #f7df1e; }
.react-icon { top: 30%; right: 30%; animation-delay: 1.5s; color: #61dafb; }
.python-icon { bottom: 30%; right: 40%; animation-delay: 2s; color: #3776ab; }
.figma-icon { top: 60%; left: 40%; animation-delay: 2.5s; color: #f24e1e; }

.hero-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: var(--gradient-2);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.1;
    animation: morph 8s infinite;
}

.hero-shape-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: var(--gradient-3);
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    opacity: 0.05;
    animation: morph 12s infinite reverse;
}

/* Services Section */
.services {
    padding: 6rem 2rem;
    background: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    color: #666;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(108, 92, 231, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(360deg);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.service-features {
    list-style: none;
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
}

.service-features li {
    margin-bottom: 0.5rem;
    color: #555;
}

.service-features i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.service-link:hover {
    gap: 1rem;
    color: var(--secondary-color);
}

/* Stats Section */
.stats {
    padding: 4rem 2rem;
    background: var(--gradient-2);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><circle cx="50" cy="50" r="40"/></svg>') repeat;
    animation: slide 20s linear infinite;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Portfolio Showcase */
.portfolio-showcase {
    padding: 6rem 2rem;
    background: white;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.showcase-item {
    height: 300px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.showcase-item:hover .showcase-img {
    transform: scale(1.1);
}

.showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: white;
    opacity: 0;
    transition: var(--transition);
}

.showcase-item:hover .showcase-overlay {
    opacity: 1;
}

.showcase-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.showcase-overlay p {
    transform: translateY(20px);
    transition: var(--transition) 0.1s;
}

.showcase-item:hover .showcase-overlay h3,
.showcase-item:hover .showcase-overlay p {
    transform: translateY(0);
}

.showcase-link {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-20px);
    opacity: 0;
    transition: var(--transition);
}

.showcase-item:hover .showcase-link {
    transform: translateY(0);
    opacity: 1;
}

.text-center {
    text-align: center;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.testimonial-slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    padding: 1rem;
}

.testimonial-content {
    background: white;
    padding: 3rem;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 8rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: serif;
}

.testimonial-rating {
    color: #ffd700;
    margin-bottom: 1.5rem;
}

.testimonial-rating i {
    margin-right: 0.2rem;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.author-info p {
    color: #666;
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.slider-prev,
.slider-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    color: var(--primary-color);
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

/* CTA Section */
.cta {
    padding: 6rem 2rem;
    background: var(--gradient-1);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="white" opacity="0.1"><circle cx="50" cy="50" r="40"/></svg>') repeat;
    animation: slide 20s linear infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 4rem 2rem 2rem;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-col p {
    color: #aaa;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px) rotate(360deg);
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    gap: 1rem;
    color: #aaa;
}

.contact-info i {
    color: var(--primary-color);
    margin-top: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
}

.footer-bottom i {
    color: var(--danger-color);
    animation: heartbeat 1.5s ease infinite;
}

/* Page Header */
.page-header {
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="white" opacity="0.1"><circle cx="50" cy="50" r="40"/></svg>') repeat;
    animation: slide 20s linear infinite;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.breadcrumbs {
    position: relative;
    z-index: 1;
}

.breadcrumbs a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* About Page Styles */
.about-story {
    padding: 6rem 2rem;
    background: white;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-text {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.story-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.story-stat {
    text-align: center;
}

.story-stat .stat-number {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.story-stat .stat-label {
    font-size: 0.9rem;
    color: #666;
}

.story-visual {
    position: relative;
}

.story-image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
}

.story-image {
    width: 100%;
    height: auto;
    border-radius: 30px;
    transition: var(--transition);
}

.story-image:hover {
    transform: scale(1.05);
}

.story-shape {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--gradient-2);
    border-radius: 50%;
    z-index: -1;
    animation: float 6s infinite;
}

.story-shape-2 {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 150px;
    height: 150px;
    background: var(--gradient-3);
    border-radius: 50%;
    z-index: -1;
    animation: float 8s infinite reverse;
}

/* Values Section */
.values {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    transform: rotate(360deg) scale(1.1);
}

.value-card h3 {
    margin-bottom: 1rem;
}

.value-card p {
    color: #666;
}

/* Team Section */
.team {
    padding: 6rem 2rem;
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.team-card {
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.team-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-image {
    transform: scale(1.1);
}

.team-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    transition: var(--transition);
}

.team-card:hover .team-social {
    bottom: 0;
}

.team-social a {
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.team-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(360deg);
}

.team-info h3 {
    margin-bottom: 0.3rem;
}

.team-info p {
    color: #666;
}

/* Process Section */
.process {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.process-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    background: var(--gradient-2);
    opacity: 0.3;
}

.process-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.process-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-md);
}

.process-content {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.process-content:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.process-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.process-content p {
    color: #666;
}

/* Services Page Styles */
.services-overview {
    padding: 6rem 2rem;
    background: white;
}

.service-detail-section {
    margin-bottom: 6rem;
    padding: 3rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-detail-grid.reverse {
    direction: rtl;
}

.service-detail-grid.reverse .service-detail-content {
    direction: ltr;
}

.service-detail-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-detail-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-detail-content p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.service-features-list {
    margin-bottom: 2rem;
}

.service-features-list h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.service-features-list ul {
    list-style: none;
}

.service-features-list ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features-list ul li i {
    color: var(--primary-color);
}

.tech-stack h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-icons span {
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.tech-icons span:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.service-detail-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.service-detail-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

/* Pricing Section */
.pricing {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.pricing-card.popular {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-2);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-price {
    margin-bottom: 1rem;
}

.currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.period {
    font-size: 0.9rem;
    color: #666;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    margin-bottom: 0.8rem;
    color: #555;
}

.pricing-features i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.pricing-btn {
    width: 100%;
}

/* FAQ Section */
.faq {
    padding: 6rem 2rem;
    background: white;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
}

.faq-toggle {
    width: 30px;
    height: 30px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    background: #f8f9fa;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    color: #666;
}

/* Portfolio Page Styles */
.portfolio-filter-section {
    padding: 4rem 2rem;
    background: white;
}

.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    background: white;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-2);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 1;
    transform: scale(1);
}

.portfolio-item.hide {
    display: none;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.portfolio-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    color: white;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-info h3 {
    margin-bottom: 0.3rem;
}

.portfolio-info p {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.portfolio-link {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.portfolio-link:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(360deg);
}

/* Contact Page Styles */
.contact-section {
    padding: 6rem 2rem;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-description {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-detail-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    border-radius: 10px;
    transition: var(--transition);
}

.contact-detail-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-text h4 {
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}

.contact-text p {
    color: #666;
    line-height: 1.6;
}

.contact-social h4 {
    margin-bottom: 1rem;
}

.contact-form-wrapper {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    padding: 0 0.25rem;
    color: #999;
    transition: var(--transition);
    pointer-events: none;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: transparent;
}

/* Map Section */
.map-section {
    padding: 0;
    margin-top: -2rem;
}

.map-container {
    width: 100%;
    height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

@keyframes slide {
    from { background-position: 0 0; }
    to { background-position: 100px 100px; }
}

@keyframes particleMove {
    from { background-position: 0 0; }
    to { background-position: 100px 100px; }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .service-detail-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        height: 300px;
    }

    .section-title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .story-grid,
    .contact-grid,
    .service-detail-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-grid.reverse {
        direction: ltr;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .filter-controls {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .story-stats {
        grid-template-columns: 1fr;
    }

    .process-item {
        flex-direction: column;
        gap: 1rem;
    }

    .process-timeline::before {
        left: 20px;
    }

    .process-number {
        margin-left: 0;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .page-title {
        font-size: 2rem;
    }
}

/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
    border: none;
    box-shadow: var(--shadow-lg);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Form Validation Styles */
.form-group input.invalid,
.form-group textarea.invalid {
    border-color: var(--danger-color);
}

.form-group .error-message {
    color: var(--danger-color);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

/* Success Message */
.success-message {
    background: var(--success-color);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1rem;
    animation: slideIn 0.5s ease;
}


/* SEO and Accessibility Styles */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 1001;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* Print styles for better printing */
@media print {
    .navbar,
    .hero-visual,
    .cta,
    .footer,
    .slider-controls {
        display: none !important;
    }
    
    body {
        color: black;
        background: white;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
}

/* Breadcrumb styling */
.breadcrumbs {
    margin: 1rem 0;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: #666;
}

/* FAQ Schema styling */
.faq-schema {
    display: none;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazy loading placeholder */
img[loading="lazy"] {
    background: #f0f0f0;
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Mobile optimization for Google Core Web Vitals */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    
    .section-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    .btn {
        padding: clamp(0.5rem, 2vw, 0.8rem) clamp(1rem, 4vw, 2rem);
    }
}




/* ==================== */
/* MOBILE-SPECIFIC ANIMATIONS */
/* ==================== */

@media (max-width: 768px) {
    /* Smooth page transitions */
    body {
        animation: fadeInPage 0.5s ease-in-out;
    }

    @keyframes fadeInPage {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Mobile menu slide animation */
    .nav-menu {
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    /* Hamburger menu animation */
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        transition: transform 0.3s ease-in-out;
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
        transition: opacity 0.2s ease, transform 0.3s ease;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
        transition: transform 0.3s ease-in-out;
    }

    /* Card stack animation for services */
    .services-grid {
        perspective: 1000px;
    }

    .service-card {
        transform-style: preserve-3d;
        animation: cardFloat 3s ease-in-out infinite;
        animation-play-state: paused;
    }

    .service-card.animated {
        animation-play-state: running;
    }

    @keyframes cardFloat {
        0%, 100% { transform: translateY(0) rotateX(0deg); }
        25% { transform: translateY(-5px) rotateX(2deg); }
        75% { transform: translateY(-3px) rotateX(-1deg); }
    }

    /* Ripple effect on buttons */
    .btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }

    .btn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.3s ease-out, height 0.3s ease-out;
    }

    .btn:active::after {
        width: 200px;
        height: 200px;
    }

    /* Hero section mobile animation */
    .hero-visual {
        animation: heroPulse 4s ease-in-out infinite;
    }

    @keyframes heroPulse {
        0%, 100% { transform: scale(1); opacity: 1; }
        50% { transform: scale(1.05); opacity: 0.9; }
    }

    /* Floating elements mobile animation */
    .float-item {
        animation: mobileFloat 3s ease-in-out infinite;
    }

    @keyframes mobileFloat {
        0%, 100% { transform: translateY(0) rotate(0deg); }
        25% { transform: translateY(-8px) rotate(5deg); }
        75% { transform: translateY(-4px) rotate(-5deg); }
    }

    /* Slide-in animations for content */
    .hero-content {
        animation: slideInMobile 0.8s ease-out;
    }

    @keyframes slideInMobile {
        from { 
            opacity: 0; 
            transform: translateY(30px);
        }
        to { 
            opacity: 1; 
            transform: translateY(0);
        }
    }

    /* Staggered list animations */
    .service-features li {
        opacity: 0;
        animation: fadeInStagger 0.5s ease-out forwards;
        animation-play-state: paused;
    }

    .service-card.animated .service-features li:nth-child(1) { animation-delay: 0.1s; }
    .service-card.animated .service-features li:nth-child(2) { animation-delay: 0.2s; }
    .service-card.animated .service-features li:nth-child(3) { animation-delay: 0.3s; }

    @keyframes fadeInStagger {
        from { 
            opacity: 0; 
            transform: translateX(-10px);
        }
        to { 
            opacity: 1; 
            transform: translateX(0);
        }
    }

    /* Shimmer effect on service icons */
    .service-icon {
        position: relative;
        overflow: hidden;
    }

    .service-icon::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(
            to bottom right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%
        );
        transform: rotate(45deg);
        animation: shimmer 3s infinite;
    }

    @keyframes shimmer {
        0% { transform: translateX(-100%) rotate(45deg); }
        100% { transform: translateX(100%) rotate(45deg); }
    }

    /* Testimonial slider mobile enhancements */
    .testimonial-slider {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .testimonial-card {
        scroll-snap-align: start;
        transition: transform 0.3s ease;
    }

    .testimonial-card:active {
        transform: scale(0.98);
    }

    /* Portfolio grid mobile hover effects */
    .portfolio-item {
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .portfolio-item:active {
        transform: scale(0.95) rotate(1deg);
    }

    .portfolio-overlay {
        background: linear-gradient(
            to top,
            rgba(108, 92, 231, 0.95),
            rgba(164, 99, 245, 0.8)
        );
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .portfolio-item:active .portfolio-overlay {
        transform: translateY(0);
    }

    /* Stats counter animation */
    .stat-number {
        animation: countPop 0.5s ease-out;
    }

    @keyframes countPop {
        0% { transform: scale(0.8); opacity: 0; }
        50% { transform: scale(1.2); }
        100% { transform: scale(1); opacity: 1; }
    }

    /* Footer mobile animations */
    .footer-col {
        animation: footerSlide 0.6s ease-out;
        animation-fill-mode: both;
        animation-play-state: paused;
    }

    .footer-col.animated {
        animation-play-state: running;
    }

    .footer-col:nth-child(1) { animation-delay: 0.1s; }
    .footer-col:nth-child(2) { animation-delay: 0.2s; }
    .footer-col:nth-child(3) { animation-delay: 0.3s; }
    .footer-col:nth-child(4) { animation-delay: 0.4s; }

    @keyframes footerSlide {
        from { 
            opacity: 0; 
            transform: translateY(20px);
        }
        to { 
            opacity: 1; 
            transform: translateY(0);
        }
    }

    /* Social media icons bounce on tap */
    .social-links a {
        transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .social-links a:active {
        transform: scale(1.3) rotate(10deg);
        background: var(--primary-color);
        color: white;
    }

    /* Mobile touch feedback */
    a, button, .service-card, .portfolio-item {
        -webkit-tap-highlight-color: transparent;
        position: relative;
        overflow: hidden;
    }

    /* Ripple effect on mobile */
    .ripple {
        position: relative;
        overflow: hidden;
    }

    .ripple-effect {
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        transform: scale(0);
        animation: ripple 0.6s linear;
        pointer-events: none;
    }

    @keyframes ripple {
        to {
            transform: scale(4);
            opacity: 0;
        }
    }

    /* Loading spinner for mobile */
    .mobile-loader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: white;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        transition: opacity 0.5s ease;
    }

    .mobile-loader.hidden {
        opacity: 0;
        pointer-events: none;
    }

    .mobile-spinner {
        width: 50px;
        height: 50px;
        border: 3px solid #f3f3f3;
        border-top: 3px solid var(--primary-color);
        border-radius: 50%;
        animation: mobileSpin 1s linear infinite;
    }

    @keyframes mobileSpin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /* Swipe navigation hint */
    .swipe-hint {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(108, 92, 231, 0.9);
        color: white;
        padding: 8px 16px;
        border-radius: 50px;
        font-size: 14px;
        animation: swipeHint 2s ease-in-out infinite;
        z-index: 1000;
        pointer-events: none;
    }

    @keyframes swipeHint {
        0%, 100% { transform: translateX(-50%) translateY(0); }
        25% { transform: translateX(-40%) translateY(0); }
        75% { transform: translateX(-60%) translateY(0); }
    }

    /* Mobile-specific parallax effect */
    .parallax-bg {
        position: relative;
        background-attachment: fixed;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        transition: transform 0.1s ease;
    }

    /* Gradient text animation for mobile */
    .gradient-text {
        background-size: 200% 200%;
        animation: gradientShift 3s ease infinite;
    }

    @keyframes gradientShift {
        0%, 100% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
    }

    /* Mobile card stack effect */
    .services-grid {
        position: relative;
    }

    .service-card {
        transition: all 0.3s ease;
    }

    .service-card:active {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
    }

    /* Mobile touch swipe indicators */
    .swipe-indicator {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }

    .swipe-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ddd;
        transition: all 0.3s ease;
    }

    .swipe-dot.active {
        width: 20px;
        background: var(--primary-color);
    }

    /* Mobile menu backdrop blur */
    .nav-menu.active {
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.95);
    }

    /* Mobile-specific entrance animations */
    .animate-on-scroll {
        transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .animate-on-scroll.animated {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}


/* Performance optimizations for mobile */
@media (max-width: 768px) {
    /* Use hardware acceleration */
    .animated-element {
        transform: translateZ(0);
        backface-visibility: hidden;
        perspective: 1000px;
    }
    
    /* Reduce animations if user prefers */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
    
    /* Optimize for battery saving */
    @media (prefers-reduced-motion: reduce) {
        .float-item,
        .service-card,
        .gradient-sphere {
            animation: none !important;
        }
    }

}



/* ==================== */
/* BLOG PAGE STYLES */
/* ==================== */

.blog-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 8rem 2rem 4rem;
}

.page-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* Blog Tools */
.blog-tools {
    padding: 2rem 2rem 0;
    background: white;
}

.blog-search-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    margin-bottom: 2rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.blog-search {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #eee;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.blog-search:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    background: #f0f0f0;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: var(--gradient-2);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Featured Post */
.featured-post {
    padding: 2rem 2rem 4rem;
    background: white;
}

.featured-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    border-radius: 30px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    border: 1px solid rgba(108, 92, 231, 0.1);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 30px;
    background: var(--gradient-2);
    color: white;
    padding: 0.3rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.featured-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

.featured-content .post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.featured-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.featured-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tag {
    padding: 0.2rem 1rem;
    background: #f0f0f0;
    border-radius: 50px;
    font-size: 0.8rem;
    color: #666;
}

/* Blog Grid */
.blog-grid-section {
    padding: 4rem 2rem;
    background: #f8f9fa;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-2);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.8rem;
}

.blog-meta i {
    margin-right: 0.3rem;
    color: var(--primary-color);
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    color: var(--dark-color);
}

.blog-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.blog-author {
    color: #666;
    font-size: 0.9rem;
}

.blog-read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.blog-read-more:hover {
    gap: 0.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.page-link:hover,
.page-link.active {
    background: var(--gradient-2);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.page-link.next {
    width: auto;
    padding: 0 1rem;
    border-radius: 50px;
}

/* Newsletter Section */
.newsletter-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.newsletter-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 30px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.newsletter-content p {
    color: #666;
    margin-bottom: 2rem;
}

.newsletter-form .form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 50px;
    font-size: 1rem;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--primary-color);
    outline: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

/* ==================== */
/* LEGAL PAGES STYLES */
/* ==================== */

.legal-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
}

.legal-content-section {
    padding: 4rem 2rem;
    background: white;
}

.legal-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Table of Contents */
.legal-toc {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.legal-toc h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    position: relative;
}

.legal-toc h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient-2);
}

.legal-toc ul {
    list-style: none;
}

.legal-toc ul li {
    margin-bottom: 0.8rem;
}

.legal-toc ul li a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.legal-toc ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Legal Content */
.legal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.legal-section h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
    color: var(--dark-color);
}

.legal-section p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-section ul li {
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Legal Notes */
.legal-note {
    background: rgba(108, 92, 231, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 1.5rem 0;
}

.legal-note i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.legal-note p {
    margin-bottom: 0;
    font-style: italic;
}

/* Legal Table */
.legal-table {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.table-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 2fr;
    border-bottom: 1px solid #eee;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:first-child {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--dark-color);
}

.table-cell {
    padding: 1rem;
    border-right: 1px solid #eee;
}

.table-cell:last-child {
    border-right: none;
}

/* Security Badge */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: var(--success-color);
    color: white;
    border-radius: 50px;
    font-weight: 600;
}

/* Cookie Types */
.cookie-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.cookie-type {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

.cookie-type h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cookie-type p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Rights Actions */
.rights-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Confidentiality Badge */
.confidentiality-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    margin: 1.5rem 0;
}

.confidentiality-badge i {
    color: var(--primary-color);
    font-size: 2rem;
}

.confidentiality-badge span {
    color: var(--dark-color);
    font-weight: 600;
}

/* Contact Methods */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-method i {
    font-size: 2rem;
    color: var(--primary-color);
}

.contact-method h4 {
    margin-bottom: 0.3rem;
    color: var(--dark-color);
}

.contact-method a,
.contact-method p {
    color: #666;
    text-decoration: none;
    margin-bottom: 0;
}

.contact-method a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Mobile Responsive for Legal Pages */
@media (max-width: 768px) {
    .legal-wrapper {
        grid-template-columns: 1fr;
    }
    
    .legal-toc {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
    
    .legal-toc ul {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.5rem;
    }
    
    .table-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .table-cell {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .table-cell:last-child {
        border-bottom: none;
    }
    
    .rights-actions {
        flex-direction: column;
    }
    
    .cookie-types {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-content .post-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}
