/* =============================================
   NOMEINAMERICA.COM – Global Styles
   ============================================= */

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

:root {
  --red:    #B22234;
  --white:  #FFFFFF;
  --blue:   #3C3B6E;
  --gold:   #F5C518;
  --overlay-dark: rgba(0, 0, 10, 0.55);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --radius: 16px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  background: #0d0d1a;
}

/* =============================================
   CANVAS FLAG BACKGROUND
   ============================================= */

#flagCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* =============================================
   DARK OVERLAY
   ============================================= */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: var(--overlay-dark);
  pointer-events: none;
}

/* =============================================
   MAIN CONTENT
   ============================================= */

.content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* =============================================
   HEADER
   ============================================= */

.site-header {
  text-align: center;
  padding: 80px 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.flag-badge {
  font-size: 64px;
  filter: drop-shadow(0 4px 20px rgba(180, 34, 52, 0.8));
  animation: pulse-flag 3s ease-in-out infinite;
}

@keyframes pulse-flag {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  50%       { transform: scale(1.08) rotate(2deg); }
}

.main-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow:
    0 2px 4px rgba(0,0,0,0.6),
    0 0 60px rgba(242, 197, 24, 0.35);
  background: linear-gradient(135deg, #ffffff 0%, #f5c518 40%, #ffffff 70%, #f5c518 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
  background-size: 300% 300%;
}

@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  max-width: 560px;
  letter-spacing: 0.01em;
  line-height: 1.6;
}

/* =============================================
   VIDEOS SECTION
   ============================================= */

.videos-section {
  margin-bottom: 64px;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 32px;
}

.video-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.video-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65), 0 0 30px rgba(245, 197, 24, 0.15);
}

.video-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

.video-caption {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
  text-align: center;
}

/* =============================================
   SOCIAL SECTION
   ============================================= */

.social-section {
  text-align: center;
  margin-bottom: 64px;
}

.social-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 28px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  letter-spacing: 0.04em;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  color: var(--white);
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.05);
  filter: brightness(1.15);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.social-btn:active {
  transform: translateY(-1px) scale(1.02);
}

/* Individual social colors */
.facebook  { background: rgba(24, 119, 242, 0.3); border-color: rgba(24, 119, 242, 0.5); }
.instagram { background: linear-gradient(135deg, rgba(214,41,118,0.3), rgba(250,126,30,0.3)); border-color: rgba(214,41,118,0.5); }
.tiktok    { background: rgba(18, 18, 18, 0.5); border-color: rgba(105, 201, 208, 0.4); }
.twitter   { background: rgba(15, 20, 25, 0.5); border-color: rgba(255,255,255,0.25); }
.youtube   { background: rgba(255, 0, 0, 0.25); border-color: rgba(255, 0, 0, 0.4); }
.threads   { background: rgba(50, 50, 50, 0.4); border-color: rgba(255,255,255,0.2); }

/* Instagram hover sparkle */
.instagram:hover { box-shadow: 0 8px 24px rgba(214,41,118,0.3); }
.facebook:hover  { box-shadow: 0 8px 24px rgba(24,119,242,0.3); }
.youtube:hover   { box-shadow: 0 8px 24px rgba(255,0,0,0.3); }
.tiktok:hover    { box-shadow: 0 8px 24px rgba(105,201,208,0.3); }

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer strong {
  color: rgba(255, 255, 255, 0.75);
}

.footer-tagline {
  font-style: italic;
  color: rgba(245, 197, 24, 0.6) !important;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 640px) {
  .site-header { padding: 48px 0 40px; }
  .flag-badge { font-size: 48px; }
  .social-btn { padding: 10px 16px; font-size: 0.8rem; }
}
