/* ============================================
   COMARK.SITE - ULTRA-FUTURISTIC NEON THEME
   ============================================ */

/* Root Variables */
:root {
    --primary-dark: #0a0e27;
    --secondary-dark: #1a1f3a;
    --accent-neon: #00ff88;
    --accent-purple: #9d4edd;
    --accent-cyan: #00d4ff;
    --accent-pink: #ff006e;
    --text-light: #e0e0e0;
    --text-muted: #a0a0a0;
    --border-color: #2a2f4a;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-neon), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-neon), var(--accent-cyan));
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(157, 78, 221, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 0%, rgba(0, 212, 255, 0.05) 0%, transparent 60%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-neon), var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-neon), var(--accent-cyan));
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.5);
}

/* ============================================
   SECTION STYLING
   ============================================ */

section {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-neon), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-neon), var(--accent-cyan));
    margin: 0 auto;
    border-radius: 2px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    background: linear-gradient(180deg, rgba(26, 31, 58, 0.5) 0%, rgba(10, 14, 39, 0.8) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content > p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.9;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.stat:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--accent-neon);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-neon);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.8) 0%, rgba(26, 31, 58, 0.5) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    background: rgba(26, 31, 58, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--accent-neon);
    background: rgba(26, 31, 58, 0.9);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.1);
}

.service-card:hover::before {
    left: 100%;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-neon);
    margin-bottom: 1rem;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ============================================
   INDUSTRIES SECTION
   ============================================ */

.industries {
    background: linear-gradient(180deg, rgba(26, 31, 58, 0.5) 0%, rgba(10, 14, 39, 0.8) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.industry-item {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
    text-align: center;
}

.industry-item:hover {
    background: rgba(0, 255, 136, 0.08);
    border-color: var(--accent-cyan);
    transform: scale(1.05);
}

.industry-item h4 {
    font-size: 1.3rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.industry-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   TEAM SECTION
   ============================================ */

.team {
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.8) 0%, rgba(26, 31, 58, 0.5) 100%);
}

/* Horizontal scrolling team section */
.team-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.team-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.team-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.team-scroll-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--accent-neon), var(--accent-cyan));
    border-radius: 10px;
}

.team-scroll-container {
    display: flex;
    gap: 1.5rem;
    padding: 0 1rem;
    min-width: min-content;
}

.team-card-mini {
    flex: 0 0 140px;
    text-align: center;
    padding: 1.2rem;
    background: rgba(26, 31, 58, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card-mini:hover {
    border-color: var(--accent-purple);
    background: rgba(26, 31, 58, 0.9);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(157, 78, 221, 0.2);
}

.team-card-mini img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 0.8rem;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.team-card-mini:hover img {
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.3);
}

.team-card-mini h3 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: var(--text-light);
    line-height: 1.2;
    word-break: break-word;
}

.team-card-mini .job-title {
    color: var(--accent-purple);
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.75rem;
    line-height: 1.1;
}

.team-card-mini .email {
    color: var(--accent-cyan);
    font-size: 0.7rem;
    word-break: break-all;
    line-height: 1.1;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    background: linear-gradient(180deg, rgba(26, 31, 58, 0.5) 0%, rgba(10, 14, 39, 0.8) 100%);
    border-top: 1px solid var(--border-color);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-neon);
    background: rgba(0, 255, 136, 0.05);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.submit-button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-neon), var(--accent-cyan));
    color: var(--primary-dark);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.contact-info {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.contact-info h3 {
    color: var(--accent-neon);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.contact-info p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.contact-info strong {
    color: var(--text-light);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: rgba(10, 14, 39, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   BACK-TO-TOP BUTTON
   ============================================ */

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-neon), var(--accent-cyan));
    color: var(--primary-dark);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: var(--transition);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.5);
}

#backToTop.show {
    display: flex;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .services-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem 0;
    }

    .nav-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hero {
        margin-top: 120px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .service-card,
    .team-card,
    .industry-item {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .contact-info {
        padding: 1.5rem;
    }

    section {
        padding: 3rem 0;
    }
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 255, 136, 0.6);
    }
}

@keyframes floatGlow {
    0%, 100% {
        transform: translateY(0px);
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.2), 0 0 40px rgba(157, 78, 221, 0.1);
    }
    50% {
        transform: translateY(-10px);
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.4), 0 0 60px rgba(157, 78, 221, 0.2);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply animations to service cards */
.service-card {
    animation: slideInLeft 0.6s ease-out forwards;
}

.service-card:nth-child(even) {
    animation: slideInRight 0.6s ease-out forwards;
}

/* Smooth transitions for all interactive elements */
a, button, input, textarea {
    transition: var(--transition);
}

/* Neon glow effect on focus */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3), inset 0 0 10px rgba(0, 255, 136, 0.1);
}

/* Subtle floating effect for CTA button */
.cta-button {
    animation: floatGlow 3s ease-in-out infinite;
}
