/* Dark Theme CSS for Professional Poultry Equipment Website */

:root {
    --primary-color: #1a202c;
    --secondary-color: #ffd700;
    --accent-color: #00ff88;
    --dark-color: #0d1117;
    --darker-color: #010409;
    --light-color: #161b22;
    --text-light: #f0f6fc;
    --text-muted: #8b949e;
    --text-dark: #c9d1d9;
    --border-color: #30363d;
    --card-bg: #21262d;
    --hover-bg: #30363d;
}

/* Global Styles */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--dark-color);
}

/* Navigation */
.navbar {
    background-color: var(--darker-color) !important;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    color: var(--text-light) !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    opacity: 0.9;
}

.navbar-brand img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 50px;
    }
    
    .navbar-brand span {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        max-height: 45px;
    }
    
    .navbar-brand span {
        font-size: 0.85rem;
    }
}

.navbar-nav .nav-link {
    color: var(--text-muted) !important;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

.navbar-toggler {
    border-color: var(--border-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--darker-color) 0%, var(--primary-color) 50%, var(--dark-color) 100%);
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section .lead {
    color: var(--text-muted);
}

.hero-section .text-warning {
    color: var(--secondary-color) !important;
}

/* Service Cards */
.service-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.1) !important;
    border-color: var(--secondary-color);
}

.service-card .card-title {
    color: var(--text-light);
}

.service-card .card-text {
    color: var(--text-muted);
}

.service-card .service-icon {
    width: 80px;
    height: 80px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Portfolio Section */
.portfolio-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.1);
    border-color: var(--secondary-color);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(26, 32, 44, 0.95), rgba(255, 215, 0, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item .card-title {
    color: var(--text-light);
}

.portfolio-item .card-text {
    color: var(--text-muted);
}

/* Testimonials */
#testimonials {
    display: none !important;
}

.carousel-item .card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--secondary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

/* About Section */
#about {
    background-color: var(--light-color);
}

#about h2 {
    color: var(--text-light);
}

#about .lead {
    color: var(--text-muted);
}

#about .text-muted {
    color: var(--text-muted) !important;
}

/* Contact Section */
#contact {
    background-color: var(--light-color);
}

#contact h2 {
    color: var(--text-light);
}

#contact .lead {
    color: var(--text-muted);
}

.contact-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 10px;
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.1);
    border-color: var(--secondary-color);
}

.contact-item h6 {
    color: var(--text-light);
}

.contact-item p {
    color: var(--text-muted);
}

/* Contact Links */
.contact-item a,
footer a[href^="tel:"],
footer a[href^="mailto:"] {
    transition: all 0.3s ease;
}

.contact-item a:hover,
footer a[href^="tel:"]:hover,
footer a[href^="mailto:"]:hover {
    color: var(--secondary-color) !important;
    text-decoration: underline !important;
}

/* Contact Form */
.contact-form {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
}

/* Contact Form Alerts */
#contact .alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#contact .alert-success {
    background-color: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border-left: 4px solid #28a745;
}

#contact .alert-danger {
    background-color: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

#contact .alert .btn-close {
    filter: brightness(0) invert(1);
}

.form-control, .form-select {
    background-color: var(--dark-color);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    border-radius: 10px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background-color: var(--dark-color);
    border-color: var(--secondary-color);
    color: var(--text-light);
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-light);
}

/* Button Styles */
.btn-warning {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--dark-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #ffed4e;
    border-color: #ffed4e;
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.btn-outline-light {
    border-color: var(--text-light);
    color: var(--text-light);
}

.btn-outline-light:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--dark-color);
}

/* Modal Styles */
.modal-content {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    color: var(--text-light);
}

.modal-header {
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    background-color: var(--card-bg);
}

/* Footer */
footer {
    background-color: var(--darker-color) !important;
    border-top: 1px solid var(--border-color);
}

footer h5, footer h6 {
    color: var(--secondary-color);
    font-weight: 600;
}

footer img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

footer img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

@media (max-width: 768px) {
    footer img {
        max-height: 50px;
    }
}

@media (max-width: 576px) {
    footer img {
        max-height: 45px;
    }
}

footer p, footer li {
    color: var(--text-muted);
}

footer a {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color) !important;
    transform: translateX(5px);
}

/* Google Translate - Fixed Position in Top Right */
.translate-widget-fixed {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 25px !important;
    padding: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px) !important;
}

#google_translate_element {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.goog-te-gadget {
    font-family: inherit !important;
    margin: 0 !important;
    background: transparent !important;
}

.goog-te-gadget-simple {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    min-width: 120px !important;
    color: white !important;
}

.goog-te-gadget-simple .goog-te-menu-value {
    color: white !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    text-decoration: none !important;
}

.goog-te-gadget-simple .goog-te-menu-value span:first-child {
    color: white !important;
}

.goog-te-gadget-simple .goog-te-menu-value span:not(:first-child) {
    color: var(--secondary-color) !important;
}

.goog-te-gadget-simple .goog-te-menu-value:before {
    content: "🌐 ";
    margin-right: 5px;
    color: white !important;
}

/* Force white color for Google Translate anchor */
.goog-te-gadget-simple a {
    color: white !important;
    text-decoration: none !important;
}

.goog-te-gadget-simple a:link {
    color: white !important;
}

.goog-te-gadget-simple a:visited {
    color: white !important;
}

.goog-te-gadget-simple a:hover {
    color: var(--secondary-color) !important;
}

.goog-te-gadget-simple a:active {
    color: white !important;
}

/* Additional Google Translate text styling */
.goog-te-gadget-simple * {
    color: white !important;
}

.goog-te-gadget-simple .goog-te-menu-value * {
    color: white !important;
}

/* Force all text inside translate element to be white */
#google_translate_element * {
    color: white !important;
}

#google_translate_element a {
    color: white !important;
    text-decoration: none !important;
}

#google_translate_element a:link,
#google_translate_element a:visited,
#google_translate_element a:active {
    color: white !important;
}

#google_translate_element a:hover {
    color: var(--secondary-color) !important;
}

/* Google Translate Dropdown */
.goog-te-menu2 {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

.goog-te-menu2-item {
    color: var(--text-light) !important;
    background-color: var(--card-bg) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.goog-te-menu2-item:hover {
    background-color: var(--hover-bg) !important;
    color: var(--secondary-color) !important;
}

.goog-te-menu2-item-selected {
    background-color: var(--secondary-color) !important;
    color: var(--dark-color) !important;
}

/* Google Translate Banner */
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Hide Google Translate Banner */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

/* Hide skiptranslate iframe */
.skiptranslate iframe {
    display: none !important;
}

body {
    top: 0px !important;
}

/* Section Backgrounds */
.bg-light {
    background-color: var(--light-color) !important;
}

.bg-white {
    background-color: var(--card-bg) !important;
}

/* Text Colors */
.text-dark {
    color: var(--text-light) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-white {
    color: var(--text-light) !important;
}

.text-white-50 {
    color: var(--text-muted) !important;
}

/* Card Styles */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
}

.card-title {
    color: var(--text-light);
}

.card-text {
    color: var(--text-muted);
}

/* Modern Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.4);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes typewriter-full {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 50% {
        border-color: transparent;
    }
    51%, 100% {
        border-color: var(--secondary-color);
    }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease forwards;
}

.animate-rotate-in {
    animation: rotateIn 1s ease forwards;
}

.animate-bounce-in {
    animation: bounceIn 0.8s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-typewriter {
    overflow: hidden;
    border-right: 2px solid var(--secondary-color);
    white-space: nowrap;
    animation: typewriter 4s steps(60, end), blink 0.75s step-end infinite;
    width: 100%;
    max-width: 100%;
}

/* Hover Animations */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hover-rotate {
    transition: all 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg) scale(1.05);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.hover-bounce {
    transition: all 0.3s ease;
}

.hover-bounce:hover {
    animation: bounceIn 0.6s ease;
}

/* Staggered Animations */
.animate-stagger-1 {
    animation-delay: 0.1s;
}

.animate-stagger-2 {
    animation-delay: 0.2s;
}

.animate-stagger-3 {
    animation-delay: 0.3s;
}

.animate-stagger-4 {
    animation-delay: 0.4s;
}

.animate-stagger-5 {
    animation-delay: 0.5s;
}

/* Loading Animations */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Text Animations */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
}

.text-reveal span:nth-child(1) { animation-delay: 0.1s; }
.text-reveal span:nth-child(2) { animation-delay: 0.2s; }
.text-reveal span:nth-child(3) { animation-delay: 0.3s; }
.text-reveal span:nth-child(4) { animation-delay: 0.4s; }
.text-reveal span:nth-child(5) { animation-delay: 0.5s; }

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .service-card .card-body {
        padding: 20px;
    }
    
    .contact-item {
        margin-bottom: 20px;
    }
    
    .translate-widget-fixed {
        top: 15px !important;
        right: 15px !important;
        padding: 6px !important;
    }
    
    .goog-te-gadget-simple {
        min-width: 100px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .service-icon {
        width: 60px !important;
        height: 60px !important;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--dark-color);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffed4e;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success/Error States */
.form-control.is-valid {
    border-color: var(--accent-color);
}

.form-control.is-invalid {
    border-color: #ff6b6b;
}

.valid-feedback,
.invalid-feedback {
    font-size: 0.875rem;
    margin-top: 5px;
}

/* Additional Utility Classes */
.text-gradient {
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(45deg, var(--secondary-color), var(--accent-color)) 1;
}

/* Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.1);
}

/* Section Spacing */
section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-light);
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Button Enhancements */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* Navbar Enhancements */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

/* Image Enhancements */
img {
    transition: all 0.3s ease;
}

.portfolio-item img:hover {
    transform: scale(1.05);
}

/* Video Modal Enhancements */
.ratio {
    border-radius: 10px;
    overflow: hidden;
}

/* Testimonial Enhancements */
.carousel-item {
    padding: 20px 0;
}

/* Contact Form Enhancements */
.contact-form {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
}

/* Footer Enhancements */
footer {
    background-color: var(--darker-color) !important;
}

footer h5, footer h6 {
    color: var(--secondary-color);
    font-weight: 600;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color) !important;
    transform: translateX(5px);
}

/* Dark theme specific enhancements */
.dark-glow {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.dark-border {
    border: 1px solid var(--border-color);
}

.dark-bg {
    background-color: var(--card-bg);
}

/* Accent colors for highlights */
.accent-text {
    color: var(--accent-color);
}

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

.secondary-text {
    color: var(--secondary-color);
}

.secondary-bg {
    background-color: var(--secondary-color);
}