/*
  =====================================================
  Youvizn Consulting - Web CSS
  Developer: Akki / Youvizn Team
  Created: 2026-03-20
  Version: 1.0
  Purpose: CSS for Youvizn website, including palette, typography,
           spacing, layout utilities, and placeholders for sections.
  Notes: Link this file in HTML head.
  =====================================================
*/

/* ==========================
   CSS VARIABLES / COLOR PALETTE
   ========================== */
:root {
    /* Primary Colors */
    --yv-primary: #12448A; /* Youvizn Blue - default link color */
    --yv-red: #A02B39;     /* Youvizn Red - hover link color */
    --yv-secondary: #182848; /* Dark Blue - logo or accents */
    --yv-accent: #F9A825;    /* Reserved for buttons if needed */

    /* Neutral Colors */
    --yv-light: #F5F5F5;
    --yv-dark: #1C1C1C;
    --yv-gray: #777;

    /* Typography */
    --yv-font-primary: 'Roboto', sans-serif;
    --yv-font-heading: 'Montserrat', sans-serif;

    /* Spacing */
    --yv-space-xs: 4px;
    --yv-space-sm: 8px;
    --yv-space-md: 16px;
    --yv-space-lg: 32px;
    --yv-space-xl: 64px;

    /* Spacing / Radius */
    --yv-radius: 50px;
}

/* ==========================
   GLOBAL RESET / BASE STYLES
   ========================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--yv-font-primary);
    color: var(--yv-dark);
    line-height: 1.6;
    background-color: #ffffff;
}

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

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================
   TYPOGRAPHY
   ========================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--yv-font-heading);
    color: var(--yv-secondary);
    margin-bottom: var(--yv-space-md);
}

p {
    margin-bottom: var(--yv-space-md);
    color: var(--yv-gray);
}

/* ==========================
   BUTTONS / INTERACTIVE ELEMENTS
   ========================== */
.yv-btn {
    display: inline-block;
    padding: var(--yv-space-sm) var(--yv-space-lg);
    background-color: var(--yv-primary);
    color: #fff;
    border-radius: var(--yv-radius);
    font-weight: 600;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.yv-btn:hover {
    background-color: var(--yv-accent);
    color: var(--yv-dark);
}

/* ==========================
   GRID / CARD PLACEHOLDERS
   ========================== */
.yv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--yv-space-lg);
    margin-top: var(--yv-space-lg);
}

.yv-card {
    background-color: #fff;
    padding: var(--yv-space-md);
    border-radius: var(--yv-radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
}

/* ==========================
   FORM ELEMENTS
   ========================== */
input, textarea {
    width: 100%;
    padding: var(--yv-space-sm);
    margin-bottom: var(--yv-space-md);
    border: 1px solid var(--yv-gray);
    border-radius: var(--yv-radius);
    font-family: var(--yv-font-primary);
}

button {
    cursor: pointer;
    border: none;
}

/* ==========================
   Navbar
   ========================== */
/* Navbar container */
.yv-navbar {
    position: fixed;
    top: 20px;
    margin-left: 10px;
    margin-right: 10px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--yv-radius);
    z-index: 1000;
    width: calc(100% - 20px); 
    /* box-shadow: 0 0 12px rgba(0, 0, 0, 0.05); */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

/* Navbar inner container */
.yv-navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
}

/* Logo */
.logo-container {
    display: flex;
    gap: 5px;
    align-items: center;
    cursor: pointer;
}

.yv-logo {
    font-family:  Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--yv-primary);
}

.yv-logo .img-container > img {
    height: 36px;
    width: 36px;
}

.yv-logo > div {
    padding: 0 !important;
    line-height: 1;      
}

.yv-logo > div span {
    margin: 0;
    line-height: 1;
    display: inline;
    vertical-align: baseline;
}

.yv-logo div:first-child span:first-child {
    color: var(--yv-red);
}

.yv-logo div:first-child span:last-child {
    font-weight: 400;
}

.yv-logo div:last-child span {
    letter-spacing: 3px;
    font-size: .8rem;
    font-weight: 700;
}

/* Nav links */
.yv-nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}
.yv-nav-links li a {
    text-decoration: none;
    font-weight: 500;
    color: var(--yv-primary);
    padding: 6px 12px;
    border-radius: var(--yv-radius);
    transition: color 0.2s ease;
}
.yv-nav-links li a:hover {
    color: var(--yv-red);
}
.yv-nav-links li a.active {
    border-bottom: none;
    font-weight: 600;
}

/* ==========================
   SECTIONS
   ========================== */
/* Example section IDs: header, hero, services, team, clients, contact, footer */
section {
    padding: var(--yv-space-xl) 0;
}
/* ==========================
   HERO SECTION
   ========================== */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;

    /* Placeholder background */
    background: linear-gradient(
        rgba(255,255,255,0.2),
        rgba(255,255,255,0.2)
    ),url('../assets/images/hero/hero_background.png') center/cover no-repeat;
}

/* Optional overlay for softness */
.hero-overlay {
    position: absolute;
    inset: 0; 
    /* background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1)); */
    background: linear-gradient(
        to right, 
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.3) 40%,
        rgba(255,255,255,0.9) 65%,
        rgba(255,255,255,0.9) 100%
    );
    z-index: 1; 
}

/* Content */
.hero-content {
    position: absolute;
    top: 80px;
    right: 40px;
    z-index: 2;
    max-width: 500px;
    padding: 0 10px;
    text-align: right;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 1s forwards;
}

/* Fade-in animation */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--yv-primary);
    line-height: 1.4;
}

#typed-text {
    color: var(--yv-red);
    font-family: "Courier New", Courier, monospace;
}

/* BLOCK CURSOR */
.cursor-block {
    display: inline-block;
    width: 12px;
    height: 1em;
    background-color: var(--yv-red);
    margin-left: 6px;
    vertical-align: bottom;
    animation: blinkBlock 1s infinite;
}

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

.hero-subline span:first-child {
    color: var(--yv-red);
}

@keyframes blinkBlock {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

/* CTA BUTTONS FLOATING BOTTOM */
.hero-cta {
    position: absolute;
    bottom: 50px;
    display: flex;
    gap: 15px;
    z-index: 2;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Primary */
.btn-primary {
    background-color: var(--yv-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: #1d5bb8;
}

/* Secondary (inverted style) */
.btn-secondary {
    background-color: #fff;
    color: var(--yv-primary);
    border: 1px solid var(--yv-primary);
}

.btn-secondary:hover {
    background-color: var(--yv-red);
    color: #fff;
    border-color: var(--yv-red);
}


/* ==========================
   FOOTER
   ========================== */
.yv-footer {
    background-color: var(--yv-secondary);
    color: #fff;
    padding: var(--yv-space-md) 0;
    text-align: center;
}

/* ==========================
   RESPONSIVE UTILITIES
   ========================== */
@media (max-width: 768px) {
    /* Grid */
    .yv-grid {
        grid-template-columns: 1fr;
    }
    /* Navbar */
    .yv-nav-links {
        flex-direction: column;
        gap: 10px;
        display: none;
    }
}
