/* ============================================
   dScope – Professional Overrides
   ============================================ */

/* --- Google Fonts: Inter --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* --- Root Design Tokens --- */
:root {
    --ds-font: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ds-primary: #26222f;
    --ds-primary-light: #3d3650;
    --ds-accent: #6366f1;          /* indigo-500 */
    --ds-accent-light: #818cf8;    /* indigo-400 */
    --ds-gray-50: #f9fafb;
    --ds-gray-100: #f3f4f6;
    --ds-gray-200: #e5e7eb;
    --ds-gray-400: #9ca3af;
    --ds-gray-500: #6b7280;
    --ds-gray-600: #4b5563;
    --ds-gray-700: #374151;
    --ds-gray-800: #1f2937;
    --ds-gray-900: #111827;
    --ds-amber-600: #d97706;
    --ds-amber-500: #f59e0b;
    --ds-radius-lg: 1rem;
    --ds-radius-xl: 1.5rem;
    --ds-radius-2xl: 2rem;
    --ds-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / .05);
    --ds-shadow-md: 0 4px 6px -1px rgb(0 0 0 / .07), 0 2px 4px -2px rgb(0 0 0 / .05);
    --ds-shadow-lg: 0 10px 25px -3px rgb(0 0 0 / .08), 0 4px 6px -4px rgb(0 0 0 / .04);
    --ds-shadow-xl: 0 20px 40px -8px rgb(0 0 0 / .1), 0 8px 16px -6px rgb(0 0 0 / .06);
    --ds-transition: 0.25s cubic-bezier(.4,0,.2,1);
}

/* --- Global Typography --- */
html {
    font-family: var(--ds-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--ds-font);
    color: var(--ds-gray-800);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ds-font);
    letter-spacing: -0.025em;
    line-height: 1.15;
}

/* --- Smooth Scroll --- */
html {
    scroll-behavior: smooth;
}

/* --- Selection --- */
::selection {
    background: var(--ds-accent);
    color: #fff;
}

/* --- Header Polish --- */
.site-header {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(229, 231, 235, 0.6) !important;
    transition: box-shadow var(--ds-transition);
}
.site-header:hover {
    box-shadow: 0 1px 8px rgb(0 0 0 / .04);
}

.site-header .brand-text {
    font-family: var(--ds-font);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--ds-gray-900);
    letter-spacing: -0.04em;
}

.site-header .nav-link {
    font-family: var(--ds-font);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--ds-gray-500);
    text-decoration: none;
    padding: 0.375rem 0;
    position: relative;
    transition: color var(--ds-transition);
}
.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: var(--ds-gray-900);
}
.site-header .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ds-accent);
    border-radius: 1px;
    transition: width var(--ds-transition);
}
.site-header .nav-link:hover::after,
.site-header .nav-link.active::after {
    width: 100%;
}

/* --- Button System --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ds-font);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.625rem 1.5rem;
    border-radius: 0.625rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--ds-transition);
    line-height: 1.5;
    gap: 0.5rem;
}
.btn-primary {
    background: var(--ds-primary) !important;
    color: #fff !important;
    box-shadow: var(--ds-shadow-sm);
}
.btn-primary:hover {
    background: var(--ds-primary-light) !important;
    box-shadow: var(--ds-shadow-md);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent !important;
    color: var(--ds-gray-700) !important;
    border: 1.5px solid var(--ds-gray-200) !important;
    box-shadow: var(--ds-shadow-sm);
}
.btn-outline:hover {
    background: var(--ds-gray-50) !important;
    border-color: var(--ds-gray-400) !important;
    transform: translateY(-1px);
}
.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.0625rem;
    border-radius: 0.75rem;
}

/* --- Hero Section --- */
.hero-section {
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    pointer-events: none;
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--ds-gray-900);
}
.hero-subtitle {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: var(--ds-gray-500);
    max-width: 38rem;
    margin-top: 1.5rem;
}

/* --- Feature Sections --- */
.feature-block h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--ds-gray-900);
}
.feature-block p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--ds-gray-500);
}
.feature-block img {
    border-radius: var(--ds-radius-xl);
    box-shadow: var(--ds-shadow-lg);
    transition: transform var(--ds-transition), box-shadow var(--ds-transition);
}
.feature-block img:hover {
    transform: scale(1.01);
    box-shadow: var(--ds-shadow-xl);
}

/* --- Accent Dot --- */
.accent-dot {
    color: var(--ds-accent);
}

/* --- Section Divider --- */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ds-gray-200), transparent);
    border: none;
    margin: 0;
}

/* --- Experimental Section --- */
.experimental-section {
    background: linear-gradient(180deg, var(--ds-gray-50) 0%, #fff 100%);
    position: relative;
}
.experimental-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(217, 119, 6, 0.06));
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--ds-amber-600);
    font-family: var(--ds-font);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.experimental-card {
    background: #fff;
    border: 1px solid var(--ds-gray-200);
    border-radius: var(--ds-radius-2xl);
    padding: 2rem;
    transition: all var(--ds-transition);
    position: relative;
    overflow: hidden;
}
.experimental-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ds-amber-500), var(--ds-amber-600));
    opacity: 0;
    transition: opacity var(--ds-transition);
}
.experimental-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: var(--ds-shadow-xl);
    transform: translateY(-2px);
}
.experimental-card:hover::before {
    opacity: 1;
}
.experimental-card .card-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.1875rem 0.5rem;
    border-radius: 9999px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.experimental-card .icon-wrapper {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.06));
    flex-shrink: 0;
}
.tech-tag {
    display: inline-block;
    background: var(--ds-gray-100);
    color: var(--ds-gray-600);
    font-family: var(--ds-font);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.1875rem 0.625rem;
    border-radius: 9999px;
    transition: background var(--ds-transition);
}
.tech-tag:hover {
    background: var(--ds-gray-200);
}
.amber-link {
    color: var(--ds-amber-600);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: color var(--ds-transition);
}
.amber-link:hover {
    color: #92400e;
}

/* --- CTA Section --- */
.cta-card {
    background: var(--ds-primary) !important;
    border: none !important;
    border-radius: var(--ds-radius-xl) !important;
    color: #fff !important;
    box-shadow: var(--ds-shadow-xl) !important;
    position: relative;
    overflow: hidden;
}
.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.cta-card h2 {
    color: #fff;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
}
.cta-card p {
    color: rgba(255, 255, 255, 0.7);
}
.cta-input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0.625rem !important;
    color: #fff !important;
    font-family: var(--ds-font) !important;
    padding: 0.75rem 1rem !important;
    transition: all var(--ds-transition) !important;
}
.cta-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}
.cta-input:focus {
    border-color: var(--ds-accent-light) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
    background: rgba(255, 255, 255, 0.15) !important;
}
.btn-cta {
    background: #fff;
    color: var(--ds-primary);
    font-weight: 700;
    border-radius: 0.625rem;
    padding: 0.75rem 1.75rem;
    transition: all var(--ds-transition);
}
.btn-cta:hover {
    background: var(--ds-gray-100);
    transform: translateY(-1px);
    box-shadow: var(--ds-shadow-md);
}

/* --- Footer --- */
.site-footer {
    background: var(--ds-gray-900) !important;
    color: var(--ds-gray-400) !important;
    padding: 4rem 0 2rem !important;
    border: none !important;
}
.site-footer a {
    color: var(--ds-gray-400) !important;
    text-decoration: none;
    transition: color var(--ds-transition);
}
.site-footer a:hover {
    color: #fff !important;
}
.footer-heading {
    font-family: var(--ds-font);
    font-weight: 700;
    font-size: 0.875rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ds-gray-400);
    transition: all var(--ds-transition);
}
.social-icon:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: translateY(-2px);
}

/* --- Project Cards (projects.html) --- */
.project-card {
    background: #fff;
    border: 1px solid var(--ds-gray-200);
    border-radius: var(--ds-radius-2xl);
    padding: 2rem;
    transition: all var(--ds-transition);
    position: relative;
}
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ds-accent), var(--ds-accent-light));
    border-radius: var(--ds-radius-2xl) var(--ds-radius-2xl) 0 0;
    opacity: 0;
    transition: opacity var(--ds-transition);
}
.project-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: var(--ds-shadow-xl);
    transform: translateY(-3px);
}
.project-card:hover::before {
    opacity: 1;
}
.project-card .card-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(129, 140, 248, 0.05));
    margin-bottom: 1.25rem;
}
.project-card .card-icon svg {
    width: 1.375rem;
    height: 1.375rem;
    color: var(--ds-accent);
    stroke: var(--ds-accent);
}
.project-card h3 {
    font-family: var(--ds-font);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ds-gray-900);
    transition: color var(--ds-transition);
}
.project-card:hover h3 {
    color: var(--ds-accent);
}
.project-card p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--ds-gray-500);
    margin-top: 0.75rem;
}
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--ds-font);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--ds-accent);
    text-decoration: none;
    margin-top: 1.5rem;
    transition: color var(--ds-transition), gap var(--ds-transition);
}
.card-link:hover {
    color: var(--ds-accent-light);
    gap: 0.5rem;
}

/* --- Fade-in Animation --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-up {
    animation: fadeInUp 0.6s ease-out both;
}
.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0 3rem;
    }
    .site-footer {
        padding: 3rem 0 1.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}
