/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #FFFFFF;
    color: #333333;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Improved container for different screen sizes */
@media (max-width: 1200px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .container {
        width: 100%;
        padding: 0 10px;
    }
}

/* Animation Classes */
.animated {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.feature-card, .product-card, .encoder-category {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.about-text {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced hover effects */
.feature-card, .encoder-category, .product-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature-card:hover, .encoder-category:hover, .product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(227, 6, 19, 0.2);
}

.btn {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(227, 6, 19, 0.3);
}

nav ul li a {
    transition: all 0.3s ease;
}

nav ul li a:hover {
    transform: translateY(-2px);
}

/* Animation delays for staggered effects */
.feature-card:nth-child(1) {
    transition-delay: 0.1s;
}

.feature-card:nth-child(2) {
    transition-delay: 0.2s;
}

.feature-card:nth-child(3) {
    transition-delay: 0.3s;
}

.feature-card:nth-child(4) {
    transition-delay: 0.4s;
}

.encoder-category:nth-child(1) {
    transition-delay: 0.1s;
}

.encoder-category:nth-child(2) {
    transition-delay: 0.2s;
}

.encoder-category:nth-child(3) {
    transition-delay: 0.3s;
}

/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
    padding: 20px 0;
    border-bottom: 1px solid rgba(27, 20, 100, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header scrolled state */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 15px 0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 55px;
    transition: all 0.3s ease;
}

/* Navigation Styles */
.main-nav {
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 35px;
}

nav ul li a {
    color: #1B1464;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
    letter-spacing: 0.5px;
}

nav ul li a:hover {
    color: #E30613;
}

nav ul li a.active {
    color: #E30613;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #E30613;
    border-radius: 2px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #E30613;
    border-radius: 2px;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    padding: 10px;
    margin-left: 15px;
}

.hamburger-icon {
    width: 30px;
    height: 22px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #1B1464;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2) {
    top: 10px;
}

.hamburger-icon span:nth-child(3) {
    top: 20px;
}

.hamburger-menu.active .hamburger-icon span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.hamburger-menu.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger-menu.active .hamburger-icon span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* Enhanced Mobile Navigation */
@media (max-width: 992px) {
    .hamburger-menu {
        display: block;
    }
    
    .main-nav {
        display: none;
    }
    
    .main-nav.active {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        background-color: #FFFFFF;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        transition: transform 0.4s ease;
        z-index: 1000;
        padding: 100px 30px 30px;
        transform: translateX(0);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .main-nav:not(.active) {
        transform: translateX(100%);
    }
    
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav ul li {
        margin: 0 0 20px 0;
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: 15px 0;
        font-size: 18px;
        color: #333333;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        -webkit-tap-highlight-color: rgba(227, 6, 19, 0.1);
        touch-action: manipulation;
    }
    
    nav ul li:last-child a {
        border-bottom: none;
    }
    
    nav ul li a:hover,
    nav ul li a.active {
        color: #E30613;
        background-color: rgba(227, 6, 19, 0.05);
        border-radius: 4px;
    }
    
    nav ul li a::after {
        display: none;
    }
    
    /* Mobile-specific touch enhancements */
    .btn, .product-card, .feature-card, .encoder-category {
        -webkit-tap-highlight-color: rgba(227, 6, 19, 0.1);
        touch-action: manipulation;
    }
    
    /* Improved touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Additional Hamburger Menu Styles */
.main-nav {
    display: block;
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    
    .main-nav.active {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        transition: transform 0.3s ease;
        z-index: 1000;
        padding: 80px 30px 30px;
        transform: translateX(0);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav:not(.active) {
        transform: translateX(100%);
    }
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

nav ul li a:hover {
    color: #E30613;
}

nav ul li a.active {
    color: #E30613;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #E30613;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.4s;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background-color: #E30613;
    color: #FFFFFF;
    box-shadow: 0 5px 15px rgba(227, 6, 19, 0.3);
}

.btn-primary:hover {
    background-color: #E30613;
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(227, 6, 19, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #1B1464;
    border: 2px solid #1B1464;
}

.btn-secondary:hover {
    background-color: #1B1464;
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(27, 20, 100, 0.2);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(27, 20, 100, 0.85), rgba(10, 8, 46, 0.95)), url('https://images.unsplash.com/photo-1581091226033-d5c48150dbaa?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1200&q=80') no-repeat center center;
    background-size: cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.2) 0%, rgba(27, 20, 100, 0.1) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    padding: 0 30px;
    z-index: 2;
    position: relative;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FFFFFF;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: #FFFFFF;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(27, 20, 100, 0.03) 0%, rgba(227, 6, 19, 0.03) 100%);
    z-index: 1;
}

.features .container {
    position: relative;
    z-index: 2;
}

.features h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 70px;
    text-transform: uppercase;
    color: #1B1464;
    position: relative;
    padding-bottom: 20px;
}

.features h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #E30613, #1B1464);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

.feature-card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(27, 20, 100, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, rgba(227, 6, 19, 0.05), rgba(27, 20, 100, 0.05));
    transition: height 0.4s ease;
    z-index: -1;
}

.feature-card:hover::before {
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(227, 6, 19, 0.15);
    border-color: rgba(227, 6, 19, 0.3);
}

.feature-icon {
    margin-bottom: 25px;
    font-size: 3rem;
    color: #1B1464;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    color: #E30613;
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #1B1464;
}

.feature-card p {
    color: #555555;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Encoder Types Section */
.encoder-types {
    padding: 100px 0;
    background: #FFFFFF;
    color: #333333;
    position: relative;
    overflow: hidden;
}

.encoder-types::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(27, 20, 100, 0.03) 0%, rgba(227, 6, 19, 0.03) 100%);
    z-index: 1;
}

.encoder-types .container {
    position: relative;
    z-index: 2;
}

.encoder-types h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 70px;
    text-transform: uppercase;
    color: #1B1464;
    position: relative;
    padding-bottom: 20px;
}

.encoder-types h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #E30613, #1B1464);
    border-radius: 2px;
}

.encoder-types-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.encoder-category {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 40px;
    transition: all 0.4s ease;
    border: 1px solid rgba(27, 20, 100, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.encoder-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, rgba(227, 6, 19, 0.03), rgba(27, 20, 100, 0.03));
    transition: height 0.4s ease;
    z-index: -1;
}

.encoder-category:hover::before {
    height: 100%;
}

.encoder-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(227, 6, 19, 0.15);
    border-color: rgba(227, 6, 19, 0.3);
}

.encoder-category::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #E30613, #1B1464);
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.icon-wrapper {
    background: rgba(27, 20, 100, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    border: 2px solid #1B1464;
    transition: all 0.3s ease;
}

.encoder-category:hover .icon-wrapper {
    background: rgba(227, 6, 19, 0.1);
    border-color: #E30613;
}

.encoder-icon {
    font-size: 2.2rem;
    color: #1B1464;
    transition: all 0.3s ease;
}

.encoder-category:hover .encoder-icon {
    color: #E30613;
    transform: scale(1.1);
}

.category-header h3 {
    font-size: 1.9rem;
    color: #1B1464;
    margin: 0;
}

.category-content p {
    color: #555555;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* YouTube Section */
.youtube-section {
    background: linear-gradient(135deg, rgba(27, 20, 100, 0.05) 0%, rgba(227, 6, 19, 0.05) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 100px; /* Add margin to ensure proper spacing before footer */
}

.youtube-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(227, 6, 19, 0.08) 0%, transparent 25%),
                radial-gradient(circle at 80% 70%, rgba(27, 20, 100, 0.08) 0%, transparent 25%);
    z-index: 1;
}

.youtube-content {
    position: relative;
    z-index: 2;
}

.youtube-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1B1464;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.youtube-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #E30613, #1B1464);
    border-radius: 2px;
}

.youtube-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #555555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.youtube-content .btn {
    display: inline-block;
}

/* About Page Styles */
.about-hero {
    padding: 150px 0 100px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #E30613;
    text-transform: uppercase;
}

.about-text h2 {
    font-size: 1.8rem;
    margin: 30px 0 15px;
    color: #E30613;
}

.about-text p {
    margin-bottom: 20px;
    color: #555555;
    font-size: 1.1rem;
}

.about-text ul {
    list-style: none;
    margin: 20px 0;
}

.about-text ul li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #555555;
}

.about-text ul li::before {
    content: '✓';
    color: #E30613;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(227, 6, 19, 0.2);
}

.mission-vision {
    padding: 50px 0 100px;
    background-color: #f8f8f8;
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.mission-text {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mission-card, .vision-card {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.mission-card h3, .vision-card h3 {
    color: #E30613;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.mission-card p, .vision-card p {
    color: #555555;
    font-size: 1.1rem;
}

.mission-image {
    text-align: center;
}

.mission-image img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(227, 6, 19, 0.2);
}

/* Products Page Styles */
.products-hero {
    padding: 150px 0 50px;
    text-align: center;
    background-color: #f8f8f8;
}

.products-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #E30613;
    text-transform: uppercase;
}

.products-hero p {
    font-size: 1.2rem;
    color: #555555;
    max-width: 800px;
    margin: 0 auto;
}

/* New Products Intro Section */
.products-intro {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.intro-content p {
    font-size: 1.2rem;
    color: #555555;
    margin-bottom: 30px;
    line-height: 1.8;
    text-align: center;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(27, 20, 100, 0.05) 0%, rgba(227, 6, 19, 0.05) 100%);
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0;
    border-left: 5px solid #E30613;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.highlight-box h2 {
    color: #1B1464;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.highlight-box p {
    margin-bottom: 15px;
    color: #555555;
    font-size: 1.1rem;
    line-height: 1.8;
}

.accessories-info {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0;
    border-left: 5px solid #1B1464;
}

.accessories-info h2 {
    color: #1B1464;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.accessories-info p {
    margin-bottom: 15px;
    color: #555555;
    font-size: 1.1rem;
    line-height: 1.8;
}

.closing-line {
    text-align: center;
    font-size: 1.1rem;
    color: #555555;
    margin: 40px 0 60px;
    font-style: italic;
}

.product-category {
    margin: 60px 0;
    padding: 30px 0;
}

.product-category h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #E30613;
    text-transform: uppercase;
    text-align: center;
}

.product-category p {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 0 10px;
}

.product-card {
    background: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(227, 6, 19, 0.1);
    border-color: rgba(227, 6, 19, 0.3);
}

.product-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
}

.product-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    aspect-ratio: 4/3;
    padding: 20px;
}

.product-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333333;
}

.product-info p {
    color: #555555;
    margin-bottom: 25px;
    font-size: 1rem;
    flex: 1;
}

.btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Product Detail Page Styles */
.product-detail {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
    align-items: center;
}

/* Improved product detail layout for different screen sizes */
@media (max-width: 992px) {
    .product-detail-content {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.product-detail-image {
    text-align: center;
}

.product-detail-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-detail-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #E30613;
}

.product-detail-info h3 {
    font-size: 1.5rem;
    margin: 25px 0 15px;
    color: #1B1464;
}

.product-detail-info p {
    color: #555555;
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.feature-list, .application-list {
    list-style: none;
    margin: 20px 0;
}

.feature-list li, .application-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #555555;
}

.feature-list li::before, .application-list li::before {
    content: '✓';
    color: #E30613;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.product-specifications {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0;
}

.product-specifications h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #1B1464;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.spec-table th {
    background: linear-gradient(135deg, #1B1464, #0a082e);
    color: #FFFFFF;
    text-align: left;
    padding: 15px 20px;
    font-weight: 600;
}

.spec-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    color: #555555;
}

.spec-table tr:last-child td {
    border-bottom: none;
}

.spec-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.related-products {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.related-products h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #1B1464;
}

/* Contact Page Styles */
.contact-hero {
    padding: 150px 0 50px;
    text-align: center;
    background-color: #f8f8f8;
}

.contact-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #E30613;
    text-transform: uppercase;
}

.contact-hero p {
    font-size: 1.2rem;
    color: #555555;
    max-width: 800px;
    margin: 0 auto;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 50px 0;
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Improved contact layout for different screen sizes */
@media (max-width: 992px) {
    .contact-wrapper {
        gap: 30px;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .contact-wrapper {
        padding: 20px;
        margin: 30px 0;
    }
}

.contact-info h2, .contact-form h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #E30613;
    text-transform: uppercase;
}

.contact-info p {
    color: #555555;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-item svg {
    margin-right: 15px;
    min-width: 24px;
}

.contact-item h3 {
    color: #E30613;
    margin-bottom: 5px;
}

.contact-item p {
    margin: 0;
    color: #555555;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: #FFFFFF;
    color: #333333;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #E30613;
}

.map-container {
    margin: 50px 0;
}

.map-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #E30613;
    text-transform: uppercase;
}

.map-container iframe {
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1B1464 0%, #0a082e 100%);
    padding: 70px 0 30px;
    position: relative;
    overflow: hidden;
    margin-top: 100px; /* Add margin to ensure footer is not hidden behind fixed header */
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 15% 25%, rgba(227, 6, 19, 0.1) 0%, transparent 20%),
                radial-gradient(circle at 85% 75%, rgba(227, 6, 19, 0.1) 0%, transparent 20%);
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin: 0 20px;
}

.footer-links ul li a {
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.footer-links ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #E30613;
    transition: width 0.3s ease;
}

.footer-links ul li a:hover::after {
    width: 100%;
}

.footer-links ul li a:hover {
    color: #E30613;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.copyright p {
    color: #e0e0e0;
    font-size: 0.95rem;
    margin: 0;
}

.copyright p a {
    color: #E30613; /* Red color for the digihpye link */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.copyright p a:hover {
    color: #ff4444; /* Lighter red on hover */
    text-decoration: underline;
}

/* Hidden link for digihpye */
.copyright p a[href*="digihype.in"] {
    display: none;
}

/* Responsive Design */
/* Large desktops */
@media (min-width: 1200px) {
    .container {
        width: 90%;
        max-width: 1200px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .product-image img {
        height: 250px;
    }
}

/* Medium desktops and laptops */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        width: 95%;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .product-image img {
        height: 220px;
    }
}

/* Tablets and small desktops */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .about-content,
    .contact-wrapper,
    .product-detail-content {
        grid-template-columns: 1fr;
    }
    
    .mission-vision {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links ul {
        justify-content: center;
    }
    
    .encoder-category {
        padding: 30px;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
    }
    
    .icon-wrapper {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .highlight-box,
    .accessories-info {
        padding: 20px;
    }
    
    .product-detail-image {
        margin-bottom: 30px;
    }
    
    .product-image img {
        height: 200px;
    }
}

/* Tablets */
@media (min-width: 576px) and (max-width: 767px) {
    header .container {
        flex-direction: row;
        position: relative;
    }
    
    .logo img {
        height: 45px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .features-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .features h2,
    .encoder-types h2 {
        font-size: 2.3rem;
    }
    
    nav ul li {
        margin-left: 25px;
    }
    
    .products-hero h1 {
        font-size: 2rem;
    }
    
    .intro-content p {
        font-size: 1.1rem;
    }
    
    .product-detail-info h2 {
        font-size: 1.8rem;
    }
    
    .product-detail-info h3 {
        font-size: 1.4rem;
    }
    
    .spec-table {
        display: block;
        overflow-x: auto;
    }
    
    .product-image img {
        height: 180px;
    }
}

/* Mobile devices */
@media (max-width: 575px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .features h2,
    .product-category h2,
    .products-hero h1,
    .contact-hero h1,
    .encoder-types h2,
    .product-detail-info h2,
    .related-products h2 {
        font-size: 2rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .encoder-category {
        padding: 25px;
    }
    
    .icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .encoder-icon {
        font-size: 1.8rem;
    }
    
    .custom-solutions-top .cta-content p {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .highlight-box h2,
    .accessories-info h2,
    .product-specifications h2 {
        font-size: 1.5rem;
    }
    
    .highlight-box,
    .accessories-info,
    .product-specifications {
        padding: 15px;
    }
    
    .spec-table th,
    .spec-table td {
        padding: 12px 15px;
    }
    
    .features-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-image img {
        height: 200px;
    }
}

/* Small mobile devices */
@media (max-width: 400px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .features h2,
    .product-category h2,
    .products-hero h1,
    .contact-hero h1,
    .encoder-types h2,
    .product-detail-info h2,
    .related-products h2 {
        font-size: 1.8rem;
    }
    
    .feature-card,
    .encoder-category {
        padding: 20px 15px;
    }
    
    .category-header h3 {
        font-size: 1.5rem;
    }
    
    .product-detail-info h2 {
        font-size: 1.6rem;
    }
    
    .product-detail-info h3 {
        font-size: 1.3rem;
    }
    
    .product-image img {
        height: 150px;
    }
}

/* Ultra-small devices */
@media (max-width: 320px) {
    .hero-content h1 {
        font-size: 1.4rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .product-image img {
        height: 120px;
    }
}

/* Custom Solutions CTA Section Top */
.custom-solutions-top {
    padding: 70px 0;
    background: linear-gradient(135deg, #1B1464 0%, #0a082e 100%);
    color: #FFFFFF;
    text-align: center;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.custom-solutions-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(227, 6, 19, 0.15) 0%, transparent 30%),
                radial-gradient(circle at 80% 70%, rgba(227, 6, 19, 0.15) 0%, transparent 30%);
    z-index: 1;
}

.custom-solutions-top .cta-content {
    position: relative;
    z-index: 2;
}

.custom-solutions-top .cta-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #e0e0e0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.custom-solutions-top .btn {
    font-size: 1.1rem;
    padding: 16px 45px;
    background-color: #E30613;
    color: #FFFFFF;
    box-shadow: 0 5px 20px rgba(227, 6, 19, 0.4);
}

.custom-solutions-top .btn:hover {
    background-color: #E30613;
    color: #FFFFFF;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(227, 6, 19, 0.6);
}