
:root {
    
    --bg-primary: #ffffff;
    --bg-secondary: #f4f6f9;
    --bg-card: #ffffff;
    --accent-color: #ff4136;
    --accent-hover: #e02d24;
    --text-main: #111111;
    --text-muted: #555555;
    --header-bg: 0, 31, 63;
    --header-border: 255, 65, 54;
    --font-heading: 'Montserrat', sans-serif;

    --font-main: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); background-color: var(--bg-primary); color: var(--text-main); line-height: 1.7; overflow-x: hidden; }

/* Preloader */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-primary); z-index: 9999; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.5s ease; }
.loader-spinner { width: 50px; height: 50px; border: 4px solid rgba(var(--header-border), 0.2); border-top-color: var(--accent-color); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20px; }
.loader-text { font-family: var(--font-heading); color: var(--text-main); font-weight: bold; font-size: 1.2rem; letter-spacing: 1px; }
@keyframes spin { to { transform: rotate(360deg); } }
body.loaded #preloader { opacity: 0; pointer-events: none; }

/* Modern Typography */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; color: var(--text-main); line-height: 1.3; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; margin-bottom: 20px; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 30px; }
h3 { font-size: 1.5rem; margin-bottom: 15px; }
p { margin-bottom: 20px; color: var(--text-muted); font-size: 1.1rem; }
a { color: var(--accent-color); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--accent-hover); }

.text-center { text-align: center; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }
.bg-secondary { background-color: var(--bg-secondary); }

/* Buttons with Micro-Animations */
.btn {
    display: inline-flex; justify-content: center; align-items: center; gap: 10px;
    padding: 16px 36px; font-size: 1.1rem; font-weight: 600; border-radius: 8px;
    cursor: pointer; text-align: center; border: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary { background-color: var(--accent-color); color: #fff; box-shadow: 0 10px 20px -10px var(--accent-color); }
.btn-primary:hover { background-color: var(--accent-hover); transform: translateY(-3px); box-shadow: 0 15px 25px -10px var(--accent-hover); color: #fff; }
.btn-outline { background-color: transparent; border: 2px solid var(--accent-color); color: var(--text-main); }
.btn-outline:hover { background-color: var(--accent-color); color: #fff; transform: translateY(-2px); }

/* Universal Glassmorphism Header */
.modern-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(var(--header-bg), 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(var(--header-border), 0.2);
    transition: all 0.3s ease;
}
.modern-header .nav-container { display: flex; justify-content: space-between; align-items: center; height: 85px; }
.brand-logo { font-size: 1.8rem; font-weight: 800; font-family: var(--font-heading); color: var(--text-main); letter-spacing: 1px; }
.nav-menu { display: flex; list-style: none; gap: 35px; align-items: center; }
.nav-menu a { font-weight: 500; color: var(--text-main); font-size: 1rem; position: relative; }
.nav-menu a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0;
    background-color: var(--accent-color); transition: width 0.3s ease;
}
.nav-menu a:hover::after { width: 100%; }
.nav-menu .btn::after { display: none; }

/* Universal Modern Footer */
.modern-footer { background-color: rgba(var(--header-bg), 1); color: var(--text-main); padding: 80px 0 30px; border-top: 1px solid rgba(var(--header-border), 0.2); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; margin-bottom: 60px; }
.footer-col h4 { color: var(--text-main); margin-bottom: 25px; font-size: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col a { color: var(--text-muted); font-size: 0.95rem; }
.footer-col a:hover { color: var(--accent-color); padding-left: 5px; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(var(--header-border), 0.1); font-size: 0.9rem; color: var(--text-muted); }

/* Layout Utilities */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }

/* Modern Cards */
.modern-card { background: var(--bg-card); padding: 40px; border-radius: 16px; border: 1px solid rgba(var(--header-border), 0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.modern-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: var(--accent-color); }
.card-icon { width: 60px; height: 60px; background: rgba(var(--header-border), 0.1); border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 1.8rem; color: var(--accent-color); margin-bottom: 25px; transition: transform 0.3s; }
.modern-card:hover .card-icon { transform: scale(1.1) rotate(5deg); background: var(--accent-color); color: #fff; }

/* Image Wrappers */
.img-wrapper { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.1); position: relative; }
.img-wrapper img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.img-wrapper:hover img { transform: scale(1.05); }

/* Responsive */
@media (max-width: 992px) { .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .nav-menu { display: none; } }
