/* Logo styles */
.logo {
    height: 60px; /* Adjust based on your needs */
    display: flex;
    align-items: center;
}


.logo-link {
    display: inline-block;
    height: 100%;
}

.logo-image {
    height: 100%;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.logo-image:hover {
    opacity: 0.8;
}


.logo-link {
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.client-logos img:hover {
    filter: grayscale(0%) brightness(100%) !important;
    transform: scale(1.05);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    color: white;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    background-color: #0a0a14;
}

/* Background Slideshow */
.slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    filter: brightness(0.85);
    transition: all 12s cubic-bezier(0.22, 0.61, 0.36, 1);
    animation: smoothZoom 24s infinite;
}

.slide.active {
    opacity: 1;
    animation: smoothZoom 24s infinite;
}

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

/* Header Styles */
.top-contact-bar {
    background-color: rgba(10, 10, 10, 0.2);
    color: white;
    padding: 12px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    backdrop-filter: blur(4px);
}

.contact-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.contact-info span {
    display: flex;
    align-items: center;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.contact-info i {
    margin-right: 8px;
    font-size: 16px;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 18px;
}

.social-icons a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.social-icons a:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

/* Navigation */
nav {
    padding: 18px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(10, 10, 20, 0.5);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links > li {
    position: relative;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    transition: all 0.4s ease;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
    font-size: 16px;
    position: relative;
    display: block;
}

.nav-links li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: white;
    transition: width 0.4s ease;
}

.nav-links li:hover > a::before {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 10, 10, 0.2);
    backdrop-filter: blur(10px);
    min-width: 200px;
    border-radius: 5px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    transform: translateY(10px);
    list-style: none;
}

.nav-links li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    padding: 5px 15px;
    position: relative;
}

.dropdown li a {
    font-size: 14px;
    padding: 8px 10px;
    display: block;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.dropdown li a:hover {
    background: rgba(255,255,255,0.1);
    padding-left: 15px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 8rem 1rem;
    position: relative;
    z-index: 1;
    margin-top: 60px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
    letter-spacing: 1px;
    font-weight: 700;
    transform: translateZ(0);
}

.hero p {
    font-size: 1.3rem;
    margin: 0 auto 3rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.7);
    max-width: 600px;
    transform: translateZ(0);
}

.hero button {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.4s ease;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
    transform: translateZ(0);
    backdrop-filter: blur(2px);
}

.hero button:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px) translateZ(0);
    border-color: white;
}

/* Content Sections */
.content-section {
    position: relative;
    padding: 100px 0;
    min-height: 100vh;
    background-color: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2;
}

.content-section-2 {
    position: relative;
    padding: 100px 0;
    min-height: 100vh;
    background-color: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2;
}

/* Cards */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 20;
}

.main-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px;
    margin: 100px auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 800px;
    transition: transform 0.3s ease;
}

.main-card:hover {
    transform: translateY(-10px);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 80px 0;
}

.small-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    min-height: 200px;
}

.small-card:hover {
    transform: translateY(-5px);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin: 80px 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.card-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.card-content ul {
    margin-top: 15px;
    padding-left: 20px;
}

.card-content li {
    margin-bottom: 8px;
}

/* Train Animation */
.track-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.5s;
}

.track {
    position: absolute;
    width: 40px;
    height: 100%;
}

.left-track { left: 10%; top: 0; }
.right-track { right: 10%; top: 0; }

.rail {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    width: 3px;
    height: 100%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.rail.left-1 { left: 8px; }
.rail.left-2 { left: 28px; }
.rail.right-1 { left: 8px; }
.rail.right-2 { left: 28px; }

.rail-tie {
    position: absolute;
    width: 40px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    left: 0;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.train {
    position: absolute;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s linear;
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.left-train {
    left: calc(10% + 5px);
    top: -800px;
    flex-direction: column;
}

.right-train {
    right: calc(10% + 5px);
    top: -800px;
    flex-direction: column;
}

.engine, .coach {
    width: 30px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    margin: 5px auto;
    border-radius: 6px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.wheel {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    position: absolute;
    left: -6px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.wheel:first-child { top: 10px; }
.wheel:last-child { bottom: 10px; }

.smoke {
    position: absolute;
    bottom: -10px;
    left: 9px;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: puff 2s ease-out forwards;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

@keyframes puff {
    0% { transform: scale(1) translateY(0); opacity: 0.8; }
    100% { transform: scale(3) translateY(60px); opacity: 0; }
}

.headlight {
    position: absolute;
    top: -6px;
    left: 9px;
    width: 12px;
    height: 12px;
    background: yellow;
    border-radius: 50%;
    box-shadow: 0 0 20px 5px yellow;
    animation: flicker 0.15s infinite alternate;
    pointer-events: none;
}

@keyframes flicker {
    from { opacity: 1; box-shadow: 0 0 30px 10px rgba(255, 255, 150, 0.7); }
    to { opacity: 0.7; box-shadow: 0 0 20px 5px rgba(255, 255, 150, 0.5); }
}

/* Footer */
footer {
    background: rgba(10, 10, 10, 0.3);
    backdrop-filter: blur(5px);
    padding: 30px 5%;
    text-align: center;
    margin-top: 100px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-links {
        gap: 20px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-contact-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .contact-info {
        justify-content: center;
    }
    
    nav {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 10px 0 0 20px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .track-container {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .main-card, .feature-card {
        padding: 25px;
    }
}
/* screen resolution Compatibility */

:root {
  /* Base Properties */
  --animation-duration: 30s;
  --train-travel-distance: 100vw;
  --track-height: 5vh;
  --train-width: 20vw;
  --coach-width: 15vw;
}

/* Mobile First Approach */
@media (max-width: 480px) { /* Small phones */
  :root {
    --animation-duration: 15s;
    --track-height: 3vh;
    --train-width: 30vw;
    --coach-width: 20vw;
  }
}

@media (min-width: 481px) and (max-width: 767px) { /* Large phones */
  :root {
    --animation-duration: 18s;
    --track-height: 3.5vh;
    --train-width: 28vw;
  }
}

@media (min-width: 768px) and (max-width: 1024px) { /* Tablets */
  :root {
    --animation-duration: 22s;
    --track-height: 4vh;
    --train-width: 25vw;
  }
}

@media (min-width: 1025px) and (max-width: 1280px) { /* Small laptops */
  :root {
    --animation-duration: 25s;
    --track-height: 4.5vh;
    --train-width: 22vw;
  }
}

@media (min-width: 1281px) and (max-width: 1366px) { /* Standard laptops */
  :root {
    --animation-duration: 28s;
  }
}

@media (min-width: 1367px) and (max-width: 1920px) { /* HD/Full HD */
  :root {
    --animation-duration: 30s;
  }
}

@media (min-width: 1921px) and (max-width: 2560px) { /* QHD/2K */
  :root {
    --animation-duration: 35s;
    --track-height: 6vh;
  }
}

@media (min-width: 2561px) { /* 4K and beyond */
  :root {
    --animation-duration: 45s;
    --track-height: 7vh;
    --train-width: 15vw;
  }
}

/* Aspect Ratio Specific Adjustments */
@media (min-aspect-ratio: 4/3) and (max-aspect-ratio: 15/10) { /* 4:3 to 3:2 */
  :root {
    --track-height: 6vh;
  }
}

@media (min-aspect-ratio: 16/10) and (max-aspect-ratio: 17/10) { /* MacBooks */
  :root {
    --animation-duration: 32s;
    --track-height: 7vh;
  }
}

@media (min-aspect-ratio: 21/9) { /* Ultra-wide monitors */
  :root {
    --animation-duration: 50s;
    --train-travel-distance: 150vw;
  }
}

/* screen resolution Compatibility(robust) */
/* Ensure smooth animation performance */
.train {
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

/* Handle landscape orientation on mobile */
@media (max-width: 767px) and (orientation: landscape) {
  :root {
    --track-height: 8vh;
    --animation-duration: 20s;
  }
  
  .track-container {
    margin: 2vh 0;
  }
}

/* Special case for foldable devices */
@media (min-width: 600px) and (max-width: 1000px) and (min-aspect-ratio: 1/1) {
  :root {
    --animation-duration: 25s;
    --train-width: 18vw;
  }
}

/* Print styles (optional) */
@media print {
  .track-container, .train {
    display: none !important;
  }
}
/* small images resiginz */
.small-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* project cards sizing*/
/* Project Cards with Images */
.feature-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.project-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.project-text {
    flex: 1;
    padding-right: 15px;
}

.project-image {
    width: 175px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .project-content {
        flex-direction: column;
    }
    .project-image {
        width: 100%;
        height: auto;
        margin-top: 15px;
    }
}

