/* =========================================================
   VibroPower — styles.css
   Modern CSS with variables, flexbox, grid & animations
   ========================================================= */

/* --- CSS VARIABLES --- */
:root {
    --green:        #00A651;
    --green-dark:   #008a43;
    --green-light:  #eefaf3;
    --black:        #1a1a1a;
    --white:        #ffffff;
    --grey-light:   #f8f8f8;
    --grey-mid:     #e5e5e5;
    --grey-text:    #666666;
    --grey-dark:    #333333;
    --shadow-sm:    0 5px 20px rgba(0,0,0,0.06);
    --shadow-md:    0 10px 30px rgba(0,0,0,0.10);
    --shadow-green: 0 10px 30px rgba(0,166,81,0.15);
    --radius:       6px;
    --transition:   all 0.3s ease;
    --font:         Arial, Helvetica, sans-serif;
    --max-width:    1400px;
}

/* --- RESET & BASE --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 18px; }

body { font-family: var(--font); color: var(--grey-dark); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }

/* --- SKIP LINK --- */
.skip-link {
    position: absolute; top: -100%; left: 0;
    background: var(--green); color: var(--white);
    padding: 12px 20px; font-weight: 700;
    z-index: 9999; text-decoration: none;
    border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { top: 0; }

/* --- NAVIGATION --- */
header[role="banner"] {
    position: fixed; top: 0; width: 100%;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 2px 15px rgba(0,166,81,0.08);
    z-index: 1000; padding: 15px 5%;
}
.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    max-width: var(--max-width); margin: 0 auto; gap: 20px;
}
.logo-img { height: 90px; width: auto; display: block; }
.nav-links { display: flex; list-style: none; gap: 40px; align-items: center; }
.nav-links a {
    text-decoration: none; color: var(--black); font-weight: 600;
    font-size: 15px; text-transform: uppercase; letter-spacing: 1px;
    padding-bottom: 5px; border-bottom: 2px solid transparent;
    transition: var(--transition);
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
    color: var(--green); border-bottom-color: var(--green);
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 25px; height: 3px; background: var(--black); border-radius: 3px; transition: var(--transition); }

/* --- HERO --- */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    color: var(--white); padding: 120px 5% 60px; position: relative;
}
.hero-content { max-width: 800px; animation: fadeInUp 1s ease both; }
.hero-tag {
    display: inline-block; background: var(--green); color: var(--white);
    padding: 8px 20px; font-size: 14px; text-transform: uppercase;
    letter-spacing: 2px; margin-bottom: 22px; font-weight: 700; border-radius: 3px;
}
.hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 900; line-height: 1.1; margin-bottom: 22px; text-transform: uppercase; }
.hero h1 span { color: var(--green); }
.hero p { font-size: clamp(18px, 2vw, 21px); margin-bottom: 38px; opacity: 0.95; max-width: 700px; }
.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }

/* --- PAGE HEADER --- */
.page-header {
    min-height: 50vh; display: flex; align-items: center; justify-content: center;
    color: var(--white); text-align: center; padding: 140px 5% 60px;
}
.page-header-content { max-width: 900px; }
.page-header h1 { font-size: clamp(36px, 5vw, 62px); font-weight: 900; text-transform: uppercase; margin-bottom: 15px; line-height: 1.1; }
.page-header h1 span { color: var(--green); }
.page-header p { font-size: clamp(17px, 2vw, 20px); opacity: 0.95; max-width: 700px; margin: 0 auto; }
.breadcrumb { margin-top: 18px; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; opacity: 0.85; }
.breadcrumb a { color: var(--green); text-decoration: none; font-weight: 700; }
.breadcrumb a:hover { text-decoration: underline; }

/* --- BUTTONS --- */
.btn-primary, .btn-secondary {
    display: inline-block; padding: 16px 38px;
    font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    font-size: 15px; border-radius: var(--radius);
    text-decoration: none; cursor: pointer;
    transition: var(--transition); border: 2px solid transparent;
    font-family: var(--font);
}
.btn-primary { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-primary:hover { background: var(--white); color: var(--green); transform: translateY(-3px); box-shadow: var(--shadow-green); }
.btn-secondary { background: transparent; color: var(--white); border-color: var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--black); transform: translateY(-3px); }
.cta .btn-primary { background: var(--white); color: var(--green); border-color: var(--white); }
.cta .btn-primary:hover { background: transparent; color: var(--white); }

/* --- STATS --- */
.stats { background: var(--green); color: var(--white); padding: 60px 5%; }
.stats-container { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item h3 { font-size: clamp(40px, 4vw, 58px); color: var(--white); font-weight: 900; margin-bottom: 8px; line-height: 1; }
.stat-item p { text-transform: uppercase; letter-spacing: 1px; font-size: 14px; font-weight: 600; opacity: 0.9; }

/* --- SECTIONS --- */
section, .section-pad { padding: 100px 5%; }
.section-container { max-width: var(--max-width); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag { display: block; color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: 3px; font-size: 14px; margin-bottom: 15px; }
.section-header h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 900; text-transform: uppercase; margin-bottom: 18px; line-height: 1.15; color: var(--black); }
.section-header p { font-size: 19px; color: var(--grey-text); max-width: 800px; margin: 0 auto; line-height: 1.7; }

/* --- SERVICE CARDS --- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card { background: var(--white); padding: 40px 30px; border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: var(--transition); border-top: 4px solid var(--grey-mid); }
.service-card:hover { transform: translateY(-10px); border-top-color: var(--green); box-shadow: var(--shadow-green); }
.service-icon { width: 72px; height: 72px; background: var(--green-light); color: var(--green); display: flex; align-items: center; justify-content: center; border-radius: 50%; margin-bottom: 25px; font-size: 30px; font-weight: 900; }
.service-card h3 { font-size: 22px; margin-bottom: 15px; text-transform: uppercase; color: var(--black); }
.service-card p { color: var(--grey-text); margin-bottom: 20px; font-size: 17px; line-height: 1.7; }
.service-card a { color: var(--green); text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: 1px; transition: var(--transition); }
.service-card a:hover { text-decoration: underline; }

/* --- ABOUT SECTION (now white by default) --- */
.about-section { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { height: 500px; border-radius: var(--radius); box-shadow: var(--shadow-md); background-size: cover; background-position: center; }
.about-content h2 { font-size: clamp(30px, 3.5vw, 46px); font-weight: 900; text-transform: uppercase; margin-bottom: 22px; line-height: 1.15; color: var(--black); }
.about-content p { color: var(--grey-text); margin-bottom: 22px; font-size: 18px; line-height: 1.7; }
.about-features { list-style: none; margin: 25px 0; }
.about-features li { padding: 12px 0 12px 32px; position: relative; color: var(--grey-dark); font-weight: 600; font-size: 17px; }
.about-features li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; font-size: 20px; }

/* --- INDUSTRIES / PROJECTS --- */
.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.industry-card { height: 260px; color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; padding: 25px; border-radius: var(--radius); position: relative; overflow: hidden; cursor: pointer; transition: var(--transition); background-color: var(--black); background-size: cover; background-position: center; }
.industry-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 20%, rgba(0,80,40,0.85)); transition: var(--transition); }
.industry-card:hover { transform: scale(1.03); }
.industry-card:hover::before { background: linear-gradient(to bottom, rgba(0,166,81,0.4), rgba(0,80,40,0.95)); }
.industry-card h4, .industry-card p { position: relative; z-index: 2; }
.industry-card h4 { font-size: 20px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.industry-card p { font-size: 14px; opacity: 0.9; }

/* --- CTA --- */
.cta { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: var(--white); text-align: center; padding: 80px 5%; }
.cta h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 900; text-transform: uppercase; margin-bottom: 22px; line-height: 1.15; }
.cta p { font-size: 20px; margin-bottom: 32px; opacity: 0.95; max-width: 750px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* --- CONTACT PAGE --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h3, .contact-info h2 { font-size: 28px; text-transform: uppercase; margin-bottom: 22px; color: var(--black); }
.contact-info > p { color: var(--grey-text); margin-bottom: 30px; font-size: 17px; line-height: 1.7; }
.contact-detail { display: flex; gap: 20px; margin-bottom: 25px; align-items: flex-start; }
.contact-icon { width: 52px; height: 52px; min-width: 52px; background: var(--green-light); color: var(--green); display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 22px; }
.contact-detail h4 { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; color: var(--black); }
.contact-detail p, .contact-detail a { color: var(--grey-text); font-size: 16px; text-decoration: none; line-height: 1.6; }
.contact-detail a:hover { color: var(--green); }
.contact-form { background: var(--white); padding: 45px; border-radius: var(--radius); box-shadow: var(--shadow-sm); border-top: 4px solid var(--green); }
.contact-form h3 { font-size: 26px; text-transform: uppercase; margin-bottom: 25px; color: var(--black); }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--grey-dark); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px 18px; border: 1.5px solid var(--grey-mid); border-radius: var(--radius); font-size: 16px; font-family: var(--font); color: var(--grey-dark); background: var(--grey-light); transition: var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--green); background: var(--white); box-shadow: 0 0 0 3px rgba(0,166,81,0.1); }
.form-group input:invalid:not(:placeholder-shown), .form-group textarea:invalid:not(:placeholder-shown) { border-color: #e74c3c; }
.form-group textarea { min-height: 140px; resize: vertical; }
.contact-form button { width: 100%; font-size: 16px; padding: 18px; }

/* --- FOOTER --- */
footer[role="contentinfo"] { background: var(--white); color: var(--grey-dark); padding: 60px 5% 20px; border-top: 1px solid var(--grey-mid); }
.footer-grid { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { text-transform: uppercase; margin-bottom: 20px; font-size: 15px; letter-spacing: 2px; color: var(--black); font-weight: 700; }
.footer-col p, .footer-col a { color: var(--grey-text); text-decoration: none; display: block; margin-bottom: 10px; font-size: 15px; line-height: 1.6; transition: var(--transition); }
.footer-col a:hover { color: var(--green); }
.footer-logo-img { height: 90px; width: auto; margin-bottom: 15px; }
.footer-bottom { max-width: var(--max-width); margin: 0 auto; padding-top: 20px; border-top: 1px solid var(--grey-mid); text-align: center; color: var(--grey-text); font-size: 14px; }

/* Footer contact — aligned rows */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-style: normal;
}
.footer-contact-list li {
    display: grid;
    grid-template-columns: 24px 65px 1fr;
    gap: 8px;
    align-items: start;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--grey-text);
    line-height: 1.5;
}
.footer-contact-list li .fc-icon {
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
}
.footer-contact-list li .fc-label {
    color: var(--black);
    font-weight: 700;
}
.footer-contact-list li .fc-value a {
    color: var(--grey-text);
    text-decoration: none;
    display: inline;
    margin: 0;
}
.footer-contact-list li .fc-value a:hover {
    color: var(--green);
}

/* --- ABOUT PAGE: LOGO STORY --- */
.logo-story { background: var(--white); text-align: center; }
.logo-story-intro { max-width: 850px; margin: 0 auto 50px; font-size: 20px; color: var(--grey-text); line-height: 1.8; }
.logo-showcase { display: flex; justify-content: center; margin: 20px auto 45px; }
.logo-showcase img { max-width: 550px; width: 100%; height: auto; padding: 40px 50px; background: var(--grey-light); border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* --- ABOUT PAGE: TIMELINE --- */
.timeline-section { background: var(--white); padding: 100px 5%; }
.timeline { position: relative; max-width: 1100px; margin: 40px auto 0; padding: 20px 0; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; background: var(--grey-mid); transform: translateX(-50%); border-radius: 2px; }
.timeline::after { content: ''; position: absolute; left: 50%; top: 0; width: 4px; height: var(--line-progress, 0%); background: var(--green); transform: translateX(-50%); border-radius: 2px; transition: height 0.15s ease-out; box-shadow: 0 0 15px rgba(0, 166, 81, 0.4); z-index: 1; }
.timeline-item { position: relative; width: 50%; padding: 25px 45px; box-sizing: border-box; list-style: none; }
.timeline-item.left  { left: 0;   text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }
.timeline-item::before { content: ''; position: absolute; top: 40px; width: 22px; height: 22px; border-radius: 50%; background: var(--grey-mid); border: 4px solid var(--white); box-shadow: 0 0 0 3px var(--grey-mid); z-index: 2; transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease; }
.timeline-item.left::before  { right: -11px; }
.timeline-item.right::before { left: -11px; }
.timeline-item.reached::before { background: var(--green); box-shadow: 0 0 0 3px var(--green), 0 0 20px rgba(0, 166, 81, 0.5); transform: scale(1.15); }
.timeline-year { display: inline-block; background: var(--black); color: var(--white); padding: 10px 24px; font-size: 24px; font-weight: 900; letter-spacing: 2px; margin-bottom: 15px; border-radius: var(--radius); transition: background 0.4s ease; }
.timeline-item.reached .timeline-year { background: var(--green); }
.timeline-content { background: var(--white); padding: 25px 30px; border-radius: var(--radius); box-shadow: var(--shadow-sm); border-top: 3px solid var(--grey-mid); text-align: left; transition: border-top-color 0.4s ease; }
.timeline-item.reached .timeline-content { border-top-color: var(--green); }
.timeline-content ul { list-style: none; padding: 0; margin: 0; }
.timeline-content li { color: var(--grey-text); font-size: 16px; line-height: 1.6; padding: 8px 0 8px 22px; position: relative; }
.timeline-content li::before { content: '▸'; color: var(--green); position: absolute; left: 0; top: 8px; font-weight: 900; }

/* --- ABOUT PAGE: DIRECTORS --- */
.directors-section { background: var(--grey-light); padding: 100px 5%; }
.directors-list { max-width: 1200px; margin: 0 auto; }
.director-profile { display: grid; grid-template-columns: 340px 1fr; gap: 50px; align-items: center; margin-bottom: 80px; padding-bottom: 70px; border-bottom: 1px solid var(--grey-mid); }
.director-profile:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.director-photo { background: var(--grey-light); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.director-photo img { width: 100%; height: auto; display: block; }
.director-info h3 { font-size: 24px; font-weight: 900; color: var(--black); margin-bottom: 6px; }
.director-title { color: var(--green); font-weight: 700; font-style: italic; font-size: 18px; margin-bottom: 25px; display: block; }
.director-info p { color: var(--grey-dark); font-size: 16px; line-height: 1.8; margin-bottom: 15px; }

/* --- SCROLL ANIMATIONS --- */
.fade-in { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; will-change: opacity, transform; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in.leaving { opacity: 0; transform: translateY(-30px); }
.fade-left { opacity: 0; transform: translateX(-60px); transition: opacity 0.8s ease, transform 0.8s ease; will-change: opacity, transform; }
.fade-left.visible { opacity: 1; transform: translateX(0); }
.fade-left.leaving { opacity: 0; transform: translateX(-40px); }
.fade-right { opacity: 0; transform: translateX(60px); transition: opacity 0.8s ease, transform 0.8s ease; will-change: opacity, transform; }
.fade-right.visible { opacity: 1; transform: translateX(0); }
.fade-right.leaving { opacity: 0; transform: translateX(40px); }
.fade-zoom { opacity: 0; transform: scale(0.92); transition: opacity 0.8s ease, transform 0.8s ease; will-change: opacity, transform; }
.fade-zoom.visible { opacity: 1; transform: scale(1); }
.fade-zoom.leaving { opacity: 0; transform: scale(0.96); }
.fade-in:nth-child(2), .fade-left:nth-child(2), .fade-right:nth-child(2), .fade-zoom:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3), .fade-left:nth-child(3), .fade-right:nth-child(3), .fade-zoom:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4), .fade-left:nth-child(4), .fade-right:nth-child(4), .fade-zoom:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5), .fade-left:nth-child(5), .fade-right:nth-child(5), .fade-zoom:nth-child(5) { transition-delay: 0.4s; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .industries-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 968px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); padding: 20px 5%; box-shadow: var(--shadow-md); gap: 15px; }
    .stats-container { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .logo-img, .footer-logo-img { height: 65px; }
    .director-profile { grid-template-columns: 1fr; gap: 30px; }
    .director-photo { max-width: 340px; margin: 0 auto; }
}
@media (max-width: 700px) {
    html { font-size: 17px; }
    .services-grid, .industries-grid, .footer-grid { grid-template-columns: 1fr; }
    .timeline::before, .timeline::after { left: 22px; }
    .timeline-item, .timeline-item.left, .timeline-item.right { width: 100%; left: 0; padding: 15px 15px 15px 55px; text-align: left; }
    .timeline-item::before, .timeline-item.left::before, .timeline-item.right::before { left: 11px; right: auto; }
    .stats-container { grid-template-columns: 1fr 1fr; }
    .contact-form { padding: 25px; }
    .logo-img, .footer-logo-img { height: 55px; }
}
@media (prefers-reduced-motion: reduce) {
    .fade-in, .fade-left, .fade-right, .fade-zoom { opacity: 1 !important; transform: none !important; transition: none !important; }
    .timeline::after { height: 100% !important; transition: none !important; }
    .timeline-item::before { background: var(--green) !important; box-shadow: 0 0 0 3px var(--green) !important; }
    .timeline-item .timeline-year { background: var(--green) !important; }
    .timeline-item .timeline-content { border-top-color: var(--green) !important; }
    html { scroll-behavior: auto; }
}