/* 
* Unwir Website Styles
* A modern, tech-inspired design based on the Unwir logo
*/

/* ===== VARIABLES ===== */
:root {
    /* Primary Colors */
    --primary-black: #000000;
    --primary-white: #ffffff;
    --dark-blue: #0a192f;
    --dark-blue-light: #172a45;
    
    /* Accent Colors */
    --accent-blue: #64ffda;
    --accent-gray: #8892b0;
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-full: 50%;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--primary-black);
    background-color: var(--primary-white);
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

section {
    padding: var(--spacing-lg) 0;
    position: relative;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: var(--dark-blue);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: transform 0.1s ease;
}

.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 1px solid var(--dark-blue);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9998;
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity var(--transition-medium);
}

.preloader-logo {
    width: 120px;
    height: auto;
    margin-bottom: var(--spacing-md);
    animation: pulse 2s infinite;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    width: 0;
    background-color: var(--dark-blue);
    animation: loading 2s ease-in-out forwards;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: var(--spacing-sm) 0;
    background-color: transparent;
    transition: background-color var(--transition-medium), padding var(--transition-medium);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-xs) 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 80px;
    transition: width var(--transition-medium);
}

.header.scrolled .logo {
    width: 60px;
}

.nav-list {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: var(--spacing-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--dark-blue);
    transition: width var(--transition-medium);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.bar {
    width: 100%;
    height: 2px;
    background-color: var(--primary-black);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--primary-white);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: var(--font-primary);
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 2px;
    color: var(--primary-black);
}

.subtitle {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--dark-blue);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

.circuit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M10,10 L90,10 L90,90 L10,90 Z" fill="none" stroke="rgba(10,25,47,0.05)" stroke-width="0.5"/><path d="M30,10 L30,90" stroke="rgba(10,25,47,0.05)" stroke-width="0.5"/><path d="M50,10 L50,90" stroke="rgba(10,25,47,0.05)" stroke-width="0.5"/><path d="M70,10 L70,90" stroke="rgba(10,25,47,0.05)" stroke-width="0.5"/><path d="M10,30 L90,30" stroke="rgba(10,25,47,0.05)" stroke-width="0.5"/><path d="M10,50 L90,50" stroke="rgba(10,25,47,0.05)" stroke-width="0.5"/><path d="M10,70 L90,70" stroke="rgba(10,25,47,0.05)" stroke-width="0.5"/></svg>');
    opacity: 0.5;
    z-index: 1;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: 'UNWIR';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    color: #0ff;
    z-index: -1;
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    animation-delay: 0.1s;
}

.glitch-text::after {
    color: #f0f;
    z-index: -2;
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
    animation-delay: 0.2s;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: width var(--transition-medium);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background-color: var(--dark-blue);
    color: var(--primary-white);
    border: none;
}

.btn-primary:hover {
    background-color: var(--dark-blue-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark-blue);
    border: 2px solid var(--dark-blue);
}

.btn-secondary:hover {
    background-color: var(--dark-blue);
    color: var(--primary-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    color: var(--dark-blue);
    border: 1px solid var(--dark-blue);
    padding: 0.6rem 1.5rem;
}

.btn-outline:hover {
    background-color: var(--dark-blue);
    color: var(--primary-white);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ===== SERVICES SECTION ===== */
.services {
    background-color: var(--primary-white);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--dark-blue);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--accent-gray);
}

.service-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    background-color: var(--primary-white);
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    position: relative;
}

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

.service-card.reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.service-card.reverse .service-content {
    direction: ltr;
}

.service-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background-color: var(--dark-blue);
    color: var(--primary-white);
    border-radius: var(--border-radius-full);
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-right: 15px;
    vertical-align: middle;
}

.service-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-content h3 {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.service-content h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-blue);
}

.service-content p {
    margin-bottom: var(--spacing-sm);
    color: var(--accent-gray);
}

.service-features {
    margin-bottom: var(--spacing-sm);
}

.service-features li {
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
}

.service-features li i {
    color: var(--dark-blue);
    margin-right: 10px;
}

.service-cta {
    margin-top: var(--spacing-sm);
}

.service-image {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-blue-light);
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-medium);
    display: block;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.tech-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M10,10 L90,10 L90,90 L10,90 Z" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/><path d="M30,10 L30,90" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/><path d="M50,10 L50,90" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/><path d="M70,10 L70,90" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/><path d="M10,30 L90,30" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/><path d="M10,50 L90,50" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/><path d="M10,70 L90,70" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
    opacity: 0.5;
}

/* ===== WHY US SECTION ===== */
.why-us {
    background-color: var(--primary-white);
    position: relative;
    overflow: hidden;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.feature {
    background-color: var(--primary-white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--dark-blue);
    color: var(--primary-white);
    border-radius: var(--border-radius-full);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin: 0 auto var(--spacing-sm);
}

.feature h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--dark-blue);
}

.tech-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M10,10 L90,10 L90,90 L10,90 Z" fill="none" stroke="rgba(10,25,47,0.03)" stroke-width="0.5"/><path d="M30,10 L30,90" stroke="rgba(10,25,47,0.03)" stroke-width="0.5"/><path d="M50,10 L50,90" stroke="rgba(10,25,47,0.03)" stroke-width="0.5"/><path d="M70,10 L70,90" stroke="rgba(10,25,47,0.03)" stroke-width="0.5"/><path d="M10,30 L90,30" stroke="rgba(10,25,47,0.03)" stroke-width="0.5"/><path d="M10,50 L90,50" stroke="rgba(10,25,47,0.03)" stroke-width="0.5"/><path d="M10,70 L90,70" stroke="rgba(10,25,47,0.03)" stroke-width="0.5"/></svg>');
    opacity: 0.5;
    z-index: -1;
}

/* ===== CTA SECTION ===== */
.cta {
    background-color: var(--dark-blue);
    color: var(--primary-white);
    text-align: center;
    padding: var(--spacing-lg) 0;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-primary {
    background-color: var(--primary-white);
    color: var(--dark-blue);
}

.cta .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--primary-white);
    padding: var(--spacing-md) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    width: 80px;
}

.footer-info {
    text-align: right;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xs);
    justify-content: flex-end;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-full);
    background-color: var(--dark-blue);
    color: var(--primary-white);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.social-link:hover {
    transform: translateY(-5px);
    background-color: var(--dark-blue-light);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--dark-blue);
    color: var(--primary-white);
    border-radius: var(--border-radius-full);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--dark-blue-light);
    transform: translateY(-5px);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .service-card,
    .service-card.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    
    .service-image {
        min-height: 250px;
        order: -1;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .service-content h3 {
        display: flex;
        align-items: center;
        font-size: 1.5rem;
    }
    
    .service-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-right: 10px;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--primary-white);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right var(--transition-medium);
        z-index: 101;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 102;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .footer-info {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .cta h2 {
        font-size: 1.8rem;
    }
    
    .service-content h3 {
        font-size: 1.3rem;
        flex-wrap: wrap;
    }
    
    .service-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        margin-right: 8px;
        margin-bottom: 5px;
    }
    
    .service-image {
        min-height: 250px;
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.slide-in-left {
    animation: slideInLeft 1s ease forwards;
}

.slide-in-right {
    animation: slideInRight 1s ease forwards;
}

.scale-in {
    animation: scaleIn 1s ease forwards;
}
