/* RABE TECHNOLOGIES - Professional ICT Company Styles */

/* CSS Variables - Design System */
:root {
    /* Core brand colors */
    --color-background: hsl(0, 0%, 100%);
    --color-foreground: hsl(215, 25%, 15%);
    --color-card: hsl(0, 0%, 100%);
    --color-card-foreground: hsl(215, 25%, 15%);

    /* Primary colors */
    --color-primary: hsl(215, 85%, 25%);
    --color-primary-foreground: hsl(0, 0%, 98%);

    /* Secondary colors */
    --color-secondary: hsl(213, 50%, 95%);
    --color-secondary-foreground: hsl(215, 85%, 25%);

    /* Muted colors */
    --color-muted: hsl(213, 50%, 95%);
    --color-muted-foreground: hsl(215, 15%, 50%);

    /* Accent colors */
    --color-accent: hsl(0, 84%, 55%);
    --color-accent-foreground: hsl(0, 0%, 98%);

    /* Border and input */
    --color-border: hsl(213, 30%, 90%);
    --color-input: hsl(213, 30%, 90%);

    /* Tech theme colors */
    --color-tech-blue-dark: hsl(215, 90%, 15%);
    --color-tech-blue-primary: hsl(215, 85%, 25%);
    --color-tech-blue-light: hsl(213, 70%, 85%);
    --color-tech-accent: hsl(0, 84%, 55%);

    /* Shadows */
    --shadow-card: 0 4px 20px hsla(215, 25%, 15%, 0.1);
    --shadow-hero: 0 10px 40px hsla(215, 85%, 25%, 0.3);

    /* Border radius */
    --radius: 0.5rem;
    --radius-md: calc(var(--radius) - 2px);
    --radius-sm: calc(var(--radius) - 4px);

    /* Spacing */
    --container-padding: 2rem;
    --section-padding: 5rem 0;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-foreground);
    background-color: var(--color-background);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

/* Contact Items Links */

.contact-item a:link {
  color: white;         /* default link color */
  text-decoration: none; /* optional: remove underline */
}

.contact-item a:visited {
  color: orange;
}

.contact-item a:hover {
  color:var(--color-accent);
}

.contact-item a:active {
  color: darkred; /* optional: while being clicked */
}


/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-hero {
    background-color: var(--color-tech-accent);
    color: var(--color-accent-foreground);
    border-color: var(--color-tech-accent);
}

.btn-hero:hover {
    background-color: hsla(0, 84%, 55%, 0.9);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hero);
}

.btn-tech {
    background-color: var(--color-tech-blue-primary);
    color: var(--color-primary-foreground);
    border-color: var(--color-tech-blue-primary);
}

.btn-tech:hover {
    background-color: hsla(215, 85%, 25%, 0.9);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border-color: white;
}

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

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-background);
    box-shadow: var(--shadow-card);
}

.contact-bar {
    background-color: var(--color-tech-blue-dark);
    color: white;
    padding: 0.5rem 0;
}

.contact-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.contact-info {
    display: flex;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar {
    border-bottom: 1px solid var(--color-border);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--color-tech-blue-primary);
    color: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-text h1 {
    font-size: 1.25rem;
    color: var(--color-foreground);
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--color-muted-foreground);
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--color-foreground);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-foreground);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(28, 41, 91, 0.9), rgba(28, 41, 91, 0.7)), url('src/assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-accent {
    color: var(--color-tech-accent);
    display: block;
    margin-top: 0.5rem;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-foreground);
}

.section-header p {
    font-size: 1.25rem;
    color: var(--color-muted-foreground);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: var(--section-padding);
    background-color: hsla(213, 50%, 95%, 0.3);
}

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

.service-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: hsla(215, 85%, 25%, 0.2);
}

.service-icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.service-card:hover .service-icon {
    color: var(--color-accent);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--color-card-foreground);
}

.service-card p {
    color: var(--color-muted-foreground);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

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

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-foreground);
}

.about-main {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--color-muted-foreground);
}

.about-main strong {
    color: var(--color-foreground);
}

.about-secondary {
    color: var(--color-muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.industries {
    margin-bottom: 2rem;
}

.industries h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-foreground);
}

.industry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: var(--color-tech-blue-light);
    color: var(--color-tech-blue-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.features h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--color-foreground);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
}

.feature-icon {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.feature-content h4 {
    margin-bottom: 0.5rem;
    color: var(--color-card-foreground);
}

.feature-content p {
    color: var(--color-muted-foreground);
    font-size: 0.875rem;
    margin: 0;
}


.partner-card:hover {
    box-shadow: var(--shadow-card);
    border-color: hsla(215, 85%, 25%, 0.3);
}

.partner-abbr {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-tech-blue-primary);
    transition: color 0.3s ease;
}

.partner-card:hover .partner-abbr {
    color: var(--color-accent);
}

.partner-name {
    font-size: 0.75rem;
    color: var(--color-muted-foreground);
    margin-top: 0.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.partner-card:hover .partner-name {
    opacity: 1;
}

.partnership-excellence {
    background-color: hsla(213, 50%, 95%, 0.5);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.partnership-excellence h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-foreground);
}

.partnership-excellence p {
    color: var(--color-muted-foreground);
    line-height: 1.6;
    margin: 0;
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background-color: var(--color-tech-blue-dark);
    color: white;
}

.contact .section-header h2,
.contact .section-header p {
    color: white;
}

.contact .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    color: white;
}

.contact-icon {
    color: var(--color-tech-accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.contact-details p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin: 0.25rem 0;
}

.cta-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background-color: var(--color-background);
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-brand {
    font-weight: 700;
    color: var(--color-foreground);
}

.footer-tagline {
    color: var(--color-muted-foreground);
    margin-bottom: 1.5rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-nav a {
    color: var(--color-muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
}

.footer-bottom p {
    color: var(--color-muted-foreground);
    font-size: 0.875rem;
    margin: 0;
}



/* Partners Section */
.partners {
    padding: 5rem 0;
    /* background-color: var(--background); */
    overflow: hidden;
}

.partners-slider-container {
    position: relative;
    overflow: hidden;
    margin: 3rem 0;
}

.partners-slider {
    display: flex;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-160%);
    }
}

.partner-logo {
    flex-shrink: 0;
    margin: 0 2rem;
    width: 12rem;
    height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background-color: var(--card); */
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: border-color 0.3s;
    font-weight: 600;
    /* color: var(--card-foreground); */
}

.partner-logo:hover {
    border-color: var(--primary);
}

.additional-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.partner-badge {
    padding: 0.75rem 1.5rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-weight: 600;
}


/* Responsive Design */

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --section-padding: 3rem 0;
    }

    .contact-bar .container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-background);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-card);
    }

    .nav-menu.active {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }
}