/* ============================================
   TSAL Solutions - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    /* Cool colors (Stag) */
    --cool-primary: #1e3a5f;
    --cool-secondary: #2d5a87;
    --cool-accent: #4a90b8;
    --cool-light: #7eb8d8;
    
    /* Warm colors (Lion) */
    --warm-primary: #8b4513;
    --warm-secondary: #c65d07;
    --warm-accent: #e8860c;
    --warm-light: #f5a623;
    
    /* Neutrals */
    --text-dark: #1a1a2e;
    --text-medium: #4a4a68;
    --text-light: #6b6b8d;
    --bg-white: #ffffff;
    --bg-light: #f8f9fc;
    --bg-subtle: #eef1f7;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--cool-primary) 0%, var(--warm-secondary) 100%);
    --gradient-cool: linear-gradient(135deg, var(--cool-primary) 0%, var(--cool-accent) 100%);
    --gradient-warm: linear-gradient(135deg, var(--warm-secondary) 0%, var(--warm-light) 100%);
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    
    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--warm-secondary);
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-medium);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 50px;
    width: auto;
}

.company-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-medium);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: all var(--transition-fast);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(170deg, var(--bg-light) 0%, var(--bg-white) 50%, var(--bg-subtle) 100%);
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(30, 58, 95, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(198, 93, 7, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
    padding: 0 24px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo {
    width: 200px;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-medium);
    margin-bottom: 24px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: all var(--transition-medium);
    box-shadow: 0 8px 30px rgba(30, 58, 95, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(30, 58, 95, 0.4);
    color: white;
}

/* ============================================
   Section Styles
   ============================================ */
.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 60px;
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: var(--section-padding);
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-medium);
    border: 1px solid var(--bg-subtle);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    color: var(--cool-secondary);
}

.service-card:nth-child(2) .service-icon,
.service-card:nth-child(4) .service-icon {
    color: var(--warm-secondary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-medium);
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.service-features li {
    font-size: 0.9rem;
    color: var(--text-light);
    padding-left: 20px;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cool-accent);
    font-weight: bold;
}

.service-card:nth-child(2) .service-features li::before,
.service-card:nth-child(4) .service-features li::before {
    color: var(--warm-accent);
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-text .lead {
    font-size: 1.2rem;
    color: var(--text-medium);
    font-weight: 500;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-medium);
    margin-bottom: 16px;
}

.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--bg-subtle);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.about-visual {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.tech-stack h4 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--text-dark);
    text-align: center;
}

.tech-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.tech-item:hover {
    background: var(--bg-light);
}

.tech-item svg {
    width: 40px;
    height: 40px;
    color: var(--cool-secondary);
}

.tech-item:nth-child(even) svg {
    color: var(--warm-secondary);
}

.tech-item span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================
   Portfolio Section
   ============================================ */
.portfolio {
    padding: var(--section-padding);
    background: var(--bg-white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.portfolio-item {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-medium);
    border: 1px solid var(--bg-subtle);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
    height: 250px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-subtle) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.portfolio-info {
    padding: 30px;
}

.portfolio-info h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.portfolio-info p {
    color: var(--text-medium);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.portfolio-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-subtle);
    color: var(--cool-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
}

/* Mock Browser */
.mock-browser {
    width: 100%;
    max-width: 280px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.mock-header {
    background: var(--bg-subtle);
    padding: 10px 14px;
    display: flex;
    gap: 6px;
}

.mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
}

.mock-dot:first-child { background: #ff6b6b; }
.mock-dot:nth-child(2) { background: #feca57; }
.mock-dot:nth-child(3) { background: #48dbfb; }

.mock-content {
    display: flex;
    height: 140px;
}

.mock-sidebar {
    width: 50px;
    background: var(--cool-primary);
}

.mock-main {
    flex: 1;
    padding: 10px;
}

.mock-chart {
    height: 50px;
    background: linear-gradient(90deg, var(--cool-accent), var(--warm-accent));
    border-radius: 4px;
    margin-bottom: 10px;
    opacity: 0.4;
}

.mock-cards {
    display: flex;
    gap: 8px;
}

.mock-card {
    flex: 1;
    height: 40px;
    background: var(--bg-subtle);
    border-radius: 4px;
}

/* Mock POS */
.mock-pos {
    width: 100%;
    max-width: 260px;
    background: var(--text-dark);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.mock-pos-screen {
    background: #1a1a2e;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.mock-pos-item {
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 8px;
}

.mock-pos-total {
    height: 25px;
    background: var(--warm-accent);
    border-radius: 4px;
    margin-top: 12px;
}

.mock-pos-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mock-key {
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

/* Mock Phone */
.mock-phone {
    width: 140px;
    background: var(--text-dark);
    border-radius: 24px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.mock-phone-notch {
    width: 50px;
    height: 18px;
    background: black;
    margin: 0 auto 8px;
    border-radius: 0 0 12px 12px;
}

.mock-phone-screen {
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    height: 200px;
    display: flex;
    flex-direction: column;
}

.mock-app-header {
    height: 35px;
    background: var(--cool-primary);
}

.mock-app-content {
    flex: 1;
    padding: 10px;
}

.mock-app-card {
    height: 50px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mock-app-list-item {
    height: 20px;
    background: white;
    border-radius: 4px;
    margin-bottom: 6px;
}

.mock-app-nav {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background: white;
}

.mock-nav-item {
    width: 24px;
    height: 24px;
    background: var(--bg-subtle);
    border-radius: 50%;
}

.mock-nav-item.active {
    background: var(--cool-accent);
}

/* Mock Integration */
.mock-integration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mock-system {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mock-hub {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    box-shadow: 0 8px 30px rgba(30, 58, 95, 0.3);
}

.mock-connector {
    width: 30px;
    height: 4px;
    background: var(--bg-subtle);
    position: relative;
    overflow: hidden;
}

.mock-data-flow {
    position: absolute;
    width: 10px;
    height: 100%;
    background: var(--cool-accent);
    animation: dataFlow 1.5s infinite;
}

@keyframes dataFlow {
    0% { left: -10px; }
    100% { left: 30px; }
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.contact-item p,
.contact-item a {
    color: var(--text-medium);
    font-size: 0.95rem;
}

.contact-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--bg-subtle);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    transition: all var(--transition-fast);
    background: var(--bg-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cool-accent);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(74, 144, 184, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.3);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: white;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--warm-light);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-medium);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        padding: 12px 0;
        border-bottom: 1px solid var(--bg-subtle);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .hero-logo {
        width: 150px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-row {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .tech-icons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: 14px 30px;
    }
    
    .service-features {
        grid-template-columns: 1fr;
    }
    
    .portfolio-image {
        height: 200px;
    }
}
