/* Company Profile */
.company-profile { padding: 100px 0; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.profile-content h2 { font-size: 36px; color: #1e3a5f; margin-bottom: 25px; font-weight: 700; line-height: 1.3; }
.profile-content h2 span { color: #c8973e; }
.profile-content p { margin-bottom: 20px; color: #555; line-height: 1.8; font-size: 15px; }
.profile-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 35px; }
.profile-stat { background: #f8f6f3; padding: 20px; border-radius: 8px; border-left: 4px solid #c8973e; }
.profile-stat .number { font-size: 28px; font-weight: 700; color: #1e3a5f; display: block; }
.profile-stat .label { font-size: 13px; color: #666; text-transform: uppercase; font-weight: 500; }
.profile-image { position: relative; }
.profile-image img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); object-fit: cover; }
.profile-image .badge { position: absolute; bottom: -25px; right: -25px; background: #c8973e; color: #1e3a5f; padding: 25px 30px; border-radius: 8px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.profile-image .badge .number { font-size: 42px; font-weight: 800; display: block; line-height: 1; }
.profile-image .badge .text { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Projects Section */
.projects-section { padding: 100px 0; background: #f8f6f3; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.project-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.08); transition: all 0.3s; }
.project-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.project-card .card-image { height: 220px; overflow: hidden; position: relative; }
.project-card .card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.project-card:hover .card-image img { transform: scale(1.05); }
.project-card .card-type { position: absolute; top: 15px; left: 15px; background: #c8973e; color: #1e3a5f; padding: 5px 15px; border-radius: 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.project-card .card-body { padding: 25px; }
.project-card h3 { font-size: 17px; color: #1e3a5f; margin-bottom: 10px; font-weight: 600; }
.project-card p { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 15px; }
.project-card .card-link { color: #c8973e; text-decoration: none; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s; }
.project-card .card-link:hover { color: #1e3a5f; }

/* History Timeline */
.history-section { padding: 120px 0; background: #f8f7f4; position: relative; }
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline-track { position: absolute; left: 50%; transform: translateX(-50%); width: 3px; height: 100%; background: #ddd; top: 0; border-radius: 2px; }
.timeline-track-fill { position: absolute; left: 50%; transform: translateX(-50%); width: 3px; height: 0%; background: linear-gradient(180deg, #c8973e, #e8b960); top: 0; border-radius: 2px; transition: height 0.15s linear; will-change: height; box-shadow: 0 0 10px rgba(200,151,62,0.4); }
.timeline-item { display: flex; align-items: flex-start; margin-bottom: 80px; position: relative; opacity: 0; transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); will-change: transform, opacity; }
.timeline-item:nth-child(odd) { flex-direction: row; transform: translateX(-60px); }
.timeline-item:nth-child(even) { flex-direction: row-reverse; transform: translateX(60px); }
.timeline-item.revealed { opacity: 1; transform: translateX(0) !important; }
.timeline-content { width: 43%; padding: 30px; background: rgba(255,255,255,0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.5); border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.06); position: relative; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); will-change: transform, box-shadow; }
.timeline-content:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 16px 48px rgba(200,151,62,0.2); border-color: rgba(200,151,62,0.3); }
.timeline-item:nth-child(odd) .timeline-content { margin-right: auto; text-align: right; }
.timeline-item:nth-child(even) .timeline-content { margin-left: auto; text-align: left; }
.timeline-year-badge { position: absolute; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #1e3a5f, #2a5080); color: white; padding: 10px 24px; border-radius: 30px; font-weight: 700; font-size: 15px; z-index: 2; white-space: nowrap; box-shadow: 0 4px 15px rgba(26,54,93,0.3); transition: all 0.3s; }
.timeline-item.revealed .timeline-year-badge { animation: yearBadgePulse 2s ease-in-out infinite; }
@keyframes yearBadgePulse { 0%, 100% { box-shadow: 0 4px 15px rgba(26,54,93,0.3); } 50% { box-shadow: 0 4px 25px rgba(200,151,62,0.5); } }
.timeline-dot { position: absolute; left: 50%; transform: translateX(-50%); top: 45px; width: 16px; height: 16px; background: #c8973e; border-radius: 50%; border: 3px solid white; box-shadow: 0 2px 8px rgba(0,0,0,0.2); z-index: 1; transition: all 0.3s; }
.timeline-item.revealed .timeline-dot { animation: dotRipple 2s ease-out 0.5s; }
@keyframes dotRipple { 0% { box-shadow: 0 0 0 0 rgba(200,151,62,0.5), 0 2px 8px rgba(0,0,0,0.2); } 50% { box-shadow: 0 0 0 12px rgba(200,151,62,0), 0 2px 8px rgba(0,0,0,0.2); } 100% { box-shadow: 0 0 0 0 rgba(200,151,62,0), 0 2px 8px rgba(0,0,0,0.2); } }
.timeline-content h3 { font-size: 18px; color: #1e3a5f; margin-bottom: 10px; font-weight: 700; }
.timeline-content p { font-size: 14px; color: #666; line-height: 1.7; }
.timeline-content .icon { display: inline-flex; width: 44px; height: 44px; background: linear-gradient(135deg, rgba(200,151,62,0.1), rgba(200,151,62,0.2)); border-radius: 50%; align-items: center; justify-content: center; margin-bottom: 14px; transition: all 0.3s; }
.timeline-content:hover .icon { background: linear-gradient(135deg, #c8973e, #e8b960); }
.timeline-content:hover .icon svg { fill: white; }
.timeline-content .icon svg { fill: #c8973e; transition: fill 0.3s; }

/* Brick Heritage with parallax */
.heritage-section { padding: 140px 0; background: linear-gradient(160deg, #0a1628 0%, #1e3a5f 50%, #152d4a 100%); color: white; text-align: center; position: relative; overflow: hidden; }
.heritage-parallax-bg { position: absolute; inset: -50px; background: radial-gradient(ellipse at 20% 50%, rgba(200,151,62,0.08) 0%, transparent 50%), radial-gradient(ellipse at 80% 50%, rgba(200,151,62,0.06) 0%, transparent 50%); will-change: transform; pointer-events: none; }
.heritage-section .container { position: relative; z-index: 1; }
.heritage-section h2 { font-size: clamp(28px, 5vw, 42px); margin-bottom: 30px; font-weight: 700; opacity: 0; transform: translateY(30px); transition: all 1s ease; }
.heritage-section h2 span { color: #c8973e; }
.heritage-section h2.revealed { opacity: 1; transform: translateY(0); }
.heritage-text { font-size: 18px; max-width: 800px; margin: 0 auto 40px; opacity: 0; line-height: 1.8; color: rgba(255,255,255,0.85); transform: translateY(20px); transition: all 1s ease 0.3s; }
.heritage-text.revealed { opacity: 1; transform: translateY(0); }
.heritage-text.revealed::after { content: '|'; animation: typewriterBlink 1s step-end infinite; color: #c8973e; margin-left: 2px; }
.heritage-text.typing-done::after { display: none; }
@keyframes typewriterBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.heritage-gold-divider { width: 80px; height: 2px; background: linear-gradient(90deg, transparent, #c8973e, transparent); margin: 40px auto; opacity: 0; transition: all 0.8s ease 0.5s; }
.heritage-gold-divider.revealed { opacity: 1; }
.heritage-highlight { font-size: 22px; color: #c8973e; font-weight: 600; margin-top: 20px; opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.6s; text-shadow: 0 0 30px rgba(200,151,62,0.3); }
.heritage-highlight.revealed { opacity: 1; transform: translateY(0); }

/* Partners Section */
.partners-section { padding: 80px 0; background: #f8f6f3; }
.partners-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; align-items: center; }
.partner-item { background: white; padding: 20px; border-radius: 8px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: all 0.3s; display: flex; align-items: center; justify-content: center; min-height: 100px; }
.partner-item:hover { box-shadow: 0 5px 20px rgba(0,0,0,0.1); transform: translateY(-3px); }
.partner-item img { max-width: 130px; max-height: 60px; object-fit: contain; filter: grayscale(30%); transition: filter 0.3s; }
.partner-item:hover img { filter: grayscale(0%); }
.partner-item span { font-size: 15px; font-weight: 600; color: #555; }

/* Newsletter */
.newsletter-section { padding: 80px 0; background: linear-gradient(135deg, #1e3a5f 0%, #0f1923 100%); color: white; text-align: center; }
.newsletter-section h2 { font-size: 32px; margin-bottom: 15px; font-weight: 700; }
.newsletter-section p { font-size: 16px; opacity: 0.9; margin-bottom: 30px; }
.newsletter-form { display: flex; gap: 10px; max-width: 500px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 15px 20px; border: none; border-radius: 4px; font-size: 14px; font-family: 'Inter', 'Montserrat', sans-serif; }
.newsletter-form button { background: #c8973e; color: #1e3a5f; border: none; padding: 15px 30px; border-radius: 4px; font-weight: 700; font-size: 14px; cursor: pointer; text-transform: uppercase; transition: background 0.3s; font-family: 'Inter', 'Montserrat', sans-serif; }
.newsletter-form button:hover { background: #b8892e; }

/* Services Section */
.services-section { padding: 100px 0; background: #1e3a5f; color: white; }
.services-section .section-title h2 { color: white; }
.services-section .section-title p { color: rgba(255,255,255,0.8); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card { background: rgba(255,255,255,0.05); padding: 40px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); transition: all 0.3s; text-decoration: none; color: white; display: block; }
.service-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-5px); }
.service-card svg { width: 48px; height: 48px; margin-bottom: 20px; fill: #c8973e; }
.service-card h3 { font-size: 20px; margin-bottom: 15px; }
.service-card p { font-size: 14px; opacity: 0.8; line-height: 1.6; }

/* Stats Section */
.stats-section { padding: 100px 0; background: linear-gradient(135deg, #c8973e, #daa84e, #c8973e); position: relative; overflow: hidden; }
.stats-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 0% 0%, rgba(255,255,255,0.15) 0%, transparent 50%), radial-gradient(circle at 100% 100%, rgba(0,0,0,0.1) 0%, transparent 50%); pointer-events: none; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; position: relative; z-index: 1; }
.stat-item { padding: 30px 10px; border-radius: 12px; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: all 0.3s; }
.stat-item:hover { background: rgba(255,255,255,0.2); transform: translateY(-4px); }
.stat-item .number { font-size: 52px; font-weight: 800; color: #1e3a5f; display: block; line-height: 1.1; margin-bottom: 8px; }
.stat-item .label { font-size: 14px; color: #1e3a5f; text-transform: uppercase; font-weight: 600; opacity: 0.8; }
.stat-item .number.counted { animation: statBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes statBounce { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* Footer */
.footer { background: #0f1923; color: white; padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-about h3 { font-size: 24px; margin-bottom: 20px; color: #c8973e; }
.footer-about p { font-size: 14px; line-height: 1.8; opacity: 0.8; margin-bottom: 20px; }
.footer h4 { font-size: 16px; margin-bottom: 20px; color: #c8973e; text-transform: uppercase; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 14px; transition: all 0.3s; }
.footer-links a:hover { color: #c8973e; padding-left: 5px; }
.footer-contact p { margin-bottom: 10px; font-size: 14px; opacity: 0.8; }
.footer-contact svg { flex-shrink: 0; width: 18px; height: 18px; fill: #c8973e; margin-right: 10px; vertical-align: middle; }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; transition: all 0.3s; }
.social-links a svg { width: 18px; height: 18px; fill: currentColor; }
.social-links a:hover { background: #c8973e; color: #1e3a5f; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; font-size: 14px; opacity: 0.6; }

/* Scroll to Top */
.scroll-top { position: fixed; right: 24px; bottom: 90px; width: 45px; height: 45px; background: rgba(26,54,93,0.8); color: white; border: none; border-radius: 50%; cursor: pointer; display: none; align-items: center; justify-content: center; font-size: 18px; transition: all 0.3s; z-index: 999; }
.scroll-top:hover { background: #c8973e; color: #1e3a5f; }
.scroll-top.visible { display: flex; }

/* Team Section */
.team-section { padding: 100px 0; background: #f8f6f3; }
.team-section .section-title p.team-subtitle { font-size: 15px; color: #666; max-width: 700px; margin: 0 auto 10px; }
.team-intro { text-align: center; font-size: 16px; color: #555; margin-bottom: 50px; font-weight: 500; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.team-card { background: white; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); text-align: center; padding: 40px 30px 35px; transition: all 0.3s; }
.team-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.team-card .team-photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; border: 4px solid #e2e8f0; }
.team-card .team-icon { font-size: 80px; color: #1e3a5f; margin-bottom: 20px; opacity: 0.7; }
.team-card h3 { font-size: 20px; color: #1e3a5f; margin-bottom: 5px; font-weight: 700; }
.team-card .team-role { font-size: 14px; color: #c8973e; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; display: block; }
.team-card .team-bio { font-size: 14px; color: #555; line-height: 1.7; margin-bottom: 20px; text-align: left; }
.team-card .team-education { font-size: 13px; color: #666; border-top: 1px solid #f0f0f0; padding-top: 15px; text-align: left; }
.team-card .team-education strong { color: #1e3a5f; display: block; margin-bottom: 5px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.team-card .team-education p { margin-bottom: 4px; }

/* Video Gallery Section */
.video-section { padding: 100px 0; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.video-card { background: #f8f6f3; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.08); transition: all 0.3s; }
.video-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.video-placeholder { height: 200px; background: #1e3a5f; display: flex; align-items: center; justify-content: center; position: relative; }
.video-placeholder svg { fill: rgba(255,255,255,0.7); transition: all 0.3s; }
.video-card:hover .video-placeholder svg { fill: #c8973e; transform: scale(1.1); }
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-card .video-body { padding: 20px 25px; }
.video-card h3 { font-size: 17px; color: #1e3a5f; margin-bottom: 8px; font-weight: 600; }
.video-card p { font-size: 14px; color: #666; line-height: 1.6; }

/* Scroll Animations */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

/* Improved Mobile Navigation */
@media (max-width: 992px) {
    .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0; background: white; box-shadow: 0 10px 30px rgba(0,0,0,0.15); padding: 15px 0; z-index: 999; }
    .main-nav.open > li > a { padding: 14px 20px; font-size: 14px; }
    .main-nav.open .dropdown { position: static; box-shadow: none; min-width: auto; background: #f8f6f3; }
    .main-nav.open li:hover > .dropdown { display: none; }
    .main-nav.open li.menu-open > .dropdown { display: block; }
}

/* Responsive */
@media (max-width: 992px) {
    .logo img { height: 40px; }
    .logo-text { font-size: 18px; }
    .header-container { height: 70px; }
    .projects-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-grid { grid-template-columns: 1fr; }
    .profile-image img { height: 300px; width: 100%; object-fit: cover; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .partners-grid { grid-template-columns: repeat(3, 1fr); }
    .timeline-track, .timeline-track-fill { left: 30px; transform: none; }
    .timeline-year-badge { left: 30px; transform: translateX(-50%); }
    .timeline-dot { left: 30px; }
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content { width: calc(100% - 80px); margin-left: 80px; text-align: left; }
    .timeline-item:nth-child(odd) { transform: translateX(0); }
    .timeline-item:nth-child(even) { transform: translateX(0); }
    .timeline-item { opacity: 0; transform: translateY(40px) !important; }
    .timeline-item.revealed { opacity: 1; transform: translateY(0) !important; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .logo img { height: 35px; }
    .logo-text { font-size: 16px; }
    .profile-image img { height: 250px; }
    .projects-grid, .services-grid, .stats-grid, .footer-grid { grid-template-columns: 1fr; }
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-stats { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .team-grid { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: 1fr; }
}

/* SVG Icon Sizing — global rules for all pages */
/* Top bar icons */
.top-bar svg { width: 16px; height: 16px; vertical-align: middle; }
.top-bar a svg { width: 16px; height: 16px; }
/* Contact page — icons inside 60x60 containers */
.contact-icon svg { width: 24px; height: 24px; fill: #c8973e; margin: 0; }
/* Audit/detail list checkmark icons */
.audit-content ul li svg { width: 18px; height: 18px; flex-shrink: 0; fill: #c8973e; }
/* Detail list checkmark icons (used across multiple pages) */
.detail-list li svg, .detailed-content ul li svg { width: 18px; height: 18px; flex-shrink: 0; fill: #c8973e; }
/* Career/vacancy page list icons */
.vacancy-details li svg, .benefits-grid svg, .requirement-list li svg { width: 18px; height: 18px; flex-shrink: 0; fill: #c8973e; }
/* Generic list bullet SVGs */
ul li > svg:first-child { flex-shrink: 0; min-width: 16px; min-height: 16px; }
/* Products page — cert badges */
.cert-badge svg { width: 28px; height: 28px; fill: #c8973e; }
/* Mission page — value icons in 70x70 containers */
.value-icon svg { width: 28px; height: 28px; fill: #c8973e; }
/* Project detail pages — stat/spec/achievement/area cards */
.stat-card svg { width: 36px; height: 36px; fill: #c8973e; }
.spec-card svg { width: 36px; height: 36px; fill: #c8973e; }
.achievement-card svg { width: 28px; height: 28px; fill: #c8973e; }
.area-card svg { width: 36px; height: 36px; fill: #1e3a5f; }
/* Geological services page — geography/audit lists */
.geography-list li svg { width: 18px; height: 18px; flex-shrink: 0; fill: #c8973e; }
.audit-list li svg { width: 18px; height: 18px; flex-shrink: 0; fill: #c8973e; }
/* Internship page — specialty card heading icons */
.specialty-card h3 svg { width: 22px; height: 22px; fill: #c8973e; vertical-align: middle; }
/* History/timeline — icon SVGs inside 44x44 circle containers */
.timeline-content .icon svg { width: 20px; height: 20px; }
/* Gallery — view icon inside 50x50 circle overlay */
.gallery-overlay .view-icon svg { width: 20px; height: 20px; fill: #1e3a5f; }
/* History page — scroll indicator */
.hero-scroll-indicator svg { width: 18px; height: 18px; }
/* Internship/contact — email link icon */
.email-link svg { width: 16px; height: 16px; vertical-align: middle; }

/* Smooth page load */
body { animation: pageLoad 0.5s ease-out; }
@keyframes pageLoad { from { opacity: 0; } to { opacity: 1; } }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .timeline-item { opacity: 1; transform: none !important; }
    .heritage-section h2, .heritage-text, .heritage-gold-divider, .heritage-highlight { opacity: 1; transform: none; }
}
