/* ==========================================================================
   Design System & Globals
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-dark: #0a0814;
    --bg-dark-secondary: #121024;
    --bg-card: rgba(20, 18, 38, 0.55);
    
    --accent-cyan: #00f2fe;
    --accent-purple: #7f00ff;
    --accent-indigo: #4facfe;
    --accent-neon-green: #39ff14;
    
    --gradient-accent: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    --gradient-hover: linear-gradient(135deg, var(--accent-indigo) 0%, #a855f7 100%);
    --gradient-bg: radial-gradient(circle at 50% 50%, #17153a 0%, var(--bg-dark) 100%);
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #1f2937;
    
    /* Layout */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Glassmorphism */
    --glass-bg: rgba(18, 16, 35, 0.65);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-glow: 0 0 15px rgba(0, 242, 254, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background: var(--bg-dark);
    background-image: radial-gradient(circle at 10% 20%, rgba(127, 0, 255, 0.08) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(0, 242, 254, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   Typography & Helper Classes
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.animate-gradient {
    background-size: 200% auto;
    animation: gradientMove 5s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Common Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    margin-bottom: 0.75rem;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}

.btn-primary:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Glass Panel */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all var(--transition-normal);
}

.main-header.scrolled {
    padding: 0.75rem 0;
    background: rgba(10, 8, 20, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width var(--transition-fast);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: all var(--transition-fast);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 10rem 0 7rem 0;
    min-height: 95vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-glow-1 {
    position: absolute;
    top: -10%;
    right: 5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(127, 0, 255, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.1) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.badge-container {
    margin-bottom: 1.5rem;
}

.hero-badge {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--accent-cyan);
    padding: 0.45rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
}

/* Hero Visual Console */
.hero-visual {
    position: relative;
}

.visual-canvas-container {
    perspective: 1000px;
    width: 100%;
}

.tech-card {
    border-radius: 12px;
    overflow: hidden;
    transform: rotateY(-8deg) rotateX(8deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--glass-glow);
    transition: transform var(--transition-normal);
}

.tech-card:hover {
    transform: rotateY(-3deg) rotateX(4deg) translateY(-5px);
}

.card-header-bar {
    background: rgba(20, 18, 38, 0.85);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--glass-border);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.tab-title {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 0.75rem;
}

.code-terminal {
    padding: 1.75rem;
    background: rgba(8, 6, 17, 0.9);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #e5e7eb;
}

.code-terminal .line {
    margin-bottom: 4px;
}

.code-terminal .indent {
    padding-left: 1.5rem;
}

/* Terminal syntax highlighting colors */
.c-purple { color: #c084fc; }
.c-blue { color: #60a5fa; }
.c-green { color: #34d399; }
.c-yellow { color: #facc15; }
.c-cyan { color: #22d3ee; }
.c-comment { color: #6b7280; font-style: italic; }

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    z-index: 10;
    transition: transform var(--transition-fast);
}

.floating-badge h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.floating-badge p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.floating-badge.b-1 {
    top: 20%;
    left: -15%;
    animation: float1 4s ease-in-out infinite alternate;
}

.floating-badge.b-2 {
    bottom: 15%;
    right: -10%;
    animation: float2 5s ease-in-out infinite alternate;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.4);
    animation: pulse 2s infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes float1 {
    0% { transform: translateY(0) rotate(-3deg); }
    100% { transform: translateY(-12px) rotate(-1deg); }
}

@keyframes float2 {
    0% { transform: translateY(0) rotate(2deg); }
    100% { transform: translateY(-15px) rotate(4deg); }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(0, 242, 254, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0);
    }
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
    padding: 7rem 0;
    position: relative;
    z-index: 5;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
}

.service-card {
    padding: 2.75rem 2.25rem;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tech-card-hover {
    transition: transform var(--transition-normal), border-color var(--transition-fast), box-shadow var(--transition-normal);
}

.tech-card-hover:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 242, 254, 0.25);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 242, 254, 0.08);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 242, 254, 0.06);
    border: 1px solid rgba(0, 242, 254, 0.15);
    color: var(--accent-cyan);
    margin-bottom: 2rem;
}

.service-icon-wrapper.secondary {
    background: rgba(127, 0, 255, 0.06);
    border-color: rgba(127, 0, 255, 0.15);
    color: #a855f7;
}

.service-icon-wrapper.tertiary {
    background: rgba(79, 172, 254, 0.06);
    border-color: rgba(79, 172, 254, 0.15);
    color: var(--accent-indigo);
}

.service-icon {
    width: 28px;
    height: 28px;
}

.service-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #fff;
}

.service-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.service-features li {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features .bullet {
    color: var(--accent-cyan);
}

.service-card.special-border {
    border: 1px solid rgba(127, 0, 255, 0.35);
    box-shadow: 0 10px 30px rgba(127, 0, 255, 0.12), var(--glass-shadow);
}

.service-card.special-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-accent);
}

.card-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--gradient-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
}

/* ==========================================================================
   Timeline Preview Section (Home)
   ========================================================================== */
.timeline-preview-section {
    padding: 7rem 0;
    position: relative;
}

.timeline-preview-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(127, 0, 255, 0.06) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.preview-card {
    padding: 4.5rem;
    border-radius: 24px;
    text-align: center;
}

.preview-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: #fff;
}

.preview-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 750px;
    margin: 0 auto 3.5rem auto;
}

.preview-tracks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    text-align: left;
}

.track-item {
    padding: 2.25rem;
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: transform var(--transition-normal), border-color var(--transition-fast), box-shadow var(--transition-normal);
}

.track-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 254, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), var(--glass-glow);
}

.track-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.85;
}

.track-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.track-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.preview-actions {
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   Dedicated Timeline Page Styles (timeline.html)
   ========================================================================== */
.timeline-hero {
    padding: 10rem 0 4rem 0;
    text-align: center;
    position: relative;
}

.timeline-tabs {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

.tab-btn.active {
    background: var(--gradient-accent);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(0, 242, 254, 0.25);
}

.tab-icon {
    font-size: 1.15rem;
}

/* Track visibility wrapper */
.timeline-track {
    display: none;
    opacity: 0;
}

.timeline-track.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

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

/* Timeline Layout elements */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--gradient-accent);
    border-radius: 4px;
    transition: height 0.1s linear;
}

/* Alternate positions */
.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 3rem 4rem 3rem;
    opacity: 1;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* Dots on the line */
.timeline-dot {
    position: absolute;
    top: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 4px solid rgba(255, 255, 255, 0.15);
    z-index: 10;
    transition: all var(--transition-fast);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-item.active-dot .timeline-dot {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan);
    background: var(--accent-purple);
}

/* Card Styling */
.timeline-content {
    padding: 2.25rem;
    position: relative;
    cursor: pointer;
    text-align: left;
}

.timeline-content:hover {
    border-color: rgba(0, 242, 254, 0.2);
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.15);
    color: var(--accent-cyan);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 1.25rem;
}

.timeline-item-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.timeline-item-summary {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.btn-expand {
    background: none;
    border: none;
    color: var(--accent-cyan);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition-fast);
}

.btn-expand:hover {
    color: #fff;
}

.btn-expand .arrow {
    transition: transform var(--transition-fast);
}

.btn-expand.expanded .arrow {
    transform: rotate(180deg);
}

/* Hidden expanded details */
.timeline-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-out;
}

.details-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 1.25rem 0;
}

.timeline-details p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.timeline-details strong {
    color: #fff;
}

/* Decade Accordion Layout (Timeline 1) */
.decades-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding-bottom: 4rem;
}

.decade-card {
    border-radius: 16px;
    overflow: hidden;
}

.decade-header {
    width: 100%;
    padding: 1.75rem 2.25rem;
    background: rgba(18, 16, 35, 0.4);
    border: none;
    color: #fff;
    font-family: var(--font-heading);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background var(--transition-fast);
    text-align: left;
}

.decade-header:hover {
    background: rgba(18, 16, 35, 0.7);
}

.decade-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.decade-badge {
    padding: 0.45rem 1.25rem;
    background: rgba(127, 0, 255, 0.1);
    border: 1px solid rgba(127, 0, 255, 0.25);
    color: #c084fc;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
}

.decade-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.decade-arrow {
    font-size: 1.25rem;
    color: var(--accent-cyan);
    transition: transform var(--transition-normal);
}

.decade-card.open .decade-arrow {
    transform: rotate(180deg);
}

.decade-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-out;
    background: rgba(8, 6, 17, 0.25);
    border-top: 0px solid var(--glass-border);
}

.decade-card.open .decade-body {
    border-top: 1px solid var(--glass-border);
    /* Note: max-height will be set dynamically via JS */
}

.decade-inner-content {
    padding: 3rem 1.5rem;
}


/* ==========================================================================
   Contact / CTA Section
   ========================================================================== */
.contact-section {
    padding: 7rem 0;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    padding: 4rem;
    border-radius: 24px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-title {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
}

.contact-subtitle {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.detail-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.15);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-detail-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.contact-detail-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Form Styles */
.contact-form-wrapper {
    background: rgba(10, 8, 20, 0.4);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(18, 16, 35, 0.8);
    border: 1px solid var(--glass-border);
    padding: 0.85rem 1.25rem;
    color: #fff;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-group select option {
    background: var(--bg-dark-secondary);
    color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    padding: 5rem 0 3rem 0;
    border-top: 1px solid var(--glass-border);
    background: #06050d;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.footer-brand {
    max-width: 320px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1.25rem;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-rights {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-rights p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dev-info {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .tech-card {
        transform: none !important;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .floating-badge.b-1 {
        left: 2%;
    }
    
    .floating-badge.b-2 {
        right: 2%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2.5rem;
    }
    
    .contact-info {
        text-align: center;
        align-items: center;
    }
    
    .contact-details-list {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 1rem 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(10, 8, 20, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-left: 1px solid var(--glass-border);
        z-index: 999;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right var(--transition-normal);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
        align-items: center;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    /* Hamburger Menu Animation */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Responsive Vertical Timeline */
    .timeline-line {
        left: 2rem;
    }
    
    .timeline-item {
        width: 100% !important;
        padding-left: 4.5rem !important;
        padding-right: 0.5rem !important;
        text-align: left !important;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-dot {
        left: 14px !important;
        right: auto !important;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links ul {
        align-items: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .floating-badge {
        display: none; /* Hide floating badges on very small phones to reduce clutter */
    }
    
    .timeline-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   iOS Style Segmented Control (i18n)
   ========================================================================== */
.ios-segmented-control {
    position: relative;
    display: inline-flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 2px;
    width: 140px;
    height: 34px;
    overflow: hidden;
    z-index: 100;
}

.segmented-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc((100% - 4px) / 3);
    height: calc(100% - 4px);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-radius: 28px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.segment-btn {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 1;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.segment-btn:hover {
    color: #fff;
}

.segment-btn.active {
    color: #fff;
}

/* Adjust header spacing for language control */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* ==========================================================================
   Automation ROI Calculator
   ========================================================================== */
.roi-calculator-section {
    padding: 7rem 0;
    position: relative;
    background: rgba(18, 16, 35, 0.2);
}

.roi-card {
    padding: 4rem;
    border-radius: 24px;
}

.roi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.calc-slider-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-weight: 600;
}

.slider-val {
    color: var(--accent-cyan);
    font-size: 1.15rem;
}

/* Customizing Range Sliders */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    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-cyan);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-cyan);
    transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Results Display */
.calc-results {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.result-box {
    padding: 2rem;
    border-radius: 16px;
    background: rgba(10, 8, 20, 0.4);
    border: 1px solid var(--glass-border);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.result-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-accent);
}

.result-val {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.result-box h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.result-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Bytesmania AI Agent (Floating Chatbot Widget)
   ========================================================================== */
.ai-chatbot-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
}

.chatbot-launcher {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    outline: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.3);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.chatbot-launcher:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.5);
}

.chatbox-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    height: 480px;
    background: rgba(13, 11, 27, 0.95);
    border: 1px solid rgba(127, 0, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.8);
    opacity: 0;
    pointer-events: none;
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbox-container.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* Chatbox Header */
.chatbox-header {
    background: rgba(19, 17, 39, 0.9);
    padding: 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.agent-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.agent-name h3 {
    font-size: 0.95rem;
    font-weight: 700;
}

.agent-status {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 4px;
}

.agent-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 6px var(--accent-cyan);
}

.chatbox-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.chatbox-close:hover {
    color: #fff;
}

/* Chatbox Messages */
.chatbox-messages {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-bubble {
    max-width: 80%;
    padding: 0.85rem 1.15rem;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.chat-bubble.bot {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-bubble.user {
    background: var(--gradient-accent);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.15);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    margin-bottom: 5px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Chatbox Footer (Quick Questions) */
.chatbox-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(10, 8, 20, 0.6);
}

.quick-questions-container {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.quick-btn {
    width: 100%;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quick-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 242, 254, 0.25);
    transform: translateX(3px);
}

/* Terminal Typewriter Cursor Animation */
.code-terminal p {
    border-right: 2px solid transparent;
}

.code-terminal p.typing-active {
    border-right: 2px solid var(--accent-cyan);
    animation: blinkCursor 0.75s step-end infinite;
}

@keyframes blinkCursor {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-cyan); }
}

/* Responsive adjustments for new features */
@media (max-width: 768px) {
    .roi-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .roi-card {
        padding: 2rem;
    }
    
    .chatbox-container {
        width: calc(100vw - 4rem);
        height: 420px;
    }
}

