:root {
    /* Dark Theme (Default) */
    --header-height: 88px;
    --bg-primary: #050505;
    --bg-secondary: #111111;
    --bg-tertiary: #191919;
    --bg-glass: rgba(17, 17, 17, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #e0e0e0;
    --text-secondary: #888888;
    --accent-color: #ffffff;
    --btn-primary-bg: linear-gradient(45deg, #333, #222);
    --btn-primary-text: var(--text-primary);
    --btn-primary-hover-bg: linear-gradient(45deg, #fff, #eee);
    --btn-primary-hover-text: #050505;
    --danger-color: #4d3334;
    --danger-color-text: #d28a8e;
    --danger-color-hover: #ff5252;
    /* Chat Demo Dark Theme Variables */
    --chat-bg: #1e1e1e;
    --chat-header-bg: #333333;
    --chat-border: rgba(255, 255, 255, 0.1);
    --chat-input-bg: #2c2c2c;
    --chat-input-text: #ffffff;
    --chat-placeholder-text: #888888;
    --chat-btn-color: #aaaaaa;
    --chat-send-btn-bg: #444444;
    --chat-send-btn-hover-bg: #555555;
    --chat-user-bubble-bg: #3a3a3a;
    --chat-user-bubble-text: #e0e0e0;
    --chat-ai-bubble-text: #d1d1d1;
    --chat-thinking-dot-bg: #888888;
    /* Blog Theme Variables */
    --blog-overlay-bg: linear-gradient(to top, rgba(5, 5, 5, 0.8) 0%, rgba(5, 5, 5, 0) 60%);
    --blog-text-primary: #ffffff;
    --blog-text-secondary: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] {
    /* Pro Light Theme */
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e9e9ec;
    --bg-glass: rgba(255, 255, 255, 0.5);
    --border-color: rgba(0, 0, 0, 0.1);
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --accent-color: #000000;
    --btn-primary-bg: linear-gradient(45deg, #222, #000);
    --btn-primary-text: #fff;
    --btn-primary-hover-bg: linear-gradient(45deg, #444, #222);
    --btn-primary-hover-text: #fff;
    /* Chat Demo Light Theme Variables */
    --chat-bg: #ffffff;
    --chat-header-bg: #f9f9f9;
    --chat-border: rgba(0, 0, 0, 0.1);
    --chat-input-bg: #e9e9ec;
    --chat-input-text: #1d1d1f;
    --chat-placeholder-text: #8e8e93;
    --chat-btn-color: #6e6e73;
    --chat-send-btn-bg: #d1d1d6;
    --chat-send-btn-hover-bg: #c7c7cc;
    --chat-user-bubble-bg: #007aff;
    --chat-user-bubble-text: #ffffff;
    --chat-ai-bubble-text: #1d1d1f;
    --chat-thinking-dot-bg: #b2b2b2;
    /* Blog Theme Variables */
    --blog-overlay-bg: linear-gradient(to top, rgba(245, 245, 247, 1) 0%, rgba(245, 245, 247, 0) 60%);
    --blog-text-primary: #1d1d1f;
    --blog-text-secondary: rgba(0, 0, 0, 0.7);
}
:root {
  --focus-outline-color: #1a5276;
  --selection-bg-color: black;
  --selection-text-color: white;
}
[data-theme="dark"] {
  --focus-outline-color: #2980b9;
  --selection-bg-color: white;
  --selection-text-color: black;
}
*:focus-visible { outline: 2px solid var(--focus-outline-color); outline-offset: 3px; border-radius: 6px; }
button, input, select, textarea, a, [tabindex] { border-radius: 6px; }
::selection { background-color: var(--selection-bg-color); color: var(--selection-text-color); }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400; /* regular weight, not too light */
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- REUSABLE COMPONENTS --- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-padding { padding: 120px 0; transition: background-color 0.3s ease; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 12px 24px; border-radius: 50px; font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 1rem; text-decoration: none; cursor: pointer; transition: all 0.3s ease; }
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); border: 1px solid transparent; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }
.btn-primary:hover { background: var(--btn-primary-hover-bg); color: var(--btn-primary-hover-text); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); }
.section-header { text-align: center; margin-bottom: 5rem; max-width: 750px; margin-left: auto; margin-right: auto; }
.section-header .tagline { display: inline-block; padding: 8px 18px; border-radius: 20px; background: var(--bg-tertiary); border: 1px solid var(--border-color); color: var(--text-primary); font-size: 0.9rem; font-weight: 500; margin-bottom: 1rem; letter-spacing: 1.5px; text-transform: uppercase; }
.section-header h2 { font-family: 'Poppins', sans-serif; font-size: 3rem; font-weight: 600; line-height: 1.2; margin-bottom: 1rem; letter-spacing: -1px; }
.section-header p { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.7; }

/* --- HEADER & NAVIGATION --- */
.header-container { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 1.5rem; }
.header-content { display: flex; justify-content: space-between; align-items: center; max-width: 1250px; margin: 0 auto; padding: 12px 1rem 12px 1.5rem; background: var(--bg-glass); border: 1px solid var(--border-color); border-radius: 100px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); transition: background-color 0.3s ease, border-color 0.3s ease; }
.logo { text-decoration: none; font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 600; color: var(--text-primary); }
.header-nav { display: flex; align-items: center; gap: 1.5rem; }
.header-nav-links { display: flex; align-items: center; gap: 1.5rem; }
.header-nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.3s ease; }
.header-nav-links a:hover { color: var(--text-primary); }

/* STABILITY FIX */
.profile-section { position: relative; }
.auth-state-wrapper { display: flex; align-items: center; justify-content: center; min-height: 48px; }

/* --- PROFESSIONAL DROPDOWN STYLES --- */
.profile-menu-trigger { cursor: pointer; display: flex; align-items: center; gap: 0.5rem; background-color: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 50px; padding: 4px 10px 4px 4px; transition: background-color 0.2s ease, border-color 0.2s ease; }
.profile-menu-trigger:hover, .profile-menu-trigger.open { background-color: var(--bg-secondary); border-color: var(--text-secondary); }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; display: block; border: none; }
.dropdown-caret { font-size: 1rem; color: var(--text-secondary); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease; }
.profile-menu-trigger.open .dropdown-caret { transform: rotate(180deg); color: var(--text-primary); }
.profile-dropdown { position: absolute; top: calc(100% + 20px); right: -17px; background-color: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 16px; z-index: 101; min-width: 260px; padding: 0.5rem; box-shadow: 0 12px 35px rgba(0,0,0,0.2); opacity: 0; transform: scale(0.98) translateY(-5px); pointer-events: none; transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); transform-origin: top right; }
.profile-dropdown.open { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
.profile-dropdown-header { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; }
#dropdown-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.dropdown-user-info { overflow: hidden; }
#dropdown-username { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#dropdown-email { font-size: 0.8rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dropdown-divider { height: 1px; background-color: var(--border-color); margin: 0.5rem 0.75rem; }
.profile-dropdown-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.75rem; border-radius: 8px; text-decoration: none; color: var(--text-primary); font-size: 0.9rem; background: none; border: none; width: 100%; cursor: pointer; text-align: left; transition: background-color 0.2s, color 0.2s; }
.profile-dropdown-item:hover { background-color: var(--bg-tertiary); }
.profile-dropdown-item ion-icon { font-size: 1.2rem; color: var(--text-secondary); transition: color 0.2s; }
.profile-dropdown-item:hover ion-icon { color: var(--text-primary); }
.profile-dropdown-item.logout { color: var(--danger-color-text); }
.profile-dropdown-item.logout:hover { background-color: transparent; color: var(--danger-color-hover); }
.profile-dropdown-item.logout:hover ion-icon { color: var(--danger-color-hover); }
.profile-dropdown-item.setting { justify-content: space-between; cursor: default; }
.profile-dropdown-item.setting:hover { background-color: transparent; }
.setting-label { display: flex; align-items: center; gap: 0.75rem; }
.theme-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.theme-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--bg-tertiary); transition: .3s; border-radius: 24px; border: 1px solid var(--border-color); }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 2px; bottom: 2px; background-color: var(--text-secondary); transition: .3s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 50%; }
input:checked + .slider { background-color: #000000; border-color: #000000; }
input:checked + .slider:before { transform: translateX(20px); background-color: #fff; }
.profile-dropdown > * { opacity: 0; transform: translateY(10px); transition: opacity 0.3s ease, transform 0.3s ease; }
.profile-dropdown.open > * { opacity: 1; transform: translateY(0); }
.profile-dropdown.open > *:nth-child(1) { transition-delay: 0.05s; }
.profile-dropdown.open > *:nth-child(2) { transition-delay: 0.1s; }
.profile-dropdown.open > *:nth-child(3) { transition-delay: 0.15s; }
.profile-dropdown.open > *:nth-child(4) { transition-delay: 0.2s; }
.profile-dropdown.open > *:nth-child(5) { transition-delay: 0.25s; }
.profile-dropdown.open > *:nth-child(6) { transition-delay: 0.3s; }
.profile-dropdown.open > *:nth-child(7) { transition-delay: 0.35s; }

/* --- HERO SECTION --- */
.hero { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; text-align: center; overflow: hidden; background-image: radial-gradient(ellipse at 50% 0%, rgba(20, 120, 230, 0.5), transparent 75%); background-repeat: no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, var(--bg-primary) 80%); z-index: 1; }
.hero-content { position: relative; z-index: 2; padding: 0 1rem; }
.hero h1 { font-family: 'Poppins', sans-serif; font-size: 4.5rem; font-weight: 700; line-height: 1.1; letter-spacing: -2.5px; margin-bottom: 1.5rem; }
.hero p { font-size: 1.25rem; color: var(--text-secondary); max-width: 700px; margin: 0 auto 2.5rem; }
.scroll-down-indicator { position: absolute; bottom: 30px; left: 50%; z-index: 2; color: var(--text-secondary); font-size: 1.8rem; animation: float 1.8s infinite ease-in-out; pointer-events: none; }
@keyframes float { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -8px); } }
@keyframes moveGrid { from { background-position: 0 0; } to { background-position: 50px 50px; } }
.hero-background-animation { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; --grid-line-color: rgba(255, 255, 255, 0.05); background-image: repeating-linear-gradient(0deg, var(--grid-line-color), var(--grid-line-color) 1px, transparent 1px, transparent 50px), repeating-linear-gradient(90deg, var(--grid-line-color), var(--grid-line-color) 1px, transparent 1px, transparent 50px); animation: moveGrid 10s linear infinite; mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%); -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%); }
[data-theme="light"] .hero-background-animation { --grid-line-color: rgba(0, 0, 0, 0.05); }

/* --- PROFESSIONAL SOLUTION CARD --- */
.philosophy-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 2rem; 
}
.solution-card {
    background: var(--bg-secondary);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.solution-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    padding: 2px; /* Bolder outline */
    background: linear-gradient(135deg, #4285F4, #DB4437, #F4B400, #0F9D58);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.solution-card:hover {
    transform: translateY(-8px);
}
.solution-card:hover::before {
    opacity: 1;
}
.solution-card .icon { 
    font-size: 2.5rem; 
    margin-bottom: 1.5rem; 
    color: var(--text-primary);
    transition: color 0.3s ease;
}
.solution-card:hover .icon {
    color: var(--accent-color);
}
.solution-card h3 { 
    font-size: 1.3rem; 
    margin-bottom: 1rem; 
    color: var(--text-primary);
}
.solution-card p { 
    color: var(--text-secondary); 
    line-height: 1.6; 
}

/* --- OTHER SECTIONS --- */
.feature-row { display: flex; align-items: center; gap: 4rem; }
.feature-row:not(:last-child) { margin-bottom: 120px; }
.feature-row:nth-child(even) { flex-direction: row-reverse; }
.text-col, .image-col, .chat-col { flex: 1; }
.feature-tag { display: inline-block; padding: 6px 14px; border-radius: 20px; background: var(--bg-tertiary); border: 1px solid var(--border-color); color: var(--text-primary); font-size: 0.9rem; font-weight: 500; margin-bottom: 1rem; }
h3.feature-title { font-size: 2.2rem; margin-bottom: 1rem; }
.image-col { border-radius: 30px; border: 1px solid var(--border-color); box-shadow: 0 20px 50px rgba(0,0,0,0.2); overflow: hidden; }
.image-col img { width: 100%; height: auto; display: block; }

/* --- CHAT DEMO STYLES --- */
.chat-col { flex: 1.2; position: relative; }
.chat-window-container { perspective: 1500px; cursor: default; }
.chat-window-container * {
    cursor: default !important;   /* keeps cursor default */
    user-select: none !important; /* disables text selection */
    -webkit-user-select: none !important; /* Safari/Chrome */
    -moz-user-select: none !important;    /* Firefox */
    -ms-user-select: none !important;     /* IE/Edge */
}
.chat-window { 
    background-color: var(--chat-bg); 
    border: 1px solid var(--chat-border); 
    border-radius: 25px 25px 35px 35px; /* Reduced radius for top corners */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4); 
    overflow: hidden; 
    transform: rotateY(10deg) rotateX(2deg) scale(0.95); 
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease; 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    height: 520px; 
}
.chat-window-container:hover .chat-window { transform: rotateY(0deg) rotateX(0deg) scale(1); }
.chat-window-header { background-color: var(--chat-header-bg); padding: 10px 12px; display: flex; align-items: center; border-bottom: 1px solid var(--chat-border); transition: background-color 0.3s ease, border-color 0.3s ease; flex-shrink: 0; }
.mac-dots { display: flex; gap: 8px; }
.mac-dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background-color: #ff5f56; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green { background-color: #27c93f; }
.chat-input-area {
    margin: 10px;
    padding: 10px 10px 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 25px;
    background-color: var(--chat-input-bg);
    transition: background-color 0.3s ease;
    border: 1px solid var(--chat-border);
    flex-shrink: 0;
}
.chat-input-area input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 3px 3px;
    color: var(--chat-input-text);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif !important;
}
.chat-input-area input::placeholder {
    color: var(--chat-placeholder-text);
}
.chat-buttons-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-btn {
    background-color: var(--chat-send-btn-bg); /* This adds the background color */
    border: none;
    color: var(--chat-btn-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center; /* Ensures the icon is perfectly centered */
    width: 35px;  /* Fixed width to create a circle */
    height: 35px; /* Fixed height to create a circle */
    padding: 0;   /* Remove default padding */
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
}

.chat-btn:hover {
    background-color: var(--chat-send-btn-hover-bg); /* Use the hover variable */
    color: var(--text-primary);
}
.chat-area { padding: 24px; flex-grow: 1; overflow-y: auto; }
.chat-flipper {
    transition: opacity 0.5s ease-in-out; /* This creates the smooth fade */
}
.chat-flipper.flipping {
    opacity: 0;
}
.message { margin-bottom: 24px; display: flex; flex-direction: column; opacity: 0; animation: fade-in 0.5s forwards; }
@keyframes fade-in { to { opacity: 1; } }
.message.user { align-items: flex-end; }
.message.ai { align-items: flex-start; }
.user-bubble { background-color: var(--chat-user-bubble-bg); color: var(--chat-user-bubble-text); padding: 10px 16px; border-radius: 22.5px; max-width: 80%; text-align: left; transition: background-color 0.3s ease, color 0.3s ease; }
.ai-bubble { color: var(--chat-ai-bubble-text); line-height: 1.6; max-width: 90%; transition: color 0.3s ease; }
.typing-cursor {
    display: inline-block;
    width: 14px;                             /* bigger */
    height: 14px;
    background-color: var(--chat-thinking-dot-bg);
    border-radius: 50%;
    margin-left: 4px;
    vertical-align: middle;
    animation: typing-blink 1.2s infinite;   /* smooth animation */
    transition: background-color 0.6s ease-in-out; /* smooth transition */
}

/* Smooth fade blink animation */
@keyframes typing-blink {
    0%, 100% { background-color: var(--chat-thinking-dot-bg); }
    50% { background-color: var(--accent-color); }
}
.ai-actions { display: flex; gap: 1rem; color: var(--text-secondary); margin-top: 8px; font-size: 1.1rem; }
.ai-actions ion-icon { cursor: pointer; transition: color 0.2s ease; }
.ai-actions ion-icon:hover { color: var(--text-primary); }
.thinking-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.thinking-indicator.visible {
  opacity: 1;
}

.thinking-dot {
  width: 14px;                /* bigger dot */
  height: 14px;
  background-color: var(--chat-thinking-dot-bg);
  border-radius: 50%;
  animation: smooth-blink 1.2s infinite ease-in-out;
}

/* Smooth fading blink animation */
@keyframes smooth-blink {
  0%, 100% { background-color: var(--chat-thinking-dot-bg); }
  50% { background-color: var(--accent-color); }
}
/* 🎯 Theme-Adaptive Animated Cursor */
.animated-cursor {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  z-index: 10;
  pointer-events: none;
  transition: 
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s,
    border-color 0.3s,
    background-color 0.3s;
  transform-origin: center center;
  background-color: transparent;
}

/* Inner dot */
.animated-cursor::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--accent-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s;
}

/* Click animation */
.animated-cursor.clicking {
  transform: scale(0.8);
  opacity: 0.8;
}

.animated-cursor.hovering {
  transform: scale(1.3);
  opacity: 0.9;
}

/* --- PROFESSIONAL BLOG SECTION --- */
.blog-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
}
.blog-card {
    position: relative;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 22px; /* Outer radius for the outline */
}
.blog-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, #4285F4, #DB4437, #F4B400, #0F9D58);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.blog-card:hover {
    transform: translateY(-8px);
}
.blog-card:hover::before {
    opacity: 1;
}
.blog-card-inner {
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}
.blog-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
}
.blog-card:hover .blog-card-bg {
    transform: scale(1.05);
}
.blog-card-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--blog-overlay-bg);
    z-index: 2;
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.blog-card-content {
    position: relative;
    padding: 2rem;
    z-index: 3;
    color: var(--blog-text-primary);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}
.blog-date, .blog-card p, .blog-card .blog-read-more {
    opacity: 0;
    max-height: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.blog-date {
    font-size: 0.8rem;
    color: var(--blog-text-secondary);
    margin-bottom: 0.5rem;
    transition-delay: 0.1s;
}
.blog-card h3 {
    font-size: 1.4rem;
    margin-bottom: -1rem; /* Pulls title down */
    line-height: 1.3;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.blog-card p {
    color: var(--blog-text-secondary);
    margin-top: 0.5rem;
    transition-delay: 0.05s;
}
.blog-card .blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-weight: 500;
    color: var(--blog-text-primary);
    line-height: 1;
    transition-delay: 0.1s;
}
.blog-card:hover .blog-date,
.blog-card:hover p,
.blog-card:hover .blog-read-more {
    opacity: 1;
    max-height: 200px;
    transform: translateY(0);
}
.blog-card:hover h3 {
    margin-bottom: 0.75rem; /* Restores margin on hover */
}
.blog-read-more .icon-arrow {
    position: relative;
    width: 1.2em;
    height: 1.2em;
    display: inline-flex;
    align-items: center;
}
.icon-arrow ion-icon {
    position: absolute;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.hover-arrow {
    opacity: 0;
    transform: translateX(-8px);
}
.blog-read-more:hover .default-arrow {
    opacity: 0;
    transform: translateX(8px);
}
.blog-read-more:hover .hover-arrow {
    opacity: 1;
    transform: translateX(0);
}

.blog-card-1 { grid-column: span 2; }
.blog-card-2 { grid-row: span 2; }
.blog-card-5 { grid-column: span 2; }


/* --- TIMELINE, FAQ, FOOTER, ETC. --- */
.timeline-container { position: relative; max-width: 800px; margin: 0 auto; }
.timeline-container::after { content: ''; position: absolute; width: 1px; background: var(--border-color); top: 0; bottom: 0; left: 30px; }
.timeline-item { position: relative; padding: 0 0 80px 90px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-icon { position: absolute; left: 30px; transform: translateX(-50%); top: 0; width: 60px; height: 60px; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--text-secondary); z-index: 1; transition: all 0.3s ease; }
.timeline-item:hover .timeline-icon { background: var(--accent-color); color: var(--bg-primary); }
.timeline-content h4 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.testimonial { background: transparent; }
.testimonial-content { text-align: center; max-width: 800px; margin: 0 auto; }
.testimonial img { width: 80px; height: 80px; border-radius: 50%; border: 2px solid var(--border-color); margin-bottom: 1.5rem; filter: grayscale(1); }
.testimonial blockquote { font-size: 1.5rem; font-style: italic; line-height: 1.6; margin-bottom: 2rem; }
.testimonial .author { font-family: "Dancing Script", cursive; font-weight: 600; font-size: 1.4rem; }
.testimonial .author-title { color: var(--text-secondary); font-size: 0.9rem; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item details { border-bottom: 1px solid var(--border-color); padding: 1.5rem 0; cursor: pointer; }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; font-size: 1.2rem; font-weight: 500; list-style: none; transition: color 0.3s; }
.faq-item summary:hover { color: var(--accent-color); } .faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-content { color: var(--text-secondary); line-height: 1.6; padding: 1rem 1rem 0 0; }
.faq-icon { transition: transform 0.3s ease; }
.faq-item details[open] .faq-icon { transform: rotate(180deg); color: var(--accent-color); }
.final-cta { text-align: center; } .final-cta h2 { font-size: 3rem; margin-bottom: 2rem; }
.main-footer { background: var(--bg-secondary); padding-top: 80px; border-top: 1px solid var(--border-color); transition: background-color 0.3s ease, border-color 0.3s ease; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem; padding-bottom: 4rem; border-bottom: 1px solid var(--border-color); }
.footer-col h5 { font-size: 1.1rem; margin-bottom: 1.5rem; color: var(--text-primary); }
.footer-col ul { list-style: none; } .footer-col ul li { margin-bottom: 1rem; }
.footer-col a { color: var(--text-secondary); text-decoration: none; transition: color 0.3s ease; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom { padding: 2rem 0; display: flex; justify-content: space-between; align-items: center; }
.social-links a { color: var(--text-secondary); font-size: 1.5rem; margin-left: 1.5rem; transition: color 0.3s ease; }
.social-links a:hover { color: var(--text-primary); }
#terms-banner { position: fixed; bottom: -120px; left: 50%; transform: translateX(-50%); background: var(--bg-tertiary); color: var(--text-secondary); padding: 1rem 1.5rem; border-radius: 20px; border: 1px solid var(--border-color); box-shadow: 0 10px 40px rgba(0,0,0,0.2); z-index: 2000; display: flex; align-items: center; gap: 1rem; transition: bottom 0.5s ease-in-out; }
#terms-banner.visible { bottom: 20px; }
#terms-banner p { margin: 0; font-size: 0.9rem;} #terms-banner p a { color: var(--text-primary); text-decoration: underline; }
#agree-btn { padding: 8px 16px; font-size: 0.9rem; white-space: nowrap; }

/* --- PARTNERS SECTION --- */
:root {
  --slide-width: 200px;
  --slide-count: 6;
  --animation-duration: 40s;
}

@keyframes scrollPartners {
	0% { transform: translateX(0); }
	100% { transform: translateX(calc(var(--slide-width) * var(--slide-count) * -1)); }
}

.partners-slider {
	height: 100px;
	margin: auto;
	overflow: hidden;
	position: relative;
    width: 100%;
	max-width: 960px;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}
.partners-slider .slide-track {
	animation: scrollPartners var(--animation-duration) linear infinite;
	display: flex;
	width: calc(var(--slide-width) * var(--slide-count) * 2);
}
.partners-slider:hover .slide-track {
    animation-play-state: paused;
}
.partners-slider .slide {
	height: 100px;
	width: var(--slide-width);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}
.partners-slider .slide a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.partners-slider .slide img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    transform: scale(1);
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
    filter: grayscale(1);
    opacity: 0.6;
}
[data-theme="dark"] .partners-slider .slide img {
    filter: brightness(0) invert(1);
    opacity: 0.7;
}
.partners-slider .slide a:hover img,
.partners-slider .slide a:focus-visible img {
    transform: scale(1.1);
    opacity: 1;
}

[data-theme="light"] .partners-slider .slide a:hover img,
[data-theme="light"] .partners-slider .slide a:focus-visible img {
    filter: none;
}

[data-theme="dark"] .partners-slider .slide a:hover img,
[data-theme="dark"] .partners-slider .slide a:focus-visible img {
    filter: brightness(0) invert(1);
}

/* --- RESPONSIVENESS --- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 992px) {
    .header-nav-links { display: none; }
    .header-nav { flex-grow: 1; justify-content: flex-end; }
    .philosophy-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .blog-grid-container { 
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 300px;
    }
    .blog-card-1, .blog-card-2, .blog-card-5 {
        grid-column: span 1;
        grid-row: span 1;
    }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 2.8rem; line-height: 1.15; }
    .hero p { font-size: 1rem; margin-bottom: 2rem; max-width: 90%;}
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-bottom { flex-direction: column-reverse; gap: 1.5rem; }
    .feature-row, .feature-row:nth-child(even) { flex-direction: column; gap: 2rem; }
    #terms-banner { flex-direction: column; width: calc(100% - 40px); bottom: -200px; gap: 0.75rem; padding: 1rem; }
    #terms-banner.visible { bottom: 10px; }
    :root {
        --slide-width: 180px;
        --animation-duration: 35s;
    }
    .partners-slider {
        -webkit-mask-image: linear-gradient(to right, transparent, black 25%, black 75%, transparent);
        mask-image: linear-gradient(to right, transparent, black 25%, black 75%, transparent);
    }
    .partners-slider .slide img {
        max-height: 70px;
    }
    .blog-grid-container { 
        grid-template-columns: 1fr;
        grid-auto-rows: 350px;
    }
}
.social-links a { text-decoration: none; display: inline-flex; align-items: center; padding: 0; margin: 0 5px; }