/* Custom Fonts */
:root {
    --primary-color: #742A2A;
    --primary-hover: #5A1F1F;
    --secondary-color: #D1B37B;
    --secondary-hover: #B5955D;
    --light-bg: #F9F6F0;
    --light-bg-hover: #F1E3C8;
    --dark-text: #333333;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    overflow-x: hidden;
    font-size: 1rem;
}

@media (min-width: 1400px) {
    body {
        font-size: 1.15rem;
        /* Larger base text for huge screens */
    }

    .h1,
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.3rem;
    }

    h4 {
        font-size: 1.6rem;
    }

    p.lead {
        font-size: 1.4rem;
    }

    p.fs-5 {
        font-size: 1.25rem !important;
    }
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-title {
    font-family: var(--font-heading);
}

/* 3D Hero Text Animation */
.hero-title-3d {
    text-shadow:
        1px 1px 0 #5A1F1F,
        2px 2px 0 #4A1A1A,
        3px 3px 0 #3b1414,
        4px 4px 0 #2a0e0e,
        5px 5px 0 #1c0a0a,
        6px 6px 15px rgba(0, 0, 0, 0.8) !important;
    animation: textFloat3D 4s ease-in-out infinite alternate;
    transform-style: preserve-3d;
}

.hero-subtitle-3d {
    text-shadow:
        1px 1px 0 rgba(0, 0, 0, 0.8),
        2px 2px 5px rgba(0, 0, 0, 0.5) !important;
    animation: textFloat3D 4s ease-in-out infinite alternate-reverse;
}

@keyframes textFloat3D {
    0% {
        transform: translateY(0) rotateX(0deg);
    }

    100% {
        transform: translateY(-8px) rotateX(4deg);
    }
}

/* Utilities */
.text-primary-theme {
    color: var(--primary-color) !important;
}

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

.bg-primary-theme {
    background-color: var(--primary-color) !important;
}

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

.bg-light-theme {
    background-color: var(--light-bg) !important;
    background-image: radial-gradient(rgba(209, 179, 123, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
}

.bg-secondary-light {
    background-color: var(--light-bg-hover) !important;
}

.border-theme {
    border: 8px solid var(--secondary-color);
}

.border-bottom-theme {
    border-bottom: 4px solid var(--primary-color) !important;
}

.border-white-thick {
    border: 4px solid #fff;
}

.line-height-lg {
    line-height: 1.8;
}

.btn-primary-theme {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b3636 100%);
    border: none;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(116, 42, 42, 0.4);
}

.btn-primary-theme:hover {
    background: linear-gradient(135deg, #8b3636 0%, var(--primary-hover) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(116, 42, 42, 0.6);
}

.btn-social {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background-color: var(--secondary-color);
    color: #fff !important;
    border-color: var(--secondary-color);
}

/* Navbar */
#mainNav {
    top: 38px !important;
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: #fff;
    transition: padding-top 0.3s, padding-bottom 0.3s, background-color 0.3s;
}

#mainNav .navbar-brand {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#mainNav .navbar-brand .brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

#mainNav .navbar-brand .brand-subtitle {
    font-size: 0.8rem;
    font-weight: 400;
    font-family: var(--font-body);
    letter-spacing: 2px;
}

#mainNav .navbar-nav .nav-item .nav-link {
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    color: var(--dark-text);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item .nav-link.active {
    color: var(--primary-color);
}

#mainNav.navbar-shrink {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Sections */
.page-section {
    padding: 7rem 0;
    position: relative;
}

/* 3D Circular Profile Photo */
.profile-photo-container {
    position: relative;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    margin: 0 auto;
    cursor: pointer;
    perspective: 1000px;
}

.profile-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
    border: 8px solid var(--secondary-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.6s ease;
    position: relative;
    z-index: 2;
}

.profile-photo-container .glow-ring {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--primary-color), var(--secondary-color), var(--primary-theme), var(--primary-color));
    z-index: 1;
    animation: rotateGradient 6s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(8px);
}

.profile-photo-container:hover img {
    transform: rotateY(15deg) rotateX(10deg) scale(1.05);
    box-shadow: -15px 25px 45px rgba(116, 42, 42, 0.25);
    border-color: #fff;
}

.profile-photo-container:hover .glow-ring {
    opacity: 0.8;
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Enhanced Section Headings */
.section-heading,
.h1 {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-heading::after,
h2.h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.text-center .section-heading::after,
.text-center h2.h1::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Hero Masthead */
header.masthead {
    padding-top: calc(4rem + 38px);
    padding-bottom: 4rem;
    background: url("hero_bg.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: cover;
    aspect-ratio: 1024 / 558;
    height: auto;
    width: 100%;
}

header.masthead h1 {
    font-family: var(--font-heading);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
}

header.masthead .lead {
    color: #fff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

/* Cards & Overlays */
.overlay-card {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    transform-style: preserve-3d;
}

.overlay-card:hover {
    transform: perspective(1000px) rotateX(6deg) translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

/* Values */
.value-item {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
    border: 1px solid #eee;
    transform-style: preserve-3d;
}

.value-item:hover {
    transform: perspective(1000px) rotateX(8deg) rotateY(-5deg) translateY(-12px) scale(1.05);
    box-shadow: 10px 30px 40px rgba(0, 0, 0, 0.12) !important;
    border-bottom: 4px solid var(--secondary-color) !important;
}

.value-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    background-color: var(--secondary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    box-shadow: 0 4px 10px rgba(209, 179, 123, 0.4);
}

/* Why Millets Modern Grid Cards */
.modern-reason-card {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.6s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 4px solid var(--secondary-color);
    transform-style: preserve-3d;
    perspective: 1500px;
}

.modern-reason-card:nth-child(even) {
    border-bottom-color: var(--primary-color);
}

.modern-reason-card:hover {
    transform: perspective(1500px) rotateX(5deg) rotateY(4deg) translateY(-10px) scale(1.03);
    box-shadow: -10px 25px 45px rgba(0, 0, 0, 0.12) !important;
}

.reason-bg-number {
    transition: transform 0.5s ease;
}

.modern-reason-card:hover .reason-bg-number {
    transform: scale(1.1) translateX(-10px) translateY(10px);
}

/* Premium Product Cards */
.product-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transform-style: flat;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(116, 42, 42, 0.15) !important;
}

.product-img-header {
    height: 240px;
    background-color: #f8f9fa;
}

.product-img-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-card:hover .product-img-header img {
    transform: scale(1.12);
}

.golden-separator {
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, var(--secondary-color), #d1b37b);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.product-card:hover .golden-separator {
    width: 80px;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Certification Logos 3D Animation */
.cert-logo-container {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    perspective: 1000px;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.cert-logo-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg) translate(-100%, -100%);
    transition: transform 0s;
    pointer-events: none;
    z-index: 2;
}

.cert-logo-container:hover {
    transform: translateY(-8px) rotateX(6deg) rotateY(6deg) scale(1.05);
    box-shadow: -10px 20px 35px rgba(209, 179, 123, 0.2) !important;
    border-color: var(--secondary-color);
}

.cert-logo-container:hover::after {
    transform: rotate(30deg) translate(100%, 100%);
    transition: transform 1.2s ease-in-out;
}

.cert-logo-3d {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    z-index: 1;
    position: relative;
}

.cert-logo-container:hover .cert-logo-3d {
    transform: translateZ(30px) scale(1.15);
    animation: gentleGlitter 1.5s infinite alternate ease-in-out;
}

@keyframes gentleGlitter {
    0% {
        filter: drop-shadow(0 15px 25px rgba(209, 179, 123, 0.4)) brightness(1.05);
    }

    100% {
        filter: drop-shadow(0 15px 35px rgba(209, 179, 123, 0.9)) brightness(1.25);
    }
}

/* 3D Contact Form Elements */
.contact-form-card {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.6s ease;
    transform-style: preserve-3d;
    perspective: 1500px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
}

.contact-form-card:hover {
    transform: perspective(1500px) rotateX(2deg) translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12) !important;
}

.form-group-3d {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

.form-group-3d:focus-within {
    transform: translateZ(20px) scale(1.02);
}

.form-group-3d .form-control {
    border: 2px solid #eee;
    border-radius: 12px;
    background-color: #fafafa;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-group-3d .form-control:focus {
    border-color: var(--secondary-color);
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(209, 179, 123, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-group-3d label {
    font-weight: 500;
    color: #888;
}

.form-group-3d .form-control:focus~label {
    color: var(--primary-color);
}

.btn-submit-3d {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, background 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-submit-3d:hover {
    transform: translateY(-4px) translateZ(15px);
    box-shadow: 0 12px 30px rgba(116, 42, 42, 0.4) !important;
}

/* Floating WhatsApp Icon */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    font-size: 35px;
    z-index: 9999;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(135deg, #25D366, #128C7E) !important;
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(-10deg);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5) !important;
    color: #fff !important;
}

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

body {
    top: 0px !important;
}

.goog-logo-link {
    display: none !important;
}

.goog-te-gadget {
    color: transparent !important;
    font-size: 0;
}

.goog-te-gadget .goog-te-combo {
    color: var(--primary-color);
    background-color: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 6px 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Responsive fixes */
@media (max-width: 991px) {
    #mainNav .navbar-nav .nav-item .nav-link {
        padding: 0.5rem 0;
    }

    .reason-card {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 30px;
    }

    header.masthead {
        min-height: 80vh;
        padding-top: calc(5rem + 38px);
    }
}

/* Top Announcement Bar */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.top-contact-bar {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Blog Section */
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.read-more-link {
    transition: opacity 0.3s ease;
}

.read-more-link:hover {
    opacity: 0.8;
}