/* sections.css - Styles for specific page sections */

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    position: relative;
    transform-style: preserve-3d;
    animation: logoFloat 3s infinite ease-in-out;
}

.logo-icon::before,
.logo-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: var(--gradient-3);
}

.logo-icon::after {
    background: rgba(0, 240, 255, 0.2);
    transform: translateZ(-10px);
    filter: blur(10px);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent);
}

.nav-links a:hover {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
}

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

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 2000;
}

.mobile-menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--white);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 10px;
}

.mobile-menu-toggle span:nth-child(2),
.mobile-menu-toggle span:nth-child(3) {
    top: 20px;
}

.mobile-menu-toggle span:nth-child(4) {
    top: 30px;
}

.mobile-menu-toggle.open span:nth-child(1) {
    top: 18px;
    width: 0%;
    left: 50%;
}

.mobile-menu-toggle.open span:nth-child(2) {
    transform: rotate(45deg);
}

.mobile-menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg);
}

.mobile-menu-toggle.open span:nth-child(4) {
    top: 18px;
    width: 0%;
    left: 50%;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    transform: translateY(-20px);
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin-bottom: 30px;
}

.mobile-nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.mobile-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-3);
    transition: width 0.3s ease;
}

.mobile-nav-links a:hover {
    color: var(--accent);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
    margin-top: 80px;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    overflow: hidden;
}

.grid-background {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    transform: perspective(500px) rotateX(60deg);
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 10s infinite;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: orbFloat 20s infinite ease-in-out;
}

.orb1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-duration: 25s;
}

.orb2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-pink) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    animation-duration: 30s;
    animation-delay: -5s;
}

.orb3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation-duration: 20s;
    animation-delay: -10s;
}

.floating-cards {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: cardsRotate 30s infinite linear;
}

.float-card {
    position: absolute;
    width: 200px;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    transform-style: preserve-3d;
}

.float-card:nth-child(1) {
    top: 20%;
    left: 10%;
    transform: rotateY(0deg) translateZ(300px);
}

.float-card:nth-child(2) {
    top: 60%;
    right: 10%;
    transform: rotateY(120deg) translateZ(300px);
}

.float-card:nth-child(3) {
    bottom: 10%;
    left: 30%;
    transform: rotateY(240deg) translateZ(300px);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.hero h1 {
    font-size: 80px;
    font-weight: 900;
    margin-bottom: 30px;
    background: linear-gradient(45deg, var(--white) 30%, var(--accent) 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    opacity: 0;
    animation: heroTextReveal 1s ease forwards;
    animation-delay: 0.5s;
    text-shadow: 0 0 80px rgba(0, 240, 255, 0.5);
}

.hero .subtitle {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.7s;
    color: rgba(255, 255, 255, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.9s;
}

/* Principles Section */
.principles {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.principle-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.principle-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--accent);
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    filter: drop-shadow(0 0 20px var(--accent));
}

.principle-card.animate .principle-icon svg {
    animation: drawPath 2s ease forwards;
}

.principle-card h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.principle-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* Services Section */
.services {
    background: #000;
    color: var(--white);
}

.services .section-title,
.services .section-subtitle {
    color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    font-size: 40px;
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.5);
    animation: iconPulse 2s infinite;
}

.service-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--white);
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 25px;
}

.service-features {
    list-style: none;
}

.service-features li {
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
}

.service-features li::before {
    content: '⚡';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 18px;
}

/* Technologies Section */
.tech-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.tech-section .section-title,
.tech-section .section-subtitle {
    color: var(--white);
}

.tech-carousel {
    position: relative;
    height: 150px;
    margin: 80px 0;
}

.tech-track {
    display: flex;
    gap: 60px;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.tech-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tech-item:hover {
    transform: scale(1.15) rotateZ(-5deg);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tech-item img {
    max-height: 50px;
    max-width: 140px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.tech-item:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

/* Cases Section */
.cases {
    background: #f8f9fa;
}

.cases-container {
    position: relative;
    overflow: hidden;
}

.cases-scroll {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 0 40px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--gray-light);
}

.cases-scroll::-webkit-scrollbar {
    height: 8px;
}

.cases-scroll::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 10px;
}

.cases-scroll::-webkit-scrollbar-thumb {
    background: var(--gradient-3);
    border-radius: 10px;
}

.case-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Industry-specific gradients */
.case-card[data-industry="construction"] .case-image {
    background: linear-gradient(135deg, #FA8BFF 0%, #2BD2FF 52%, #2BFF88 90%);
}

.case-card[data-industry="logistics"] .case-image {
    background: linear-gradient(135deg, #69EACB 0%, #EACCF8 48%, #6654F1 100%);
}

.case-card[data-industry="realestate"] .case-image {
    background: linear-gradient(135deg, #FFD26F 0%, #3677FF 100%);
}

.case-card[data-industry="retail"] .case-image {
    background: linear-gradient(135deg, #FC6767 0%, #EC008C 100%);
}

.case-card[data-industry="manufacturing"] .case-image {
    background: linear-gradient(135deg, #00C9FF 0%, #92FE9D 100%);
}

.case-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-card:hover .case-image::after {
    opacity: 1;
}

.case-industry-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.case-content {
    padding: 30px;
}

.case-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.case-content p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.case-stats {
    display: flex;
    gap: 30px;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #0A0E27 0%, #1a1f3a 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.contact .section-title,
.contact .section-subtitle {
    color: var(--white);
    position: relative;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-error {
    position: absolute;
    bottom: -20px;
    left: 20px;
    font-size: 12px;
    color: var(--accent-pink);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.form-group.error input,
.form-group.error textarea {
    border-color: var(--accent-pink);
}

.form-group.error .form-error {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background: #000;
    color: var(--white);
    padding: 80px 0 30px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-3);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 36px;
    margin-bottom: 20px;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gradient-3);
    transform: translateY(-5px) rotateZ(-5deg);
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.5);
}

.footer-column h4 {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--accent);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 15px;
}

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

.footer-column ul li a:hover {
    color: var(--accent);
    padding-left: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-3);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.5);
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.7);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loader {
    position: relative;
    width: 200px;
    height: 200px;
}

.loader-cube {
    position: absolute;
    width: 80px;
    height: 80px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    animation: rotateCube 2s infinite ease-in-out;
}

.loader-cube div {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-pink) 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.loader-cube .front { transform: translateZ(40px); }
.loader-cube .back { transform: rotateY(180deg) translateZ(40px); }
.loader-cube .right { transform: rotateY(90deg) translateZ(40px); }
.loader-cube .left { transform: rotateY(-90deg) translateZ(40px); }
.loader-cube .top { transform: rotateX(90deg) translateZ(40px); }
.loader-cube .bottom { transform: rotateX(-90deg) translateZ(40px); } 