/* ===== MAIN HEADER ===== */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    z-index: 999;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

/* ===== HEADER CONTAINER ===== */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    flex-wrap: wrap; /* improved responsiveness */
}

/* ===== LOGO ===== */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: translateY(-2px);
}

.logo-top {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.logo-image {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-title {
    font-size: 2.4rem;
    font-weight: 800;
    /* color: #0d47a1; */
    color:#02325e;
    letter-spacing: 2px;
    font-family: 'Playfair Display', 'Georgia', serif;
    position: relative;
    text-shadow: 
        2px 2px 0 #bbdefb,
        4px 4px 0 rgba(13, 71, 161, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-title::before {
    content: '◆';
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    color: #2962ff;
    font-size: 1rem;
    animation: sparkle 2s infinite;
}

.logo-title::after {
    content: '◆';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    color: #2962ff;
    font-size: 1rem;
    animation: sparkle 2s infinite 0.5s;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: translateY(-50%) scale(0.8); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.2); }
}

.logo-subtitle {
    font-size: 0.8rem;
    font-weight: 500;
    background: linear-gradient(90deg, 
        #02325e, 
        #02325e, 
        #1565c0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    font-family: 'Playfair Display', 'Georgia', serif;
    text-transform: uppercase;
    margin-top: 5px;
    font-style: italic;
    position: relative;
    padding-bottom: 5px;
}

.logo-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2979ff, transparent);
}

/* ===== NAVBAR ===== */
.navbar {
    display: flex;
    gap: 25px;
    flex-wrap: wrap; /* improved responsiveness */
}

.navbar a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar a:hover {
    color: #0074d9;
    background: rgba(0, 116, 217, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 116, 217, 0.15);
}

/* ===== ACTIVE LINK ===== */
.navbar a.active {
    color: #ff6600;
    font-weight: 700;
    position: relative;
}

.navbar a.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ff6600;
    border-radius: 2px;
}

/* ===== CONTACT CARDS ===== */
.nav-contact {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* improved responsiveness */
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e8f4ff;
    padding: 8px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: #d0e7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 78, 140, 0.15);
}

.contact-card i {
    font-size: 18px;
    color: #0d4e8c;
}

.contact-card div p {
    font-size: 13px;
    color: #004b8d;
    margin: 0;
}

.contact-card div h4 {
    font-size: 15px;
    color: #00345f;
    font-weight: 600;
    margin: 0;
}

/* ===== BODY PADDING FOR FIXED HEADER ===== */
body {
    padding-top: 120px;
}

/* ===== SMOOTH SCROLLING OFFSET ===== */
section {
    scroll-margin-top: 140px;
}

/* ===== FOOTER ===== */
.main-footer {
    background: #001f3f;
    color: #ffffff;
    padding: 40px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-top: 3px solid #0074d9;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-section h3 {
    color: #00bfff;
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #004080;
    font-weight: 600;
}

.footer-section p {
    color: #e6f2ff;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap; /* improved responsiveness */
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #ffffff;
    border-radius: 50%;
    color: #001f3f;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #00bfff;
}

.social-links a:hover {
    background: #00bfff;
    color: #ffffff;
    transform: translateY(-3px);
}

/* Quick Links */
.footer-links {
    list-style: none;
    padding: 0;
    flex-wrap: wrap; /* improved responsiveness */
    display: flex;
    gap: 12px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #e6f2ff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.footer-links a:hover {
    color: #00bfff;
    transform: translateX(5px);
}

.footer-links i {
    color: #00bfff;
    font-size: 14px;
    width: 20px;
}

/* Contact Information */
.contact-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
}

.contact-inline .contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #e6f2ff;
}

.contact-inline .contact-item i {
    color: #00bfff;
    font-size: 16px;
    min-width: 20px;
}

/* Footer Bottom */
.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid #004080;
    text-align: center;
    color: #b0c4de;
    font-size: 14px;
}
/* Footer phone & email link colors */
.contact-inline .contact-item a {
    color: #00ffcc; /* default link color */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Phone specific color */
.contact-inline .contact-item a[href^="tel"] {
    color: #fafcfd; /* light blue */
}

/* Email specific color */
.contact-inline .contact-item a[href^="mailto"] {
    color: #fafcfd; /* orange */
}

/* Hover effect */
.contact-inline .contact-item a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ===== FLOATING BUTTONS ===== */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.float-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn {
    background-color: #25D366;
    animation: pulse-whatsapp 2s infinite;
}

.email-btn {
    background-color: #EA4335;
}

.btn-tooltip {
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
}

.btn-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.8);
}

.float-btn:hover .btn-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== RESPONSIVE STYLES ===== */
/* Medium screens (Tablets) */
@media screen and (max-width: 1024px) {
    .header-container { padding: 16px 20px; }
    .logo { font-size: 26px; }
    .navbar { gap: 20px; }
    .navbar a { font-size: 16px; padding: 8px 12px; }
    .contact-card { padding: 8px 12px; }
    .contact-card div h4 { font-size: 14px; }
    .nav-contact { gap: 12px; }
    .footer-container { gap: 30px; padding: 0 20px; }
    .contact-inline { gap: 20px; }
}

/* Small screens (Tablets portrait & large phones) */
@media screen and (max-width: 768px) {
    body { padding-top: 120px; }
    .header-container { flex-wrap: wrap; padding: 15px 20px; gap: 15px; }
    .logo { font-size: 24px; flex: 1; min-width: 200px; }
    .nav-contact { display: flex; flex: 2; justify-content: flex-end; gap: 10px; }
    .contact-card { min-width: 150px; padding: 6px 10px; }
    .contact-card i { font-size: 16px; }
    .contact-card div p { font-size: 11px; }
    .contact-card div h4 { font-size: 12px; }
    .navbar { width: 100%; order: 3; justify-content: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(0,0,0,0.1); gap: 15px; }
    .navbar a { font-size: 15px; padding: 6px 10px; }
    .footer-container { grid-template-columns: 1fr; gap: 30px; }
    .footer-section { text-align: center; padding: 20px; background: rgba(255,255,255,0.03); border-radius: 12px; border: 1px solid rgba(0,64,128,0.3); }
    .social-links { justify-content: center; }
    .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
    .footer-links li { margin-bottom: 0; }
    .footer-links a { padding: 5px 10px; background: rgba(255,255,255,0.05); border-radius: 4px; }
    .contact-inline { justify-content: center; gap: 15px; }
    .contact-item { flex-direction: column; text-align: center; gap: 5px; }
    .contact-item i { margin-bottom: 5px; }
    .floating-buttons { bottom: 20px; right: 20px; }
    .float-btn { width: 55px; height: 55px; font-size: 24px; border: 2px solid white; box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
    .float-btn:hover { transform: scale(1.1) translateY(-5px); }
}

/* Extra small screens */
@media screen and (max-width: 576px) {
    
    .header-container { flex-direction: column; gap: 12px; padding: 12px 15px; }
    .logo { width: 100%; text-align: center; font-size: 22px; margin-bottom: 5px; }
    .nav-contact { width: 100%; justify-content: center; flex-wrap: wrap; gap: 8px; }
    .contact-card { min-width: 140px; justify-content: center; }
    .navbar { width: 100%; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 5px; padding-top: 8px; }
    .navbar a { font-size: 14px; padding: 5px 8px; }
    section { scroll-margin-top: 150px; }
    .main-footer { padding: 30px 15px; }
    .footer-links { gap: 10px; }
    .footer-links a { font-size: 14px; }
    .contact-item span { font-size: 12px; }
    .footer-bottom { font-size: 12px; padding: 15px 10px; }
    .floating-buttons { bottom: 15px; right: 15px; }
    .float-btn { width: 50px; height: 50px; font-size: 22px; }
}

/* Extra small phones */
@media screen and (max-width: 480px) {
     body {
    padding-top: 155px;
  }
    .header-container { padding-top: 20px; padding-bottom: 12px; }
}
@media screen and (max-width: 400px) {

  /* BODY OFFSET */
  body {
    padding-top: 115px;
  }

  /* HEADER */
  .main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    z-index: 999;
  }

  .header-container {
    flex-direction: column;
    align-items: center;
    padding: 6px 10px;
    gap: 6px;
  }

  /* LOGO */
  .logo-top {
    gap: 6px;
  }

  .logo-image {
    width: 40px;
    height: 40px;
  }

  .logo-title {
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-shadow: none;
  }

  .logo-subtitle {
    font-size: 0.65rem;
    letter-spacing: 2px;
    margin-top: 1px;
  }

  .logo-title::before,
  .logo-title::after {
    display: none;
  }

  /* CONTACT */
  .nav-contact {
    width: 100%;
    justify-content: center;
    gap: 6px;
  }

  .contact-card {
    padding: 4px 8px;
    border-radius: 6px;
  }

  .contact-card i {
    font-size: 14px;
  }

  .contact-card div p {
    font-size: 10px;
  }

  .contact-card div h4 {
    font-size: 11px;
    font-weight: 600;
  }

  /* NAVBAR */
  .navbar {
    width: 100%;
    justify-content: center;
    gap: 6px;
    padding-top: 4px;
    border-top: 1px solid #eee;
  }

  .navbar a {
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 4px;
  }

  .navbar a.active::after {
    height: 2px;
    bottom: -2px;
  }
}

/* Ultra small screens */
@media screen and (max-width: 375px) {
    .header-container { padding-top: 22px; }
    .logo { font-size: 20px; }
    .nav-contact { flex-direction: column; align-items: center; }
    .contact-card { width: 100%; max-width: 200px; justify-content: flex-start; }
    .navbar { gap: 8px; }
    .navbar a { font-size: 13px; padding: 4px 6px; }
    .float-btn { width: 45px; height: 45px; font-size: 20px; }
}

/* ===== OTHER ENHANCEMENTS ===== */
.logo, .navbar a, .contact-card, .social-links a, .footer-links a, .float-btn {
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* iOS Safari fix */
@supports (-webkit-touch-callout: none) {
    .navbar {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

/* High contrast */
@media (prefers-contrast: high) {
    .navbar a { border: 2px solid transparent; }
    .navbar a.active { border: 2px solid #ff6600; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .logo, .navbar a, .contact-card, .social-links a, .footer-links a, .float-btn {
        transition: none;
    }
    .float-btn:hover { transform: none; }
    .navbar a:hover { transform: none; }
    html { scroll-behavior: auto; }
}


