/* Global Styles */
:root {
    --primary-dark: #001428;
    --primary: #0a3966;
    --accent-blue: #4ecbff;
    --accent-purple: #8a65de;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Content Container Layout */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Logo Styling */
.logo-image {
    width: auto !important;
    height: 40px !important;
    max-width: 50px !important;
    object-fit: contain;
    transition: transform 0.2s ease;
}

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

/* Responsive logo sizing */
@media (max-width: 768px) {
    .logo-image {
        height: 36px !important;
        max-width: 45px !important;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 32px !important;
        max-width: 40px !important;
    }
}

/* Ensure proper text contrast */
.text-gray-600 {
    color: #4a5568; /* Darker gray for better contrast */
}

.text-gray-200 {
    color: #e2e8f0; /* Lighter gray for dark backgrounds */
}

/* Responsive Container Adjustments */
@media (max-width: 768px) {
    .content-container {
        width: 90%;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .content-container {
        width: 90%;
        padding: 0 15px;
    }
}

.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.gradient-accent {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

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

/* Section Styles */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--accent-blue);
}

/* Card Styles */
.service-card, .portfolio-card, .blog-card {
    transition: all 0.3s ease;
}

.service-card:hover, .portfolio-card:hover, .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Testimonials */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 6rem;
    color: var(--accent-blue);
    opacity: 0.2;
    line-height: 1;
}

/* Contact Form */
.form-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(78, 203, 255, 0.2);
}

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

.animate-fadeIn {
    animation: fadeIn 1s ease forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Additional Mobile Responsiveness */
@media (max-width: 768px) {
    /* Stack mobile content vertically with proper spacing */
    .grid.grid-cols-1.lg\\:grid-cols-2 > div:first-child {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    /* Reduce padding on mobile */
    .py-16.md\\:py-24 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Ensure buttons are properly sized on mobile */
    .btn {
        display: inline-block;
        min-width: 150px;
        text-align: center;
    }
}

/* Solutions Page Specific Styles */
.solution-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.solution-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.solution-card .btn {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.solution-card .btn:hover {
    transform: translateY(-1px);
}

/* Modal Styles */
.modal-overlay {
    backdrop-filter: blur(4px);
}

/* Status Badge Styles */
.bg-yellow-100 {
    background-color: #fef3c7;
}

.text-yellow-800 {
    color: #92400e;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.text-blue-800 {
    color: #1e40af;
}

.bg-purple-100 {
    background-color: #ede9fe;
}

.text-purple-800 {
    color: #5b21b6;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.text-green-800 {
    color: #166534;
}

.bg-red-100 {
    background-color: #fee2e2;
}

.text-red-800 {
    color: #991b1b;
}

/* Solution page section spacing */
.solution-section {
    padding: 4rem 0;
}

/* Gradient text effect */
.gradient-accent {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
}

.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

.text-transparent {
    color: transparent;
}

/* Feature cards hover effect */
.feature-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive solution cards */
@media (max-width: 768px) {
    .solution-card {
        margin-bottom: 2rem;
    }
    
    .solution-card .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Mobile Navigation and Hero Section Fixes */
@media (max-width: 768px) {
    /* Fix navbar z-index to ensure it's on top */
    .navbar {
        z-index: 1000 !important;
        position: fixed !important;
    }
    
    /* Ensure hero text doesn't overlap with navbar */
    .hero h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .hero h2 {
        font-size: 1.25rem !important;
    }
}

@media (max-width: 480px) {
    /* Further adjustments for very small screens */
    .hero h1 {
        font-size: 1.75rem !important;
    }
    
    .hero h2 {
        font-size: 1.1rem !important;
    }
}

/* Footer Spacing Fixes */
footer {
    padding-top: 4rem !important;
    padding-bottom: 2rem !important;
}

footer .content-container {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

/* Footer top section spacing */
footer .grid {
    margin-bottom: 3rem !important;
}

/* Footer bottom border spacing */
footer .border-t {
    margin-top: 3rem !important;
    padding-top: 2rem !important;
    margin-bottom: 1rem !important;
}
