/* ==========================================================================
   Harrys IT - Sunset Dark Plum Design System & Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Root Variables
   -------------------------------------------------------------------------- */
:root {
    /* Primary Dark Theme (Dominant Dark Colors from Palette) */
    --bg-dark: #120917;
    --bg-card: rgba(38, 16, 45, 0.65);
    --bg-card-hover: rgba(58, 24, 68, 0.75);
    --bg-elevated: #200d2b;

    /* Typography Colors (Soft Warm Light Tints) */
    --text-main: #f9f3e9;
    --text-muted: #cbb6bd;
    --text-dim: #967a84;

    /* Accent Palette (Warm Sunset Tones from Palette Image) */
    --color-plum-dark: #2d1331;
    --color-maroon: #4a183d;
    --color-berry: #792448;
    --color-crimson: #b0334d;
    --color-terracotta: #d95c3a;
    --color-amber: #eb8235;
    --color-gold: #f5a82b;
    --color-yellow: #f9c943;
    --color-cream: #f7ebd0;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #b0334d 0%, #d95c3a 50%, #f5a82b 100%);
    --gradient-glow: linear-gradient(135deg, rgba(176, 51, 77, 0.3) 0%, rgba(245, 168, 43, 0.15) 100%);
    --gradient-text: linear-gradient(135deg, #f9c943 0%, #eb8235 50%, #b0334d 100%);

    /* Borders & Glassmorphism */
    --border-glass: rgba(247, 235, 208, 0.1);
    --border-glow: rgba(235, 130, 53, 0.4);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Shadows & Effects */
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 25px rgba(217, 92, 58, 0.25);

    /* Fonts & Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Global Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Ambient Glow Circles */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
}

.glow-1 {
    top: -100px;
    left: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(176, 51, 77, 0.35) 0%, rgba(0, 0, 0, 0) 70%);
}

.glow-2 {
    top: 600px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(235, 130, 53, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
}

.glow-3 {
    bottom: 200px;
    left: 20%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(74, 24, 61, 0.5) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Typography Helpers */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.25;
    font-weight: 700;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glass), var(--shadow-glow);
}

/* --------------------------------------------------------------------------
   3. Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(176, 51, 77, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(217, 92, 58, 0.55);
}

.btn-secondary {
    background: rgba(247, 235, 208, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(247, 235, 208, 0.12);
    border-color: rgba(247, 235, 208, 0.25);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* --------------------------------------------------------------------------
   4. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: padding var(--transition-fast), background-color var(--transition-fast), backdrop-filter var(--transition-fast);
}

.site-header.scrolled {
    padding: 0.85rem 0;
    background: rgba(18, 9, 23, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo-icon {
    font-family: var(--font-mono);
    color: var(--color-amber);
    font-weight: 700;
}

.logo-accent {
    color: var(--color-gold);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.btn-nav-cta {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    background: rgba(245, 168, 43, 0.15);
    border: 1px solid rgba(245, 168, 43, 0.35);
    color: var(--color-yellow);
}

.btn-nav-cta:hover {
    background: rgba(245, 168, 43, 0.3);
    color: #ffffff;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    padding-top: 9rem;
    padding-bottom: 5rem;
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(176, 51, 77, 0.18);
    border: 1px solid rgba(217, 92, 58, 0.35);
    color: var(--color-yellow);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-gold);
    box-shadow: 0 0 10px var(--color-gold);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
    font-size: 3.25rem;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.25rem;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-trust-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-glass);
}

.trust-item {
    display: flex;
    flex-direction: column;
}

.trust-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.trust-desc {
    font-size: 0.825rem;
    color: var(--text-dim);
}

.trust-divider {
    width: 1px;
    height: 28px;
    background-color: var(--border-glass);
}

/* Code Preview Box */
.code-preview-card {
    padding: 0;
    overflow: hidden;
    position: relative;
    background: #150a1a;
}

.card-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: rgba(247, 235, 208, 0.04);
    border-bottom: 1px solid var(--border-glass);
}

.dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background-color: #d95c3a; }
.dot-yellow { background-color: #f5a82b; }
.dot-green { background-color: #792448; }

.card-title-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
}

.code-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.7;
    overflow-x: auto;
}

.code-keyword { color: var(--color-amber); }
.code-class { color: var(--color-yellow); }
.code-string { color: var(--color-cream); }
.code-method { color: var(--color-crimson); }

/* --------------------------------------------------------------------------
   6. General Section Styling
   -------------------------------------------------------------------------- */
.section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-header.center {
    text-align: center;
}

.section-tag {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.section-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 640px;
}

.section-header.center .section-lead {
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   7. About Section
   -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.about-card-main {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-card-main .icon-box {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(235, 130, 53, 0.18);
    color: var(--color-amber);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.about-card-main h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-card-main p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.about-card-main p:last-child {
    margin-bottom: 0;
}

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

.highlight-card {
    padding: 1.5rem;
}

.highlight-icon {
    color: var(--color-gold);
    margin-bottom: 0.75rem;
}

.highlight-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.highlight-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   8. Services Section
   -------------------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    padding: 2.5rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-card.highlight-border {
    border-color: rgba(235, 130, 53, 0.4);
    background: linear-gradient(180deg, rgba(42, 18, 51, 0.85) 0%, rgba(26, 12, 33, 0.95) 100%);
}

.service-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--gradient-primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.85rem;
    border-radius: var(--radius-full);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: rgba(247, 235, 208, 0.04);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    margin-bottom: 1.75rem;
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

.service-list {
    list-style: none;
    border-top: 1px solid var(--border-glass);
    padding-top: 1.25rem;
}

.service-list li {
    font-size: 0.875rem;
    color: var(--text-main);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.6rem;
}

.service-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-weight: bold;
}

/* --------------------------------------------------------------------------
   9. Tech Stack Grid Section
   -------------------------------------------------------------------------- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.tech-card {
    padding: 2rem;
}

.tech-category-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.25rem;
}

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

.tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(247, 235, 208, 0.04);
    border: 1px solid var(--border-glass);
    font-size: 0.9rem;
    color: var(--text-main);
    transition: all var(--transition-fast);
}

.tech-chip:hover {
    background: rgba(235, 130, 53, 0.18);
    border-color: rgba(235, 130, 53, 0.4);
    transform: translateY(-2px);
}

.chip-icon {
    font-size: 1rem;
}

/* --------------------------------------------------------------------------
   10. Strengths / Banner Section
   -------------------------------------------------------------------------- */
.banner-card {
    padding: 4rem 3rem;
    background: linear-gradient(135deg, rgba(38, 16, 45, 0.95) 0%, rgba(20, 9, 25, 0.98) 100%);
    border-color: rgba(217, 92, 58, 0.25);
}

.banner-content h2 {
    font-size: 2.25rem;
    margin-bottom: 2.5rem;
}

.banner-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.pillar-item {
    border-left: 2px solid var(--color-amber);
    padding-left: 1.25rem;
}

.pillar-number {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--color-gold);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.pillar-item h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

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

/* --------------------------------------------------------------------------
   11. Contact Section
   -------------------------------------------------------------------------- */
.contact-card {
    padding: 3.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

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

.contact-status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(245, 168, 43, 0.15);
    border: 1px solid rgba(245, 168, 43, 0.3);
    color: var(--color-yellow);
    font-size: 0.9rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-gold);
}

.email-display-card {
    background: rgba(18, 9, 23, 0.75);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
}

.email-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.email-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-yellow);
    text-decoration: none;
    margin-bottom: 1.75rem;
    word-break: break-all;
    transition: color var(--transition-fast);
}

.email-value:hover {
    color: var(--color-amber);
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-glass);
    background-color: #0d0611;
    position: relative;
    z-index: 1;
}

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

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-dim);
}

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

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--text-main);
}

/* --------------------------------------------------------------------------
   13. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

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

    .banner-pillars {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.35rem;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(18, 9, 23, 0.98);
        backdrop-filter: blur(20px);
        padding: 6rem 2rem 2rem 2rem;
        transition: right var(--transition-smooth);
        border-left: 1px solid var(--border-glass);
    }

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

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }

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

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

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