/* 
   SOMCOLAB Theme Styles
   Primary: #1E3A5F (Navy Blue)
   Secondary: #F59E0B (Gold)
   Accent: #0EA5A4 (Teal)
*/

:root {
    --primary-color: #1E3A5F;
    --primary-color-rgb: 30, 58, 95;
    --secondary-color: #F59E0B;
    --accent-color: #0EA5A4;
    --bg-light: #ffffff;
    --bg-gray: #f8f9fa;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
}

[data-theme="dark"] {
    --primary-color: #2a4c7a;
    --secondary-color: #fbbf24;
    --accent-color: #14b8b6;
    --bg-light: #121212;
    --bg-gray: #1e1e1e;
    --text-dark: #f8f9fa;
    --text-muted: #adb5bd;
    --border-color: #2d2d2d;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-color);
}
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 {
    color: var(--text-dark);
}

/* Utilities */
.text-primary-custom { color: var(--primary-color) !important; }
.text-secondary-custom { color: var(--secondary-color) !important; }
.text-accent-custom { color: var(--accent-color) !important; }

.bg-primary-custom { background-color: var(--primary-color) !important; }
.bg-secondary-custom { background-color: var(--secondary-color) !important; }
.bg-accent-custom { background-color: var(--accent-color) !important; }
.bg-gray-custom { background-color: var(--bg-gray) !important; }

/* Buttons */
.btn-primary-custom {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-primary-custom:hover {
    background-color: #132640;
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary-custom {
    background-color: var(--secondary-color);
    color: #111;
    border: none;
    border-radius: 4px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-secondary-custom:hover {
    background-color: #d97706;
    color: #fff;
    transform: translateY(-2px);
}

/* Header & Nav */
.top-bar {
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.85rem;
    padding: 8px 0;
}
.top-bar a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}
.top-bar a:hover {
    color: var(--secondary-color);
}
.navbar {
    background-color: var(--bg-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
[data-theme="dark"] .navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.navbar-brand img {
    height: 50px;
}
.nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    margin: 0 5px;
    transition: color 0.3s;
}
.nav-link:hover, .nav-link.active {
    color: var(--secondary-color) !important;
}

/* Dark Mode Toggle */
.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-dark);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden; /* Hide the overflow from the scaling background */
}

/* The animated background layers */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.slide-1 {
    background-image: url('../img/hero-bg.jpg');
    animation: kenBurns 20s infinite alternate linear, fadeOutIn 16s infinite;
}

.slide-2 {
    background-image: url('../img/hero-bg-2.jpg');
    animation: kenBurns 20s infinite alternate-reverse linear, fadeInOut 16s infinite;
    opacity: 0; /* starts hidden */
}

@keyframes fadeOutIn {
    0%, 45% { opacity: 1; }
    50%, 95% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeInOut {
    0%, 45% { opacity: 0; }
    50%, 95% { opacity: 1; }
    100% { opacity: 0; }
}

/* Gradient overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.9) 0%, rgba(14, 165, 164, 0.7) 100%);
    z-index: 1;
}

/* Keyframes for the Ken Burns effect */
@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.hero-content {
    position: relative;
    z-index: 2; /* Ensure content is above the background */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff !important;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}
.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

/* Cards (Services, Projects) */
.service-card {
    background-color: var(--bg-light);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid var(--accent-color);
    height: 100%;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
[data-theme="dark"] .service-card {
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0 20px;
}
.footer h5 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}
.footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}
.footer a:hover {
    color: var(--secondary-color);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
}

/* Page Header Styling */
.page-header {
    background: linear-gradient(rgba(13, 33, 54, 0.8), rgba(13, 33, 54, 0.9)), url('../img/hero-bg.jpg') center/cover no-repeat;
    padding: 100px 0 80px;
    text-align: center;
    color: #fff;
    position: relative;
    margin-bottom: 3rem;
}
.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #FFB300;
}
.page-header .breadcrumb {
    justify-content: center;
    background: transparent;
    padding: 0;
    margin: 0;
}
.page-header .breadcrumb-item a {
    color: #fff;
    text-decoration: none;
}
.page-header .breadcrumb-item.active {
    color: #FFB300;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem !important; }
    .hero-subtitle { font-size: 1.2rem !important; }
    .page-header h1 { font-size: 2.2rem !important; }
    .page-header { padding: 60px 0 40px; }
    .display-4 { font-size: 2.5rem !important; }
    .btn-lg { padding: 10px 20px; font-size: 1rem; }
    .navbar-brand img { height: 35px; }
    .navbar-brand span { font-size: 1.5rem !important; }
    .hero-content { padding-top: 30%; }
    .service-card { padding: 20px; margin-bottom: 15px; }
    .counter { font-size: 2rem !important; }
}
