/*
Modern SmartBee Design
Primary Colors:
$smartbee-red: #DE2727;
$dark-red: #9B1B1B;
$light-red: #A75E5E;
$font-color: #333333;
$gray-bg: #F3F3F3;
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --primary-red: #9B1B1B;
    --dark-red: #7A1616;
    --light-red: #C94A4A;
    
    /* Text Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --text-white: #ffffff;
    --text-white-muted: rgba(255, 255, 255, 0.9);
    --text-white-subtle: rgba(255, 255, 255, 0.7);
    --text-white-soft: rgba(255, 255, 255, 0.8);
    
    /* Background Colors */
    --background: #ffffff;
    --surface: #f8fafc;
    --surface-light: #fafaf9;
    --surface-cool: #f1f5f9;
    
    /* Dark Theme Colors */
    --dark-slate: #1e293b;
    --dark-slate-light: #334155;
    --dark-slate-deep: #0f172a;
    --dark-blue-gray: #334155;
    
    /* Accent Colors */
    --link-blue: #60a5fa;
    --link-blue-hover: #93c5fd;
    
    /* Border & UI */
    --border: #e5e7eb;
    --border-white-subtle: rgba(255, 255, 255, 0.1);
    
    /* Shadows */
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

#page { 
    background: var(--background);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    padding-top: 80px;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h2 {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 2rem;
    margin: 0 0 2rem 0;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--light-red));
    border-radius: 2px;
}

h3 {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
#header {
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--primary-red) 100%);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 79px;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#header .logo img { 
    height: 45px;
    transition: transform 0.3s ease;
}

#header .logo img:hover {
    transform: scale(1.05);
}

#header .nav ul { 
    list-style: none; 
    display: flex;
    gap: 2rem;
    align-items: center;
}

#header .nav ul li a { 
    text-decoration: none; 
    color: #ffffff;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

#header .nav ul li a:hover { 
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Hero Section */
#slider {
    background: linear-gradient(135deg, var(--light-red) 0%, var(--text-secondary) 100%),
                url('slider@2x.jpg') no-repeat center center;
    background-blend-mode: overlay;
    background-size: cover;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
}

#slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

#slider .slider-content {
    color: #ffffff;
    position: relative;
    z-index: 2;
    max-width: 600px;
}

#slider .slider-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

#slider .slider-content p {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-white-muted);
    margin-bottom: 2rem;
}

/* Motto Section */
#motto {
    background: linear-gradient(135deg, var(--dark-slate) 0%, var(--dark-slate-light) 100%);
    color: var(--text-white);
    text-align: center;
    padding: 2rem 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 var(--border-white-subtle);
}

#motto p {
    color: var(--text-white);
}

/* about Content - About Section (Light Gray) */
#about {
    padding: 4rem 0;
    background: var(--surface);
}

/* About Section - Minimalistic */
.about-simple {
    margin-bottom: 0;
    text-align: center;
}

/* Mission & Vision Section (White) */
#mission-vision {
    background: var(--background);
    padding: 4rem 0;
}

/* Professional/Experienced/Agile Boxes Section (Light Gray) */
#values-boxes {
    background: var(--surface);
    padding: 4rem 0;
}

.about-intro {
    margin-bottom: 3rem 0 4rem 0;
}

.about-intro p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-primary);
    max-width: 800px;
    margin: 0 auto;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.value-item {
    text-align: center;
    background: var(--background);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 3px solid var(--primary-red);
}

.value-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.value-item h4 {
    color: var(--primary-red);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.value-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Core Expertise Section (White) */
#expertise {
    padding: 5rem 0;
    background: var(--background);
}

#expertise h2 {
    margin-bottom: 3rem;
}

.expertise-areas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.expertise-area {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
}

.expertise-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--light-red));
    border-radius: 0 0 4px 4px;
}

.expertise-area:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red);
}

.expertise-title {
    display: block;
    color: var(--primary-red);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.expertise-area p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.item {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    background: var(--background);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.item:nth-child(even) {
    flex-direction: row-reverse;
}

.item-logo {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: 12px;
    padding: 1rem;
}

.item-logo img {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
}

.item-content {
    flex: 1;
}

.item-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.boxes {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.box {
    background: var(--background);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Odd boxes (1st, 3rd) - icon on left */
.box:nth-child(odd) {
    flex-direction: row;
}

/* Even boxes (2nd) - icon on right */
.box:nth-child(even) {
    flex-direction: row-reverse;
}

.box-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-red), var(--light-red));
    border-radius: 50%;
    padding: 12px;
}

.box-icon img {
    width: 56px;
    height: 56px;
    filter: brightness(0) invert(1);
}

.box-content {
    flex: 1;
}

.box h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    text-align: left;
}

.box p {
    text-align: left;
    margin-bottom: 0;
}

/* Technologies Section (Light Gray) */
#technologies {
    padding: 5rem 0;
    background: var(--surface);
}

#technologies h2 {
    margin-bottom: 3rem;
}

/* Contact Section (Dark Elegant) */
#contact {
    background: linear-gradient(135deg, var(--dark-slate) 0%, var(--dark-slate-light) 100%);
    color: var(--text-white);
    padding: 5rem 0;
}

#contact .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

#contact .map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

#contact .map iframe {
    width: 100%;
    height: 400px;
    border: none;
}

#contact .content {
    padding: 1rem 0;
}

#contact .content h2 {
    text-align: left;
    margin-bottom: 1rem;
    color: var(--text-white);
    font-size: 1.25rem;
    font-weight: 700;
}

#contact .content h2::after {
    left: 0;
    transform: none;
    background: linear-gradient(90deg, var(--text-white), var(--text-white-subtle));
    width: 30px;
    height: 2px;
}

#contact .content p {
    margin-bottom: 1.25rem;
    color: var(--text-white-subtle);
    font-size: 0.95rem;
    line-height: 1.6;
}

#contact a {
    color: var(--link-blue);
    text-decoration: none;
    font-weight: 500;
}

#contact a:hover {
    color: var(--link-blue-hover);
    text-decoration: underline;
}

/* Footer */
#footer {
    background: linear-gradient(135deg, var(--dark-slate-deep) 0%, var(--dark-slate) 100%);
    color: var(--text-white-soft);
    text-align: center;
    padding: 3rem 0;
    font-weight: 400;
    border-top: 1px solid var(--border-white-subtle);
}

#footer a {
    color: var(--text-white-soft);
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer a:hover {
    color: var(--text-white);
    text-decoration: underline;
}

/* Legal Pages Styling */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 0.9rem;
}

.legal-page h1 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: bold;
    font-style: italic;
    margin-bottom: 0.5rem;
    text-align: left;
}

.legal-page .last-updated {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.85rem;
    margin-bottom: 2.5rem;
}

.legal-page section {
    margin-bottom: 2rem;
}

.legal-page h2 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.legal-page h2::after {
    display: none;
}

.legal-page h3 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: bold;
    font-style: italic;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.legal-page p {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.legal-page ul {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}

.legal-page li {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.legal-page a {
    color: var(--primary-red);
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }
    
    .item {
        gap: 2rem;
        padding: 2rem;
    }
    
    /* Core Expertise: 2 columns on medium screens */
    .expertise-areas {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    #slider .slider-content h1 {
        font-size: 2.5rem;
    }
    
    #slider .slider-content p {
        font-size: 1.125rem;
    }
    
    .item {
        flex-direction: column !important;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .item-logo {
        width: 100px;
        height: 100px;
    }
    
    .boxes {
        gap: 2rem;
    }
    
    .box {
        flex-direction: column !important;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .box h3 {
        text-align: center;
    }
    
    .box p {
        text-align: center;
    }
    
    /* About Section Responsive */
    .about-values {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-intro p {
        font-size: 1.125rem;
    }
    
    .expertise-areas {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    #expertise {
        padding: 4rem 0;
    }
    
    #contact .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    #contact .content h2 {
        text-align: center;
    }
    
    #contact .content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 600px) {
    #header .nav {
        display: none;
    }
    
    #header .container {
        justify-content: center;
    }
    
    #slider {
        height: 50vh;
        min-height: 400px;
    }
    
    #slider .slider-content h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    #about .item .item-logo {
        display: none;
    }
    
    #contact .map {
        display: none;
    }
    
    #contact .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    #slider {
        height: 45vh;
        min-height: 350px;
    }
    
    .item {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .box {
        padding: 1.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll offset for fixed header */
#about, #expertise, #technologies, #contact {
    scroll-margin-top: 80px;
}

/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.item {
    animation: fadeInUp 0.6s ease-out;
}

/* Cookie Consent Popup */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--background);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    border-top: 3px solid var(--primary-red);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.cookie-text h3 {
    color: var(--primary-red);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cookie-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.cookie-options {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.cookie-category {
    flex: 1;
    min-width: 250px;
}

.cookie-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    position: relative;
    padding: 0.5rem 0;
}

.cookie-checkbox.disabled {
    cursor: default;
}

.cookie-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 0;
}

.cookie-checkbox input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.cookie-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 0px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cookie-checkbox input[type="checkbox"]:disabled + .checkmark {
    background: var(--dark-red);
    border-color: var(--dark-red);
    opacity: 0.8;
}

.cookie-checkbox input[type="checkbox"]:disabled + .checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 0px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cookie-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.cookie-info strong {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.cookie-info small {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 0;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1rem;
}

.cookie-buttons button {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--dark-red);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface-cool);
    border-color: var(--primary-red);
}

.btn-text {
    background: transparent;
    color: var(--text-secondary);
    text-decoration: underline;
    padding: 0.75rem 1rem;
}

.btn-text:hover {
    color: var(--primary-red);
}

.cookie-policy-link {
    text-align: center;
    margin: 0;
}

.cookie-policy-link a {
    color: var(--primary-red);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.cookie-policy-link a:hover {
    text-decoration: underline;
}

/* Responsive Cookie Popup */
@media (max-width: 768px) {
    .cookie-content {
        padding: 1.5rem 1rem;
    }
    
    .cookie-options {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cookie-category {
        min-width: auto;
    }
    
    .cookie-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-buttons button {
        width: 100%;
        justify-content: center;
    }
}

/* Focus states for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}