/* 
 * Digital Visual 2026 Modern Aesthetics (Light Theme)
 * Light grey/white, glassmorphism, fluid grids, and rich typography.
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg-color: #f7f9fa;
  --panel-bg: rgba(255, 255, 255, 0.8);
  --panel-border: rgba(0, 0, 0, 0.08);
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --accent-primary: #3899FE;
  --accent-gradient: linear-gradient(135deg, #3899FE, #7506C2);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --glass-shadow: 0 8px 32px 0 rgba(30, 41, 59, 0.06);
  --glass-blur: blur(16px);
  --border-radius: 16px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-width: 320px;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  letter-spacing: -0.02em;
}

h2 { font-size: clamp(2rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 1.75rem); }
p { color: var(--text-secondary); margin-bottom: 1.5rem; }

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}
a:hover { opacity: 0.8; }

/* Structural Wrappers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 249, 250, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--panel-border);
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  flex-direction: column;
}

.logo-container a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.logo-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

nav a:hover, nav li.selected a {
  color: var(--accent-primary);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition-smooth);
}

nav a:hover::after, nav li.selected a::after {
  width: 100%;
}

.contact-btn {
  background: var(--accent-gradient);
  color: #fff !important;
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(56, 153, 254, 0.3);
}

.contact-btn::after { display: none !important; }
.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 153, 254, 0.5);
  color: #fff !important;
}

/* Hero Section */
.hero {
  padding: 8rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56,153,254,0.1) 0%, rgba(117,6,194,0) 70%);
  z-index: -1;
  border-radius: 50%;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 1.5rem auto 3rem;
}

/* Grid Layouts for Content Elements */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin: 4rem 0;
  align-items: center;
}

/* Glass Cards */
.glass-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 16px 40px rgba(30, 41, 59, 0.1);
}

.glass-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  object-fit: cover;
  display: block;
}

.glass-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: var(--text-primary);
}

.glass-card a.read-more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Footer modern */
footer {
  background: #ffffff;
  border-top: 1px solid var(--panel-border);
  padding: 4rem 0 2rem;
  margin-top: 6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li { margin-bottom: 0.8rem; }
.footer-col a { color: var(--text-secondary); }
.footer-col a:hover { color: var(--accent-primary); }

.copy {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--panel-border);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Utilities & Legacy Classes overrides */
.clear { clear: both; }
.divider {
  width: 100%;
  height: 1px;
  background: var(--panel-border);
  margin: 4rem 0;
}
.shadowme { border-radius: 8px; max-width:100%; height:auto; display:block; }
img { max-width: 100%; height: auto; }

/* Content Formatting (e.g. within articles ) */
.content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.content-section h2 { margin-top: 3rem; color: var(--text-primary); }
.content-section ul {
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}
.content-section ul li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}
.content-section p { font-size: 1.1rem; }

/* Responsive Adjustments */
@media (max-width: 768px) {
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }
  .contact-btn { margin-top: 1rem; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate { animation: fadeInUp 0.8s ease forwards; }
