/* Global Styles */
:root {
    --primary-color: #B04B4B;
    --secondary-color: #7A3232;
    --accent-color: #F7C59F;
    --background-color: #FFF8F6;
    --text-color: #3A2323;
    --white: #FFFFFF;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 18px;
    --shadow: 0 4px 24px rgba(176, 75, 75, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Inter', 'Roboto', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    background: var(--background-color);
    font-size: 1.08rem;
}

/* Optimize animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-gray);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    will-change: transform;
}

/* Optimize navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow);
    padding: 1rem 0;
    transform: translateZ(0);
    will-change: transform;
}

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

.logo img {
    height: 55px;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        width: 100%;
        padding: 0.5rem 0;
        display: block;
    }

    .nav-links a::after {
        bottom: 0;
    }

    /* Add overlay when menu is open */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Optimize logo for mobile */
    .logo img {
        height: 45px;
    }

    /* Add touch feedback for mobile */
    .nav-links a:active {
        opacity: 0.7;
    }
}

/* Additional optimizations for very small screens */
@media (max-width: 380px) {
    .nav-container {
        padding: 0 1rem;
    }

    .logo img {
        height: 40px;
    }

    .nav-links {
        width: 100%;
        max-width: none;
    }
}

/* Optimize navbar performance */
.navbar {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

/* Add smooth transition for navbar */
.navbar {
    transition: transform 0.3s ease;
}

/* Hide navbar on scroll down, show on scroll up */
.navbar.hide {
    transform: translateY(-100%);
}

/* Add active state styles */
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    width: 100%;
}

/* Add touch feedback for mobile */
@media (hover: none) {
    .nav-links a:active {
        opacity: 0.7;
    }
}

/* Optimize for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .navbar,
    .nav-links,
    .hamburger span {
        transition: none;
    }
}

/* Modern Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 20px;
    background: var(--background-color);
    position: relative;
    z-index: 3;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0 L100,100 M100,0 L0,100" stroke="rgba(200, 75, 75, 0.03)" stroke-width="1"/></svg>'),
        linear-gradient(45deg, transparent 48%, rgba(200, 75, 75, 0.02) 48%, rgba(200, 75, 75, 0.02) 52%, transparent 52%);
    background-size: 20px 20px, 20px 20px;
    opacity: 0.1;
    z-index: 1;
    animation: backgroundPulse 15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes backgroundPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.5;
    }
    25% {
        transform: scale(1.02) rotate(0.5deg);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.05) rotate(0deg);
        opacity: 0.5;
    }
    75% {
        transform: scale(1.02) rotate(-0.5deg);
        opacity: 0.6;
    }
}

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

.hero-text {
    max-width: 600px;
    position: relative;
}

.glitch-text {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    position: relative;
    color: var(--secondary-color);
    letter-spacing: -0.02em;
    background: linear-gradient(45deg, var(--secondary-color), #666);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 3s linear infinite;
}

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

.glitch-text .highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glitch-text .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--primary-color), #ff6b6b);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-text:hover .highlight::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary-color);
    line-height: 1.8;
    max-width: 90%;
    animation: fadeInUp 1s ease-out;
}

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

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.cta-button {
    padding: 1rem 2.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-size: 1.08rem;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.cta-button.primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    box-shadow: 0 2px 12px rgba(176, 75, 75, 0.12);
}

.cta-button.secondary {
    background: var(--accent-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(200, 75, 75, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover::before {
    transform: translateX(0);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-card {
    background: var(--white);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid #f0e6e6;
    box-shadow: var(--shadow);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Segoe UI', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-graphics {
    position: relative;
    height: 100%;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transform-style: preserve-3d;
    perspective: 1000px;
}

.image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, rgba(200, 75, 75, 0.1), rgba(44, 62, 80, 0.1)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0 L100,100 M100,0 L0,100" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>'),
        linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.05) 48%, rgba(255, 255, 255, 0.05) 52%, transparent 52%);
    background-size: 100% 100%, 20px 20px, 20px 20px;
    animation: overlay 10s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transform-style: preserve-3d;
}

@keyframes overlay {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) scale(1.02) rotate(0.5deg);
    }
    50% {
        transform: translateY(-20px) scale(1.05) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) scale(1.02) rotate(-0.5deg);
    }
    100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    position: relative;
    margin-bottom: 1rem;
    animation: mouseFloat 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes mouseFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.scroll-arrow {
    display: block;
    width: 20px;
    height: 20px;
    position: relative;
    animation: arrowFloat 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes arrowFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

.scroll-arrow::before,
.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
    animation: arrow 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.scroll-arrow::after {
    animation-delay: -0.15s;
}

@keyframes arrow {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(0, 0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

/* Responsive Design for Hero Section */
@media (max-width: 768px) {
    .hero {
        margin-top: 50px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        transform: none !important;
    }

    .hero-text {
        margin: 0 auto;
        transform: none !important;
    }

    .hero-subtitle {
        margin: 0 auto 2rem;
        max-width: 100%;
        transform: none !important;
    }

    .hero-buttons {
        justify-content: center;
        transform: none !important;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 2rem auto;
        transform: none !important;
    }

    .hero-image {
        height: 300px;
        transform: none !important;
    }

    .glitch-text {
        font-size: 3rem;
        transform: none !important;
    }

    /* Disable heavy animations on mobile */
    .element,
    .particle,
    .floating-elements {
        display: none;
    }

    /* Optimize transitions */
    .service-card,
    .portfolio-item,
    .stat-item {
        transform: none !important;
        transition: none !important;
    }

    .service-card:hover,
    .portfolio-item:hover,
    .stat-item:hover {
        transform: none !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }
}

/* Modern Services Section */
.services {
    padding: 0px 2rem;
    background: var(--background-color) !important;
    position: relative;
    z-index: 3;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 1;
    animation: backgroundPulse 15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
    background: none;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

.service-card {
    background: var(--white);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0e6e6;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(200, 75, 75, 0.05), rgba(44, 62, 80, 0.05));
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.service-card:hover::before {
    transform: translateY(0);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(45deg, var(--primary-color), #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: iconFloat 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.1);
    }
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(45deg, var(--secondary-color), #666);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card:hover i {
    transform: scale(1.2);
    animation: iconPulse 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

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

.service-card:hover h3 {
    transform: translateY(-5px);
}

.service-card:hover p {
    transform: translateY(5px);
}

/* Responsive Design for Services Section */
@media (max-width: 768px) {
    /* .services {
        padding: 60px 1rem;
    } */

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .service-card {
        padding: 2rem;
    }

    .service-card i {
        font-size: 2.5rem;
    }
}

/* Add floating elements to services section */
.services .floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.services .element {
    position: absolute;
    background: var(--primary-color);
    opacity: 0.1;
    animation: float 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    mix-blend-mode: multiply;
    filter: blur(1px);
}

.services .element.circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    top: 20%;
    right: 20%;
    animation-delay: 0s;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
}

.services .element.square {
    width: 100px;
    height: 100px;
    top: 50%;
    right: 40%;
    animation-delay: -2s;
    background: linear-gradient(45deg, var(--primary-color), transparent);
    transform: rotate(45deg);
}

.services .element.triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86.6px solid var(--primary-color);
    top: 70%;
    right: 30%;
    animation-delay: -4s;
    opacity: 0.05;
}

/* Add particle effect to services section */
.services .particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.services .particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
    animation: particleFloat 15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    filter: blur(1px);
}

.services .particle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    border-radius: 50%;
    animation: particleGlow 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Modern About Section */
.about {
    padding: 60px 2rem;
    background: var(--background-color) !important;
    position: relative;
    z-index: 3;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0 L100,100 M100,0 L0,100" stroke="rgba(200, 75, 75, 0.02)" stroke-width="1"/></svg>'),
        linear-gradient(45deg, transparent 48%, rgba(200, 75, 75, 0.02) 48%, rgba(200, 75, 75, 0.02) 52%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(44, 62, 80, 0.02) 48%, rgba(44, 62, 80, 0.02) 52%, transparent 52%);
    background-size: 20px 20px, 20px 20px, 20px 20px;
    opacity: 0.1;
    z-index: 1;
    animation: aboutBackgroundPulse 20s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes aboutBackgroundPulse {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: scale(1.02) rotate(0.5deg);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.05) rotate(0deg);
        opacity: 0.3;
    }
    75% {
        transform: scale(1.02) rotate(-0.5deg);
        opacity: 0.4;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }
}

.about::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(200, 75, 75, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(44, 62, 80, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(200, 75, 75, 0.03) 0%, transparent 50%);
    animation: aboutGradientMove 30s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: 1;
}

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

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

.about-text {
    position: relative;
    z-index: 2;
}

.about-text h2 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--secondary-color), #666);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 3s linear infinite;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary-color);
    animation: fadeInUp 1s ease-out;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.stat-item {
    background: var(--white);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25vw;
    height: 25vh;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0e6e6;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    gap: 2vw;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(200, 75, 75, 0.05), rgba(44, 62, 80, 0.05));
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.stat-item:hover::before {
    transform: translateY(0);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(45deg, var(--primary-color), #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: countUp 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.stat-item p {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stat-item:hover h3 {
    transform: scale(1.1);
}

.stat-item:hover p {
    transform: translateY(5px);
}

.about-image {
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.image-container {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    transform-style: preserve-3d;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, rgba(200, 75, 75, 0.1), rgba(44, 62, 80, 0.1)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0 L100,100 M100,0 L0,100" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>');
    background-size: 100% 100%, 20px 20px;
    animation: overlay 10s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    mix-blend-mode: overlay;
}

.image-container:hover .about-img {
    transform: scale(1.05) translateZ(10px);
}

.image-container:hover .image-overlay {
    opacity: 0.8;
}

@keyframes overlay {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) scale(1.02) rotate(0.5deg);
    }
    50% {
        transform: translateY(-20px) scale(1.05) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) scale(1.02) rotate(-0.5deg);
    }
    100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

/* Responsive Design for About Section */
@media (max-width: 768px) {
    .about {
        padding: 60px 1rem;
    }

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

    .about-text h2 {
        font-size: 2.5rem;
    }

    .stats {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 2rem auto;
    }

    .stat-item {
        flex-direction: column;
        width: 90vw;
        height: 20vh;
    }

    .stat-item p {
        padding-left: 0;
        border-left: none;
        padding-top: 1.5rem;
        border-top: 3px solid var(--primary-color);
    }

    .image-container {
        height: 300px;
    }
}

/* Modern Portfolio Section */
.portfolio {
    padding: 20px 2rem;
    background: var(--background-color) !important;
    position: relative;
    z-index: 3;
    overflow: hidden;
}

/* Remove heavy background animations */
.portfolio::before,
.portfolio::after {
    display: none;
}

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

.portfolio-item {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.portfolio-image {
    width: 100%;
    height: 195px;
    position: relative;
    overflow: hidden;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(200, 75, 75, 0) 0%,
        rgba(200, 75, 75, 0.8) 100%);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.3s ease-out;
}

.portfolio-item:hover .portfolio-image::before {
    opacity: 1;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: all 0.5s ease-out;
    transform: scale(1);
    will-change: transform, opacity;
}

.carousel-image.active {
    opacity: 1;
}

.portfolio-item:hover .carousel-image.active {
    transform: scale(1.1);
}

.portfolio-info {
    padding: 1.5rem;
    background: var(--white);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease-out;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(-5px);
}

.portfolio-info h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: color 0.3s ease-out;
}

.portfolio-item:hover .portfolio-info h3 {
    color: var(--primary-color);
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.portfolio-tag {
    background: rgba(200, 75, 75, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: all 0.3s ease-out;
}

.portfolio-item:hover .portfolio-tag {
    background: rgba(200, 75, 75, 0.2);
    transform: translateY(-2px);
}

.portfolio-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.portfolio-link::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 ease-out;
}

.portfolio-item:hover .portfolio-link::before {
    left: 100%;
}

/* Disable hover effects on mobile */
@media (max-width: 768px) {
    .portfolio-item,
    .portfolio-item:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }

    .portfolio-image::before {
        display: none;
    }

    .portfolio-item:hover .carousel-image.active {
        transform: none;
    }

    .portfolio-item:hover .portfolio-info {
        transform: none;
    }

    .portfolio-item:hover .portfolio-tag {
        transform: none;
        background: rgba(200, 75, 75, 0.1);
    }
}

/* Contact Section */
.contact {
    padding: 50px 2rem;
    background: var(--background-color) !important;
    position: relative;
    z-index: 3;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(200, 75, 75, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 80% 80%, rgba(44, 62, 80, 0.03) 0%, transparent 25%);
    z-index: 1;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.contact-info {
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--secondary-color), #666);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-method:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: var(--white);
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 75, 75, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-method:hover i {
    transform: scale(1.1);
    background: var(--primary-color);
    color: var(--white);
}

.method-info h4 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.method-info p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.social-links {
    margin-top: 2rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 1.2rem;
}

.social-icon i {
    font-size: 1.2rem;
    display: inline-block;
    width: auto;
    height: auto;
}

.social-icon:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-image {
    position: relative;
    height: 100%;
}

.contact-image .image-container {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.contact-image:hover img {
    transform: scale(1.05);
}

.contact-image .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(200, 75, 75, 0.1), rgba(44, 62, 80, 0.1));
    mix-blend-mode: overlay;
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
    .contact {
        padding: 40px 1rem;
    }

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

    .contact-image {
        height: 300px;
    }

    .contact-methods {
        gap: 1rem;
    }

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

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 0;
    position: relative;
    z-index: 3;
    overflow: hidden;
}

.footer-waves {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23f5f5f5" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: 1440px 100px;
    animation: waveAnimation 20s linear infinite;
}

.wave1 {
    opacity: 0.3;
    animation-delay: 0s;
}

.wave2 {
    opacity: 0.2;
    animation-delay: -5s;
}

.wave3 {
    opacity: 0.1;
    animation-delay: -10s;
}

@keyframes waveAnimation {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
}

.footer-logo {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 4px;
    margin: 0;
    line-height: 1;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    background: none;
    -webkit-text-fill-color: #ffffff;
    transition: all 0.4s ease;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.377);
    padding-bottom: 0.5rem;
}

.footer-logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-logo:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.978);
}

.footer-logo:hover::after {
    width: 100%;
}

.brand-tagline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-top: 0.5rem;
    letter-spacing: 0.5px;
}

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

.footer-social .social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    transition: all 0.3s ease;
}

.footer-social .social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-5px) rotate(360deg);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.footer-section h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-section:hover h4::after {
    width: 100%;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-section ul li a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--white);
    transform: translateX(20px);
}

.footer-section ul li a:hover::before {
    opacity: 1;
    left: -25px;
}

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

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

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info li i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.footer-newsletter {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-newsletter h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text-color);
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    transition: var(--transition);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    outline: none;
    background: #fff9f7;
}

.newsletter-form button {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(200, 75, 75, 0.3);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    position: relative;
    z-index: 1;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-bottom-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

.footer-bottom-links a:hover::after {
    width: 100%;
}

/* Responsive Design for Footer */
@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
        border-radius: 30px;
    }
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid #f0e6e6;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    animation: iconFloat 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transition: transform 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design for Hero Section */
@media (max-width: 768px) {
    .hero-features {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 2rem auto;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

/* Carousel Styles */
.carousel {
    position: relative;
    width: 100%;
    height: 195px;
    overflow: hidden;
    border-radius: 8px;
    z-index: 2;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.carousel-image.active {
    opacity: 1;
}

/* Remove carousel button styles */
.carousel-button {
    display: none;
}

/* Hero Section Mobile Optimizations */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 6rem 1rem 2rem;
        background-attachment: scroll;
    }

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

    .hero-text {
        max-width: 100%;
        padding: 0 1rem;
    }

    .glitch-text {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        word-wrap: break-word;
        hyphens: auto;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding-left: 0;
        border-left: none;
        margin: 0 auto 1.5rem;
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        padding: 0 1rem;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem auto;
        max-width: 280px;
        padding: 0 1rem;
    }

    .stat-card {
        padding: 1.2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .hero-image {
        height: 250px;
        margin: 0 auto;
        max-width: 100%;
        border-radius: 15px;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem auto;
        max-width: 280px;
        padding: 0 1rem;
    }

    .feature-card {
        padding: 1.2rem;
    }

    .feature-card i {
        font-size: 2rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.85rem;
    }

    /* Optimize scroll indicator for mobile */
    .scroll-indicator {
        bottom: 1rem;
    }

    .mouse {
        width: 25px;
        height: 40px;
    }

    .wheel {
        width: 3px;
        height: 6px;
    }
}

/* Additional optimizations for very small screens */
@media (max-width: 380px) {
    .hero {
        padding-top: 5rem;
    }

    .glitch-text {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .hero-image {
        height: 200px;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}

/* Optimize hero section for landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 5rem 1rem 2rem;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .hero-image {
        height: 200px;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .cta-button {
        width: auto;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
    }
}

/* Add smooth loading for hero section */
.hero {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

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

/* Optimize hero section performance */
.hero-content {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform;
}

/* Add touch feedback for buttons */
@media (hover: none) {
    .cta-button:active {
        transform: scale(0.98);
    }
}

/* Background Animation Styles */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.dots-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.floating-dot {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
    will-change: transform;
    z-index: 2;
    opacity: 0.6;
    box-shadow: 0 0 15px var(--primary-color),
                0 0 30px rgba(200, 75, 75, 0.3);
    min-width: 4px;
    min-height: 4px;
}

/* Ensure dots are visible on all backgrounds */
body {
    background: transparent;
}

@keyframes floatDot {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(15px, 15px) rotate(90deg) scale(1.2);
    }
    50% {
        transform: translate(0, 30px) rotate(180deg) scale(1);
    }
    75% {
        transform: translate(-15px, 15px) rotate(270deg) scale(1.2);
    }
    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

/* Make sections more transparent to show dots better */
.hero, .services, .about, .portfolio, .contact, .clients {
    background: var(--background-color) !important;
}

/* Media query for mobile optimization */
@media (max-width: 768px) {
    .floating-dot {
        opacity: 0.5;
        min-width: 3px;
        min-height: 3px;
        box-shadow: 0 0 10px var(--primary-color);
    }
}

/* Portfolio Hidden Items */
.hidden-item {
    display: none;
}

/* View More Button Container */
.view-more-container {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
}

.view-more-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.view-more-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.view-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Clients Section */
.clients {
    padding: 0px 2rem;
    background: var(--background-color) !important;
    position: relative;
    z-index: 3;
    overflow: hidden;
}

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

.client-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.client-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.client-logo {
    width: 200px;
    height: 100px;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.client-card:hover .client-logo img {
    transform: scale(1.1);
}

.client-info {
    flex: 1;
}

.client-info h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.client-info h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.client-card:hover .client-info h3::after {
    width: 100%;
}

.client-info p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive Design for Clients Section */
@media (max-width: 768px) {
    .clients {
        padding: 0px 2rem;
    }

    .clients-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .client-card {
        padding: 1.5rem;
    }

    .client-logo {
        width: 150px;
        height: 75px;
        margin-bottom: 1rem;
    }

    .client-info h3 {
        font-size: 1.3rem;
    }

    .client-info p {
        font-size: 0.9rem;
    }
}

.card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* About Features Section */
.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
    gap: 2vw;
}

.feature {
    background: var(--white);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 25vw;
    height: 25vh;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0e6e6;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(200, 75, 75, 0.05), rgba(44, 62, 80, 0.05));
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.feature:hover::before {
    transform: translateY(0);
}

.feature i {
    font-size: 2.5rem;
    color: #B04B4B;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    animation: iconFloat 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature h4 {
    font-size: 1.25rem;
    color: #3A2323;
    margin-bottom: 0.75rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.feature p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Responsive Design for About Features */
@media (max-width: 992px) {
    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .feature {
        width: 90vw;
        height: 20vh;
        
    }

    .about-features {
        margin-top: 0;
        max-width: 400px;
    }
}

@media (max-width: 576px) {
    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-features .feature {
        padding: 1.5rem;
    }
    
    .about-features .feature i {
        font-size: 2rem;
    }
    
    .about-features .feature h4 {
        font-size: 1.1rem;
    }
    
    .about-features .feature p {
        font-size: 0.9rem;
    }
}