/* ==========================================================================
   Global Variables & Brand Theme
   ========================================================================== */
:root {
  /* Hero Image Adjustment Controls */
  --avatar-size: 210px;               
  --avatar-object-position: 50% 25%;  
  --avatar-border-width: 4px;         

  /* Palette Colors */
  --primary-navy: #0b2b5b;       
  --primary-dark: #061938;       
  --accent-cyan: #00a8cc;        
  --accent-cyan-light: #22d3ee;  
  --accent-gradient: linear-gradient(135deg, #00a8cc 0%, #22d3ee 100%);
  --navy-gradient: linear-gradient(135deg, #061938 0%, #0b2b5b 100%);
  
  --text-dark: #0f172a;
  --text-muted: #475569;
  --bg-light: #f4f7f9;          
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* ==========================================================================
   Navigation Header
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(11, 43, 91, 0.1);
  z-index: 1000;
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(6, 25, 56, 0.03);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--primary-navy);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent-cyan);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-navy);
  position: relative;
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 3px;
  background-color: var(--primary-navy);
  left: 0;
  transition: var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* ==========================================================================
   Hero Section & Layout
   ========================================================================== */
.hero-section {
  padding: 150px 0 90px;
  background: var(--navy-gradient);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 168, 204, 0.25) 0%, rgba(6, 25, 56, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1.2;
}

.hero-content h1 {
  font-size: 3.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-content h2 {
  font-size: 1.25rem;
  color: var(--accent-cyan-light);
  font-weight: 500;
  margin-bottom: 24px;
  display: inline-block;
  background: rgba(0, 168, 204, 0.12);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.hero-content p {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 35px;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  gap: 18px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 168, 204, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 168, 204, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: #ffffff;
  color: var(--primary-navy);
  transform: translateY(-2px);
}

/* ==========================================================================
   Editable Text Styles (Admin Mode)
   ========================================================================== */
.admin-text-tools {
  margin-top: 25px;
  display: flex;
  gap: 12px;
}

.btn-text-edit,
.btn-text-save {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-cyan-light);
  border: 1px solid var(--accent-cyan);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-text-save {
  background: var(--accent-cyan);
  color: #ffffff;
}

.btn-text-edit:hover,
.btn-text-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 168, 204, 0.3);
}

/* Visual cue when text elements become editable */
[contenteditable="true"] {
  outline: 2px dashed var(--accent-cyan);
  outline-offset: 4px;
  border-radius: 4px;
  background: rgba(0, 168, 204, 0.08);
}

/* ==========================================================================
   Hero Image Container & Owner Editing Controls
   ========================================================================== */
.hero-image {
  flex: 0.8;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Backing Glow Ring */
.hero-image::before {
  content: '';
  position: absolute;
  width: calc(var(--avatar-size) + 10px);
  height: calc(var(--avatar-size) + 10px);
  background: var(--accent-gradient);
  border-radius: 50%;
  opacity: 0.5;
  filter: blur(14px);
  z-index: 1;
}

/* Profile Picture */
.hero-image img {
  position: relative;
  z-index: 2;
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: 50%;
  object-fit: cover;
  object-position: var(--avatar-object-position);
  border: var(--avatar-border-width) solid var(--accent-cyan);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.hero-image:hover img {
  transform: scale(1.04);
  border-color: var(--accent-cyan-light);
}

/* Owner Edit Badge (Hidden by default for visitors) */
.edit-badge-btn {
  display: none; 
  position: absolute;
  bottom: 0px;
  right: 15px;
  z-index: 10;
  background: var(--primary-navy);
  color: #ffffff;
  border: 1px solid var(--accent-cyan);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.edit-badge-btn:hover {
  background: var(--accent-cyan);
  color: #ffffff;
}

/* ==========================================================================
   Cropper Modal Styling
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 25, 56, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.modal-content h3 {
  margin-bottom: 15px;
  color: var(--primary-navy);
}

.crop-container {
  max-height: 300px;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 8px;
}

.crop-container img {
  max-width: 100%;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cancel {
  background: #e2e8f0;
  color: var(--text-dark);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.btn-cancel:hover {
  background: #cbd5e1;
}

/* ==========================================================================
   Sections & Services Grid
   ========================================================================== */
.about-section,
.services-section,
.contact-section {
  padding: 100px 0;
}

.about-section {
  background-color: var(--bg-light);
}

.services-section h2,
.about-section h2,
.contact-section h2 {
  font-size: 2.25rem;
  margin-bottom: 20px;
  color: var(--primary-navy);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 45px;
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 35px 30px;
  border-radius: 12px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(11, 43, 91, 0.08);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
  color: var(--primary-navy);
  font-weight: 600;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
  font-size: 0.98rem;
}

.service-link {
  text-decoration: none;
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}

.service-link:hover {
  color: var(--primary-navy);
}

/* ==========================================================================
   Contact Form Section
   ========================================================================== */
.contact-section {
  background-color: var(--bg-light);
}

#contact-form {
  max-width: 620px;
  margin-top: 35px;
  background: var(--bg-card);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 25px rgba(11, 43, 91, 0.03);
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary-navy);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background-color: #fafafa;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.15);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--primary-dark);
  color: #94a3b8;
  padding: 35px 0;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-content p {
    margin: 0 auto 30px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .admin-text-tools {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 25px 0;
    display: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  }

  .nav-menu.active {
    display: block;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  #contact-form {
    padding: 25px;
  }
}
