@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Outfit:wght@300;500;700&display=swap');

:root {
    --primary-color: #0d1117;
    /* Deepest Navy/Black */
    --secondary-color: #161b22;
    /* Charcoal */
    --accent-blue: #58a6ff;
    /* Electric Blue */
    --accent-gold: #d2a84e;
    /* Muted Gold */
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --glass-bg: rgba(22, 27, 34, 0.7);
    --border-color: #30363d;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #f0f2f5;
    background-image: radial-gradient(#e1e4e8 1px, transparent 1px);
    background-size: 20px 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

/* Utils */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), #238636);
    color: white;
    box-shadow: 0 4px 15px rgba(88, 166, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 166, 255, 0.5);
}

.btn-outline {
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: transparent;
    z-index: 1000;
    transition: background 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
}

.logo span {
    color: var(--accent-blue);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-image: url('hero-bg.png');
    background-size: cover;
    background-position: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(13, 17, 23, 0.3), var(--primary-color));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeUp 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

/* Innovation Section */
.innovation {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.innovation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.innovation-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.innovation-img img:hover {
    transform: scale(1.02);
}

.innovation-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.innovation-text h2 span {
    color: var(--accent-gold);
}

/* Services */
.services {
    padding: 5rem 0;
    background-color: var(--secondary-color);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--primary-color);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

/* =========================================
   Visual Comparison Showcase Styles
   ========================================= */

:root {
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: 1px solid rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --accent-glow: 0 0 15px rgba(212, 175, 55, 0.3);
    --text-primary: #2c3e50;
    --text-label: #546e7a;
    --canvas-bg: #ffffff;
    --primary-dark: #2c3e50;
}

/* Header */
.glass-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.highlight {
    color: var(--accent-gold);
    font-weight: 700;
}

/* Layout */
.main-wrapper {
    padding-bottom: 4rem;
    min-height: calc(100vh - 200px);
}

.calculator-section {
    margin-top: 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-label);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 2rem;
    background: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-label);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.tab-btn.active {
    background: var(--primary-dark);
    color: var(--accent-gold);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.2);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glass Cards */
.card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

/* Comparison Showcase Styles */

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.viz-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    position: relative;
    transition: transform 0.3s ease;
}

.viz-card:hover {
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 0.5rem;
}

.card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-std {
    background: rgba(43, 88, 118, 0.1);
    color: #34495e;
    border: 1px solid rgba(43, 88, 118, 0.2);
}

.badge-inn {
    background: rgba(255, 215, 0, 0.1);
    color: #d4af37;
    /* Gold but darker for readability on light bg */
    border: 1px solid #d4af37;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

.glow-border {
    border: 2px solid rgba(212, 175, 55, 0.5);
    /* Prominent Gold Border */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15), 0 0 20px rgba(212, 175, 55, 0.2);
}

.canvas-wrapper {
    background: #ffffff;
    border-radius: 10px;
    height: 250px;
    width: 100%;
    margin-bottom: 1rem;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.card-footer p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-label);
    text-align: center;
    font-style: italic;
    margin-top: 0.5rem;
}

.controls-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.control-group label {
    font-weight: 600;
    min-width: 100px;
    color: var(--primary-dark);
}

/* Custom Range Slider */
input[type=range] {
    -webkit-appearance: none;
    width: 200px;
    height: 6px;
    background: rgba(44, 62, 80, 0.2);
    border-radius: 5px;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-gold);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .controls-bar {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Featured Projects Section */
.project-section {
    padding: 6rem 0;
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(13, 17, 23, 0.02) 0%, transparent 70%);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding-top: 2rem;
}

.project-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(88, 166, 255, 0.15);
    border-color: rgba(88, 166, 255, 0.3);
}

.video-thumbnail {
    height: 220px;
    background: linear-gradient(135deg, #1f2937, #111827);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Abstract Tech Pattern for Thumbnail Placeholder */
.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 20px 20px;
    opacity: 0.5;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: 2;
}

.project-card:hover .play-button {
    background: var(--accent-gold);
    color: var(--primary-color);
    transform: scale(1.1);
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.project-info p {
    font-size: 0.95rem;
    color: var(--text-label);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.watch-btn {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.watch-btn i {
    transition: transform 0.3s ease;
}

.project-card:hover .watch-btn i {
    transform: translateX(4px);
}