@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

/* --- COLOR THEME --- */
:root {
    --primary-red: #E31E24;
    --dark-navy: #0F172A;
    --accent-yellow: #FFD700;
    --bg-light: #F8F9FA;
    --text-gray: #4A5568;
    --gradient-brand: linear-gradient(135deg, var(--primary-red), #ff4b2b);
    --gradient-dark: linear-gradient(135deg, var(--dark-navy), #1e293b);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-light); color: var(--dark-navy); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* --- ANIMATION CLASSES --- */
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s ease-out; }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: all 0.8s ease-out; }
.reveal-right.active { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.8); transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.reveal-scale.active { opacity: 1; transform: scale(1); }

/* --- HEADER --- */
header { background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; transition: 0.3s; }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }

/* --- LOGO --- */
.logo { display: flex; align-items: center; height: 100%; }
.logo img { 
    width: auto;         
    max-width: 220px;    
    height: auto;        
    max-height: 55px;    
    object-fit: contain; 
    display: block; 
    transition: transform 0.3s ease;
}
.logo img:hover { transform: scale(1.05); }

/* --- NAVIGATION --- */
.nav-links { display: flex; gap: 30px; font-weight: 600; font-size: 0.95rem; }
.nav-links a { position: relative; }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background: var(--primary-red); transition: 0.3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-red); }

/* --- BUTTONS --- */
.cta-btn { background: var(--gradient-brand); color: white; padding: 12px 25px; border-radius: 50px; font-weight: 600; font-size: 1rem; transition: all 0.3s ease; border: none; cursor: pointer; box-shadow: 0 4px 15px rgba(227, 30, 36, 0.3); display: inline-flex; align-items: center; gap: 8px;}
.cta-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(227, 30, 36, 0.5); color: white; }

/* --- HERO BANNER --- */
.hero-banner {
    width: 100%;
    background-color: var(--dark-navy);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}
.hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.2) 50%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 1;
}
.hero-banner img {
    width: 100%;
    max-height: 600px; 
    object-fit: cover;
    object-position: center;
    display: block;
    position: relative;
    z-index: 0; 
}

/* --- SECTION TITLES --- */
.section-title { text-align: center; font-size: 2.8rem; margin: 60px 0 40px; color: var(--dark-navy); font-weight: 700; position: relative;}
.section-title span { color: var(--primary-red); }
.section-title::after { content: ''; display: block; width: 80px; height: 4px; background: var(--primary-red); margin: 15px auto 0; border-radius: 2px; }

/* --- SERVICES GRID --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-bottom: 40px;}
.service-card { background: white; padding: 40px 25px; border-radius: 15px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: all 0.4s ease; position: relative; overflow: hidden; z-index: 1;}
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 0; background: var(--gradient-brand); transition: 0.4s ease; z-index: -1; border-radius: 15px;}
.service-card:hover::before { height: 100%; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(227, 30, 36, 0.2); }
.service-card:hover h3, .service-card:hover p, .service-card:hover i { color: white; }
.service-card i { font-size: 3rem; color: var(--primary-red); margin-bottom: 20px; transition: 0.4s ease; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 15px; color: var(--dark-navy); transition: 0.4s ease; font-weight: 600;}
.service-card p { font-size: 0.95rem; color: var(--text-gray); transition: 0.4s ease;}

/* --- PORTFOLIO SHOWCASE --- */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-bottom: 80px;}
.portfolio-item { background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); position: relative; cursor: pointer; }
.portfolio-img-wrapper { width: 100%; height: 280px; overflow: hidden; position: relative; }
.portfolio-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.portfolio-item:hover .portfolio-img { transform: scale(1.1); }
.portfolio-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(227, 30, 36, 0.85); display: flex; justify-content: center; align-items: center; opacity: 0; transition: 0.4s ease; }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay span { color: white; font-weight: 600; border: 2px solid white; padding: 10px 20px; border-radius: 5px; transform: translateY(20px); transition: 0.4s ease; }
.portfolio-item:hover .portfolio-overlay span { transform: translateY(0); }
.portfolio-info { padding: 25px; background: white;}
.portfolio-info h3 { color: var(--dark-navy); margin-bottom: 8px; font-weight: 700;}
.portfolio-info p { color: var(--text-gray); font-size: 0.9rem; }

/* --- WHY CHOOSE US --- */
.why-us { background: var(--gradient-dark); color: white; padding: 80px 0; position: relative; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.feature-item { padding: 20px; border-radius: 10px; background: rgba(255,255,255,0.05); transition: 0.3s; }
.feature-item:hover { background: rgba(255,255,255,0.1); transform: translateY(-5px); }
.feature-item i { font-size: 3rem; color: var(--accent-yellow); margin-bottom: 20px; }
.feature-item h4 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600;}

/* --- CLIENT SLIDER (MARQUEE) --- */
.client-section { background-color: white; padding: 60px 0 40px; border-top: 1px solid #eee; overflow: hidden; }
.client-title { text-align: center; font-size: 1.2rem; color: var(--text-gray); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 40px; font-weight: 600; }
.client-slider { width: 100%; overflow: hidden; position: relative; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.client-track { display: flex; align-items: center; width: max-content; animation: scroll 25s linear infinite; }
.client-track:hover { animation-play-state: paused; }
.client-logo { height: 60px; width: auto; margin: 0 40px; filter: grayscale(100%); opacity: 0.6; transition: all 0.3s ease; object-fit: contain; }
.client-logo:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.1); }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* --- PROFESSIONAL 4-COLUMN FOOTER --- */
.site-footer {
    background-color: var(--dark-navy);
    color: #A0AEC0; 
    padding: 80px 0 20px;
    font-size: 0.95rem;
    border-top: 5px solid var(--primary-red);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 20px;
    background: white;
    padding: 10px;
    border-radius: 8px;
}

.footer-desc {
    margin-bottom: 25px;
    line-height: 1.8;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact-list i {
    color: var(--primary-red);
    font-size: 1.1rem;
    margin-top: 4px;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: var(--primary-red);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #A0AEC0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-yellow);
    padding-left: 5px; 
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    color: #E2E8F0;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-badge i {
    color: var(--accent-yellow);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background-color: rgba(255,255,255,0.05);
    color: white;
    border-radius: 50%;
    transition: 0.3s;
    text-decoration: none;
}

.footer-social a:hover {
    background-color: var(--primary-red);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom .credit a {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.footer-bottom .credit a:hover {
    color: var(--accent-yellow);
}

/* --- ADMIN DASHBOARD UI --- */
.admin-container { display: flex; min-height: 80vh; background: #fff; margin: 40px auto; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.admin-sidebar { width: 260px; background: var(--gradient-dark); color: white; padding: 30px 20px; }
.admin-sidebar h2 { margin-bottom: 30px; font-size: 1.3rem; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 15px;}
.admin-sidebar ul li { padding: 12px 15px; cursor: pointer; border-radius: 8px; margin-bottom: 5px; transition: 0.3s;}
.admin-sidebar ul li:hover, .admin-sidebar ul li.active { background: var(--primary-red); }
.admin-content { flex: 1; padding: 40px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem;}
.form-group input, .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; transition: 0.3s;}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-red); box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);}
.admin-table { width: 100%; border-collapse: collapse; margin-top: 30px; }
.admin-table th, .admin-table td { border-bottom: 1px solid #eee; padding: 15px; text-align: left; }
.admin-table th { background: var(--bg-light); font-weight: 600; }
.action-btn { padding: 8px 12px; border: none; border-radius: 5px; cursor: pointer; color: white; margin-right: 8px; transition: 0.3s;}
.action-btn:hover { opacity: 0.8; transform: translateY(-2px);}
.btn-edit { background: #f59e0b; }
.btn-delete { background: var(--primary-red); }

/* --- RESPONSIVE MOBILE FIXES --- */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .logo img { max-width: 150px; max-height: 45px; }
    .nav-links { display: none; }
    .hero-banner img { max-height: 400px; }
    .client-logo { height: 40px; margin: 0 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}