/* ==========================================================================
   DESIGN SYSTEM, TOKENS & FONTS
   ========================================================================== */

:root {
    /* Color Palette */
    --color-bg-primary: #f8fafc;       /* Light crisp background */
    --color-bg-secondary: #ffffff;     /* Card/Header background */
    --color-bg-tertiary: #f1f5f9;      /* Section/Offset background */
    
    --color-text-primary: #0f172a;     /* Deep Graphite/Slate Blue for body/headings */
    --color-text-secondary: #334155;   /* Secondary text */
    --color-text-muted: #64748b;       /* Muted text */
    
    --color-blue-accent: #2563eb;      /* Tech Electric Blue (SiteQora) */
    --color-blue-glow: rgba(37, 99, 235, 0.06);
    --color-blue-border: rgba(37, 99, 235, 0.15);
    
    --color-green-accent: #15803d;     /* Sustainability/Eco Green (houzEKO) */
    --color-green-glow: rgba(21, 128, 61, 0.06);
    --color-green-border: rgba(21, 128, 61, 0.15);
    
    --color-border: #e2e8f0;           /* Soft grey borders */
    --color-border-dark: #cbd5e1;
    
    /* Layout & Spacing */
    --max-width: 1200px;
    --header-height: 80px;
    
    /* Border Radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.03), 0 1px 2px rgba(15, 23, 42, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 10px 10px -5px rgba(15, 23, 42, 0.08);
}

/* ==========================================================================
   BASE & RESET STYLES
   ========================================================================== */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-bg-primary);
    color: var(--color-text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--color-text-primary);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

/* ==========================================================================
   LAYOUT & UTILITY CLASSES
   ========================================================================== */

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

.section-padding {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-blue-accent);
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

/* Icons styling */
.icon-blue {
    background-color: var(--color-blue-glow);
    color: var(--color-blue-accent);
}

.icon-green {
    background-color: var(--color-green-glow);
    color: var(--color-green-accent);
}

/* ==========================================================================
   BUTTONS & CARDS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
    border: 1px solid transparent;
    font-family: 'Outfit', sans-serif;
}

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

.btn-primary:hover {
    background-color: var(--color-blue-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.btn-secondary {
    background-color: var(--color-bg-secondary);
    color: var(--color-text-primary);
    border-color: var(--color-border-dark);
}

.btn-secondary:hover {
    background-color: var(--color-text-primary);
    color: white;
    border-color: var(--color-text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-muted);
    border-color: var(--color-border);
}

.btn-outline:hover {
    color: var(--color-text-primary);
    border-color: var(--color-text-primary);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Outlined Cards Theme */
.card {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-border-dark);
}

/* Tags & Badges */
.timeline-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 16px;
}

.tag-blue {
    background-color: var(--color-blue-glow);
    color: var(--color-blue-accent);
    border: 1px solid var(--color-blue-border);
}

.tag-green {
    background-color: var(--color-green-glow);
    color: var(--color-green-accent);
    border: 1px solid var(--color-green-border);
}

/* ==========================================================================
   STICKY HEADER
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition-normal);
}

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

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
}

.logo-accent-blue {
    background: linear-gradient(135deg, var(--color-text-primary) 30%, var(--color-blue-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-navigation a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.main-navigation a:hover {
    color: var(--color-blue-accent);
}

.main-navigation .nav-ai-link {
    color: var(--color-green-accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-navigation .nav-ai-link::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--color-green-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-green-accent);
}

.btn-nav {
    background-color: var(--color-text-primary);
    color: white !important;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.btn-nav:hover {
    background-color: var(--color-blue-accent);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* Mobile Toggle button */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: var(--transition-normal);
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */

.hero-section {
    position: relative;
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 120px;
    background-color: var(--color-bg-secondary);
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.blueprint-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

.hero-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, rgba(21, 128, 61, 0.02) 50%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 5;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-blue-accent);
    background-color: var(--color-blue-glow);
    border: 1px solid var(--color-blue-border);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.visual-badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-green-accent);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--color-green-accent);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.hero-tagline {
    font-size: 1.6rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.3;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.engineering-card-frame {
    position: relative;
    width: 100%;
    max-width: 440px;
    background-color: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
}

.tech-grid-dots {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background-image: radial-gradient(var(--color-border-dark) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.15;
    pointer-events: none;
}

.abstract-svg {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
}

/* Pulse drawing line animations */
.pulse-line {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawLine 8s ease-in-out infinite;
}

.pulse-line-delay {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawLine 8s ease-in-out infinite;
    animation-delay: 3s;
}

@keyframes drawLine {
    0% { stroke-dashoffset: 600; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -600; }
}

/* ==========================================================================
   2. IZBERI SVOJO POT (PATHFINDER)
   ========================================================================== */

.pathfinder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.path-card {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
}

.path-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.path-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.path-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
    flex-grow: 1;
}

.btn-path-cta {
    font-size: 0.85rem;
    padding: 10px 16px;
    text-align: center;
    border-radius: var(--radius-sm);
    justify-content: center;
}

/* ==========================================================================
   3. GLAVNI PROJEKTI
   ========================================================================== */

.main-projects-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    margin-top: 50px;
}

.main-project-row {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    transition: var(--transition-normal);
}

.main-project-row:hover {
    border-color: var(--color-border-dark);
    box-shadow: var(--shadow-lg);
}

.proj-details h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.proj-desc {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
}

.proj-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.proj-highlights li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.proj-highlights li svg {
    color: var(--color-blue-accent);
    flex-shrink: 0;
}

#proj-houzeko .proj-highlights li svg {
    color: var(--color-green-accent);
}

/* ==========================================================================
   4. STORITVE IN PROJEKTI V TEKU
   ========================================================================== */

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

.service-card {
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.proj-highlights.small-gap {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 32px;
}

.proj-highlights.small-gap li {
    font-size: 0.9rem;
}

.card-action {
    margin-top: auto;
}

/* ==========================================================================
   5. SKUPNOST IN REKREACIJA
   ========================================================================== */

.community-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.section-header.align-left {
    text-align: left;
    margin: 0 0 24px;
}

.community-card {
    padding: 40px;
}

.community-card h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.proj-highlights.two-col {
    grid-template-columns: 1fr 1fr;
}

/* ==========================================================================
   6. O MENI & COMPETENCIES
   ========================================================================== */

.about-content-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 40px;
}

.about-bio {
    max-width: 800px;
}

.bio-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.bio-text.font-semibold {
    font-weight: 600;
    color: var(--color-text-primary);
}

.competencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.comp-card {
    padding: 32px 24px;
}

.comp-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.comp-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.comp-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
}

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

/* ==========================================================================
   7. REFERENCE IN IZKUŠNJE
   ========================================================================== */

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.ref-card {
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ref-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    display: inline-block;
}

.ref-card h4 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.ref-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    flex-grow: 1;
}

/* ==========================================================================
   8. KODA AI ASISTENT (CHAT WIDGET)
   ========================================================================== */

.ai-chat-layout {
    max-width: 720px;
    margin: 40px auto 0;
}

.ai-chat-card {
    display: flex;
    flex-direction: column;
    height: 520px;
    border-color: var(--color-border);
}

.chat-header {
    background-color: var(--color-text-primary);
    color: white;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-blue-accent), var(--color-green-accent));
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-header h4 {
    color: white;
    font-size: 1.05rem;
}

.chat-status {
    font-size: 0.75rem;
    color: #a1a1aa;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
}

.chat-box {
    flex-grow: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: #fafafa;
}

.chat-msg {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.925rem;
    line-height: 1.5;
}

.msg-bot {
    background-color: white;
    color: var(--color-text-primary);
    align-self: flex-start;
    border: 1px solid var(--color-border);
    border-bottom-left-radius: 2px;
}

.msg-user {
    background-color: var(--color-blue-accent);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-chips {
    padding: 12px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background-color: white;
    border-top: 1px solid var(--color-border);
}

.chat-chips .chip {
    background-color: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-chips .chip:hover {
    background-color: var(--color-text-primary);
    color: white;
    border-color: var(--color-text-primary);
}

.chat-input-container {
    padding: 16px 24px;
    display: flex;
    gap: 12px;
    background-color: white;
    border-top: 1px solid var(--color-border);
}

.chat-input-container input {
    flex-grow: 1;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.95rem;
    color: var(--color-text-primary);
    outline: none;
    transition: var(--transition-fast);
}

.chat-input-container input:focus {
    border-color: var(--color-blue-accent);
}

.btn-send {
    background-color: var(--color-text-primary);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-send:hover {
    background-color: var(--color-blue-accent);
}

/* typing indicators style */
.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 10px;
}
.typing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-text-muted);
    border-radius: 50%;
    animation: bounceDots 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounceDots {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ==========================================================================
   9. ZAPISI IZ PRAKSE (BLOG)
   ========================================================================== */

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

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-header {
    padding: 24px 24px 0;
}

.blog-body {
    padding: 20px 24px 24px;
    flex-grow: 1;
}

.blog-body h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.blog-body p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.blog-footer {
    padding: 0 24px 24px;
}

.blog-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   10. SODELOVANJE (CALLS TO ACTION)
   ========================================================================== */

.collab-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.collab-action-card {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.collab-action-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.collab-action-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* ==========================================================================
   11. KONTAKT & FORMS
   ========================================================================== */

.contact-layout {
    max-width: 580px;
    margin: 0 auto;
}

.contact-form-container {
    padding: 48px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition-fast);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-blue-accent);
    background-color: white;
}

/* Input validation styles */
.form-group input:user-invalid,
.form-group textarea:user-invalid {
    border-color: #ef4444;
}

.form-feedback {
    display: none;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 0.925rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.form-feedback.success {
    display: block;
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-feedback.error {
    display: block;
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background-color: var(--color-text-primary);
    color: #94a3b8;
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-container p {
    font-size: 0.9rem;
}

.footer-subtext {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: white;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

/* ==========================================================================
   SCROLL REVEAL & MOTION EFFECTS
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .scroll-reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-badge {
        justify-content: center;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .community-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .section-header.align-left {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }
    
    .site-header {
        height: 70px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--color-bg-secondary);
        border-top: 1px solid var(--color-border);
        padding: 40px 24px;
        transform: translateX(-100%);
        transition: var(--transition-normal);
        z-index: 999;
    }
    
    .main-navigation.open {
        transform: translateX(0);
    }
    
    .main-navigation ul {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }
    
    .main-navigation a {
        font-size: 1.1rem;
        display: block;
        padding: 8px 0;
    }
    
    .btn-nav {
        text-align: center;
    }
    
    .about-bio {
        text-align: center;
    }
    
    .bio-text {
        font-size: 1.05rem;
    }
    
    .contact-form-container {
        padding: 32px 24px;
    }
}

/* ==========================================================================
   FLOATING CHAT WIDGET & PROMO CARD
   ========================================================================== */


/* Floating Chat Container */
.chat-floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

/* Floating Trigger Button */
.chat-floating-trigger {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--color-text-primary);
    border: 2px solid var(--color-blue-accent);
    padding: 0;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25), 0 8px 10px -6px rgba(15, 23, 42, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition-fast);
    outline: none;
    animation: triggerWiggle 12s infinite;
}

.chat-floating-trigger:hover {
    animation-play-state: paused;
    transform: scale(1.08) rotate(0deg);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.35), 0 10px 10px -5px rgba(15, 23, 42, 0.35);
}

.chat-floating-trigger img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.chat-floating-trigger .pulse-ring {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--color-blue-accent);
    border-radius: 50%;
    animation: triggerPulse 2s infinite;
    pointer-events: none;
}

@keyframes triggerPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

@keyframes triggerWiggle {
    0%, 90%, 100% {
        transform: scale(1) rotate(0deg);
    }
    91.5% {
        transform: scale(1.1) rotate(8deg);
    }
    93% {
        transform: scale(1.1) rotate(-8deg);
    }
    94.5% {
        transform: scale(1.1) rotate(6deg);
    }
    96% {
        transform: scale(1.1) rotate(-6deg);
    }
    97.5% {
        transform: scale(1.1) rotate(3deg);
    }
    99% {
        transform: scale(1.1) rotate(-3deg);
    }
}

/* Floating Chat Window */
.floating-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 540px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.18), 0 10px 10px -5px rgba(15, 23, 42, 0.18);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.floating-chat-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header-info {
    flex-grow: 1;
}

.chat-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    border-radius: 50%;
}

.chat-close-btn:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive adjustment for mobile screen widths */
@media (max-width: 500px) {
    .chat-floating-container {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
    .floating-chat-window {
        width: calc(100vw - 40px);
        height: 480px;
        bottom: 75px;
    }

}
