/* =========================================
   Evolve Software Solutions - Premium CSS
   ========================================= */

:root {
    /* Color Palette */
    --bg-main: #060a14;
    --bg-darker: #03050a;
    --bg-glass: rgba(16, 25, 45, 0.4);
    --bg-glass-hover: rgba(25, 38, 65, 0.6);
    --border-glass: rgba(0, 195, 255, 0.15);
    
    --accent-primary: #00e1ff;
    --accent-secondary: #0077ff;
    --accent-glow: rgba(0, 225, 255, 0.5);
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Effects */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-glow: 0 0 20px var(--accent-glow);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
    position: relative;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.center {
    text-align: center;
}

.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(0, 225, 255, 0.1);
    box-shadow: var(--shadow-glow);
}

.btn-outline-glow {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--accent-primary);
}

.btn-outline-glow:hover {
    border-color: var(--accent-primary);
    box-shadow: inset 0 0 10px rgba(0, 225, 255, 0.2), 0 0 10px rgba(0, 225, 255, 0.2);
    color: #fff;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    transition: var(--transition-fast);
}

.glass-panel:hover {
    background: var(--bg-glass-hover);
    border-color: rgba(0, 225, 255, 0.3);
}

/* Typography Utilities */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.text-glow {
    color: var(--accent-primary);
    text-shadow: 0 0 15px var(--accent-glow);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition-fast);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(6, 10, 20, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
}

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

.logo {
    height: 40px; /* Adjust based on actual logo proportions */
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:not(.btn):hover {
    color: var(--accent-primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

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

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-graphics {
    position: absolute;
    top: 0;
    right: 0;
    width: 50vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite alternate ease-in-out;
}

.orb-1 {
    top: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
}

.orb-2 {
    bottom: 10%;
    right: 30%;
    width: 300px;
    height: 300px;
    background: var(--accent-primary);
    animation-delay: -5s;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(60deg) scale(2);
    transform-origin: top center;
    opacity: 0.5;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-30px) scale(1.1); }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    padding: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 500;
    color: var(--text-secondary);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 225, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

.service-icon svg {
    width: 30px;
    height: 30px;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Why Us Section */
.why-us-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.features-list {
    margin-top: 2rem;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--bg-glass), rgba(0, 225, 255, 0.1));
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-text p {
    color: var(--text-secondary);
}

.image-panel {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.abstract-graphic {
    position: relative;
    width: 200px;
    height: 200px;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid var(--accent-primary);
    box-shadow: inset 0 0 20px rgba(0, 225, 255, 0.2), 0 0 20px rgba(0, 225, 255, 0.2);
}

.ring-1 { width: 100%; height: 100%; animation: spin 10s linear infinite; }
.ring-2 { width: 70%; height: 70%; animation: spin 7s linear infinite reverse; }
.ring-3 { width: 40%; height: 40%; animation: spin 4s linear infinite; }

@keyframes spin {
    100% { transform: translate(-50%, -50%) rotate(360deg) scaleY(0.5); }
}

/* Portfolio Section */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.client-logo {
    padding: 2rem;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 120px;
}

.client-logo:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

/* Footer */
.footer {
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-glass);
}

.footer-cta {
    text-align: center;
    margin-bottom: 4rem;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.footer-icon {
    width: 30px;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s var(--transition-slow) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container, .about-grid, .why-us-layout {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-graphics {
        position: absolute;
        width: 100%;
        opacity: 0.5;
    }
    
    .why-us-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
