/* ============================================
   BLUEDGE - Modern Professional Design
   ============================================ */

:root {
    --primary: #0f172a;
    --primary-dark: #020617;
    --accent: #3b82f6;
    --accent-light: #eff6ff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --black: #000000;
    --success: #10b981;
    --error: #ef4444;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    background: var(--white);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1 { font-size: 3.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    cursor: pointer;
    border: none;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background: #2563eb;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.stat h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 1rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-dark {
    background: var(--primary);
    color: var(--white);
}

.section-light {
    background: var(--gray-50);
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* Service Cards */
.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    border-color: var(--accent);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-light);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: var(--accent);
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: var(--gray-100);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    color: var(--gray-600);
}

/* Location Cards */
.location-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
    text-align: center;
}

.location-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.location-icon i {
    font-size: 1.75rem;
    color: var(--accent);
}

/* Image Placeholders */
.img-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--gray-200), var(--gray-100));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 3rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stats Cards */
.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
}

.testimonial-text {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--gray-500);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.875rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-links h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-links a {
    display: block;
    color: var(--gray-300);
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        border: 1px solid var(--gray-200);
        gap: 1rem;
    }
    
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
    
    .hero-grid,
    .grid-2,
    .grid-3,
    .grid-4,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
}

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

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Disabled button state */
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form success/error animations */
.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ENHANCED RESPONSIVE STYLES
   ============================================ */

/* Tablet Landscape (1024px - 1280px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-grid {
        gap: 2rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat h3 {
        font-size: 1.5rem;
    }
}

/* Tablet Portrait (768px - 1024px) */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
    
    h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .stat {
        text-align: center;
        min-width: 100px;
    }
    
    /* Service Cards */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 48px;
        height: 48px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    /* Location Cards */
    .location-card {
        padding: 1.5rem;
    }
    
    /* Stats Cards */
    .stat-number {
        font-size: 2rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1.5rem;
    }
    
    .footer-grid {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
}

/* Mobile Large (480px - 768px) */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .service-tags {
        gap: 0.375rem;
    }
    
    .tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    .img-placeholder {
        height: 200px;
    }
}

/* Mobile Small (below 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.35rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat {
        min-width: 80px;
    }
    
    .stat h3 {
        font-size: 1.25rem;
    }
    
    .stat p {
        font-size: 0.7rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 1rem;
    }
    
    .service-icon i {
        font-size: 1.25rem;
    }
    
    .location-card {
        padding: 1rem;
    }
    
    .location-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .location-icon i {
        font-size: 1.25rem;
    }
    
    .testimonial-text {
        font-size: 0.875rem;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
    }
    
    .footer-logo {
        font-size: 1.25rem;
    }
    
    .social-links a {
        width: 36px;
        height: 36px;
    }
}

/* Fix for very small devices (below 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.8125rem;
    }
    
    .stat h3 {
        font-size: 1rem;
    }
    
    .stat p {
        font-size: 0.65rem;
    }
}

/* Landscape mode for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero-grid {
        gap: 1.5rem;
    }
    
    .hero-stats {
        margin-top: 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
}

/* Tablet specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-grid {
        gap: 2rem;
    }
}

/* Desktop large screens (above 1440px) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    h1 {
        font-size: 4rem;
    }
    
    h2 {
        font-size: 2.75rem;
    }
}

/* Fix for sticky navbar on mobile */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-links {
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
}

/* Improve touch targets on mobile */
@media (max-width: 768px) {
    .nav-links a,
    .footer-links a,
    .social-links a,
    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Smooth scrolling for all devices */
html {
    scroll-behavior: smooth;
}

/* Better image handling */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .hero-buttons,
    .btn,
    .contact-form {
        display: none;
    }
    
    .container {
        padding: 0;
        max-width: 100%;
    }
    
    body {
        color: black;
    }
}
