/* ===================================================================
   KhazLabz - Modern Sleek Design - PostCSS
   =================================================================== */

/* Import modular CSS files */

/* ===================================================================
   CSS Variables - Cyberpunk Palette (Dark mode only)
   =================================================================== */

:root {
    color-scheme: dark;

    /* Primary Colors - Electric Cyan */
    --primary-50: #00151a;
    --primary-100: #002a33;
    --primary-200: #004052;
    --primary-300: #00556b;
    --primary-400: #0088a8;
    --primary-500: #00a0c0;
    --primary-600: #00a0c0;
    --primary-700: #00f0ff;
    --primary-800: #66f7ff;
    --primary-900: #ccfcff;

    /* Accent - Cyberpunk Magenta */
    --accent: #c71587;
    --accent-light: #ff4db8;
    --accent-dark: #b0156e;

    /* Neutral Colors - Cool Gray (dark scale) */
    --gray-50: #05050a;
    --gray-100: #0a0a12;
    --gray-200: #11111f;
    --gray-300: #1a1a2e;
    --gray-400: #2a2a45;
    --gray-500: #5a5a7a;
    --gray-600: #8a8aaa;
    --gray-700: #babacd;
    --gray-800: #dadadf;
    --gray-900: #ffffff;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #f43f5e;

    /* Surface */
    --surface-color: #0a0a12;
    --border-color: var(--gray-300);
    --primary-color: var(--primary-600);
    --text-muted: var(--gray-500);

    /* Gradients */
    --gradient-primary: linear-gradient(
        135deg,
        var(--primary-600) 0%,
        var(--primary-800) 100%
    );
    --gradient-light: linear-gradient(135deg, #05050a 0%, #0a0a12 100%);
    --gradient-accent: linear-gradient(135deg, #00f0ff 0%, #ff00a0 100%);

    /* Glows */
    --glow-cyan: 0 0 30px rgba(0, 240, 255, 0.4);
    --glow-accent: 0 0 30px rgba(255, 0, 160, 0.4);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md:
        0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg:
        0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl:
        0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* Spacing */
    --nav-height: 72px;
    --container-max: 1200px;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 200ms ease;
    --transition-slow: 300ms ease;
}

/* ===================================================================
   Reset & Base Styles
   =================================================================== */

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

::-moz-selection {
    background: var(--primary-500);
    color: #000000;
}

::selection {
    background: var(--primary-500);
    color: #000000;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
    font-size: 1rem;
    line-height: 1.625;
    color: var(--gray-800);
    background-color: var(--gray-50);
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.12) 1px, transparent 1px);
    background-size: 60px 60px;
    text-rendering: optimizeLegibility;
}

/* ===================================================================
   Typography
   =================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family:
        "Space Grotesk",
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

h1,
h2 {
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 1.875rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.25rem;
    color: var(--gray-700);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-700);
}

/* ===================================================================
   Buttons
   =================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn:focus,
.btn:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    box-shadow: 0 2px 4px 0 rgba(0, 240, 255, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-700);
    color: white;
    transform: translateY(-1px);
    box-shadow:
        0 4px 8px 0 rgba(0, 240, 255, 0.3),
        var(--glow-cyan);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--accent-light);
    color: white;
}

/* Size Variants */
.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ===================================================================
   Layout Components
   =================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 5, 10, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: white;
    padding: 0;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow:
        0 0 30px rgba(0, 240, 255, 0.15),
        0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: var(--nav-height);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    gap: 2rem;
    position: relative;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity var(--transition-fast);
    flex: 1;
    min-width: 0;
}

.site-branding:hover {
    opacity: 0.9;
}

.site-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.site-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Navigation ===== */
.main-nav {
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    background-color: var(--gray-50);
    transition: all var(--transition);
}

.main-nav.active {
    opacity: 1;
    visibility: visible;
}

.nav-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    padding: 0 1.5rem;
    height: var(--nav-height);
    color: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    transition: color var(--transition-fast);
    text-decoration: none;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--accent);
}

/* ===== Mobile Menu Button ===== */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    position: relative;
    transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 2px;
    background: white;
    transition: all var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.mobile-menu-btn.active .hamburger {
    background: transparent;
}

.mobile-menu-btn.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-btn.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ===== Header Actions ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--gray-50);
    color: var(--gray-300);
    padding: 3rem 0;
    margin-top: auto;
    border-top: 1px solid rgba(0, 240, 255, 0.15);
    box-shadow: inset 0 1px 20px rgba(0, 240, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.footer-social a:hover {
    color: var(--primary-400);
}

/* ===== Main Content ===== */
.main-content {
    min-height: calc(100vh - var(--nav-height) - 200px);
}
/* ===================================================================
   Page Sections
   =================================================================== */

/* ===== Hero Section ===== */
.hero {
    text-align: center;
    padding: 5rem 0 4rem;
}
.hero h1 {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
        background: var(--gradient-accent);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.4));
    }

.motto-large {
    font-size: 1.375rem;
    font-style: italic;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.tagline {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Page Header ===== */
.page-header {
    padding: 3rem 0 2rem;
    background: var(--gray-50);
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    margin-bottom: 2rem;
}
.page-header h1 {
        font-size: 2.25rem;
        margin-bottom: 0.75rem;
    }

.page-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 0;
}

/* ===== Main Content ===== */
.main-content {
    padding: 3rem 0;
    min-height: calc(100vh - var(--nav-height) - 64px);
}
/* ===================================================================
   UI Components
   =================================================================== */

/* ===== Cards ===== */
.card {
    background: var(--gray-100);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-300);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md), var(--glow-cyan);
    transform: translateY(-2px);
    border-color: var(--primary-300);
}

/* ===== Feature Highlight ===== */
.feature-highlight {
    padding: 3rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-grid .feature-card {
    background-color: transparent;
    box-shadow: none;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    transition: border-color var(--transition);
}

.feature-grid .feature-card:hover {
    border-bottom-color: var(--primary-400);
}

/* ===== Projects ===== */
.projects-grid {
    padding: 2rem 0;
}

.projects-grid > .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--gray-100);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-300);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    box-shadow: var(--shadow-md), var(--glow-cyan);
    transform: translateY(-4px);
    border-color: var(--primary-300);
}

.project-card.featured {
    border: 2px solid var(--primary-500);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    position: relative;
}

.project-card.featured::before {
    content: "★ Featured";
    position: absolute;
    top: -12px;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-700) 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.6), 0 0 24px rgba(0, 240, 255, 0.4);
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

.project-card.featured .project-badge {
    display: none;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-badge {
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary-500);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-description {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-why {
    color: var(--gray-500);
    font-size: 0.9375rem;
    font-style: italic;
    border-left: 2px solid var(--primary-500);
    padding-left: 0.75rem;
    margin-bottom: 1.5rem;
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.meta-item {
    color: var(--gray-500);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-item .meta-label {
    font-weight: 600;
    color: var(--gray-600);
    min-width: 80px;
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== Services ===== */
.services-section {
    padding: 3rem 0;
}

.service-card {
    background: var(--gray-100);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-300);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-md), var(--glow-cyan);
    transform: translateY(-2px);
    border-color: var(--primary-300);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-600);
}

.service-list {
    list-style: none;
    margin-top: 1rem;
}

.service-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-500);
}

/* ===== Contact Form ===== */
.contact-section {
    padding: 3rem 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-input:invalid:not(:-moz-placeholder), .form-textarea:invalid:not(:-moz-placeholder) {
    border-color: var(--danger);
}

.form-input:invalid:not(:placeholder-shown),
.form-textarea:invalid:not(:placeholder-shown) {
    border-color: var(--danger);
}

.form-input:valid:not(:-moz-placeholder), .form-textarea:valid:not(:-moz-placeholder) {
    border-color: var(--success);
}

.form-input:valid:not(:placeholder-shown),
.form-textarea:valid:not(:placeholder-shown) {
    border-color: var(--success);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-error {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ===== Blog ===== */
.blog-section {
    padding: 2rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--gray-100);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-300);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: var(--shadow-md), var(--glow-cyan);
    transform: translateY(-2px);
    border-color: var(--primary-300);
}

.blog-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-header {
    margin-bottom: 1rem;
}

.blog-card-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.blog-card-header h2 a {
    color: var(--gray-900);
    text-decoration: none;
}

.blog-card-header h2 a:hover {
    color: var(--primary-400);
}

.blog-date {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.blog-card-body {
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-card-footer {
    margin-top: auto;
}

/* ===== Blog Post (Single) ===== */
.blog-post {
    padding: 2rem 0;
}

.blog-post-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-300);
}

.blog-post-header h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.blog-nav {
    margin-bottom: 1.5rem;
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary-500);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 240, 255, 0.2);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-post-content {
    max-width: 720px;
    margin-bottom: 3rem;
}

.blog-post-content h2 {
    font-size: 1.875rem;
    margin: 2rem 0 1rem;
}

.blog-post-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.75rem;
}

.blog-post-content p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.blog-post-content a {
    color: var(--primary-400);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-post-content a:hover {
    color: var(--primary-300);
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 0 0 1.25rem 1.5rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

.blog-post-content code {
    background: var(--gray-200);
    color: var(--gray-800);
    padding: 0.15rem 0.35rem;
    border-radius: var(--radius-sm);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
}

.blog-post-content pre {
    background: var(--gray-200);
    padding: 1rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.blog-post-content pre code {
    background: transparent;
    padding: 0;
}

.blog-post-content blockquote {
    border-left: 4px solid var(--primary-400);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: var(--gray-600);
    font-style: italic;
}

.blog-post-content img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.blog-post-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-300);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    background: var(--gray-100);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-300);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    margin: 0 auto 1rem;
    object-fit: cover;
}

.team-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.team-role {
    color: var(--primary-600);
    margin-bottom: 1rem;
    font-weight: 500;
}

.team-bio {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* ===== Blog photos / placeholders ===== */
.post-photo {
    margin: 1.5rem 0;
}

.post-photo img {
    margin: 0;
}

.post-photo figcaption {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    text-align: center;
}

.post-photo-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 220px;
    border: 2px dashed var(--primary-500);
    border-radius: var(--radius-md);
    background: rgba(0, 160, 192, 0.06);
    color: var(--gray-600);
    padding: 1rem;
    text-align: center;
}

.post-photo-label {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--primary-700);
}

.post-photo-path {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

.post-photo-alt {
    font-style: italic;
    font-size: 0.875rem;
}

/* ===================================================================
   Services Section
   =================================================================== */

.services-list {
    padding: 2rem 0;
}

.service-card {
    background: var(--gray-100);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-300);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    align-items: start;
    transition: all var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-md), var(--glow-cyan);
    border-color: var(--primary-300);
}

.service-icon {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-content h3 {
        color: var(--primary-600);
        margin-bottom: 0.75rem;
        text-align: center;
    }

.service-content > p {
        color: var(--gray-700);
        margin-bottom: 1.25rem;
        text-align: justify;
    }

.service-features {
    margin-bottom: 1.25rem;
    padding-left: 0;
    list-style: none;
}

.service-features li {
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: "→";
    color: var(--primary-500);
    position: absolute;
    left: 0;
}

.service-price {
    color: var(--primary-400);
    font-weight: 600;
}

/* ===================================================================
   Forms & Contact
   =================================================================== */

/* ===== Contact Section ===== */
.contact-section {
    padding: 4rem 0;
    background: var(--gradient-light);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-info h2,
.contact-form h2 {
    margin-bottom: 2rem;
    color: var(--gray-900);
    font-size: 1.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.3));
}

.contact-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-300);
    transition: all var(--transition);
}

.contact-item:hover {
    border-bottom-color: var(--primary-400);
    transform: translateX(0.25rem);
}

.contact-item h4 {
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contact-item p {
    color: var(--gray-700);
    margin-bottom: 0;
    font-size: 1rem;
}

.contact-item a {
    color: var(--primary-500);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
}

.contact-item a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width var(--transition);
}

.contact-item a:hover {
    color: var(--primary-400);
}

.contact-item a:hover::after {
    width: 100%;
}

.contact-form {
    background: var(--gray-100);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-300);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #00f0ff 0%, #ff00a0 100%);
}

/* ===== Form Styles ===== */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: var(--gray-100);
    color: var(--gray-900);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
}

.form-group input::-moz-placeholder, .form-group textarea::-moz-placeholder {
    color: var(--gray-600);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-600);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.form-group select {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2300a0c0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem;
    padding-right: 2.75rem;
    cursor: pointer;
}

.form-group select option {
    background: var(--gray-100);
    color: var(--gray-900);
}

/* nForms Validation Error Styling */
.form-group [role="alert"]:not(:empty) {
    display: block;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #ff6b8a;
    background-color: rgba(255, 107, 138, 0.1);
    border: 1px solid rgba(255, 107, 138, 0.2);
    border-radius: var(--radius-sm);
    animation: formErrorSlideDown 0.2s ease;
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"],
.form-group select[aria-invalid="true"] {
    border-color: #ff6b8a;
    box-shadow: 0 0 0 3px rgba(255, 107, 138, 0.15);
}

@keyframes formErrorSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-actions .btn {
    flex: 1;
    min-width: 150px;
}

.form-success {
    padding: 2.5rem;
    background: linear-gradient(
        135deg,
        var(--primary-100) 0%,
        var(--primary-200) 100%
    );
    border: 2px solid var(--primary-400);
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 2rem;
    box-shadow:
        var(--shadow-lg),
        0 0 30px rgba(0, 240, 255, 0.3);
    animation: fadeIn 0.5s ease;
}

.form-success h3 {
    color: var(--primary-400);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-success p {
    color: var(--gray-700);
    margin-bottom: 0;
    font-size: 1.125rem;
}

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

/* ===== Office Location ===== */
.office-location {
    padding: 4rem 0;
    background: var(--gradient-light);
    background-color: var(--gray-50);
    position: relative;
    overflow: hidden;
}
.office-location::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image:
            linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
            linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
        background-size: 60px 60px;
        pointer-events: none;
    }

.office-location h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.3));
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.location-card {
    padding: 2rem;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-300);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.location-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition);
}

.location-card:hover {
    transform: translateY(-0.25rem);
    border-color: var(--primary-400);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 240, 255, 0.3);
}

.location-card:hover::before {
    opacity: 1;
}

.location-card h4 {
    color: var(--primary-400);
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.location-card address {
    font-style: normal;
    color: var(--gray-700);
    line-height: 1.75;
}

.location-card p {
    color: var(--gray-700);
    line-height: 1.75;
}

.location-card strong {
    color: var(--primary-400);
    font-weight: 600;
}

/* ===================================================================
   About Section
   =================================================================== */

.about-content {
    padding: 2rem 0;
    background: transparent;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr);
    gap: 5rem;
    align-items: start;
}

.about-panel {
    padding: 2.5rem;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.about-text h2 {
        color: var(--primary-600);
        margin: 2rem 0 1rem;
        font-size: 1.375rem;
    }

.about-text h2:first-child {
        margin-top: 0;
    }

.about-text p {
        color: var(--gray-600);
        margin-bottom: 1rem;
    }

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.value-item {
    padding: 1.25rem;
    background: var(--gray-200);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-300);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all var(--transition);
}

.value-item:hover {
    background: var(--primary-50);
    border-color: var(--primary-200);
}

.value-item h4 {
    color: var(--primary-600);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.value-item p {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-sidebar h3 {
    color: var(--primary-600);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-200);
    font-size: 1.125rem;
}

.about-sidebar ul {
    list-style: none;
    padding-left: 0;
}

.about-sidebar li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-300);
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.stats-highlight {
    background: var(--gray-100);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-300);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.stat-item {
    text-align: center;
    padding: 1.25rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-400);
}

.stat-label {
    display: block;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.technologies-highlight {
    padding-top: 0.5rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tag {
    background: rgba(0, 240, 255, 0.12);
    color: var(--primary-500);
    padding: 0.4375rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 240, 255, 0.25);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
    font-size: 0.8125rem;
    font-weight: 500;
}

/* ===================================================================
   Miscellaneous Components
   =================================================================== */

/* ===== Why Us Section ===== */
.why-us {
    padding: 3rem 0;
    background: var(--gray-50);
}
.why-us h2 {
        text-align: center;
        margin-bottom: 2.5rem;
        color: var(--gray-900);
    }

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit {
    text-align: center;
    padding: 1.5rem;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-300);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all var(--transition);
}

.benefit:hover {
    box-shadow: var(--shadow-md), var(--glow-cyan);
    border-color: var(--primary-300);
}

.benefit h4 {
    color: var(--primary-400);
    margin-bottom: 0.75rem;
}

.benefit p {
    color: var(--gray-700);
}

.cta-section {
    padding: 3rem 0;
    text-align: center;
    background: var(--gray-50);
}

.cta-section h2 {
        margin-bottom: 1rem;
    }

.cta-section p {
        margin-bottom: 2rem;
        color: var(--gray-700);
    }

/* ===== Testimonials ===== */
.testimonials {
    padding: 3rem 0;
    background: var(--gray-50);
}
.testimonials h2 {
        text-align: center;
        margin-bottom: 2.5rem;
    }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    padding: 2rem;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-300);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.testimonial p {
        font-style: italic;
        color: var(--gray-700);
        margin-bottom: 1.5rem;
        font-size: 1rem;
    }

.testimonial footer {
        font-size: 0.875rem;
        color: var(--primary-400);
        font-weight: 600;
    }

/* ===== Thank You Page ===== */
.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1.5rem;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    border: 4px solid var(--success);
}

.thank-you-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ===== Code Blocks ===== */
pre {
    background: var(--gray-100);
    color: var(--gray-800);
    padding: 1rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--gray-300);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

code {
    background: var(--gray-200);
    color: var(--primary-500);
    padding: 0.1875rem 0.375rem;
    border-radius: var(--radius-sm);
    font-family: "SF Mono", "JetBrains Mono", "Fira Code", monospace;
    font-size: 0.875rem;
}

/* ===== Blockquotes ===== */
blockquote {
    padding-left: 1rem;
    border-left: 3px solid var(--primary-500);
    color: var(--gray-600);
    font-style: italic;
    margin: 1.5rem 0;
    box-shadow: -4px 0 15px rgba(0, 240, 255, 0.1);
}

/* ===== Images ===== */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

/* ===== Loading Spinner ===== */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0%,
    100% {
        box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
    }
}

.hero,
.page-header,
.feature-card,
.service-card,
.project-card,
.testimonial {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

/* ===================================================================
   Responsive Design & Media Queries
   =================================================================== */

/* ===== Tablet & Below ===== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-panel {
        padding: 1.5rem;
    }

    .about-sidebar {
        order: -1;
    }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    html {
        font-size: 0.9375rem;
    }

    .hero {
        padding: 3rem 0 2.5rem;
    }

        .hero h1 {
            font-size: 2.5rem;
        }

    .motto-large {
        font-size: 1.125rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .main-content {
        padding: 2rem 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-content,
    .feature-highlight,
    .why-us,
    .cta-section,
    .contact-section,
    .testimonials {
        padding: 2rem 0;
    }

    /* Mobile Navigation */
    .site-header {
        position: relative;
        height: auto;
        z-index: 100;
    }

    .header-container {
        height: auto;
        padding: 0.75rem 1.5rem;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 1rem;
    }

    .header-container.nav-open {
        flex-wrap: wrap;
    }

    .site-branding {
        flex: 1;
        min-width: 0;
    }

    .header-actions {
        flex-shrink: 0;
        display: flex;
        gap: 0.5rem;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        transform: translateY(-10px);
        background: transparent;
        z-index: 1000;
    }

    .main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        background: var(--gradient-light);
        border: 1px solid rgba(0, 240, 255, 0.2);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 1rem;
        gap: 0.5rem;
    }

    .nav-link {
        width: 100%;
        height: auto;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: flex-start;
        color: rgba(255, 255, 255, 0.92);
        white-space: nowrap;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link:hover {
        color: var(--accent);
        background: rgba(255, 0, 160, 0.08);
    }

    .nav-link.active {
        color: var(--accent);
        border-bottom-color: var(--accent);
        background: rgba(255, 0, 160, 0.12);
    }

    /* Staggered slide-in animation for mobile nav links */
    .main-nav.active .nav-link {
        animation: slideInFromRight 0.35s ease-out both;
    }

    .main-nav.active .nav-link:nth-child(1) { animation-delay: 0.05s; }
    .main-nav.active .nav-link:nth-child(2) { animation-delay: 0.10s; }
    .main-nav.active .nav-link:nth-child(3) { animation-delay: 0.15s; }
    .main-nav.active .nav-link:nth-child(4) { animation-delay: 0.20s; }
    .main-nav.active .nav-link:nth-child(5) { animation-delay: 0.25s; }

    @keyframes slideInFromRight {
        from {
            opacity: 0;
            transform: translateX(30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .service-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-icon {
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .site-motto {
        display: none;
    }
}

/* ===== Desktop Navigation ===== */
@media (min-width: 769px) {
    .main-nav {
        margin-left: auto;
        width: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateX(30px);
        background: transparent;
        transition: all var(--transition-slow);
    }

    .main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .main-nav.active .nav-link {
        animation: slideInFromRight 0.35s ease-out both;
    }

    .main-nav.active .nav-link:nth-child(1) { animation-delay: 0.05s; }
    .main-nav.active .nav-link:nth-child(2) { animation-delay: 0.10s; }
    .main-nav.active .nav-link:nth-child(3) { animation-delay: 0.15s; }
    .main-nav.active .nav-link:nth-child(4) { animation-delay: 0.20s; }
    .main-nav.active .nav-link:nth-child(5) { animation-delay: 0.25s; }

    .nav-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        height: var(--nav-height);
        padding: 0;
        gap: 0.5rem;
    }

    .nav-link {
        padding: 0 1.5rem;
        height: var(--nav-height);
        color: rgba(255, 255, 255, 0.92);
        display: flex;
        align-items: center;
        transition: color var(--transition-fast);
        text-decoration: none;
        font-weight: 500;
    }

    .nav-link:hover {
        color: var(--accent);
    }
}

/* ===== Small Mobile ===== */
@media (max-width: 480px) {
    .hero {
        padding: 2rem 0 2rem;
    }

        .hero h1 {
            font-size: 2rem;
        }

    .page-header h1 {
        font-size: 1.875rem;
    }

    .site-title {
        font-size: 1.125rem;
    }

    .container {
        padding: 0 1rem;
    }

    .main-content {
        padding: 1.5rem 0;
    }

    .about-content,
    .feature-highlight,
    .why-us,
    .cta-section,
    .contact-section,
    .testimonials,
    .office-location {
        padding: 1.5rem 0;
    }

    .btn {
        width: 100%;
    }

    .project-links {
        flex-direction: column;
    }

        .project-links .btn {
            width: 100%;
        }

    .site-logo {
        width: 32px;
        height: 32px;
    }

    .site-title {
        font-size: 1.25rem;
    }
}
