/* Base Layout - Golden Ratio for spacing */
:root {
--golden-ratio: 1.618;
--space-unit: 8px;
--color-primary: #0B1E3F;
--color-primary-dark: #0a1a36;
--color-accent: #FFD700;
--color-accent-dark: #e6c200;
--color-bg: #ffffff;
--color-border: #e5e7eb;
--color-text: #2b2b2b;
--color-muted: #6b7280;
--font-primary: 'Inter', sans-serif;
--font-secondary: 'Playfair Display', serif;
}

.test::before {
  content: "⚠️ Beta Feature: May not work as expected.";
  display: block;
  font-size: calc(var(--space-unit) * 1.5);
  color: var(--color-accent);
  background-color: var(--color-primary-dark);
  padding: calc(var(--space-unit) * 1) calc(var(--space-unit) * 1.5);
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-primary);
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.test {
  border: 1px solid var(--color-border);
  padding: calc(var(--space-unit) * 2);
  margin: calc(var(--space-unit) * 2) 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-primary);
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

*{
  font-family: var(--font-secondary);
}

body {
user-select: none;
-webkit-user-select: none; /* Safari */
-moz-user-select: none;    /* Firefox */
-ms-user-select: none;
margin: 0;
font-family: 'Inter', sans-serif;
display: flex;
flex-direction: column;
align-items: center;
min-height: auto;
background: #f8f9fb;
color: var(--color-text);
padding: calc(var(--space-unit) * 4);
overflow-x: hidden;
line-height: 1.618; /* Golden ratio for readability */
}

h1, h2, h3, h4 {
font-family: 'Playfair Display', serif;
color: var(--color-primary);
text-align: center;
margin-bottom: calc(var(--space-unit) * 2);
animation: fadeInDown 1s ease;
}

/* Sections balanced with golden ratio */
.section {
width: 100%;
max-width: 1100px;
margin-bottom: calc(var(--space-unit) * 8 * var(--golden-ratio));
animation: fadeIn 1.2s ease;
}

/* Palette grid using responsive fractions */
.palette {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: calc(var(--space-unit) * 2);
}
.color {
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
text-align: center;
transition: transform 0.3s;
}
.color:hover {
transform: translateY(-5px) scale(1.02);
}
.swatch {
height: 100px;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-weight: bold;
font-family: 'Playfair Display', serif;
font-size: 16px;
}
.label {
padding: 12px;
background: #fff;
font-size: 14px;
color: var(--color-text);
}

/* Typography samples */
.typography-samples {
display: grid;
gap: calc(var(--space-unit) * 2);
}
.sample {
padding: calc(var(--space-unit) * 3);
background: #fff;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
transition: box-shadow 0.3s, transform 0.3s;
}
.sample:hover {
transform: translateY(-5px);
box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.heading-sample {
font-family: 'Playfair Display', serif;
font-size: 24px;
color: var(--color-primary);
}
.body-sample {
font-family: 'Inter', sans-serif;
font-size: 16px;
color: var(--color-text);
}

/* UI Grid */
.ui-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: calc(var(--space-unit) * 2);
margin-top: calc(var(--space-unit) * 4);
}
.ui-element {
background: #fff;
border-radius: 12px;
padding: calc(var(--space-unit) * 3);
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
text-align: center;
transition: transform 0.3s, box-shadow 0.3s;
}
.ui-element:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Buttons */
button.primary, button.accent, button.secondary {
padding: 12px 20px;
border-radius: 8px;
font-family: 'Inter', sans-serif;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
button.primary {
background: var(--color-primary);
color: #fff;
border: none;
}
button.primary:hover {
background: var(--color-primary-dark);
transform: scale(1.05);
box-shadow: 0 4px 12px rgba(11,30,63,0.4);
}
button.accent {
background: var(--color-accent);
color: var(--color-primary);
border: none;
}
button.accent:hover {
background: var(--color-accent-dark);
transform: scale(1.05);
box-shadow: 0 4px 12px rgba(255,215,0,0.4);
}
button.secondary {
background: transparent;
border: 2px solid var(--color-primary);
color: var(--color-primary);
}
button.secondary:hover {
background: var(--color-primary);
color: #fff;
transform: scale(1.05);
}

/* Input fields */
input[type="text"] {
width: 100%;
padding: 12px 15px;
border: 1px solid var(--color-border);
border-radius: 8px;
font-size: 14px;
font-family: 'Inter', sans-serif;
transition: border-color 0.3s, box-shadow 0.3s;
}
input[type="text"]:focus {
border-color: var(--color-primary);
box-shadow: 0 0 0 3px rgba(11, 30, 63, 0.3);
outline: none;
}

/* Card */
.card {
padding: calc(var(--space-unit) * 3);
border: 1px solid var(--color-border);
border-radius: 12px;
background: #fff;
text-align: left;
transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Navbar */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
background: var(--color-primary);
color: #fff;
padding: 15px 25px;
border-radius: 12px;
margin-bottom: 30px;
flex-wrap: wrap;
animation: slideDown 0.8s ease;
}
.navbar h1 {
text-decoration: overline;
text-rendering: geometricPrecision;
font-family: 'Playfair Display', serif;
color: var(--color-accent);
margin: 0;
font-size: 20px;
}
.navbar nav {
display: flex;
flex-wrap: wrap;
gap: 15px;
margin-top: 10px;
}
.navbar nav a{
text-decoration: none;
color: #fff;
font-family: 'Inter', sans-serif;
font-size: 14px;
position: relative;
transition: color 0.3s;
}
.navbar nav a::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: -2px;
left: 0;
background: var(--color-accent);
transition: width 0.3s;
}
.navbar nav a:hover::after {
width: 100%;
}

/* Animations */
@keyframes fadeIn {
from {opacity: 0; transform: translateY(20px);}
to {opacity: 1; transform: translateY(0);}
}
@keyframes fadeInDown {
from {opacity: 0; transform: translateY(-20px);}
to {opacity: 1; transform: translateY(0);}
}
@keyframes slideDown {
from {opacity: 0; transform: translateY(-30px);}
to {opacity: 1; transform: translateY(0);}
}

/* Responsive */
@media (max-width: 600px) {
body {
    padding: calc(var(--space-unit) * 2);
}
.navbar {
    flex-direction: column;
    align-items: flex-start;
}
.navbar nav {
    margin-top: 10px;
    flex-direction: column;
    gap: 10px;
}
}

/* Loading Logo Animation */
@keyframes breath {
  0% {
    transform: scale(1);
    opacity: 0.8;
    filter: grayscale(0.4);
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
    filter:grayscale(0.2);
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
    filter: grayscale(0.4);
  }
}


/* Loading Screen */
#loading-screen {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: wait;
}

/* Logo with Blink Slide Animation */
#loading-logo {
  width: 120px;
  animation: breath 2s infinite ease-in-out;
}

#comming_soon {
    font-size: 4rem;
    color: var(--color-border);
    font-family: var(--font-secondary);
    text-align: center;
}

#comming_soon::after {
    content: 'Coming Soon...';
    display: block;
    text-align: center;
    font-size: 2rem;
    color: var(--color-border);
    font-family: var(--font-primary);
}
.wait{
align-items: center;
    display: flex;
    flex-flow: column;
}

.wait::before {
  content: "🎶 While we craft AbhiHub with care and purpose, enjoy this theme song — made just for you. Thank you for being part of our journey.";
  display: block;
  text-align: center;
  margin-bottom: calc(var(--space-unit) * 2);
  font-family: var(--font-primary);
  font-size: 1.1rem;
  color: var(--color-muted);
  padding: calc(var(--space-unit) * 0.5);
}

.wait audio {
  width: 100%;
  max-width: 400px;
  margin: calc(var(--space-unit) * 2) auto;
  display: block;
  background-color: var(--color-primary-dark);
  border: 2px solid var(--color-accent);
  border-radius: calc(var(--space-unit) * 1.5);
  padding: calc(var(--space-unit) * 1);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.wait audio:hover {
  box-shadow: 0 6px 24px rgba(255, 215, 0, 0.5);
  transform: scale(1.02);
}


audio::-webkit-media-controls-panel {
  background-color: var(--color-primary-dark);
  border-radius: calc(var(--space-unit) * 1);
  border: 1px solid var(--color-border);
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-pause-button {
  background-color: var(--color-accent);
  border-radius: 50%;
  transition: background 0.3s ease;
}

audio::-webkit-media-controls-play-button:hover,
audio::-webkit-media-controls-pause-button:hover {
  background-color: var(--color-accent-dark);
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
  color: var(--color-muted);
  font-family: var(--font-primary);
}

audio::-webkit-media-controls-volume-slider {
  accent-color: var(--color-accent);
}

/* Profile Card Layout */
.profile-card {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 32px;
}

/* Avatar */
.profile-avatar {
    width: 110px;
    height: 110px;
    background: var(--color-primary);
    border-radius: 50%;
    border: 3px solid var(--color-accent);
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-avatar span {
    font-size: 42px;
    font-family: var(--font-secondary);
    color: var(--color-accent);
}

/* Info Area */
.profile-info h2 {
    margin-bottom: 4px;
}

.profile-meta {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.4;
}

.muted {
    color: var(--color-muted);
    margin-bottom: 8px;
}

/* Buttons Row */
.profile-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
}

/* Mobile Responsive */
@media (max-width: 700px) {
    .profile-card {
        flex-direction: column;
        text-align: center;
    }

    .profile-meta span {
        display: block;
    }

    .profile-actions {
        width: 100%;
        justify-content: center;
    }
}
