/* ==========================================
   CSS Custom Properties (Variables)
   ========================================== */
:root {
    /* Color Palette - Aligned with Intelligent Art Logo */
    --primary-teal: #16A085;
    --light-teal: #1ABC9C;
    --secondary-blue: #2C3E50;
    --text-gray: #4F4F4F;
    --accent-rust: #B53C2E;
    --light-rust: #E67E73;
    --light-grey: #EDF2F4;
    --white: #FFFFFF;
    --deep-black: #0A0A0A;

    /* Semantic color mappings */
    --charcoal: #2C3E50;
    --slate: #4F4F4F;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==========================================
   Global Reset & Base Styles
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    color: var(--charcoal);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--spacing-sm);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ==========================================
   Utility Classes
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.section-title {
    color: var(--charcoal);
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    color: var(--slate);
    font-size: 1.125rem;
    font-weight: var(--font-weight-light);
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--accent-rust) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-primary {
    background-color: var(--charcoal);
    color: var(--white);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.btn-secondary {
    background-color: var(--charcoal);
    color: var(--white);
    border: 2px solid transparent;
}

.btn-secondary:hover::before {
    opacity: 1;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.btn-full {
    width: 100%;
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all var(--transition-fast);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    text-decoration: none;
}

.logo {
    width: 120px;
    height: 120px;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--accent-rust) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--charcoal);
    font-weight: var(--font-weight-medium);
    position: relative;
    padding: var(--spacing-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-teal) 0%, var(--accent-rust) 100%);
    transition: width var(--transition-fast);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--radius-sm);
    background-color: var(--light-grey);
    border: 1px solid rgba(43, 45, 66, 0.1);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--charcoal);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--charcoal);
    margin-bottom: var(--spacing-md);
}

.highlight {
    color: var(--primary-teal);
    position: relative;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--accent-rust) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--slate);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Terminal Window */
.terminal-window {
    width: 100%;
    max-width: 600px;
    background: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
}

.terminal-header {
    background: #2a2a2a;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #333;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-button.red {
    background: #ff5f56;
}

.terminal-button.yellow {
    background: #ffbd2e;
}

.terminal-button.green {
    background: #27c93f;
}

.terminal-title {
    color: #999;
    font-size: 13px;
    flex: 1;
    text-align: center;
}

.terminal-body {
    padding: 20px;
    color: #16A085;
    font-size: 14px;
    line-height: 1.6;
    min-height: 300px;
}

.terminal-logo {
    color: #16A085;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInLogo 1s ease forwards;
}

.terminal-logo pre {
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
}

@keyframes fadeInLogo {
    to { opacity: 1; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.terminal-line {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-prompt {
    color: #16A085;
    font-weight: bold;
}

.terminal-command {
    color: #1ABC9C;
}

.terminal-cursor {
    color: #16A085;
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.terminal-output {
    color: #E67E73;
    margin-left: 0;
    font-size: 13px;
}

.terminal-output-line {
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

/* ==========================================
   About Section
   ========================================== */
.about {
    padding: var(--spacing-lg) 0;
    background-color: var(--light-grey);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-md);
}

.about-text .lead {
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
    color: var(--primary-teal);
    margin-bottom: var(--spacing-md);
}

.about-text p {
    color: var(--slate);
    line-height: 1.8;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.stat-card {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--accent-rust) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--slate);
    font-size: 0.875rem;
}

/* ==========================================
   Services Section
   ========================================== */
.services {
    padding: var(--spacing-lg) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background-color: var(--light-grey);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-medium);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(22, 160, 133, 0.15);
    border-color: var(--primary-teal);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--light-teal) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    color: var(--white);
}

.service-title {
    color: var(--charcoal);
    margin-bottom: var(--spacing-sm);
}

.service-description {
    color: var(--slate);
    line-height: 1.7;
}

/* ==========================================
   Portfolio Section
   ========================================== */
.portfolio {
    padding: var(--spacing-lg) 0;
    background-color: var(--light-grey);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.portfolio-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    height: 240px;
    overflow: hidden;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light-grey), var(--slate));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.portfolio-content {
    padding: var(--spacing-md);
}

.portfolio-title {
    color: var(--charcoal);
    margin-bottom: var(--spacing-sm);
}

.portfolio-description {
    color: var(--slate);
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

.portfolio-tags {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.tag {
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(22, 160, 133, 0.1) 0%, rgba(181, 60, 46, 0.1) 100%);
    color: var(--primary-teal);
    border: 1px solid rgba(22, 160, 133, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
}

/* ==========================================
   Testimonials Section
   ========================================== */
.testimonials {
    padding: var(--spacing-xl) 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.testimonial-card {
    background-color: var(--light-grey);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    transition: all var(--transition-medium);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-content {
    flex: 1;
}

.quote-icon {
    color: var(--orange);
    opacity: 0.3;
    margin-bottom: var(--spacing-sm);
}

.testimonial-text {
    color: var(--slate);
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--orange), var(--charcoal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: var(--font-weight-bold);
}

.author-name {
    color: var(--charcoal);
    font-weight: var(--font-weight-medium);
}

.author-title {
    color: var(--slate);
    font-size: 0.875rem;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact {
    padding: var(--spacing-lg) 0;
    background-color: var(--light-grey);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-md);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    gap: var(--spacing-sm);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--accent-rust) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.contact-details h4 {
    color: var(--charcoal);
    margin-bottom: 4px;
}

.contact-details p {
    color: var(--slate);
    margin: 0;
    line-height: 1.6;
}

.location-link {
    color: var(--slate);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.location-link:hover {
    color: var(--primary-teal);
    text-decoration: underline;
}

.contact-form {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    color: var(--charcoal);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-xs);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--light-grey);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--charcoal);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: linear-gradient(180deg, #1a2530 0%, #2C3E50 100%);
    color: var(--light-grey);
    padding: var(--spacing-lg) 0 var(--spacing-sm);
}

.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-logo-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    text-decoration: none;
}

.footer-logo {
    width: 160px;
    height: 160px;
}

.footer-brand-name {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--accent-rust) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: var(--light-grey);
    line-height: 1.7;
    padding-left: 0;
    margin-left: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.footer-column h4 {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--accent-rust) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-column a {
    color: var(--light-grey);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--light-teal);
}

.footer-bottom {
    border-top: 1px solid rgba(141, 153, 174, 0.2);
    padding-top: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--light-grey);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.footer-legal a:hover {
    color: var(--light-teal);
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 968px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .hero {
        padding-bottom: var(--spacing-lg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .hero-visual {
        height: auto;
        order: -1;
        margin-bottom: var(--spacing-md);
    }

    .terminal-window {
        max-width: 100%;
        font-size: 12px;
    }

    .terminal-body {
        padding: 15px;
        min-height: 250px;
    }

    .terminal-logo pre {
        font-size: 10px;
    }

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

    .about-content {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-brand {
        margin-bottom: var(--spacing-md);
    }

    .about {
        position: relative;
        z-index: 10;
    }
}

@media (max-width: 768px) {
    .logo {
        width: 80px;
        height: 80px;
    }

    .brand-name {
        font-size: 1.125rem;
    }

    .nav-menu {
        position: fixed;
        top: 100px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 100px);
        background-color: var(--white);
        flex-direction: column;
        padding: var(--spacing-md);
        transition: left var(--transition-medium);
        box-shadow: var(--shadow-md);
        border-top: 3px solid var(--primary-teal);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: var(--spacing-sm) 0;
        font-size: 1.125rem;
        border-bottom: 1px solid var(--light-grey);
    }

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

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-cta {
        flex-direction: column;
    }

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

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

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

    .footer-content {
        align-items: center;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-logo-title {
        justify-content: center;
    }

    .footer-logo {
        width: 100px;
        height: 100px;
    }

    .footer-brand-name {
        font-size: 1.25rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .footer-column {
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .logo {
        width: 60px;
        height: 60px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .hero-visual {
        height: auto;
    }

    .terminal-window {
        font-size: 11px;
    }

    .terminal-body {
        padding: 12px;
        min-height: 220px;
    }

    .terminal-logo pre {
        font-size: 9px;
    }

    .terminal-header {
        padding: 10px 12px;
    }

    .terminal-button {
        width: 10px;
        height: 10px;
    }

    .terminal-title {
        font-size: 11px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .footer-logo {
        width: 80px;
        height: 80px;
    }

    .footer-brand-name {
        font-size: 1.125rem;
    }

    .footer-content {
        align-items: center;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-logo-title {
        justify-content: center;
    }

    .footer-column {
        text-align: center;
    }
}

/* ==========================================
   Decorative Elements & Graphics
   ========================================== */
.decorative-pattern {
    position: absolute;
    width: 300px;
    height: 300px;
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

.pattern-left {
    top: 10%;
    left: -50px;
    background: radial-gradient(circle at center, var(--primary-teal) 0%, transparent 70%);
}

.pattern-right {
    top: 20%;
    right: -50px;
    background: radial-gradient(circle at center, var(--accent-rust) 0%, transparent 70%);
}

.decorative-dots {
    position: absolute;
    width: 200px;
    height: 200px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 1;
    background-image: radial-gradient(circle, var(--primary-teal) 2px, transparent 2px);
    background-size: 20px 20px;
}

.dots-top-right {
    top: 50px;
    right: 50px;
}

.dots-bottom-left {
    bottom: 50px;
    left: 50px;
}

.decorative-circuit {
    position: absolute;
    width: 250px;
    height: 250px;
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

.circuit-bottom {
    bottom: 10%;
    left: 5%;
    background-image:
        linear-gradient(90deg, var(--charcoal) 1px, transparent 1px),
        linear-gradient(0deg, var(--charcoal) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Ensure sections have relative positioning for decorative elements */
.about, .services, .portfolio, .contact {
    position: relative;
    overflow: hidden;
}

/* Enhanced service cards with subtle background patterns */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at top right, var(--primary-teal) 0%, transparent 70%);
    opacity: 0.03;
    pointer-events: none;
}

.service-card {
    position: relative;
}

/* Portfolio card enhancements with gradient overlays */
.portfolio-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(22, 160, 133, 0.15) 100%);
    pointer-events: none;
}

/* Stat cards with subtle glow effect */
.stat-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-teal), var(--accent-rust));
    border-radius: var(--radius-md);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-fast);
}

.stat-card:hover::before {
    opacity: 0.1;
}

.contact-form {
    position: relative;
}

/* AI-themed decorative elements for sections mentioning AI */
.services::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 10%;
    width: 150px;
    height: 150px;
    background-image:
        radial-gradient(circle at 50% 50%, var(--primary-teal) 1px, transparent 1px),
        radial-gradient(circle at 25% 75%, var(--accent-rust) 1px, transparent 1px);
    background-size: 25px 25px, 35px 35px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

/* ==========================================
   Animations
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
