/* Custom CSS for Dynamasys Website */

:root {
    --navy-blue: #1a2332;
    --navy-blue-dark: #141b26;
    --gold: #d4af37;
    --gold-light: #e8c55a;
    --gold-dark: #b8941f;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --shadow: rgba(26, 35, 50, 0.1);
}

/* Typography */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--navy-blue);
}

/* Custom Color Classes */
.bg-navy {
    background-color: var(--navy-blue) !important;
}

.bg-navy-dark {
    background-color: var(--navy-blue-dark) !important;
}

.text-navy {
    color: var(--navy-blue) !important;
}

.text-gold {
    color: var(--gold) !important;
}

.btn-gold {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--white);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-navy {
    background-color: var(--navy-blue);
    border-color: var(--navy-blue);
    color: var(--white);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-navy:hover {
    background-color: var(--navy-blue-dark);
    border-color: var(--navy-blue-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 35, 50, 0.3);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Navigation */
.navbar-brand {
    font-size: 1.8rem !important;
    letter-spacing: -0.5px;
}

.navbar-logo {
    height: 100px;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(1);
}

.navbar-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--gold) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--gold);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--navy-blue-dark) 100%);
    color: var(--white);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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(212,175,55,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.hero-section .lead {
    font-size: 1.3rem;
    opacity: 0.9;
}

.hero-image img {
    border: 3px solid rgba(212, 175, 55, 0.3);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.05);
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(26, 35, 50, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow);
    border-color: var(--gold);
}

.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-image {
    overflow: hidden;
}

/* About Section */
.about-image img {
    border: 3px solid var(--gold);
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Contact Section */
.contact-item {
    text-align: center;
    padding: 2rem 1rem;
}

.contact-item i {
    display: block;
    margin-bottom: 1rem;
}

.contact-item h5 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Footer */
footer {
    background-color: var(--navy-blue-dark) !important;
}

.social-links a {
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--gold-light) !important;
    transform: translateY(-2px);
}

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

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-image {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .hero-buttons .btn {
        display: block;
        margin: 0.5rem 0;
        width: 100%;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem !important;
    }
    
    .navbar-logo {
        height: 80px;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Smooth scrolling offset for fixed navbar */
html {
    scroll-padding-top: 80px;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[src*="unsplash"] {
    background-color: var(--light-gray);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.5);
}

/* Print styles */
@media print {
    .navbar,
    .hero-buttons,
    footer {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    .text-gold,
    .text-navy {
        color: black !important;
    }
}
