img { max-width: 100%; height: auto; display: block; }

/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Premium Dark Theme Tokens */
  --bg: #0a0a14;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #6366f1; /* Vibrant Indigo */
  --accent-secondary: #a855f7; /* Purple */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-brutalist: 6px 6px 0px 0px #000;
  --shadow-glass: 0 8px 32px 0 rgba(0,0,0,0.4);
  --radius-none: 0px;
  --radius-md: 12px;
  --font-headings: 'Instrument Serif', serif;
  --font-body: 'Inter Tight', sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter+Tight:wght@300;400;600;700&display=swap');

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    color: var(--text);
    background: var(--bg);
    width: 100%;
    max-width: 100vw;
}

h1, h2, h3, h4, .heading-serif {
    font-family: var(--font-headings);
    font-weight: 400;
    line-height: 1.1;
    color: var(--text);
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }

/* === STRUCTURAL BASELINES === */
.container { max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }

section {
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

/* Diagonal Slant Dividers */
.divider-top {
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0% 100%);
}

.divider-bottom {
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0% 100%);
}

/* === NAVIGATION OVERLAY === */
.nav-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1001;
    width: 60px;
    height: 60px;
    background: var(--accent);
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.nav-toggle:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
}

.nav-toggle span {
    width: 30px;
    height: 3px;
    background: #000;
    margin: 3px 0;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 20, 0.98);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(20px);
}

.nav-overlay.active {
    visibility: visible;
    opacity: 1;
}

.nav-links {
    list-style: none;
    text-align: center;
}

.nav-links li { margin: 1.5rem 0; }

.nav-links a {
    font-family: var(--font-headings);
    font-size: 4rem;
    color: var(--text);
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
    padding-left: 1rem;
}

@media (max-width: 768px) {
    .nav-links a { font-size: 2.5rem; }
}

/* === SIDEBAR + CONTENT LAYOUT (INDEX ONLY) === */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 35%;
    height: 100vh;
    position: sticky;
    top: 0;
    background: var(--bg);
    border-right: 1px solid var(--glass-border);
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.main-content {
    width: 65%;
}

@media (max-width: 1024px) {
    .layout-wrapper { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: relative; border-right: none; border-bottom: 1px solid var(--glass-border); }
    .main-content { width: 100%; }
}

/* === COMPONENTS === */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    position: relative;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glass);
    border-color: var(--accent);
}

.btn-brutalist {
    background: var(--accent);
    color: #fff;
    padding: 1.25rem 2.5rem;
    border: 3px solid #000;
    box-shadow: var(--shadow-brutalist);
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-brutalist:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0px #000;
    background: var(--accent-secondary);
}

/* Gradient Border Glow */
.glow-border {
    position: relative;
    border: 1px solid transparent;
    background-image: linear-gradient(var(--bg), var(--bg)), linear-gradient(45deg, var(--accent), var(--accent-secondary));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    animation: borderGlow 4s linear infinite;
}

@keyframes borderGlow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Progress Tracker */
.progress-widget {
    margin: 3rem 0;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2rem;
}

.progress-steps::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--glass-border);
    z-index: 1;
}

.progress-bar-fill {
    position: absolute;
    top: 25px;
    left: 0;
    height: 4px;
    background: var(--accent);
    z-index: 2;
    transition: width 0.5s ease;
}

.step-item {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.step-circle {
    width: 54px;
    height: 54px;
    background: var(--bg);
    border: 3px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: var(--transition);
}

.step-item.active .step-circle {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.step-label {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.step-item.active .step-label { color: var(--text); }

.step-content-panel {
    display: none;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.02);
}

.step-content-panel.active { display: block; animation: fadeIn 0.5s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Marquee */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.marquee-content {
    display: inline-flex;
    animation: marquee 20s linear infinite;
}

.marquee-item {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    margin: 0 3rem;
    color: var(--text-muted);
    opacity: 0.5;
    display: flex;
    align-items: center;
    gap: 1rem;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Masonry Grid (CSS Columns) */
.masonry-grid {
    columns: 3;
    column-gap: 1.5rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) { .masonry-grid { columns: 2; } }
@media (max-width: 768px) { .masonry-grid { columns: 1; } }

/* Hero Styling */
.hero-static {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.hero-rotate {
    color: var(--accent);
    display: block;
    height: 1.2em;
}

@media (max-width: 768px) {
    .hero-static { font-size: 3rem; }
}

/* Footer Style: Logo Watermark */
.footer {
    padding: 5rem 0 2rem;
    background: #05050a;
    position: relative;
    border-top: 1px solid var(--glass-border);
}

.footer-watermark {
    position: absolute;
    bottom: 0;
    right: 0;
    font-family: var(--font-headings);
    font-size: 15vw;
    line-height: 1;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
}

.footer-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin: 1.5rem 0;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--text);
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }

.footer-newsletter input {
    width: 100%;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
    margin-bottom: 1rem;
}

.footer-bottom {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-icons a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

@media (max-width: 1024px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
}

/* Inner Page Breadcrumbs */
.breadcrumbs {
    padding: 2rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.breadcrumbs a { color: var(--text); }
.breadcrumbs span { margin: 0 0.5rem; }

/* Video Section */
.video-container {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    cursor: pointer;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition);
}

.video-container:hover .video-overlay { background: rgba(0,0,0,0.2); }

.play-btn {
    width: 80px;
    height: 80px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 30px var(--accent);
}

/* Blog/Article specific */
.article-header { margin-bottom: 4rem; }
.article-content { max-width: 800px; font-size: 1.15rem; }
.article-content h2 { margin: 2.5rem 0 1.5rem; }
.article-content p { margin-bottom: 1.5rem; color: var(--text-muted); }
.article-content blockquote {
    padding: 2rem;
    border-left: 5px solid var(--accent);
    background: var(--glass-bg);
    font-style: italic;
    margin: 2.5rem 0;
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) { .pricing-grid { grid-template-columns: 1fr; } }

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent);
    outline: none;
}

@media (max-width: 992px) { .contact-grid { grid-template-columns: 1fr; } }

/* Responsive Blog Layout */
.blog-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: 100%;
}

@media (max-width: 900px) {
    .blog-grid-layout {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
}
