/**
 * Custom Styles for KlemenDev Theme
 * All inline styles moved here for production
 */

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
    min-height: 100vh;
    height: 100vh;
    padding: 1rem 0;
}

.hero-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-gradient-overlay {
    background: linear-gradient(180deg, #0d0d0d00 0%, rgb(13 13 13 / 0%) 50%, #0d0d0d00 100%);
}

.hero-grid-pattern {
    background-image: linear-gradient(rgba(255, 213, 0, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 213, 0, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

@supports (height: 100dvh) {
    #hero {
        min-height: 100dvh;
        height: 100dvh;
    }
}

.hero-badge {
    background: rgba(255, 213, 0, 0.1);
    border: 1px solid rgba(255, 213, 0, 0.3);
}

.hero-title {
    color: var(--primary-foreground);
}

.hero-title-accent {
    color: var(--accent);
}

.hero-subtitle {
    color: var(--thirdary-foreground);
}

.hero-trust-indicator {
    color: var(--thirdary-foreground);
}

.hero-trust-dot {
    background: var(--accent);
}

.hero-scroll-indicator {
    border: 2px solid rgba(245, 240, 232, 0.3);
}

.hero-scroll-dot {
    background: var(--accent);
}

/* Hero Mobile */
@media (max-width: 767px) {
    #hero {
        min-height: 100vh;
        height: 100vh;
        padding: 2rem 0 1rem;
    }
    
    @supports (height: 100dvh) {
        #hero {
            min-height: 100dvh;
            height: 100dvh;
        }
    }
    
    #hero .container {
        padding: 0 1rem;
    }
    
    #hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    #hero p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    #hero .space-y-8 > * + * {
        margin-top: 1rem;
    }
    
    #hero .flex.flex-col {
        gap: 0.75rem;
    }
    
    #hero .btn-primary,
    #hero .btn-outline {
        width: 100%;
        max-width: 280px;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    #hero .flex.flex-wrap {
        gap: 0.75rem;
        padding-top: 1rem;
        font-size: 0.75rem;
    }
    
    #hero .inline-block {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    #hero div.hero-cta a {
        width: fit-content;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 0.5rem;
    background: var(--accent);
    color: var(--accent-foreground);
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: 1px solid rgba(245, 240, 232, 0.3);
    color: var(--primary-foreground);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline:hover {
    background: rgba(245, 240, 232, 0.1);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-title {
    background: linear-gradient(to right, var(--foreground), var(--foreground));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.services-subtitle {
    color: var(--muted-foreground);
}

.service-desc {
    color: var(--muted-foreground);
}

/* ============================================
   WHY ME SECTION
   ============================================ */
.why-me-title {
    background: linear-gradient(to right, var(--accent), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.why-me-subtitle {
    color: var(--thirdary-foreground);
}

.why-me-card-title {
    color: var(--primary-foreground);
}

.why-me-card-desc {
    color: var(--thirdary-foreground);
}

.testimonial-rating {
    color: var(--accent);
    font-size: 1.1rem;
}

.testimonial-text {
    color: var(--primary-foreground);
    line-height: 1.8;
}

.testimonial-author {
    color: var(--primary-foreground);
}

.testimonial-role {
    color: var(--thirdary-foreground);
}

.testimonial-border {
    border-color: rgba(255, 255, 255, 0.1);
}

.quote-text {
    color: var(--primary-foreground);
}

.why-me-glow-1,
.why-me-glow-2 {
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

/* Why Me Section Cards Hover Effect */
#zakaj .glass {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#zakaj .glass:hover {
    transform: scale(1.08);
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.3);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-subtitle {
    color: var(--muted-foreground);
}

.project-tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-title {
    color: white;
}

.project-desc {
    color: rgba(255, 255, 255, 0.9);
}

.project-category-title {
    color: var(--foreground);
}

.project-blurred {
    cursor: not-allowed;
    position: relative;
}

.project-blurred:hover {
    transform: none;
}

.project-content-blurred {
    filter: blur(4px);
    opacity: 0.6;
}

#projekti .project-card {
    position: relative;
    padding: 1.5rem;
    transform: scale(1) !important;
    box-shadow: none !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform, box-shadow;
}

#projekti .project-card:not(.project-blurred):hover {
    transform: scale(1.02) !important;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.3) !important;
}

.project-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.project-card:hover .project-title {
    text-decoration: none;
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

.category-column {
    display: flex;
    flex-direction: column;
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.backdrop-blur-md {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process-time-position {
    position: absolute;
    right: 0;
    bottom: 0;
}

.process-time-label {
    color: var(--muted-foreground);
}

.process-time-value {
    color: var(--accent);
}

.process-subtitle {
    color: var(--muted-foreground);
}

.process-step-number {
    color: var(--accent);
}

.process-step-title {
    color: var(--foreground);
}

.process-step-desc {
    color: var(--muted-foreground);
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing-title {
    background: linear-gradient(to right, var(--accent), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-subtitle {
    color: var(--thirdary-foreground);
}

.pricing-card-title {
    color: var(--primary-foreground);
}

.pricing-card-price {
    color: var(--accent);
}

.pricing-card-desc {
    color: var(--thirdary-foreground);
}

.pricing-feature-check {
    color: var(--accent);
}

.pricing-feature-text {
    color: var(--thirdary-foreground);
}

.pricing-feature-more {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.pricing-info-title {
    color: var(--primary-foreground);
}

.pricing-info-text {
    color: var(--thirdary-foreground);
}

.pricing-info-check {
    color: var(--accent);
}

.pricing-badge {
    background: var(--accent);
    color: var(--accent-foreground);
}

.pricing-section {
    margin-bottom: 0;
    padding-bottom: 6rem;
}

.contact-section {
    margin-top: -6rem;
    padding-top: 6rem;
}

.projects-section {
    padding-bottom: 0;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-title {
    color: var(--primary-foreground);
}

.contact-subtitle {
    color: var(--thirdary-foreground);
}

.contact-subtitle-accent {
    color: var(--accent);
    font-weight: 700;
}

.contact-icon {
    color: var(--accent);
}

.contact-info-title {
    color: var(--primary-foreground);
}

.contact-label {
    color: var(--primary-foreground);
}

.contact-input {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--foreground);
}

.contact-submit-btn {
    background: var(--accent);
    color: #0d0d0d;
}

/* ============================================
   FOOTER
   ============================================ */
.footer-padding {
    padding-bottom: 2rem;
}

.footer-logo-link {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-logo-link:hover {
    opacity: 0.8;
}

.footer-logo-image {
    height: auto;
    max-height: 48px;
    width: auto;
    display: block;
}

.footer-text {
    color: var(--foreground);
}

.footer-title {
    color: var(--foreground);
}

.footer-link {
    color: var(--foreground);
    transition: color 0.3s ease;
    text-decoration: none;
}

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

.footer-social-link {
    color: var(--foreground);
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-social-link:hover {
    color: var(--accent);
}

.footer-divider {
    color: rgba(0, 0, 0, 0.2);
}

.footer-border {
    border-color: rgba(0, 0, 0, 0.1);
}

.footer-contact-label {
    font-weight: bold;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-logo-link {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-logo-link:hover {
    opacity: 0.8;
}

.nav-logo-image {
    height: auto;
    max-height: 40px;
    width: auto;
    display: block;
}

/* Animated Logo */
.animated-logo-container {
    display: inline-block;
    position: relative;
    height: 40px;
    overflow: visible; /* Allow characters to be visible */
}

.animated-logo-wrapper {
    display: block;
    height: 40px;
    position: relative;
    width: auto;
    min-width: 200px; /* Reserve minimum space to prevent layout shift */
    transition: width 0.1s ease; /* Smooth width expansion */
    overflow: visible; /* Allow characters to be visible */
}

.animated-logo-char {
    position: absolute;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: flex-end; /* Align to bottom for consistent baseline */
    bottom: 0; /* Align to bottom of container */
}

.animated-logo-char.visible {
    opacity: 1;
    transform: scale(1);
}

.animated-logo-char img {
    display: block;
    vertical-align: bottom;
    max-width: none;
    object-fit: contain;
    height: auto;
}

.animated-logo-cursor {
    position: absolute;
    display: inline-block;
    width: 20px;
    height: 2px;
    background: var(--accent);
    animation: blink 1s infinite;
    bottom: 0; /* Position at bottom of logo */
    left: 0;
}

.animated-logo-cursor.hidden {
    display: none;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.nav-link-text {
    color: var(--primary-foreground);
}

.nav-cta-bg {
    background: var(--accent);
    color: var(--accent-foreground);
}

.mobile-menu-btn-color {
    color: var(--primary-foreground);
}

.mobile-menu-link-text {
    color: var(--primary-foreground);
}

/* ============================================
   PAGE CONTENT
   ============================================ */
.page-title {
    color: var(--foreground);
}

.page-content {
    color: var(--foreground);
}

/* ============================================
   MOBILE SPECIFIC
   ============================================ */
@media (max-width: 767px) {
    .testimonial-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .absolute.top-4.right-4.tag {
        top: 6px;
        right: 6px;
    }
    
    #kontakt .grid.gap-8.max-w-6xl.mx-auto {
        display: flex;
        flex-direction: column-reverse;
    }
    
    footer.bg-background {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    footer.bg-background ul {
        list-style-type: none;
    }
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-foreground);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(255, 213, 0, 0.4), 0 0 40px rgba(255, 213, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
}

.scroll-to-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.scroll-to-top-btn:hover {
    box-shadow: 0 0 30px rgba(255, 213, 0, 0.6), 0 0 60px rgba(255, 213, 0, 0.3);
    transform: translateY(-4px);
}

.scroll-to-top-btn:active {
    transform: translateY(-2px);
}

.scroll-to-top-btn svg {
    width: 24px;
    height: 24px;
}

/* Mobile adjustments for scroll to top button */
@media (max-width: 767px) {
    .scroll-to-top-btn {
        width: 3rem;
        height: 3rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .scroll-to-top-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.space-y-8 > * + * {
    margin-top: 2rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

@media (min-width: 768px) {
    .md\:text-7xl {
        font-size: 4.5rem;
    }
    .md\:text-2xl {
        font-size: 1.5rem;
    }
}

