/* 
 * ANANDHISH TECH - 'ETHEREAL LIGHT' DESIGN SYSTEM V4
 * Theme: Premium, Avant-Garde, Clean-Corporate, High-Performance
 */

@import url('https://fonts.googleapis.com/css2?family=Syncopate:wght@400;700&family=Space+Grotesk:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@1,400;1,600&display=swap');

:root {
    /* Color Palette */
    --bg-main: #ffffff;
    --bg-secondary: #f8f8f8;
    --bg-glass: rgba(255, 255, 255, 0.85);

    --text-primary: #0a0a0a;
    --text-secondary: #555555;
    --text-accent: #8e44ad;
    /* Deep Purple */

    --border-light: #e0e0e0;
    --border-hover: #000000;

    --accent-glow: rgba(142, 68, 173, 0.15);

    /* Typography */
    --font-heading: 'Syncopate', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-serif: 'Cormorant Garamond', serif;

    /* Spacing */
    --container-max: 1600px;
    --header-height: 80px;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #000;
}

/* Global Navigation */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: black;
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    color: black;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: black;
}

.nav-cta {
    background: black;
    color: white;
    padding: 10px 24px;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Typography Classes */
.display-text {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 2rem;
    background: linear-gradient(180deg, #000 0%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    letter-spacing: 1px;
}

.btn-primary {
    background: #000;
    color: #fff;
    border: 1px solid #000;
}

.btn-primary:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: transparent;
    color: #000;
    border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
    border-color: #000;
    background: #fafafa;
}

/* Section Styling */
.section {
    padding: 120px 40px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.hero-section {
    min-height: 90vh;
    /* Almost full viewport */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 160px;
    /* Account for fixed header */
    background: radial-gradient(circle at center, #fff 0%, #f8f8f8 100%);
    position: relative;
    overflow: hidden;
}

/* Grid System */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
    width: 100%;
}

.card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    border-color: #000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-preview {
    height: 280px;
    background: #f4f4f4;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-light);
}

.iframe-scale {
    width: 200%;
    height: 200%;
    border: none;
    transform: scale(0.5);
    transform-origin: top left;
    pointer-events: none;
}

.card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.card-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.badge {
    padding: 6px 12px;
    background: #f5f5f5;
    border: 1px solid #eee;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    border-radius: 20px;
    text-transform: uppercase;
}

.card-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: #f9f9f9;
    border-color: #000;
}

.action-primary {
    background: #000;
    color: #fff;
    border-color: #000;
}

.action-primary:hover {
    background: #333;
    color: #fff;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-box {
    width: 90%;
    max-width: 800px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 0;
    max-height: 60vh;
    overflow-y: auto;
    background: #111;
    /* Code editor look */
}

.code-view {
    padding: 30px;
    color: #d4d4d4;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* Footer */
footer {
    padding: 60px 40px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    background: #fff;
}

/* Utility */
.d-none {
    display: none;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}