/* Custom styles for Oman Technology Group */

:root {
    --primary-color: #0072C6;
    --primary-dark: #005a9e;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 114, 198, 0.95) 0%, rgba(0, 90, 158, 0.95) 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.2;
}

.hero-gradient {
    background: linear-gradient(135deg, rgba(0, 114, 198, 0.85) 0%, rgba(0, 90, 158, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.hero-logo {
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.hero-content .lead {
    font-size: 1.25rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Site Cards */
.site-card {
    transition: all 0.3s ease;
    border: none;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    position: relative;
}

.site-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.site-card:hover::before {
    transform: scaleX(1);
}

.site-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 114, 198, 0.2) !important;
}

.site-card .card-body {
    padding: 2rem;
}

.site-card .card-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.site-card .badge {
    font-size: 0.75rem;
    padding: 0.5em 0.75em;
    font-weight: 600;
    border-radius: 20px;
}

.site-card .card-text {
    color: var(--text-light);
    line-height: 1.7;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    transition: opacity 0.3s ease;
}

.navbar-brand:hover {
    opacity: 0.9;
}

.logo-img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 0.25rem;
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.95) !important;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    margin-top: auto;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Content Sections */
.content-section {
    line-height: 1.8;
}

.content-section h2 {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-section h3 {
    color: var(--primary-dark);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-section p {
    margin-bottom: 1rem;
}

/* Feature Icons */
.feature-icon {
    color: var(--primary-color);
}

.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.icon-wrapper {
    transition: transform 0.3s ease;
}

.feature-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 114, 198, 0.3);
}

.btn-light {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border-color: var(--bg-white);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
    color: var(--primary-dark);
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 114, 198, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-color);
}

/* Alerts */
.alert {
    border-radius: 0.5rem;
}

/* Admin Styles */
.admin-table {
    font-size: 0.95rem;
}

.admin-table th {
    font-weight: 600;
    background-color: var(--bg-light);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .site-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-brand .logo-img {
        height: 30px !important;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    footer {
        text-align: center;
    }
    
    footer .col-md-4 {
        margin-bottom: 2rem;
    }
    
    .feature-card {
        margin-bottom: 1.5rem;
    }
}

/* Utility Classes */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

