:root {
    --bg-color: #ffffff;
    --card-bg: #f8fafc;
    --primary: #DC2626; 
    --primary-dark: #b91c1c;
    --text-main: #0f1115;
    --text-muted: #4b5563;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --border-color: rgba(0, 0, 0, 0.1);
    --header-bg: rgba(255, 255, 255, 0.9);
    --footer-bg: #f1f5f9;
    --card-hover-bg: #ffffff;
    --section-alt-bg: #f8fafc;
    --social-bg: rgba(0, 0, 0, 0.05);
}

body.dark-mode {
    --bg-color: #0f1115;
    --card-bg: #16181d;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.05);
    --header-bg: rgba(15, 17, 21, 0.9);
    --footer-bg: #0a0b0e;
    --card-hover-bg: #1c1f26;
    --section-alt-bg: rgba(255, 255, 255, 0.02);
    --social-bg: rgba(255, 255, 255, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body { font-family: var(--font-main); background-color: var(--bg-color); color: var(--text-main); line-height: 1.6; overflow-x: hidden; transition: background-color 0.3s ease, color 0.3s ease; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
p { color: var(--text-muted); font-size: 1.1rem; }
.gradient-text { background: linear-gradient(135deg, var(--primary), #ff8a8a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
/* Updated Header styling */
header { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    z-index: 1000; 
    background: transparent; /* Transparent on load */
    border-bottom: 1px solid transparent; 
    padding: 1.5rem 0; /* Taller on load */
    transition: all 0.3s ease; 
}

/* New class added via JavaScript when scrolled */
header.scrolled {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0; /* Shrinks padding */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
nav { display: flex; justify-content: space-between; align-items: center; }
.logo-img { 
    height: 60px; 
    width: auto; 
    object-fit: contain; 
    transition: height 0.3s ease; /* Smoothly resizes logo */
}

/* Shrink logo when scrolled */
header.scrolled .logo-img {
    height: 45px;
}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.theme-toggle { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); width: 42px; height: 42px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: 0.3s; }
.theme-toggle:hover { background: var(--primary); color: white; border-color: var(--primary); }
.whatsapp-btn { background: #25D366; color: white; padding: 0.75rem 1.5rem; border-radius: 50px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.whatsapp-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); background: #1ebc57; }
.btn-outline { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); padding: 0.75rem 1.5rem; border-radius: 50px; font-weight: 600; display: inline-block; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; padding-top: 80px; }
.hero-content { max-width: 850px; z-index: 2; }
.hero h1 { margin-bottom: 1.5rem; }
.hero p { max-width: 650px; margin-bottom: 2.5rem; font-size: 1.25rem; }
.blob { position: absolute; width: 500px; height: 500px; background: radial-gradient(circle, rgba(220, 38, 38, 0.15) 0%, rgba(220, 38, 38, 0.05) 50%, transparent 70%); border-radius: 50%; filter: blur(80px); z-index: 1; }
.blob-1 { top: -10%; right: -10%; }
.blob-2 { bottom: 10%; left: -10%; }
.company-profile { padding: 6rem 0; background: var(--section-alt-bg); transition: background-color 0.3s ease; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.profile-text h3 { color: var(--primary); margin-top: 1.5rem; }
.services { padding: 8rem 0; }
.section-header { margin-bottom: 4rem; text-align: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card { background: var(--card-bg); padding: 2.5rem; border-radius: 20px; border: 1px solid var(--border-color); transition: 0.3s ease; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; }
.card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 10px 30px rgba(220, 38, 38, 0.1); background: var(--card-hover-bg); }
.icon { width: 50px; height: 50px; background: rgba(220, 38, 38, 0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; color: var(--primary); font-size: 1.5rem; }
.badge { background: rgba(220, 38, 38, 0.1); color: var(--primary); padding: 4px 12px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; margin-top: 1rem; border: 1px solid rgba(220, 38, 38, 0.2); display: inline-block; }
footer { padding: 4rem 0 2rem; border-top: 1px solid var(--border-color); background: var(--footer-bg); transition: background-color 0.3s ease; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3rem; margin-bottom: 3rem; }
.social-icons { display: flex; gap: 1rem; margin-top: 1rem; }
.social-icons a { width: 40px; height: 40px; border-radius: 50%; background: var(--social-bg); display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.social-icons a:hover { background: var(--primary); color: white; }
.copyright { text-align: center; padding-top: 2rem; border-top: 1px solid var(--border-color); font-size: 0.9rem; color: var(--text-muted); }
@media (max-width: 768px) { h1 { font-size: 2.5rem; } .nav-links { display: none; } .profile-grid { grid-template-columns: 1fr; } .logo-img { height: 45px; } .whatsapp-btn span { display: none; } }

/* Go to Top Button */
#go-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

#go-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#go-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}