:root {
    --primary-blue: #2563eb;
    --primary-dark: #0f172a;
    --primary-light: #eff6ff;
    --accent-teal: #0d9488;
    --accent-purple: #7c3aed;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-teal: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    --text-dark: #1e293b;
    --text-light: #64748b;
    --light-bg: #f8fafc;
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 30px 60px rgba(37, 99, 235, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.7;
    background-color: #f8fafc;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Premium Navigation */
.navbar {
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-scrolled {
    padding: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand span {
    color: var(--primary-blue);
    position: relative;
}

.navbar-brand span::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-teal);
    border-radius: 50%;
    bottom: 0;
    right: -10px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-blue);
    background: var(--primary-light);
}

/* Mobile Responsive Navbar */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    font-size: 1.5rem;
    color: var(--primary-blue);
    background: transparent;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2837, 99, 235, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 1rem;
    margin-top: 1rem;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--card-shadow);
    border-radius: 12px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    animation: fadeIn 0.3s ease;
    background: var(--light-bg);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary-blue);
    transform: translateX(5px);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-outline-primary {
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 10px 26px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

/* Mobile-specific styles */
@media (max-width: 992px) {
    .navbar {
        padding: 1rem 0;
    }
    
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        z-index: 1000;
        margin: 0 1rem;
        padding: 1.5rem;
        max-height: 80vh;
        overflow-y: auto;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        border-radius: 12px;
    }
    
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
        display: flex;
        align-items: center;
    }
    
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin: 0.5rem 0;
        border: 1px solid rgba(226, 232, 240, 0.8);
        box-shadow: none;
    }
    
    .dropdown-toggle::after {
        margin-left: auto;
    }
    
    /* Remove dropdown arrow on mobile */
    .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
    
    /* Mobile hamburger animation */
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2837, 99, 235, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 4L26 26M26 4L4 26'/%3e%3c/svg%3e");
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-collapse {
        margin: 0 0.5rem;
        padding: 1rem;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.75rem !important;
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .btn-primary, .btn-outline-primary {
        padding: 12px 20px;
        font-size: 1rem;
        margin-bottom: 20px;
    }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .navbar {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .navbar {
        background: rgba(15, 23, 42, 0.95);
        border-bottom-color: rgba(30, 41, 59, 0.5);
    }
    
    .navbar-collapse {
        background: var(--primary-dark);
        color: white;
    }
    
    .nav-link {
        color: #cbd5e1;
    }
    
    .nav-link:hover, .nav-link.active {
        color: white;
        background: rgba(37, 99, 235, 0.2);
    }
    
    .dropdown-menu {
        background: #1e293b;
    }
    
    .dropdown-item {
        color: #cbd5e1;
    }
    
    .dropdown-item:hover {
        background: rgba(37, 99, 235, 0.2);
        color: white;
    }
}

/* Smooth transition for dropdowns */
.dropdown-menu {
    transition: all 0.3s ease;
    transform-origin: top;
}

/* Active state for mobile menu */
.navbar-collapse.show {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}  

/* Footer */
.footer {
    background: var(--primary-dark);
    color: #cbd5e1;
    padding: 3rem 0 1.5rem;
}

.footer h5 {
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    position: relative;
    display: inline-block;
}

.footer h5::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background: var(--primary-blue);
    bottom: -6px;
    left: 0;
    border-radius: 3px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.9rem;
    line-height: 1.4;
}

.footer-links a:hover {
    color: white;
    transform: translateX(3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: #1e293b;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-links a:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

.email-link, .phone-link {
    color: var(--text-light);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    word-break: break-word;
}

.email-link:hover, .phone-link:hover {
    color: white;
    text-decoration: underline;
}

.address-text {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #94a3b8;
}

.contact-item h6 {
    font-size: 0.9rem;
    color: #e2e8f0;
    margin-bottom: 0.25rem;
}

.contact-item i {
    font-size: 1rem;
    min-width: 20px;
}

/* ===== RESPONSIVE STYLES FOR MOBILE DEVICES ===== */

/* Small devices (phones, 576px and up) */
@media (min-width: 576px) {
    .footer {
        padding: 3.5rem 0 2rem;
    }
    
    .footer h5 {
        font-size: 1.15rem;
        margin-bottom: 1.3rem;
    }
    
    .footer-links a {
        font-size: 0.92rem;
    }
    
    .email-link, .phone-link, .address-text {
        font-size: 0.92rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .footer {
        padding: 4rem 0 2rem;
    }
    
    .footer h5 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .footer h5::after {
        width: 35px;
        bottom: -7px;
    }
    
    .footer-links a {
        font-size: 0.95rem;
    }
    
    .footer-bottom {
        padding-top: 2.5rem;
        margin-top: 2.5rem;
        font-size: 0.9rem;
    }
    
    .social-links a {
        width: 38px;
        height: 38px;
    }
    
    .contact-item i {
        font-size: 1.1rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .footer {
        padding: 5rem 0 2rem;
    }
    
    .footer h5 {
        font-size: 1.25rem;
        margin-bottom: 1.8rem;
    }
    
    .footer h5::after {
        width: 40px;
        bottom: -8px;
    }
    
    .footer-links a {
        font-size: 1rem;
    }
    
    .footer-bottom {
        padding-top: 3rem;
        margin-top: 3rem;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .footer {
        padding: 6rem 0 2.5rem;
    }
    
    .footer h5 {
        font-size: 1.3rem;
    }
}

/* ===== MOBILE-SPECIFIC ADJUSTMENTS (below 768px) ===== */

/* Tablets in portrait mode */
@media (max-width: 767.98px) {
    .footer .row {
        margin-bottom: 1.5rem;
    }
    
    .footer .col-md-6 {
        margin-bottom: 2rem;
    }
    
    .footer .col-md-6:last-child {
        margin-bottom: 0;
    }
    
    .footer-bottom {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
}

/* Mobile phones (landscape and below) */
@media (max-width: 575.98px) {
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        display: block;
    }
    
    .footer h5::after {
        width: 25px;
        height: 2px;
        bottom: -5px;
    }
    
    .footer-links li {
        margin-bottom: 0.5rem;
    }
    
    .footer-links a {
        font-size: 0.88rem;
        padding: 0.2rem 0;
    }
    
    .footer-brand p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .contact-item {
        margin-bottom: 1.5rem;
    }
    
    .contact-item:last-child {
        margin-bottom: 0;
    }
    
    .contact-item h6 {
        font-size: 0.88rem;
    }
    
    .email-link, .phone-link {
        font-size: 0.88rem;
    }
    
    .address-text {
        font-size: 0.88rem;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 1.5rem;
        margin-top: 1rem;
    }
    
    .footer-bottom p {
        margin-bottom: 0.5rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1.5rem;
    }
    
    .social-links a {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
}

/* Very small phones (under 360px) */
@media (max-width: 359.98px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer h5 {
        font-size: 1rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .footer-links a i {
        margin-right: 0.4rem;
        font-size: 0.7rem;
    }
    
    .email-link, .phone-link {
        font-size: 0.85rem;
        word-break: break-all;
    }
    
    .address-text {
        font-size: 0.85rem;
    }
    
    .contact-item i {
        font-size: 0.9rem;
        min-width: 18px;
    }
    
    .footer-bottom {
        font-size: 0.75rem;
        padding-top: 1.2rem;
        margin-top: 0.8rem;
    }
}

/* ===== TOUCH-FRIENDLY STYLES FOR MOBILE ===== */
@media (hover: none) and (pointer: coarse) {
    .footer-links a {
        padding: 0.5rem 0;
        min-height: 44px; /* Minimum touch target size */
        display: flex;
        align-items: center;
    }
    
    .social-links a {
        min-width: 44px;
        min-height: 44px;
    }
    
    .email-link, .phone-link {
        padding: 0.3rem 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    /* Increase tap targets on mobile */
    .footer-links li {
        margin-bottom: 0.75rem;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .footer {
        background: #0f172a;
    }
    
    .social-links a {
        background: #1e293b;
    }
    
    .footer-bottom {
        border-top-color: #334155;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .footer {
        background: white !important;
        color: black !important;
        padding: 2rem 0 !important;
        border-top: 2px solid #000;
    }
    
    .footer h5 {
        color: black !important;
    }
    
    .footer-links a {
        color: #333 !important;
    }
    
    .email-link, .phone-link {
        color: #000 !important;
        text-decoration: none !important;
    }
    
    .footer-bottom {
        border-top: 1px solid #000;
    }
    
    .social-links {
        display: none !important;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1200px) {
    .contact-hero-section h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .contact-hero-section {
        padding: 140px 0 60px;
        text-align: center;
    }
    
    .contact-hero-section h1 {
        font-size: 2.5rem;
    }
    
    .contact-info-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-hero-section h1 {
        font-size: 2.2rem;
    }
    
    .section-padding {
        padding: 70px 0;
    }
    
    .contact-form-card {
        padding: 2rem;
    }
    
    .get-started-section {
        padding: 2rem;
    }
}