/* Modern Design System */
:root {
    --primary-color: #000000;  /* Changed to black */
    --secondary-color: #475569;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --bg-color: #FFFFE0;
    --accent-color: #FFD700;  /* Changed to gold yellow */
    --success-color: #10b981;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* Modern Reset & Base Styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--dark-color);
}

/* Modern Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Logo Styles */
.navbar-logo {
    height: 65px;  /* Increased from 50px */
    width: auto;
    border-radius: 8px;  /* Slightly larger border radius */
    margin-right: 1rem;  /* Increased margin for better spacing */
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 50px;  /* Increased from 40px for better mobile visibility */
    }
}

/* Modern Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.hero h1, 
.hero .lead,
.hero p {
    color: white;
}

.hero .btn-outline-light {
    color: white;
    border-color: white;
}

.hero .btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Image Styles */
.hero-image {
    position: relative;  /* Changed from absolute for better mobile layout */
    max-width: 100%;
    height: auto;
    opacity: 0.95;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    filter: brightness(1.05) contrast(1.05);
    transition: transform 0.3s ease-in-out;
    margin-top: 2rem;  /* Add spacing on mobile */
}

@media (min-width: 768px) {
    .hero-image {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        max-width: 45%;
        margin-top: 0;
    }
    
    .hero-image:hover {
        transform: translateY(-50%) scale(1.02);
    }
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    margin-bottom: 1rem;
}

.feature-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Modern Cards */
.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Modern Service Cards */
.service-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.service-card:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover:after {
    opacity: 1;
}

/* Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Timeline Styles */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--primary-color);
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Service Detail Pages */
.service-detail .service-image {
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-detail .icon-box {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Technologies Section */
.technologies .text-center {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.technologies .text-center:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Modern Buttons */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* Dropdown Menu Enhancement */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.1));
    transform: translateX(5px);
}

.dropdown-item i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.dropdown-item:hover i {
    transform: scale(1.2);
}

/* Modern Contact Form */
.contact-form .form-control {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    border-color: var(--primary-color);
}

/* Modern Contact Section */
.contact-section {
    background-color: var(--accent-color) !important; /* Changed to gold (FFD700) */
    padding: 2rem 0;
    border-radius: 16px;
    margin: 2rem 0;
}

/* Modern Footer */
footer {
    background: var(--dark-color);
    border-top: 1px solid var(--glass-border);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0.05;
}

.footer-logo {
    height: 60px;  /* Increased from 46px */
    width: auto;
    border-radius: 8px;
    filter: brightness(1.1);
    margin-right: 1rem;
}

@media (max-width: 768px) {
    .footer-logo {
        height: 48px;  /* Increased from 38px for better mobile visibility */
    }
}

/* Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 0 3rem;
    }
    
    h1.display-4 {
        font-size: 2.25rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .card, .service-card {
        margin-bottom: 1.5rem;
    }

    .d-flex.gap-3 {
        flex-wrap: wrap;
        gap: 1rem !important;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .service-image, .feature-image, .card-img-top {
        height: 180px;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
    }

    .navbar-logo {
        height: 50px;  /* Increased from 40px for better mobile visibility */
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 5rem 0 2rem;
    }

    h1.display-4 {
        font-size: 2rem;
    }

    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}