/* Import Inter font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Root variables - Black and White Theme */
:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --accent-color: #666666;
    --text-dark: #000000;
    --text-light: #666666;
    --bg-light: #f8f8f8;
    --bg-dark: #1a1a1a;
    --border-color: #e0e0e0;
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    scroll-behavior: smooth;
}

/* Custom Bootstrap overrides */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    color: white;
}

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

/* Header styles */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
    background-color: white !important;
    border-bottom: 1px solid var(--border-color);
}

.navbar.navbar-shrink {
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar.navbar-shrink .navbar-brand img {
    height: 30px !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 10px;
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

/* Hero section */
.hero-section {
    margin-top: 76px;
    position: relative;
}

.hero-section .carousel-item img {
    height: 70vh;
    object-fit: cover;
    object-position: center;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.carousel-caption h1 {
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-caption p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Section spacing */
section {
    padding: 80px 0;
}

/* About section */
#about img {
    border-radius: 15px;
    transition: transform 0.3s ease;
}

#about img:hover {
    transform: scale(1.05);
}

/* Services section */
.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 50%;
    color: white;
    border: 2px solid var(--primary-color);
}

.card {
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    border-radius: 15px;
    background: white;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
    border-color: var(--primary-color);
}

/* Portfolio section */
#portfolio .carousel-item img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

#portfolio .carousel-item img:hover {
    transform: scale(1.05);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    color: var(--primary-color);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 10px;
    border: 2px solid white;
}

/* Team section */
.team-member {
    text-align: center;
    margin-bottom: 30px;
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid var(--primary-color);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.team-member img:hover {
    transform: scale(1.1);
}

.social-links a {
    color: var(--text-light);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
    transform: scale(1.1);
}

/* Clients section */
.client-logo {
    max-height: 80px;
    opacity: 0.6;
    transition: all 0.3s ease;
    filter: grayscale(100%);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 8px;
    background: white;
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(100%);
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background: var(--bg-dark) !important;
    border-top: 3px solid var(--primary-color);
}

footer h5 {
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

footer a {
    transition: color 0.3s ease;
    color: #cccccc !important;
}

footer a:hover {
    color: white !important;
    text-decoration: underline;
}

footer .social-links a {
    transition: all 0.3s ease;
    color: #cccccc !important;
}

footer .social-links a:hover {
    transform: translateY(-3px);
    color: white !important;
}

/* Responsive styles */
@media (max-width: 768px) {
    .hero-section .carousel-item img {
        height: 50vh;
    }
    
    .carousel-caption {
        padding: 1rem;
    }
    
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    #portfolio .col-lg-2 {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .hero-section .carousel-item img {
        height: 40vh;
    }
    
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 40px 0;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
}

.scroll-to-top:hover {
    background: #e55a2b;
    transform: translateY(-3px);
}

/* Custom utilities */
.section-padding {
    padding: 80px 0;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Additional black and white styling */
.bg-light {
    background-color: var(--bg-light) !important;
}

/* Ensure images stay in color */
img {
    filter: none !important;
}

/* Hero carousel specific styling */
.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Section dividers */
section:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

/* Typography enhancements */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
}

.lead {
    color: var(--text-light);
    font-weight: 400;
}