/* ---=== styles.css ===--- */
/* ---=== SEIDIAN Vibrant Tech Theme v2.1 ===--- */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Roboto+Mono:wght@300;400&display=swap');

/* --- CSS Variables --- */
:root {
    /* Shared Fonts */
    --font-heading: 'Press Start 2P', cursive, monospace;
    --font-body: 'Roboto Mono', monospace;

    /* Shared Layout */
    --border-radius-sm: 0px;
    --border-radius-md: 0px;
    --transition-speed: 0.3s;
    --animation-speed: 1.5s;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-xxl: 6rem;

    /* Default: Dark Theme */
    --color-bg: #05020a;
    --color-bg-alt: rgba(10, 5, 20, 0.1);
    --color-bg-card: rgba(5, 2, 10, 0.5);
    --color-bg-card-inner: rgba(5, 2, 10, 0.8);
    --color-bg-header: rgba(5, 2, 10, 0.8);
    --color-bg-gradient: linear-gradient(170deg, #0a0514 0%, #05020a 100%);
    --color-text: #00ffcc; /* Teal */
    --color-text-muted: #a0a0c0; /* Lavender */
    --color-heading: var(--color-primary);
    --color-primary: #00ffcc; /* Teal */
    --color-secondary: #ff00ff; /* Magenta */
    --color-accent: #ffff00; /* Yellow */
    --color-highlight: #ffffff; /* White */
    --color-border: rgba(0, 255, 204, 0.3); /* Teal border */
    --color-shadow: rgba(255, 0, 255, 0.4); /* Magenta shadow */
    --color-glow: rgba(0, 255, 204, 0.5); /* Teal glow */
    --color-shadow-sharp: 3px 3px 0 var(--color-secondary);
    --card-border-glow: conic-gradient(transparent, rgba(0, 255, 204, 0.2), transparent 30%);
    --scanline-color: rgba(0, 255, 204, 0.05);
    --section-odd-bg: rgba(0, 255, 204, 0.02);
    --control-button-bg: rgba(255, 255, 255, 0.1);
    --control-button-hover-bg: rgba(255, 255, 255, 0.2);
    --control-button-active-color: var(--color-primary);

    /* Fluid typography base */
    font-size: clamp(10px, 1.8vw, 12px);
}

/* === Light Theme Overrides === */
[data-theme="light"] {
    --color-bg: #f0f0f5; /* Light grey */
    --color-bg-alt: rgba(200, 200, 210, 0.1);
    --color-bg-card: rgba(255, 255, 255, 0.7); /* Whiteish card */
    --color-bg-card-inner: #ffffff;
    --color-bg-header: rgba(255, 255, 255, 0.8);
    --color-bg-gradient: linear-gradient(170deg, #ffffff 0%, #f0f0f5 100%);
    --color-text: #2c3e50; /* Dark blue/grey text */
    --color-text-muted: #5a6a7a; /* Slightly lighter dark grey */
    --color-heading: var(--color-primary);
    --color-primary: #007bff; /* Standard blue */
    --color-secondary: #e83e8c; /* Pink */
    --color-accent: #fd7e14; /* Orange */
    --color-highlight: #0056b3; /* Darker blue for hover */
    --color-border: rgba(44, 62, 80, 0.2); /* Dark text border */
    --color-shadow: rgba(232, 62, 140, 0.2); /* Pink shadow */
    --color-glow: rgba(0, 123, 255, 0.3); /* Blue glow */
    --color-shadow-sharp: 3px 3px 0 var(--color-secondary);
    --card-border-glow: conic-gradient(transparent, rgba(0, 123, 255, 0.1), transparent 30%);
    --scanline-color: rgba(44, 62, 80, 0.03);
    --section-odd-bg: rgba(0, 123, 255, 0.02);
    --control-button-bg: rgba(0, 0, 0, 0.05);
    --control-button-hover-bg: rgba(0, 0, 0, 0.1);
    --control-button-active-color: var(--color-primary);
}

/* --- Global Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* Add transition for smooth theme changes */
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--space-xl) * 1.5);
}

body {
    background-color: var(--color-bg);
    background-image: var(--color-bg-gradient);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1.4rem;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Links --- */
a {
    color: var(--color-primary);
    text-decoration: none; /* Remove default underline */
    position: relative;
}
a:hover, a:focus {
    color: var(--color-highlight);
    text-shadow: 0 0 8px var(--color-highlight); /* Keep subtle shadow */
    outline: 2px dashed var(--color-primary);
    outline-offset: 3px;
}
/* Underline effect */
a:not(.cta-button):not(.email-link):not(.lang-link)::after { /* Exclude specific link types */
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform var(--transition-speed) ease-out, background-color var(--transition-speed) ease;
}
a:not(.cta-button):not(.email-link):not(.lang-link):hover::after,
a:not(.cta-button):not(.email-link):not(.lang-link):focus::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
a.email-link {
    text-decoration: underline dashed 1px;
    text-underline-offset: 4px;
}

/* --- Headings --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}
h1.hero-title {
    font-size: clamp(3.5rem, 8vw + 1rem, 7rem);
    color: var(--color-highlight); /* White/Dark Blue */
    text-shadow: 0 0 5px var(--color-highlight), 0 0 15px var(--color-accent), 4px 4px 0 var(--color-secondary);
    margin-bottom: var(--space-xs);
    animation: fadeInDown var(--animation-speed) ease-out both;
}
h2 {
    font-size: clamp(2.4rem, 5vw + 1rem, 4rem);
    color: var(--color-heading); /* Use heading color var */
    text-shadow: 2px 2px 0 var(--color-bg), 4px 4px 0 var(--color-secondary);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-lg);
}
h3.service-title {
    font-size: 1.8rem;
    color: var(--color-accent); /* Yellow/Orange */
    text-shadow: 1px 1px 0 var(--color-secondary);
    margin-bottom: var(--space-sm);
}

/* --- Header & Navigation --- */
.site-header {
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-bg-header);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}
.main-nav {
    flex-grow: 1;
}
.main-nav .nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: var(--space-sm) var(--space-md);
    padding: var(--space-xs) 0;
}
.main-nav .nav-links a {
    font-size: 1.2rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    padding: var(--space-xs) 0;
}
.main-nav .nav-links a:hover,
.main-nav .nav-links a:focus {
    color: var(--color-highlight);
    text-shadow: 0 0 5px var(--color-highlight);
}
.main-nav .nav-links b {
    color: var(--color-primary);
    font-weight: 400;
}

/* === Controls Styling === */
.controls {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xs) 0;
    margin-left: auto;
}
.language-switcher, .theme-switcher {
    display: flex;
    align-items: center;
}
.language-switcher {
    gap: var(--space-xs);
    color: var(--color-text-muted); /* For the "|" separator */
}
/* Style for language links */
.lang-link {
    font-family: var(--font-body);
    font-size: 1.1rem;
    background-color: transparent;
    border: 1px solid transparent; /* Reserve space for focus border */
    color: var(--color-text-muted);
    cursor: pointer;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius-sm);
    transition: color var(--transition-speed) ease, background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
    line-height: 1;
    text-transform: uppercase;
}
.lang-link:hover,
.lang-link:focus {
    color: var(--color-primary);
    background-color: var(--control-button-hover-bg);
    outline: none;
    border: 1px dashed var(--color-primary);
}
.lang-link.active { /* Style active language link */
    color: var(--color-primary);
    font-weight: bold;
    border: 1px solid var(--color-primary);
    background-color: var(--control-button-bg);
    cursor: default;
}
/* Style for theme toggle button */
#theme-toggle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    background-color: transparent;
    border: 1px solid transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius-sm);
    transition: color var(--transition-speed) ease, background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
    line-height: 1;
}
#theme-toggle:hover,
#theme-toggle:focus {
    color: var(--color-primary);
    background-color: var(--control-button-hover-bg);
    outline: none;
    border: 1px dashed var(--color-primary);
}
/* Style for the span inside the theme button */
#theme-toggle .theme-toggle-label {
   /* Adjust if needed, e.g., for icons */
   display: inline-block;
}


/* --- Hero Section --- */
.hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    margin-bottom: var(--space-xl);
    background: radial-gradient(ellipse at center, var(--color-bg-alt) 0%, transparent 70%), var(--color-bg-gradient);
    overflow: hidden;
    position: relative;
}
.hero::before { /* Scanline effect */
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(var(--scanline-color) 1px, transparent 1px);
    background-size: 1px 3px;
    animation: scanlines 0.2s linear infinite;
    pointer-events: none;
    opacity: 0.7;
    z-index: 0; /* Behind content */
}
@keyframes scanlines { 0% { background-position: 0 0; } 100% { background-position: 0 3px; } }

.hero > * { /* Ensure hero content is above scanlines */
    position: relative;
    z-index: 1;
}

.hero-tagline {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--color-text);
    margin-bottom: var(--space-xs);
    max-width: 60ch;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out 0.5s both;
}
.hero-subtitle {
    font-size: 1.4rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    max-width: 60ch;
    font-family: var(--font-body);
    animation: fadeInUp 1s ease-out 0.8s both;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    color: var(--color-bg); /* Use background color for text */
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, background var(--transition-speed) ease, color var(--transition-speed) ease;
    margin-top: var(--space-md);
    box-shadow: var(--color-shadow-sharp), 0 0 15px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out 1.1s both, pulse 2s infinite 1.5s;
}
.cta-button:hover,
.cta-button:focus {
    transform: translate(-2px, -2px) scale(1.05);
    box-shadow: 5px 5px 0 var(--color-secondary), 0 0 25px var(--color-glow);
    background: linear-gradient(45deg, var(--color-secondary), var(--color-primary));
    color: var(--color-highlight);
    outline: none;
    text-shadow: none;
}
.cta-button:active {
    transform: translate(1px, 1px) scale(0.98);
    box-shadow: 1px 1px 0 var(--color-secondary);
}

/* --- Content Sections --- */
.content-section {
    padding: var(--space-xl) var(--space-md);
    max-width: 1000px;
    margin: 0 auto var(--space-xl) auto;
    border-top: 1px dashed var(--color-border);
}
.content-section:first-of-type {
    border-top: none;
}
.content-section:nth-of-type(odd) {
    background-color: var(--section-odd-bg);
}
.content-section p {
    margin-bottom: var(--space-md);
    color: var(--color-text-muted);
    font-size: 1.5rem;
}
.content-section p b {
    color: var(--color-primary);
    font-weight: 400;
}

/* --- Services Section --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: var(--space-lg);
}
.service-card {
    border: 1px solid var(--color-border);
    padding: var(--space-lg);
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius-md);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease, background-color var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: var(--card-border-glow);
    animation: rotate 4s linear infinite paused;
}
.service-card:hover::before {
    animation-play-state: running;
}
.service-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    background-color: var(--color-bg-card-inner);
    border-radius: var(--border-radius-md);
    z-index: 1;
    transition: background-color var(--transition-speed) ease;
}
.service-card h3, .service-card p {
    position: relative;
    z-index: 2;
}
.service-card:hover {
   transform: translateY(-5px) scale(1.02);
   border-color: var(--color-primary);
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 10px var(--color-glow);
}

/* --- Contact Section --- */
.contact-section h2 {
    border-bottom: none;
    margin-bottom: var(--space-sm);
    text-align: center;
}
.contact-channel {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: var(--space-xs);
}
.email-link { /* Styling specific to email link */
    color: var(--color-accent);
    font-weight: 400;
    text-decoration: underline dashed 1px;
    text-underline-offset: 4px;
}
.email-link:hover, .email-link:focus {
    color: var(--color-highlight);
    background-color: rgba(255, 255, 0, 0.1);
    text-shadow: 0 0 8px var(--color-accent);
    outline-offset: 5px;
}
.contact-note {
    text-align: center;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--color-text-muted);
    margin-top: var(--space-md);
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    margin-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
    background-color: var(--color-bg-header);
}
.footer-details {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    letter-spacing: 0.5px;
}

/* --- Animations --- */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* --- Reduced Motion Preference --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .pulse { animation-name: none !important; }
  .service-card::before { animation: none !important; }
  .hero::before { animation: none !important; }
}

/* --- Responsiveness --- */
@media (max-width: 900px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
    }
    .main-nav {
        order: 2;
        margin-top: var(--space-sm);
    }
    .main-nav .nav-links {
        justify-content: center;
    }
    .controls {
        order: 1;
        justify-content: space-between;
        margin-left: 0;
        width: 100%;
    }
}
@media (max-width: 768px) {
    .hero {
        min-height: 50vh;
        padding: var(--space-lg) var(--space-sm);
    }
    .content-section {
        padding: var(--space-lg) var(--space-sm);
    }
    h1.hero-title { font-size: clamp(3rem, 10vw + 1rem, 5rem); }
    h2 { font-size: clamp(2rem, 6vw + 1rem, 3rem); }

    .main-nav .nav-links {
        flex-direction: column;
        align-items: center;
        gap: var(--space-xs);
    }
}