/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #333; }
a { text-decoration: none; color: inherit; }

/* Container */
.container { width: 90%; max-width: 1200px; margin: auto; }

/* Header */
.site-header { background: #111; color: #fff; padding: 15px 0; }
.logo a { color: #fff; font-size: 24px; font-weight: bold; }
.logo span { color: #00c3ff; }
.navbar ul { display: flex; list-style: none; gap: 20px; }
.navbar ul li a { color: #fff; font-weight: 500; transition: 0.3s; }
.navbar ul li a:hover { color: #00c3ff; }
.menu-toggle { display: none; font-size: 24px; color: #fff; cursor: pointer; }

/* Animated Logo Text (Desktop) */
.logo-text {
  font-size: 28px;
  font-weight: bold;
  background: linear-gradient(90deg, #ff914d, #b84dff, #7ed957, #00c3ff);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientText 6s ease infinite;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Default: hide image logo */
.logo .logo-img { display: none; }

/* Gradient animation */
@keyframes gradientText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hero Section with Colorful Gradient */
.hero {
    background: linear-gradient(135deg, #ff914d, #b84dff, #7ed957);
    background-size: 600% 600%;
    animation: gradientMove 15s ease infinite;
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.hero h1 { font-size: 48px; margin-bottom: 20px; }
.hero p { font-size: 18px; margin-bottom: 30px; }

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Buttons */
.btn { background: #fff; color: #0077b6; padding: 12px 25px; border-radius: 25px; font-weight: bold; transition: 0.3s; }
.btn:hover { background: #00c3ff; color: #fff; }

/* General Section Padding */
.intro, .cards, .about-intro, .about-story, .about-future, .services, .products, .about-services, .why-choose-us, .partner {
    padding: 30px 20px;
}

/* Extra margin for first section after header */
.intro:first-of-type,
.cards:first-of-type,
.about-intro:first-of-type,
.services:first-of-type,
.products:first-of-type,
.about-services:first-of-type,
.why-choose-us:first-of-type {
    margin-top: 40px;
}

/* Paragraph Styling */
.intro p, .about-intro p, .about-story p, .about-future p, .partner p {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    max-width: 1000px;
    margin: 20px auto;
    text-align: justify;
}

/* Section Titles */
.intro h2, .about-intro h2, .about-services h2, .about-story h2, .about-future h2, .why-choose-us h2, .partner h2 {
    margin-bottom: 30px;
    font-size: 28px;
    text-align: center;
}

/* 🌈 Card Styles Alternating Colors */
.card, .about-services li, .services .card, .products .card, .why-choose-us .card {
    padding: 25px 20px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: none;
    color: #fff;
    margin-bottom: 20px;
}

/* 1st, 4th, 7th ... = Orange */
.card:nth-child(3n+1),
.services .card:nth-child(3n+1),
.products .card:nth-child(3n+1),
.why-choose-us .card:nth-child(3n+1),
.about-services li:nth-child(3n+1) {
    background: #ff914d;
}

/* 2nd, 5th, 8th ... = Violet */
.card:nth-child(3n+2),
.services .card:nth-child(3n+2),
.products .card:nth-child(3n+2),
.why-choose-us .card:nth-child(3n+2),
.about-services li:nth-child(3n+2) {
    background: #b84dff;
}

/* 3rd, 6th, 9th ... = Light Green */
.card:nth-child(3n),
.services .card:nth-child(3n),
.products .card:nth-child(3n),
.why-choose-us .card:nth-child(3n),
.about-services li:nth-child(3n) {
    background: #7ed957;
}

.card h3, .about-services li strong, .services .card h3, .products .card h3, .why-choose-us .card h3 {
    margin-bottom: 15px;
    font-size: 22px;
    color: #fff;
}

.card p, .about-services li p, .services .card p, .products .card p, .why-choose-us .card p {
    color: rgba(255,255,255,0.95);
    line-height: 1.6;
    font-size: 16px;
    margin-bottom: 20px;
}

.card ul, .about-services li ul { padding-left: 20px; }
.card li, .about-services li li { margin-bottom: 8px; }

/* Hover Effect */
.card:hover, .about-services li:hover, .services .card:hover, .products .card:hover, .why-choose-us .card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* Grid Layouts */
.cards .grid-3, .about-services ul, .services .grid-3, .products .grid-3, .why-choose-us .grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

/* Partner Section */
.partner { padding: 60px 20px; }
.partner p { margin-left: 18px; max-width: 1100px; }

/* Projects Section */
.projects { 
    padding: 60px 20px; 
    background: linear-gradient(135deg, #ff914d, #b84dff, #7ed957);
    color: #fff;
}

.projects h2 { 
    text-align: center; 
    margin-bottom: 30px; 
    font-size: 32px; 
    color: #fff;
}

/* Marquee Scroll */
.projects-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.projects-track {
    display: flex;
    gap: 30px;
    animation: scrollProjects 20s linear infinite;
}

/* Individual Project Card as clickable link */
.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    min-width: 250px;
    padding: 30px 20px;
    text-align: center;
    flex-shrink: 0;
    transition: transform 0.3s, background 0.3s;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

/* Hover Effect */
.project-card:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.15);
}

/* Icon Styling */
.project-icon { font-size: 50px; margin-bottom: 15px; }

/* Project Title */
.project-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #fff;
}

/* Project Description */
.project-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

/* Scroll Animation */
@keyframes scrollProjects {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Responsive */
@media(max-width:768px){
    .project-card { min-width: 200px; }
    .projects h2 { font-size: 28px; }
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #ff914d, #b84dff, #7ed957);
    background-size: 600% 600%;
    animation: gradientMove 15s ease infinite;
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}
.page-header h1 { font-size: 48px; margin-bottom: 10px; }
.page-header p { font-size: 18px; }

/* Contact Section */
.contact { display: flex; flex-wrap: wrap; gap: 40px; padding: 60px 20px; background: #f9f9f9; }
.contact-info, .contact-form {
    flex: 1 1 400px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 10px;
}
.contact-info h3 { color: #0077b6; margin-bottom: 15px; font-size: 28px; }
.contact-info p { font-size: 16px; margin-bottom: 10px; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}
.contact-form button {
    background: #0077b6;
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}
.contact-form button:hover { background: #00c3ff; }

/* Footer */
.site-footer {
    background: #111;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}
.site-footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.site-footer h3 { font-size: 22px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.site-footer p { max-width: 600px; margin: 0 auto; line-height: 1.5; font-size: 15px; }
.site-footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 10px 0;
}
.site-footer .social-icons a { color: #fff; font-size: 22px; transition: transform 0.3s, color 0.3s; }
.site-footer .social-icons a:hover { transform: scale(1.2); color: #00c3ff; }
.site-footer .footer-bottom p { font-size: 13px; margin-top: 5px; }

/* Alerts */
.alert { padding: 15px 20px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; }
.alert.success { background: #e6f9ed; color: #2f8f4e; border: 1px solid #2f8f4e; }
.alert.error { background: #fdecea; color: #c00; border: 1px solid #c00; }

/* Responsive Fixes */
@media(max-width:768px){
    .navbar { display: none; }
    .navbar.active { display: block; }
    .navbar ul { flex-direction: column; text-align: center; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 32px; }
    .page-header h1 { font-size: 32px; }
    .contact { flex-direction: column; padding: 40px 20px; }
    .contact-info, .contact-form { padding: 20px; }
    .contact-info h3 { font-size: 24px; }
    .products .card h3, .services .card h3 { font-size: 20px; }
    .products .card p, .services .card p { font-size: 16px; }
    .grid-3 { gap: 20px; }
    .about-services ul { grid-template-columns: 1fr; }

    /* Switch to image logo on mobile */
    .logo .logo-text { display: none; }
    .logo .logo-img { display: inline-block; }
    .logo .logo-img img { height: 50px; width: auto; }
}
/* Logo Text */
.logo .logo-text {
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
  background: linear-gradient(90deg, #ff914d, #b84dff, #7ed957);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
