* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --violet-50: #f5f3ff;
    --violet-100: #ede9fe;
    --violet-200: #ddd6fe;
    --violet-300: #c4b5fd;
    --violet-400: #a78bfa;
    --violet-500: #8b5cf6;
    --violet-600: #7c3aed;
    --violet-700: #6d28d9;
    --violet-800: #5b21b6;
    --violet-900: #4c1d95;
    --bg-primary: #000;
    --bg-secondary: rgba(0, 0, 0, 0.7);
    --text-primary: white;
    --text-secondary: #c4b5fd;
    --card-bg: rgba(255, 255, 255, 0.1);
    --border-color: rgba(139, 92, 246, 0.3);
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: rgba(248, 250, 252, 0.9);
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --card-bg: rgba(255, 255, 255, 0.9);
    --border-color: rgba(139, 92, 246, 0.2);
}

body {
    font-family: 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background: var(--bg-primary);
    transition: background 0.3s ease, color 0.3s ease;
}

#threejs-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.ui-container {
    position: relative;
    z-index: 10;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
}

.loader-3d {
    text-align: center;
}

.loader-cube {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate3d 2s infinite linear;
}

.loader-cube:before, .loader-cube:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--violet-600);
    opacity: 0.8;
}

.loader-cube:before {
    transform: rotateX(90deg) translateZ(30px);
}

.loader-cube:after {
    transform: rotateY(90deg) translateZ(30px);
}

@keyframes rotate3d {
    0% { transform: rotateX(0) rotateY(0); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

.loader-3d p {
    color: var(--violet-300);
    font-size: 1.1rem;
}

.navbar-3d {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-3d {
    perspective: 1000px;
}

.logo-3d h2 {
    color: var(--violet-400);
    font-weight: 700;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    display: inline-block;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.logo-3d:hover h2 {
    transform: rotateY(15deg) rotateX(5deg) translateZ(10px);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link-3d {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
    transform-style: preserve-3d;
    perspective: 500px;
}

.nav-link-3d:hover {
    color: var(--violet-400);
    transform: translateY(-2px) translateZ(5px);
}

.nav-link-3d::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--violet-400);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--violet-400);
}

.nav-link-3d:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.theme-toggle:hover {
    transform: rotate(180deg) translateZ(5px);
    background: rgba(139, 92, 246, 0.1);
}

.hamburger-3d {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-3d span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger-3d.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-3d.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-3d.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--violet-600), var(--violet-400));
    width: 0%;
    z-index: 1001;
    transition: width 0.3s ease;
}

.hero-section-3d {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}

.hero-content-3d {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title-3d {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--violet-400), var(--violet-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
    animation: floatText 3s ease-in-out infinite;
}

.typing-text {
    display: inline-block;
    border-right: 3px solid var(--violet-500);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: var(--violet-500); }
}

.hero-subtitle-3d {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button-3d-main {
    background: linear-gradient(135deg, var(--violet-600), var(--violet-700));
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform-style: preserve-3d;
    perspective: 500px;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

.cta-button-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--violet-500);
    padding: 18px 50px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform-style: preserve-3d;
    perspective: 500px;
}

.cta-button-3d-main .btn-text-3d {
    position: relative;
    z-index: 2;
}

.btn-glow-3d {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--violet-700), var(--violet-800));
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-glow-secondary {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--violet-500), var(--violet-600));
    transition: left 0.5s ease;
    z-index: -1;
}

.cta-button-3d-main:hover {
    transform: translateY(-5px) scale(1.05) translateZ(20px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.6);
}

.cta-button-secondary:hover {
    transform: translateY(-5px) scale(1.05) translateZ(20px);
    color: white;
}

.cta-button-3d-main:hover .btn-glow-3d {
    left: 0;
}

.cta-button-secondary:hover .btn-glow-secondary {
    left: 0;
}

.hero-berries {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-berry {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--violet-400), var(--violet-600));
    animation: floatBerry 6s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-berry:before {
    content: '';
    position: absolute;
    top: -5px;
    left: 30%;
    width: 10%;
    height: 10%;
    background: #10b981;
    border-radius: 50%;
    transform: rotate(30deg);
}

.floating-berry:hover {
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.8);
}

.berry-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.berry-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.berry-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.berry-4 {
    width: 70px;
    height: 70px;
    top: 10%;
    right: 20%;
    animation-delay: 1s;
}

.berry-5 {
    width: 90px;
    height: 90px;
    bottom: 10%;
    right: 15%;
    animation-delay: 3s;
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    animation: bounceHint 2s infinite;
}

.scroll-hint-line {
    width: 2px;
    height: 40px;
    background: var(--violet-500);
    margin-bottom: 10px;
    border-radius: 2px;
}

@keyframes bounceHint {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes floatBerry {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

@keyframes floatText {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container-3d {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title-3d-main {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: var(--text-primary);
    position: relative;
    transform-style: preserve-3d;
    perspective: 500px;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.section-title-3d-main::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, var(--violet-600), var(--violet-400));
    border-radius: 2px;
    box-shadow: 0 0 10px var(--violet-400);
}

.services-section-3d {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

.services-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card-3d {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.service-card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--violet-500), var(--violet-600));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.service-card-3d:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg) translateZ(20px);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.3);
    border-color: var(--violet-500);
}

.service-card-3d:hover::before {
    opacity: 0.1;
}

.service-icon-3d {
    font-size: 3.5rem;
    color: var(--violet-400);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.5s ease;
    display: inline-block;
    transform-style: preserve-3d;
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.service-card-3d:hover .service-icon-3d {
    transform: scale(1.2) rotateY(180deg) translateZ(10px);
    color: var(--violet-300);
}

.service-card-3d h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.service-card-3d p {
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.about-section-3d {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

.about-content-3d {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text-3d p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-text-3d h3 {
    color: var(--violet-400);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.about-text-3d ul {
    list-style-type: none;
    padding-left: 0;
}

.about-text-3d ul li {
    color: var(--violet-400);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.about-text-3d ul li strong {
    color: var(--violet-300);
    font-weight: 700;
}

.stats-3d {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item-3d {
    text-align: center;
    cursor: pointer;
}

.stat-3d-cube {
    perspective: 1000px;
    margin-bottom: 0.5rem;
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.stat-item-3d:hover .stat-3d-cube {
    transform: rotateY(180deg) rotateX(10deg);
}

.cube-face-3d {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.front-3d {
    background: linear-gradient(135deg, var(--violet-500), var(--violet-600));
    color: white;
    transform: translateZ(50px);
}

.back-3d {
    background: linear-gradient(135deg, var(--violet-700), var(--violet-800));
    color: white;
    transform: rotateY(180deg) translateZ(50px);
    font-size: 1rem;
}

.right-3d {
    background: var(--violet-600);
    transform: rotateY(90deg) translateZ(50px);
}

.left-3d {
    background: var(--violet-600);
    transform: rotateY(-90deg) translateZ(50px);
}

.top-3d {
    background: var(--violet-400);
    transform: rotateX(90deg) translateZ(50px);
}

.bottom-3d {
    background: var(--violet-800);
    transform: rotateX(-90deg) translateZ(50px);
}

.stat-item-3d p {
    color: var(--text-secondary);
    font-weight: 500;
}

.about-visual-3d {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.interactive-3d-element {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.portfolio-section-3d {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--violet-500);
    border-color: var(--violet-500);
    color: white;
    transform: translateY(-2px);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    cursor: pointer;
    height: 300px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.5s ease;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.5s ease;
}

.portfolio-icon {
    font-size: 3.5rem;
    color: var(--violet-400);
    margin-bottom: 1.5rem;
    transition: all 0.5s ease;
}

.portfolio-image h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    transition: all 0.5s ease;
}

.portfolio-image p {
    color: var(--text-secondary);
    transition: all 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.5s ease;
}

.portfolio-btn {
    background: var(--violet-500);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.portfolio-btn:hover {
    background: var(--violet-600);
    transform: translateY(-2px);
}

.portfolio-item:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg) translateZ(20px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
    border-color: var(--violet-500);
}

.portfolio-item:hover .portfolio-image {
    background: rgba(139, 92, 246, 0.1);
}

.portfolio-item:hover .portfolio-icon {
    transform: scale(1.2);
    color: var(--violet-300);
}

.portfolio-item:hover .portfolio-btn {
    background: var(--violet-600);
    transform: scale(1.05);
}



.contact-section-3d {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

.contact-content-3d {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info-3d {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item-3d-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 15px;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    perspective: 500px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.contact-item-3d-main:hover {
    transform: translateX(10px) rotateY(5deg) translateZ(10px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.2);
    border-color: var(--violet-500);
}

.contact-icon-3d-sphere-main {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--violet-500), var(--violet-600));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.contact-item-3d-main:hover .contact-icon-3d-sphere-main {
    transform: rotateY(180deg) scale(1.1);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
}

.contact-icon-3d-sphere-main i {
    position: relative;
    z-index: 2;
}

.contact-item-3d-main h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-social h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-form-3d-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group-3d-main {
    position: relative;
    transform-style: preserve-3d;
    perspective: 500px;
}

.input-3d-wrapper-main {
    position: relative;
    transform-style: preserve-3d;
}

.contact-form-3d-main input,
.contact-form-3d-main textarea {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    background: var(--card-bg);
    transform-style: preserve-3d;
    position: relative;
    z-index: 2;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.contact-form-3d-main input::placeholder,
.contact-form-3d-main textarea::placeholder {
    color: var(--text-secondary);
}

.input-highlight-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--violet-500), var(--violet-600));
    border-radius: 10px;
    transition: width 0.3s ease;
    z-index: 1;
    opacity: 0.2;
}

.contact-form-3d-main input:focus,
.contact-form-3d-main textarea:focus {
    outline: none;
    border-color: var(--violet-500);
    transform: translateZ(10px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

.input-group-3d-main:focus-within .input-highlight-3d {
    width: 100%;
}

.btn-3d-submit-main {
    background: linear-gradient(135deg, var(--violet-600), var(--violet-700));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 500px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.btn-3d-submit-main span {
    position: relative;
    z-index: 2;
}

.btn-reflection-3d {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0) 50%
    );
    transform: rotate(45deg) translateZ(10px);
    transition: all 0.5s ease;
}

.btn-3d-submit-main:hover {
    transform: translateY(-3px) translateZ(15px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.5);
}

.btn-3d-submit-main:hover .btn-reflection-3d {
    transform: rotate(45deg) translate(20px, 20px) translateZ(10px);
}

.footer-3d {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 50px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content-3d {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo-3d-main {
    perspective: 500px;
    margin-bottom: 1rem;
}

.footer-logo-3d-main h3 {
    color: var(--violet-400);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    display: inline-block;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.footer-logo-3d-main:hover h3 {
    transform: rotateY(10deg) translateZ(5px);
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.8);
}

.footer-section-3d h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-link-3d-main {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    perspective: 200px;
    cursor: pointer;
}

.footer-link-3d-main:hover {
    color: var(--violet-400);
    transform: translateX(5px) translateZ(5px);
}

.newsletter h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 25px 0 0 25px;
    background: var(--card-bg);
    color: var(--text-primary);
    outline: none;
}

.newsletter-form button {
    background: var(--violet-500);
    border: none;
    color: white;
    padding: 0 20px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--violet-600);
}

.social-links-3d-main {
    display: flex;
    gap: 1rem;
}

.social-sphere-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    perspective: 500px;
    position: relative;
    text-decoration: none;
    cursor: pointer;
}

.social-icon-wrapper-3d {
    width: 40px;
    height: 40px;
    background: var(--violet-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.social-sphere-main:hover {
    transform: translateY(-5px) rotateY(180deg) translateZ(10px);
}

.social-sphere-main:hover .social-icon-wrapper-3d {
    background: var(--violet-600);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.social-sphere-main i {
    color: white;
    font-size: 1.2rem;
}

.footer-bottom-3d {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--violet-600), var(--violet-700));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    transform-style: preserve-3d;
    perspective: 500px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) rotateY(180deg) translateZ(10px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.7);
}

.floating-contact {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 998;
}

.contact-trigger {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--violet-600), var(--violet-700));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.contact-trigger:hover {
    transform: scale(1.1) rotate(15deg);
}

.contact-options {
    position: absolute;
    bottom: 70px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.floating-contact:hover .contact-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-option {
    width: 50px;
    height: 50px;
    background: var(--violet-500);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.contact-option:hover {
    transform: translateY(-5px) scale(1.1);
    background: var(--violet-600);
}

.interactive-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--violet-500);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

@media (max-width: 1024px) {
    .footer-content-3d {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger-3d {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link-3d {
        font-size: 1.2rem;
        padding: 1rem 0;
    }

    .hero-title-3d {
        font-size: 2.5rem;
    }

    .about-content-3d,
    .contact-content-3d {
        grid-template-columns: 1fr;
    }

    .stats-3d {
        grid-template-columns: 1fr;
    }

    .services-grid-3d {
        grid-template-columns: 1fr;
    }

    .section-title-3d-main {
        font-size: 2.5rem;
    }

    .floating-berry {
        display: none;
    }

    .interactive-cursor {
        display: none;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .floating-contact {
        bottom: 20px;
        left: 20px;
    }
    
    .footer-content-3d {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title-3d {
        font-size: 2rem;
    }

    .section-title-3d-main {
        font-size: 2rem;
    }

    .service-card-3d {
        padding: 1.5rem;
    }

    .contact-item-3d-main {
        padding: 1rem;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .floating-contact {
        bottom: 15px;
        left: 15px;
    }
    
    .contact-trigger {
        width: 50px;
        height: 50px;
    }
    
    .contact-option {
        width: 40px;
        height: 40px;
    }
    
    .testimonial-content {
        padding: 2rem 1.5rem;
    }
}