/* Modern, Sleek Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: #f4f6f8;
  color: #333;
  line-height: 1.6;
}

/* Skip to main content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

header {
  position: relative;
  color: #fff;
  padding: 100px 20px;
  text-align: center;
  letter-spacing: 1px;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
              url('https://d2g4iwshf24scx.cloudfront.net//Visa-Images/Dubai%20Visa_121/dubai-visa-banner-image.jpg') no-repeat center;
  background-size: cover;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

header h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.8em);
  font-weight: 300;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header p {
  margin: 5px 0 0;
  font-size: clamp(1rem, 2.5vw, 1.1em);
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: #fff;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.tab-button {
  background: none;
  border: none;
  padding: 15px 25px;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  position: relative;
  min-width: 120px;
}

.tab-button.active {
  color: #1a1a1a;
  border-bottom: 3px solid #1a1a1a;
  font-weight: 600;
}

.tab-button:hover {
  color: #1a1a1a;
  background-color: #f8f9fa;
}

.tab-button:focus {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}

.tab-content {
  display: none;
  padding: 30px 20px;
  background: #fff;
  margin: 20px auto;
  max-width: 1200px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  animation: fadeIn 0.3s ease-in;
}

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

.tab-content.active {
  display: block;
}

/* Home Tab Layout: Two Columns */
.home-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.home-left {
  flex: 1 1 60%;
  min-width: 280px;
}

.home-right {
  flex: 1 1 35%;
  min-width: 280px;
}

/* Content Sections */
.content-section {
  line-height: 1.6;
  font-size: 1em;
  color: #444;
  margin-bottom: 40px;
}

.content-section h2 {
  margin-top: 0;
  font-size: 1.8em;
  color: #1a1a1a;
  border-bottom: 2px solid #1a73e8;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.content-section h3 {
  margin-top: 0;
  font-size: 1.6em;
  color: #1a1a1a;
}

.content-section ul {
  padding-left: 20px;
}

.content-section li {
  margin-bottom: 10px;
}

/* Tech News Cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.news-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-content {
  padding: 15px;
}

.news-title {
  font-size: 1.2em;
  font-weight: 500;
  margin: 0 0 10px;
  color: #1a1a1a;
}

.news-description {
  font-size: 0.95em;
  color: #555;
  line-height: 1.4;
  margin-bottom: 15px;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.85em;
  color: #666;
}

.news-date {
  background: #f8f9fa;
  padding: 4px 8px;
  border-radius: 4px;
}

.news-source {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.news-link {
  text-decoration: none;
  color: #1a73e8;
  font-weight: 500;
  transition: opacity 0.3s ease;
  display: inline-block;
  padding: 8px 16px;
  background: #f8f9fa;
  border-radius: 4px;
}

.news-link:hover {
  opacity: 0.8;
  background: #e9ecef;
}

.loading,
.error {
  text-align: center;
  padding: 20px;
  font-style: italic;
  color: #666;
}

/* Currency Section */
.currency-section {
  max-width: 1000px;
  margin: 0 auto;
}

.currency-section h3 {
  text-align: center;
  margin-bottom: 30px;
  color: #1a1a1a;
  font-size: 1.5em;
}

.currency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.currency-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.currency-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.currency-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.currency-symbol {
  font-size: 1.5em;
  font-weight: bold;
}

.currency-code {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.currency-rate {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.currency-name {
  font-size: 0.9em;
  opacity: 0.9;
}

.currency-footer {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.currency-footer small {
  display: block;
  margin-bottom: 15px;
  color: #666;
}

.refresh-btn {
  background: #1a73e8;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease;
}

.refresh-btn:hover {
  background: #1557b0;
}

/* Enhanced Callback Form */
form {
  background: #fff;
  max-width: 500px;
  margin: 30px auto 0;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border: 1px solid #e0e0e0;
}

.form-group {
  margin-bottom: 20px;
}

form label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95em;
  font-weight: 600;
  color: #333;
}

.required {
  color: #dc3545;
  font-weight: bold;
}

form input, form select, form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1em;
  outline: none;
  transition: all 0.3s ease;
  background: #fff;
}

form input:focus, form select:focus, form textarea:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

form input:invalid, form select:invalid {
  border-color: #dc3545;
}

form input:valid, form select:valid {
  border-color: #28a745;
}

form button {
  width: 100%;
  padding: 14px;
  margin-top: 20px;
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

form button:hover {
  background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

form button:active {
  transform: translateY(0);
}

form button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.loading-spinner {
  display: inline-block;
  margin-left: 8px;
}

.form-message {
  text-align: center;
  margin-top: 15px;
  font-weight: 500;
  padding: 10px;
  border-radius: 6px;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background: #d4edda;
  color: #155724;
  border: 1px solid #d4edda;
}

/* Goals & Services Layout with Image */
.side-by-side {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.side-by-side img {
  max-width: 40%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.side-by-side img:hover {
  transform: scale(1.02);
}

.side-by-side .text-content {
  flex: 1;
  min-width: 250px;
}

.side-by-side .text-content h3 {
  color: #1a1a1a;
  margin-bottom: 15px;
  font-size: 1.5em;
}

/* Footer with Custom Social Media Icons */
footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  margin-top: 50px;
}

footer .social-icons {
  margin-bottom: 20px;
}

footer .social-icon {
  display: inline-block;
  width: 45px;
  height: 45px;
  margin: 0 10px;
  border-radius: 50%;
  text-align: center;
  color: #fff;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  filter: brightness(0) invert(1);
}

footer .social-icon:hover {
  transform: scale(1.1);
  filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(200deg);
}

/* Responsive Design */
@media (max-width: 768px) {
  .tabs {
    flex-direction: column;
  }
  
  .tab-button {
    min-width: auto;
    width: 100%;
  }
  
  .home-container {
    flex-direction: column;
  }
  
  .side-by-side {
    flex-direction: column;
    text-align: center;
  }
  
  .side-by-side img {
    max-width: 100%;
    margin-bottom: 20px;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .currency-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .currency-card {
    padding: 15px;
  }
  
  .currency-rate {
    font-size: 1.5em;
  }
  
  form {
    margin: 20px 10px;
    padding: 20px;
  }
  
  header {
    padding: 60px 20px;
  }
}

@media (max-width: 480px) {
  .tab-content {
    padding: 20px 15px;
    margin: 15px 10px;
  }
  
  .content-section h2 {
    font-size: 1.5em;
  }
  
  .content-section h3 {
    font-size: 1.3em;
  }
  
  .currency-grid {
    grid-template-columns: 1fr;
  }
  
  .news-meta {
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
  }
}

/* Print Styles */
@media print {
  .tabs, footer, form {
    display: none;
  }
  
  .tab-content {
    display: block !important;
    box-shadow: none;
    margin: 0;
    padding: 20px;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .tab-button {
    border: 2px solid #000;
  }
  
  .tab-button.active {
    background: #000;
    color: #fff;
  }
  
  form input, form select, form textarea {
    border: 2px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
   