/* Nixie Vensera Technologies - Custom Styles */

/* Navigation Styles */
.nav-link {
    color: #374151; /* gray-700 */
    padding: 0.5rem 0.75rem; /* px-3 py-2 */
    border-radius: 0.375rem; /* rounded-md */
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    display: inline-block;
    border: 1px solid transparent;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.nav-link:hover { color: #9a7237; background-color: #f9fafb; border-color: #e5e7eb; }
.nav-link.active { color: #9a7237; font-weight: 600; background-color: rgba(212,175,55,0.10); border-color: #9a7237; }

.mobile-nav-link {
    color: #111827; /* gray-900 */
    display: block;
    background-color: #f9fafb; /* gray-50 */
    border: 1px solid #e5e7eb; /* gray-200 */
    padding: 0.75rem 1rem; /* px-4 py-3-ish */
    border-radius: 0.75rem; /* rounded-xl */
    font-size: 1rem; /* text-base */
    font-weight: 600; /* font-semibold */
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.mobile-nav-link:hover { background-color: #ffffff; border-color: #d1d5db; color: #9a7237; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.mobile-nav-link.active { background-color: #9a7237; color: #ffffff; border-color: #9a7237; box-shadow: 0 2px 10px rgba(154,114,55,0.30); }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #9a7237;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8a6327;
}

/* Smooth Scrolling + Prevent horizontal overflow */
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }

/* Extra guardrails against side-scroll on animated sections */
@media (max-width: 768px) {
  section { overflow-x: clip; }
}

/* Ensure media never exceeds container width */
img, svg, video { max-width: 100%; height: auto; }

/* Custom Button Styles */
.btn-primary {
    @apply bg-gold hover:bg-gold/90 text-white px-6 py-3 rounded-lg font-semibold transition-all duration-300 transform hover:scale-105;
}

.btn-secondary {
    @apply border-2 border-gold text-gold hover:bg-gold hover:text-white px-6 py-3 rounded-lg font-semibold transition-all duration-300;
}

.btn-outline {
    @apply border-2 border-white text-white hover:bg-white hover:text-gray-900 px-6 py-3 rounded-lg font-semibold transition-all duration-300;
}

/* Card Styles */
.card {
    @apply bg-white rounded-xl shadow-lg hover:shadow-xl transition-all duration-300 overflow-hidden;
}

.card-hover {
    @apply transform hover:-translate-y-2 transition-all duration-300;
}

/* Form Styles */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-gold focus:border-transparent transition-all duration-300;
}

.form-textarea {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-gold focus:border-transparent transition-all duration-300 resize-vertical;
}

.form-select {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-gold focus:border-transparent transition-all duration-300 bg-white;
}

/* Loading Animation */
.loading {
    @apply inline-block w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #9a7237 0%, #cc6f42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Background Pattern */
.hero-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(154, 114, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(154, 114, 55, 0.1) 0%, transparent 50%);
}

/* Section Dividers */
.section-divider {
    @apply relative;
}

.section-divider::before {
    content: '';
    @apply absolute top-0 left-1/2 transform -translate-x-1/2 w-24 h-1 bg-gold rounded-full;
}

/* Testimonial Styles */
.testimonial-card {
    @apply bg-white p-8 rounded-xl shadow-lg relative;
}

.testimonial-card::before {
    content: '"';
    @apply absolute top-4 left-4 text-6xl text-gold/20 font-serif leading-none;
}

/* Timeline Styles */
.timeline-item {
    @apply relative pl-8 pb-8;
}

.timeline-item::before {
    content: '';
    @apply absolute left-0 top-2 w-4 h-4 bg-gold rounded-full;
}

.timeline-item::after {
    content: '';
    @apply absolute left-2 top-6 w-0.5 h-full bg-gray-200;
}

.timeline-item:last-child::after {
    @apply hidden;
}

/* Stats Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    animation: countUp 0.8s ease-out;
}

/* Service Icon Hover Effect */
.service-icon {
    @apply transition-all duration-300 transform;
}

.service-icon:hover {
    @apply scale-110 rotate-6;
}

/* Project Card Overlay */
.project-overlay {
    @apply absolute inset-0 bg-gradient-to-t from-black/80 via-black/40 to-transparent opacity-0 transition-opacity duration-300;
}

.project-card:hover .project-overlay {
    @apply opacity-100;
}

/* Newsletter Section */
.newsletter-bg {
    background: linear-gradient(135deg, #9a7237 0%, #cc6f42 100%);
}

/* Footer Styles */
.footer-link {
    @apply text-gray-400 hover:text-white transition-colors duration-300;
}

/* Responsive Typography */
@media (max-width: 640px) {
    .hero-title {
        @apply text-3xl;
    }
    
    .section-title {
        @apply text-2xl;
    }
}

/* Dark Mode Support (if needed) */
@media (prefers-color-scheme: dark) {
    .dark-mode-card {
        @apply bg-gray-800 text-white;
    }
    
    .dark-mode-text {
        @apply text-gray-300;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-break {
        page-break-before: always;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focus-visible:focus {
    @apply outline-none ring-2 ring-gold ring-offset-2;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Utility Classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
