/* ===== CSS RESET & VARIABLES ===== */
:root {
    /* Vibrant Gradient Theme Colors - Light Mode */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%);
    
    /* Solid colors for backgrounds */
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #4facfe;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* Text & Background Colors */
    --text-color: #2d3748;
    --text-light: #718096;
    --bg-color: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    
    /* UI Colors */
    --border-color: #e2e8f0;
    --shadow: 0 10px 25px -5px rgba(102, 126, 234, 0.1);
    --shadow-lg: 0 20px 40px -10px rgba(102, 126, 234, 0.2);
    --shadow-xl: 0 25px 50px -12px rgba(102, 126, 234, 0.25);
    
    --border-radius: 16px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Fonts */
    --font-primary: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
}

.dark-theme {
    /* Dark Mode Gradient Colors */
    --primary-gradient: linear-gradient(135deg, #8a2be2 0%, #4a00e0 100%);
    --secondary-gradient: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
    --accent-gradient: linear-gradient(135deg, #00c9ff 0%, #92fe9d 100%);
    --dark-gradient: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    
    /* Solid colors for dark mode */
    --primary-color: #8a2be2;
    --secondary-color: #4a00e0;
    --accent-color: #00c9ff;
    
    /* Text & Background Colors */
    --text-color: #e2e8f0;
    --text-light: #a0aec0;
    --bg-color: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: linear-gradient(145deg, #1e293b 0%, #334155 100%);
    
    /* UI Colors */
    --border-color: #2d3748;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.7;
    transition: var(--transition);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(79, 172, 254, 0.1) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.dark-theme body::before {
    background: 
        radial-gradient(circle at 20% 80%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 126, 95, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 201, 255, 0.1) 0%, transparent 50%);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

h1 {
    font-size: 3.75rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.75rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.section-header h2::after {
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.875rem;
}

h4 {
    font-size: 1.25rem;
    font-weight: 700;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.125rem;
}

.highlight {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: -1;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    position: relative;
}

.btn-secondary::before {
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-secondary:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary:hover::before {
    opacity: 1;
}

.btn-nav {
    padding: 10px 24px;
    border-radius: 50px;
}

.btn-block {
    width: 100%;
    padding: 18px 32px;
}

/* ===== NAVBAR ===== */
/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px; /* Fixed height for stability */
    background: rgba(255, 255, 255, 0.95); /* Increased opacity for readability */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    display: flex; /* Ensure centering */
    align-items: center;
}

.dark-theme .navbar {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(138, 43, 226, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px; /* Remove top/bottom padding, rely on height */
    height: 100%;
    width: 100%;
}

/* Logo Wrapper: Stacks AXL on top of text */
.logo-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Aligns both text parts to the left */
    line-height: 1;
}

/* The "AXL" Gradient Text */
.logo-main {
    font-family: 'Viga', sans-serif; /* Geometric font */
    font-weight: 900; /* Extra Bold */
	transform: scaleX(1.2);
	transform-origin: left;
    font-size: 2.8rem; /* Large and imposing */
    letter-spacing: 3px; /* Pulls letters closer like a logo mark */
    margin-bottom: -2px; /* Pulls the subtitle closer */
    padding-right: 5px; /* Prevents L from getting cut off */
    
    /* Exact Gradient Match: Cyan -> Blue -> Purple -> Pink -> Orange */
	background: linear-gradient(
        90deg, 
        #00c3ff 0%,   /* Bright Cyan (Start of A) */
        #3b82f6 25%,  /* Royal Blue (End of A) */
        #9333ea 50%,  /* Deep Purple (Middle of X) */
        #e11d48 75%,  /* Hot Pink (Start of L) */
        #fbbf24 100%  /* Golden Orange (End of L) */
    );
    
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    
    /* Adds a subtle glow to mimic the image */
 filter: drop-shadow(0px 4px 10px rgba(147, 51, 234, 0.15));
}

/* The "AmazeXploreLabs" Subtitle */
.logo-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #334155; /* Dark Gray */
    letter-spacing: 0.2px;
}

/* Dark Theme Adjustment */
.dark-theme .logo-sub {
    color: #cbd5e1; /* Light Gray */
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

.logo img {
    width: 60px; /* Reduced from 180px for a sleeker look */
	margin-right:10px;
    height: auto;
    transition: var(--transition);
}

/*.logo span {
    display: none; 
}*/

/* Scrolled State Class (We will update JS to use this) */
.navbar.scrolled {
    height: 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.125rem;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition);
    border-radius: 1px;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::before {
    width: 100%;
}

.menu-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}


.menu-toggle:hover {
    background: var(--bg-secondary);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 999;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.theme-toggle .fa-sun {
    display: none;
}

.dark-theme .theme-toggle .fa-moon {
    display: none;
}

.dark-theme .theme-toggle .fa-sun {
    display: block;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(102, 126, 234, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 30%, rgba(118, 75, 162, 0.2) 0%, transparent 40%);
    z-index: -1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.375rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2.75rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-mono);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0.5rem;
    display: block;
}

.hero-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: var(--transition);
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0.1;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 100px 0;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    z-index: -1;
    clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-gradient);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(79, 172, 254, 0.3);
}

.service-icon img {
    width: 100%;
    height: 100%;
  
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.5rem;
}

.service-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.service-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    list-style: none;
}

.service-tech li {
    background: var(--bg-secondary);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: var(--transition);
}

.service-card:hover .service-tech li {
    background: rgba(255, 255, 255, 0.1);
    color:  var(--accent-color);
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
    padding: 100px 0;
    background: var(--bg-color);
    position: relative;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-gradient);
    opacity: 0.03;
    z-index: -1;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.filter-btn:hover, .filter-btn.active {
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.filter-btn.active::before, .filter-btn:hover::before {
    opacity: 1;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2.5rem;
}

.portfolio-item {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 0.9;
}

.portfolio-link {
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    font-weight: 700;
    border: 2px solid white;
    transition: var(--transition);
}

.portfolio-link:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.05);
}

.portfolio-info {
    padding: 2rem;
}

.portfolio-info h3 {
    margin-bottom: 0.75rem;
    font-size: 1.375rem;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.portfolio-tech span {
    background: var(--bg-secondary);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 100px 0;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    z-index: -1;
    clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 90%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0.1;
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content {
    padding-left: 2rem;
}

.about-text {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.skills {
    margin: 2.5rem 0;
}

.skills h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}
.skill-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}


.skill-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.skill-name {
    flex: 0 0 180px;
    font-weight: 600;
    font-size: 1.125rem;
}

.skill-bar {
    flex: 1;
    height: 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-level {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 6px;
    transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.skill-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

.skill-percent {
    flex: 0 0 60px;
    text-align: right;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.125rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== IOT SECTION ===== */
.iot-specialization {
    padding: 100px 0;
    position: relative;
}

.iot-specialization::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-gradient);
    opacity: 0.05;
    z-index: -1;
}

.iot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.iot-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.iot-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
    transform: rotate(45deg);
}

.iot-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
    color: white;
}

.iot-card:hover::before {
    opacity: 1;
}

.iot-card:hover .iot-icon,
.iot-card:hover h3,
.iot-card:hover p {
    color: white;
}

.iot-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
}

.iot-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    transition: var(--transition);
}

.iot-card p {
    font-size: 1rem;
    transition: var(--transition);
}

.iot-showcase {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    margin-top: 3rem;
    position: relative;
}

.iot-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0.1;
    z-index: 1;
}

.iot-showcase img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.iot-showcase:hover img {
    transform: scale(1.05);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.contact-info h3 {
    margin-bottom: 2.5rem;
    font-size: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1.5rem;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}
.contact-item i {
    font-size: 1.5rem;
    width: 50px; /* Slightly larger */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    color: var(--primary-color); /* Simple color instead of gradient */
    transition: var(--transition);
}

.contact-item:hover i {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.1);
}

.contact-item h4 {
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.contact-item p {
    margin: 0;
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    color: var(--text-color);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.25rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.social-links a:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-form .form-group {
    margin-bottom: 2rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-color);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-card);
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-gradient);
    padding: 80px 0 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 0;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2rem;
    font-weight: 800;
    font-size: 1.75rem;
    color: white;
}

.footer-logo img {
    width: 50px;
    height: 50px;
}

.footer-tagline {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: var(--transition);
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-links a:hover::before {
    width: 100%;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-top: 2rem;
}

.project-impact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.impact-badge {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* ===== MODAL STYLES ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: block;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-container {
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 2rem 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.modal-header-content {
    flex: 1;
}

.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-gradient);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

.modal-content {
    max-height: calc(90vh - 150px);
    overflow-y: auto;
    padding: 0;
}

/* Case Study Styles */
.case-study-hero {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.case-study-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    width: 100%;
}

.hero-stat {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
}


.case-study-content {
    padding: 2rem;
}

.case-study-section {
    margin-bottom: 3rem;
}

.case-study-section h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.case-study-section h3 i {
    color: var(--primary-color);
}

.case-study-list {
    list-style: none;
    padding-left: 1.5rem;
}

.case-study-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.case-study-list li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.solution-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.tech-category {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.tech-category h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.125rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-card-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.feature-card h4 {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.result-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
}

.result-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.result-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.testimonial-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.testimonial-content {
    position: relative;
    padding: 0 2rem;
    margin-bottom: 1.5rem;
}

.testimonial-content i.fa-quote-left {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.testimonial-content i.fa-quote-right {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.testimonial-content p {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-color);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.author-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.author-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.case-study-cta {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    margin-top: 3rem;
}

.case-study-cta p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.modal-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .case-study-hero {
        height: 200px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .case-study-content {
        padding: 1.5rem;
    }
    
    .features-grid,
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .feature {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto;
    }
    
    .tech-stack {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .modal-container {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .case-study-hero {
        height: 150px;
    }
    
    .case-study-section {
        margin-bottom: 2rem;
    }
    
    .case-study-section h3 {
        font-size: 1.25rem;
    }
}

/* ===== FINOPTIMA SPECIFIC STYLES ===== */

/* Architecture Flow */
.architecture-diagram {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.architecture-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.flow-step {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.flow-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.25rem;
}

.flow-content h5 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.flow-content p {
    font-size: 0.875rem;
    color: var(--text-light);
}

.flow-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* AI Models */
.ai-models {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.ai-model {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid #10b981;
}

.ai-model h4 {
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.model-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.model-stat {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Riskometer Demo */
.riskometer-demo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.riskometer-circle {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(
        #10b981 0deg 120deg,
        #f59e0b 120deg 240deg,
        #ef4444 240deg 360deg
    );
}


.riskometer-zones {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.riskometer-zones .zone {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.riskometer-zones .low {
    top: 60%;
    left: 70%;
    transform: translate(-50%, -50%);
}

.riskometer-zones .medium {
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.riskometer-zones .high {
    top: 60%;
    left: 30%;
    transform: translate(-50%, -50%);
}

.feature-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.feature-description ul {
    list-style: none;
    padding-left: 1.5rem;
}

.feature-description li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-description li:before {
    content: "✓";
    color: #10b981;
    position: absolute;
    left: 0;
}

/* Data Sources */
.data-sources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.source-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border-top: 3px solid #10b981;
}

.source-icon {
    width: 50px;
    height: 50px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #10b981;
    font-size: 1.25rem;
}

/* Validation Metrics */
.validation-metrics {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.metrics-table {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
}

.metric-name {
    font-weight: 500;
    color: var(--text-color);
}

.metric-value {
    font-weight: 600;
    color: #10b981;
    font-family: var(--font-mono);
}

/* Roadmap */
.roadmap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.roadmap-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border-left: 4px solid #10b981;
}

.roadmap-phase {
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 70px;
    text-align: center;
}

.roadmap-content {
    flex: 1;
}

.roadmap-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .architecture-flow {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .feature-highlight {
        grid-template-columns: 1fr;
    }
    
    .ai-models {
        grid-template-columns: 1fr;
    }
    
    .data-sources {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .data-sources {
        grid-template-columns: 1fr;
    }
    
    .riskometer-circle {
        width: 150px;
        height: 150px;
    }
    
}

/* ===== AUTODRIVEX SPECIFIC STYLES ===== */

/* IoT Video Container */
.iot-video-container {
    position: relative;
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-placeholder {
    text-align: center;
    color: white;
}

.video-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.video-placeholder p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* System Architecture */
.system-architecture {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tier {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.tier:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.tier-header {
	
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.tier-number {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
}

.tier-header h4 {
    margin: 0;
    font-size: 1.125rem;
}

.tier-content {
    padding: 1.5rem;
}

.tier-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tier-tech span {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Capabilities Grid */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.capability-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-top: 4px solid #3b82f6;
}

.capability-icon {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #3b82f6;
    font-size: 1.5rem;
}

.capability-card h4 {
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.capability-details {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.capability-details li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    font-size: 0.875rem;
}

.capability-details li:before {
    content: "→";
    color: #3b82f6;
    position: absolute;
    left: 0;
}

/* Hardware Diagram */
.hardware-diagram {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.main-component {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border: 2px solid #3b82f6;
}

.component-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.component-connections {
    display: flex;
    gap: 0.75rem;
    margin-left: auto;
}

.connection {
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.hardware-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.hardware-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.hardware-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.hardware-spec {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 2px 8px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Wiring Schematic */
.wiring-schematic {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.schematic-diagram {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
    font-family: var(--font-mono);
}

.schematic-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.schematic-component {
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 4px;
    font-size: 0.875rem;
}

.schematic-wire {
    color: #3b82f6;
    font-weight: bold;
}

/* CV Pipeline */
.cv-pipeline {
    margin: 2rem 0;
}

.pipeline-steps {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0;
    margin-top: 1.5rem;
}

.pipeline-step {
    min-width: 180px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 1rem;
    border-left: 4px solid #3b82f6;
}

.step-number {
    width: 30px;
    height: 30px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.step-time {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 2px 8px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Algorithms Grid */
.algorithms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.algorithm-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.algorithm-code {
    margin-top: 1rem;
    padding: 1rem;
    background: #1e293b;
    border-radius: 8px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: #e2e8f0;
}

/* Software Stack */
.software-stack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

.stack-layer {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid #3b82f6;
}

.layer-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.module {
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.module h5 {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-color);
}

.module p {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
}

/* Network Flow */
.network-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.network-node {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    min-width: 180px;
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.node-icon {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 0.75rem;
}

.network-arrow {
    font-size: 1.5rem;
    color: #3b82f6;
}

.protocols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.protocol {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.protocol code {
    display: block;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #1e293b;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: #e2e8f0;
    overflow-x: auto;
}

/* Performance Metrics */
.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.metric-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border-top: 4px solid #3b82f6;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: #3b82f6;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.metric-desc {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.challenges-solutions {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.challenge {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.challenge:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Demo Section */
.demo-section {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(29, 78, 216, 0.05) 100%);
    border-radius: var(--border-radius);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.demo-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.demo-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
}

.demo-feature i {
    color: #10b981;
}

.watch-demo-btn {
    margin-top: 1rem;
}

/* Enhancements */
.enhancements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.enhancement {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.enhancement-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .system-architecture {
        grid-template-columns: 1fr;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .hardware-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .algorithms-grid {
        grid-template-columns: 1fr;
    }
    
    .layer-modules {
        grid-template-columns: 1fr;
    }
    
    .network-flow {
        flex-direction: column;
    }
    
    .network-arrow {
        transform: rotate(90deg);
    }
    
    .performance-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .enhancements {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hardware-grid {
        grid-template-columns: 1fr;
    }
    
    .performance-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-features {
        grid-template-columns: 1fr;
    }
    
    .main-component {
        flex-direction: column;
        text-align: center;
    }
    
    .component-connections {
        margin-left: 0;
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}