/* ==========================================
   INDRAS MIRROR - PYWAL DARK THEME
   ========================================== */

/* ===== CSS Variables ===== */
:root {
    /* Colors - Pywal Color Palette */
    --bg-primary: #111015;
    --bg-secondary: #0d0d12;
    --bg-card: #16161d;
    --bg-elevated: #1e1e28;

    /* Text */
    --text-primary: #a2c0c4;
    --text-secondary: #7a8a94;
    --text-muted: #5a6a78;

    /* Accent Colors */
    --accent-blue: #6D8579;
    --accent-blue-glow: rgba(109, 133, 121, 0.3);
    --accent-teal: #377189;
    --accent-teal-glow: rgba(55, 113, 137, 0.3);
    --accent-gold: #CF9E58;
    --accent-gold-glow: rgba(207, 158, 88, 0.3);

    /* Gradients */
    --gradient-teal: linear-gradient(135deg, #6D8579 0%, #377189 50%, #CF9E58 100%);
    --gradient-radial-blue: radial-gradient(circle, rgba(109, 133, 121, 0.15), transparent 70%);
    --gradient-radial-gold: radial-gradient(circle, rgba(207, 158, 88, 0.1), transparent 60%);

    /* Borders */
    --border-color: rgba(162, 192, 196, 0.1);
    --border-hover: rgba(109, 133, 121, 0.3);

    /* Shadows */
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 40px rgba(109, 133, 121, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-gold);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(17, 16, 21, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 50px;
    filter: drop-shadow(0 0 10px var(--accent-blue-glow));
}

/* ===== Navigation ===== */
.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--text-primary);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-teal);
    transition: width 0.3s ease;
}

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

.desktop-nav {
    display: flex;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== Mobile Navigation ===== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(17, 16, 21, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-nav a {
    display: block;
    padding: 15px 20px;
    color: var(--text-secondary);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--text-primary);
    background: rgba(109, 133, 121, 0.1);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

/* Cosmic background effect */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150vmax;
    height: 150vmax;
    background:
        radial-gradient(circle, var(--accent-blue-glow) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, var(--accent-gold-glow) 0%, transparent 40%);
    transform: translate(-50%, -50%);
    animation: pulse-cosmic 8s ease-in-out infinite;
}

@keyframes pulse-cosmic {
    0%, 100% {
        opacity: 0.15;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.25;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Fractal/mandala container */
.fractal-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60vmin;
    height: 60vmin;
    transform: translate(-50%, -50%);
    opacity: 0.1;
    pointer-events: none;
}

.fractal {
    width: 100%;
    height: 100%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        var(--accent-blue) 0deg,
        transparent 60deg,
        var(--accent-teal) 120deg,
        transparent 180deg,
        var(--accent-gold) 240deg,
        transparent 300deg,
        var(--accent-blue) 360deg
    );
    border-radius: 50%;
    filter: blur(50px);
    animation: rotate-fractal 60s linear infinite;
}

@keyframes rotate-fractal {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Hero title with gradient */
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    background: var(--gradient-teal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.hero-small {
    min-height: 50vh;
    padding: 80px 0;
}

.hero-small h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

/* ===== Sections ===== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 15px;
    background: var(--gradient-teal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 50px;
}

.bg-light {
    background: var(--bg-secondary);
}

/* ===== Content Block ===== */
.content-block {
    max-width: 800px;
    margin: 0 auto;
}

.content-block h2 {
    margin-bottom: 20px;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* ===== Cards ===== */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 35px 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    transform: translateY(-4px);
}

.card h3 {
    margin-bottom: 12px;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Image Gallery ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    border-color: var(--accent-blue);
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* ===== Video Embed ===== */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg-card);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* ===== Service Detail Cards ===== */
.service-detail {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
}

.service-detail h3 {
    color: var(--accent-gold);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.service-detail ul {
    list-style: disc;
    padding-left: 25px;
    margin-top: 15px;
}

.service-detail li {
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.7;
}

/* ===== Pricing/Package Cards ===== */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-gold);
    margin: 20px 0;
}

.pricing-card ul {
    text-align: left;
    margin: 25px 0;
}

.pricing-card li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* ===== Use Cases ===== */
.use-case {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.use-case:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.use-case h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.use-case p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Feature Split ===== */
.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.feature-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.feature-content h3:first-child {
    margin-top: 0;
}

.feature-content ul {
    margin: 15px 0 25px;
    padding-left: 25px;
    list-style: disc;
}

.feature-content li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.feature-content strong {
    color: var(--text-primary);
}

/* ===== Checklist ===== */
.checklist-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
}

.check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--gradient-teal);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.checklist-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.checklist-item p {
    font-size: 0.9rem;
    margin: 0;
}

/* ===== CTA Section ===== */
.cta-section {
    background: var(--gradient-teal);
    color: white;
}

.cta-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-box h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 10px 10px 0;
}

.btn-primary {
    background: var(--gradient-teal);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(109, 133, 121, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(109, 133, 121, 0.6);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: var(--accent-blue);
    background: rgba(109, 133, 121, 0.1);
}

/* ===== Services Grid ===== */
.services-grid {
    display: grid;
    gap: 40px;
    margin-top: 50px;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: start;
}

.service-icon {
    font-size: 3rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    color: var(--accent-gold);
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-item:hover .service-icon svg {
    transform: scale(1.1);
    color: var(--accent-blue);
}

.service-content h3 {
    margin-bottom: 15px;
}

/* ===== About Section ===== */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-image img {
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* ===== Social Links ===== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    transform: translateY(-4px);
    color: white;
}

/* ===== Subscribe Section ===== */
.subscribe-section {
    background: var(--bg-secondary);
    text-align: center;
}

.subscribe-form {
    max-width: 500px;
    margin: 30px auto 0;
    display: flex;
    gap: 10px;
}

.subscribe-form input {
    flex: 1;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.08);
}

.subscribe-form input::placeholder {
    color: var(--text-muted);
}

.subscribe-form button {
    padding: 14px 30px;
    background: var(--gradient-teal);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(109, 133, 121, 0.5);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 60px 0 20px;
}

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

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-section p,
.footer-section li {
    color: var(--text-muted);
}

.quote-source {
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 10px;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-section a {
    color: var(--text-muted);
}

.footer-section a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
}

/* ===== Glow Effects ===== */
.glow-blue {
    box-shadow: 0 0 20px rgba(109, 133, 121, 0.3);
}

.glow-gold {
    box-shadow: 0 0 20px rgba(207, 158, 88, 0.3);
}

.glow-pulse {
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(109, 133, 121, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(109, 133, 121, 0.5);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 900px) {
    .feature-split {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-icon {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 60px 0 50px;
        min-height: auto;
    }

    .hero-small {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .section {
        padding: 50px 0;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .card {
        padding: 25px 20px;
    }
}

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

.card, .use-case {
    animation: fadeIn 0.6s ease forwards;
}

.grid .card:nth-child(1) { animation-delay: 0.1s; }
.grid .card:nth-child(2) { animation-delay: 0.2s; }
.grid .card:nth-child(3) { animation-delay: 0.3s; }
.grid .card:nth-child(4) { animation-delay: 0.4s; }
.grid .card:nth-child(5) { animation-delay: 0.5s; }
.grid .card:nth-child(6) { animation-delay: 0.6s; }

/* ===== Focus States for Accessibility ===== */
:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.lightbox-close:hover {
    transform: scale(1.1);
    color: var(--accent-gold);
}
