/* ============================================================
   Cloud Utility Lab — Premium Public Styles
   ============================================================ */

:root {
  --bg: #0b0f19;
  --bg-card: #151b2b;
  --bg-input: #0f1523;
  --border: #232d42;
  --text: #f8fafc;
  --text-dim: #94a3b8;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.15);
  --radius: 16px;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }

/* --- Header --- */
.site-header {
  background: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 16px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; color: #fff;
}
.logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
  box-shadow: 0 0 20px var(--primary-glow);
}
.main-nav { display: flex; gap: 24px; }
.main-nav a {
  color: #fff; 
  font-size: 15px; 
  font-weight: 500;
  transition: color 0.2s ease;
  text-transform: uppercase;
}
.main-nav a:hover { color: var(--primary); }

/* --- Layout --- */
.site-main { flex: 1; width: 100%; }
.container { max-width: 1100px; margin: 0 auto; padding: 40px 24px; }

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* --- Hero Section --- */
.hero-section {
  text-align: center; padding: 80px 24px;
  background: radial-gradient(circle at 50% 0%, var(--primary-glow) 0%, transparent 60%);
}
.hero-section h1 {
  font-size: 48px; font-weight: 800; line-height: 1.1;
  margin-bottom: 20px; letter-spacing: -1px;
}
.hero-section h1 span {
  background: linear-gradient(135deg, #a855f7, var(--primary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-section p {
  font-size: 18px; color: var(--text-dim); max-width: 600px; margin: 0 auto 32px;
}

/* --- Search Bar --- */
.search-bar {
  max-width: 500px; margin: 0 auto; position: relative;
}
.search-bar input {
  width: 100%; padding: 16px 24px; font-size: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 999px; color: var(--text); outline: none;
  transition: all 0.3s ease;
}
.search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

/* --- Tool Cards Grid --- */
.section-title {
  font-size: 24px; font-weight: 700; margin-bottom: 24px; color: #fff;
}
.tools-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.tool-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.tool-card:hover {
  transform: translateY(-4px); border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.tool-card h3 { font-size: 18px; font-weight: 600; color: #fff; }
.tool-card p { font-size: 14px; color: var(--text-dim); flex: 1; }
.tool-card .btn-link {
  color: var(--primary); font-weight: 600; font-size: 14px;
  display: flex; align-items: center; gap: 6px;
}
.tool-card .btn-link:hover { color: #a855f7; }

/* --- Tool Page Layout --- */
.tool-header { margin-bottom: 32px; }
.tool-header h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.tool-header p { font-size: 18px; color: var(--text-dim); }
.breadcrumbs { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }
.breadcrumbs a:hover { color: var(--primary); }

/* --- Tool Interface Box --- */
.tool-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  margin-bottom: 40px; box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.tool-input {
  width: 100%; 
  padding: 14px; 
  font-size: 16px;
  background: var(--bg-input); 
  color: var(--text);
  border: 1px solid var(--border); 
  border-radius: 10px;
  resize: vertical; 
  font-family: inherit; 
  outline: none;
  box-sizing: border-box;
}
.tool-input:focus { border-color: var(--primary); }
.result-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px; margin-top: 24px;
}
.result-card {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; text-align: center;
}
.result-value {
  display: block; font-size: 32px; font-weight: 800;
  color: var(--primary); margin-bottom: 4px;
}
.result-label { font-size: 13px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }

/* --- Article Content --- */
.article-content {
  font-size: 16px; color: var(--text-dim); line-height: 1.8;
}
.article-content h2 { color: #fff; font-size: 24px; margin: 32px 0 16px; }
.article-content p { margin-bottom: 16px; }
.article-content ul { margin-bottom: 16px; padding-left: 24px; }

/* --- Footer --- */
.site-footer {
  background: var(--bg-card); border-top: 1px solid var(--border);
  margin-top: 80px; padding: 48px 24px 24px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px;
}
.footer-brand p { color: var(--text-dim); margin-top: 12px; max-width: 300px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-dim); font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  max-width: 1100px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid var(--border); text-align: center;
  font-size: 13px; color: var(--text-dim);
}

@media (max-width: 768px) {
  .hero-section h1 { font-size: 36px; }
  .tool-header h1 { font-size: 28px; }
  .footer-inner { flex-direction: column; }
}

/* --- Educational Content Styling (Premium Article Look) --- */
.article-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 40px;
}
.article-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 32px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.article-content h2:first-child {
  margin-top: 0;
}
.article-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #e2e8f0;
  margin: 24px 0 12px;
}
.article-content p {
  margin-bottom: 16px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.8;
}
.article-content ul, .article-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
  color: var(--text-dim);
}
.article-content li {
  margin-bottom: 8px;
}
.article-content strong {
  color: #fff;
  font-weight: 600;
}
.article-content code {
  background: var(--bg-input);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 14px;
  color: #a855f7;
}


/* ============================================================
   Premium Animations & New Sections
   ============================================================ */

/* --- Glowing Orbs Animation --- */
.hero-section {
  position: relative;
  overflow: hidden;
}
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.6;
  animation: floatOrb 10s infinite ease-in-out alternate;
}
.orb-1 {
  width: 400px; height: 400px;
  background: rgba(99, 102, 241, 0.4); /* Primary color */
  top: -100px; left: 10%;
}
.orb-2 {
  width: 300px; height: 300px;
  background: rgba(168, 85, 247, 0.3); /* Purple color */
  bottom: -50px; right: 15%;
  animation-delay: -5s;
}
@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -50px) scale(1.1); }
}

/* --- New Section Layouts --- */
.section-container {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 12px;
}
.section-header p {
  color: var(--text-dim); font-size: 16px; max-width: 600px; margin: 0 auto;
}

/* --- Feature Cards --- */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 32px; border-radius: 20px; text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border-color: rgba(99, 102, 241, 0.3);
}
.feature-icon {
  width: 60px; height: 60px; margin: 0 auto 20px;
  background: rgba(99, 102, 241, 0.1); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 24px;
}
.feature-card h3 { font-size: 20px; color: #fff; margin-bottom: 12px; }
.feature-card p { color: var(--text-dim); font-size: 15px; line-height: 1.6; }

/* --- Category Grid --- */
.category-grid {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.category-pill {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 12px 24px; border-radius: 999px; color: var(--text);
  font-weight: 500; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px;
}
.category-pill:hover {
  background: var(--primary); border-color: var(--primary); color: #fff;
  transform: translateY(-2px);
}

/* --- Footer Styling --- */
.site-footer {
  background: #080b13; border-top: 1px solid var(--border);
  padding: 60px 24px 24px; margin-top: 80px;
}
.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand-col .logo { margin-bottom: 16px; display: inline-flex; }
.footer-brand-col p { color: var(--text-dim); font-size: 14px; line-height: 1.7; margin-bottom: 24px; max-width: 300px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%; background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); transition: all 0.2s ease; border: 1px solid var(--border);
}
.social-links a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.footer-col h4 { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 20px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { color: var(--text-dim); font-size: 14px; transition: color 0.2s ease; }
.footer-col ul a:hover { color: var(--primary); }

.footer-bottom {
  max-width: 1100px; margin: 60px auto 0; padding-top: 24px;
  border-top: 1px solid var(--border); text-align: center;
  font-size: 13px; color: var(--text-dim);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   New H2/H3 Colors & Hero Animations
   ============================================================ */

/* --- 1. Global H2 & H3 Gradient Color (Public Site Only) --- */
.site-main h2, 
.site-main h3,
.article-content h2, 
.article-content h3,
.section-header h2 {
    background: linear-gradient(135deg, #a855f7, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block; /* Ensures gradient covers the text perfectly */
}

/* --- 2. Shimmering Animation for "Smarter Work" Text --- */
.hero-section h1 span {
    background: linear-gradient(135deg, #a855f7, #6366f1, #a855f7);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3s linear infinite;
}

@keyframes shimmerText {
    to { background-position: 200% center; }
}

/* --- 3. Floating Animation for Hero Headline --- */
.hero-section h1 {
    animation: floatHeading 6s ease-in-out infinite;
}

@keyframes floatHeading {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* --- 4. Glowing Pulse Animation for Search Bar --- */
.search-bar input {
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px rgba(99, 102, 241, 0.1); border-color: var(--border); }
    100% { box-shadow: 0 0 25px rgba(99, 102, 241, 0.4); border-color: rgba(99, 102, 241, 0.5); }
}

/* --- Respect Users with Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .hero-section h1 span, .hero-section h1, .search-bar input {
        animation: none;
    }
}
