/* Global Styles */
:root {
    --bg-color: #050510;

    /* Color Palette (aligned with public-tools) */
    --color-bg-deep: hsl(220, 20%, 10%);
    --color-bg-card: hsl(220, 20%, 14%);
    --color-bg-card-hover: hsl(220, 20%, 18%);

    --primary-color: hsl(250, 100%, 70%);
    /* Electric Violet */
    --primary-color-glow: hsl(250, 100%, 70%, 0.5);
    --color-primary: hsl(250, 100%, 70%);
    --color-primary-glow: hsl(250, 100%, 70%, 0.5);

    --secondary-color: hsl(170, 100%, 45%);
    /* Cyan/Teal Accent */
    --color-accent: hsl(170, 100%, 45%);
    --color-accent-glow: hsl(170, 100%, 45%, 0.5);

    --error-color: #ff4444;
    --text-color: #e0e6ed;
    --text-muted: #94a3b8;
    --color-text-main: hsl(0, 0%, 100%);
    --color-text-muted: hsl(220, 10%, 70%);

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-cursive: 'Dancing Script', cursive;
    /* Kept just in case */
    --font-main: 'Outfit', 'Inter', sans-serif;

    --transition: all 0.2s ease;

    /* Spacing (from public-tools) */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* Borders & Glass (from public-tools) */
    --radius-md: 12px;
    --radius-lg: 20px;
    --border-glass: 1px solid rgba(255, 255, 255, 0.1);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* Dynamic Backgrounds */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(188, 19, 254, 0.15) 0%, rgba(5, 5, 16, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
    text-transform: none;
    letter-spacing: normal;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, #fff, var(--text-muted));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.blog-header {
    text-align: center;
    padding: 40px 0 20px;
}


.section-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    margin-top: 10px;
    box-shadow: 0 0 10px var(--primary-color);
}

.cursive-i {
    font-family: var(--font-cursive);
    color: var(--secondary-color);
    text-transform: none;
    font-weight: 700;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.card-padding {
    padding: 2rem;
    border-radius: 12px;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-transform: none;
    /* No more ALL CAPS */
    letter-spacing: normal;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--primary-color-glow);
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: scale(1.02);
    box-shadow: 0 6px 20px var(--primary-color-glow);
    color: #fff;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text-color);
    padding: 12px 30px;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-secondary:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.3);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    padding: 0.5rem 0;
    /* Reduced padding to match tools */
    background: rgba(5, 5, 16, 0.8);
    /* Better contrast for fixed header */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-links-container {
    display: flex;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    /* White/Light text by default */
    letter-spacing: -0.02em;
    text-shadow: none;
    /* Removed neon glow */
    text-transform: none;
    /* Mixed case */
}

.logo span {
    color: var(--primary-color);
}

/* Old cursive logo support removal or adjustment if needed */
.logo .cursive-i {
    font-size: 1.2em;
    margin-left: -2px;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    /* Reduced gap to support button background style */
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: 0.95rem;
    text-transform: none;
    /* Mixed case */
    letter-spacing: normal;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
}

/* Remove old underline effect */
.nav-links a:not(.btn-nav)::after {
    display: none;
}

.nav-links a:not(.btn-nav):hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    text-shadow: none;
}

/* Nav Button Style (Contact) */
.btn-nav {
    background: var(--primary-color);
    color: #fff !important;
    padding: 0.5rem 1rem !important;
    border: none !important;
    /* Remove outline */
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: 0 4px 15px var(--primary-color-glow);
}

.btn-nav:hover {
    background: var(--primary-color);
    /* Keep solid */
    transform: scale(1.02);
    box-shadow: 0 6px 20px var(--primary-color-glow);
    color: #fff !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
}

/* Mobile Navigation Menu */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: var(--bg-color);
    border-left: 1px solid var(--glass-border);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.mobile-nav-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav-links {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.mobile-nav-links li {
    margin: 0;
}

.mobile-nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.mobile-nav-links a:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.mobile-nav-links a.btn-nav {
    margin: 1rem 1.5rem;
    text-align: center;
    border-left: none;
    border-radius: var(--radius-md);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px;
    position: relative;
    overflow: hidden;
    /* Ensure canvas doesn't overflow */
}

#tech-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Below content but above background */
}

.overlay-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    z-index: 2;
    /* On top of canvas */
    pointer-events: none;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 3;
    /* On top of everything */
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.hero-content h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Sections General */
.section {
    padding: 100px 0;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* 3-column variant for services */
.about-grid.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* 2-column variant for target audience */
.about-grid.grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-item {
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

.stat-item h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

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

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
}

.pricing-card.popular {
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.15);
}

.pricing-card.popular:hover {
    box-shadow: 0 0 40px rgba(188, 19, 254, 0.25);
}

.pricing-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.pricing-card .price-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.deal-text {
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    font-style: italic;
    background: rgba(0, 243, 255, 0.05);
    padding: 10px;
    border-radius: 4px;
}

.pricing-card ul {
    text-align: left;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.pricing-card ul li {
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.pricing-card ul li::before {
    content: '>';
    color: var(--secondary-color);
    font-family: var(--font-heading);
    font-weight: 700;
    margin-right: 10px;
}

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

.project-card {
    padding: 2.5rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.card-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.project-card:hover .card-border {
    transform: translateX(100%);
    transition-duration: 1.5s;
}

.project-icon {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.project-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--white);
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.link-arrow {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.link-arrow:hover {
    text-shadow: 0 0 8px var(--primary-color);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info p {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.contact-details p {
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.contact-form {
    padding: 2.5rem;
    border-radius: 12px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
    background: rgba(0, 243, 255, 0.05);
}

/* Validation Styling */
.input-error {
    border-color: var(--error-color) !important;
    background: rgba(255, 68, 68, 0.1) !important;
}

.error-msg {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
    height: 1rem;
    /* Reserve space */
}

.honey-pot {
    visibility: hidden;
    position: absolute;
    opacity: 0;
    left: -9999px;
}

.form-status {
    margin-bottom: 1rem;
    min-height: 1.5rem;
}

/* Footer */
footer {
    background-color: #020205;
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0;
    font-size: 0.85rem;
}

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

.footer-content p {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Hide desktop nav, show mobile menu */
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-nav,
    .mobile-nav-overlay {
        display: block;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Responsive 4-column Grid to prevent orphans */
.grid-4 {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 650px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Standardized Grid Utility (from public-tools) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

/* Standardized Card Component (from public-tools) */
.card {
    background: var(--color-bg-card);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    background: var(--color-bg-card-hover);
    box-shadow: var(--shadow-card), 0 0 20px var(--color-primary-glow);
    border-color: var(--color-primary);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-main);
}

.card-footer {
    margin-top: auto;
    padding-top: var(--spacing-md);
}

/* Animations (from public-tools) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
    opacity: 0;
}

.delay-2 {
    animation-delay: 0.2s;
    opacity: 0;
}

.delay-3 {
    animation-delay: 0.3s;
    opacity: 0;
}

/* Feature Grid (from public-tools) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    text-align: left;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
}

.feature-card h4 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
    font-size: 1.2rem;
}

.feature-check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.feature-check-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-muted);
}

.feature-check-list li::before {
    content: '✓';
    color: var(--color-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}