:root {
    --primary: #0f172a;
    --secondary: #334155;
    --accent: #22d3ee;
    --accent-dark: #0891b2;
    --text-light: #f8fafc;
    --text-dark: #1e293b;
    --bg-light: #ffffff;
    --bg-dark: #0f172a;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 0.8rem 5%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nav-on-dark .nav-links a {
    color: white;
}

.nav-on-dark .nav-links a::after {
    background: white;
}

nav.scrolled .nav-links a {
    color: var(--text-dark) !important;
}

nav.scrolled .nav-links a::after {
    background: var(--accent) !important;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(248, 250, 252, 0.8), rgba(255, 255, 255, 0.95)), url('../images/hero_home.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--accent);
    filter: blur(150px);
    opacity: 0.1;
    top: -200px;
    right: -200px;
    z-index: 0;
}

.hero-content {
    max-width: 700px;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    color: var(--accent-dark);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-light);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.3);
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%), url('../images/hero_subpage.png') !important;
    background-size: cover !important;
    background-position: center !important;
    padding: 180px 10% 100px !important;
    position: relative;
    overflow: hidden;
}

.page-services .page-header {
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.85) 100%), url('../images/hero_it.png') !important;
}

.page-header h1 {
    color: white !important;
    font-size: 3.5rem;
    position: relative;
    z-index: 2;
}

.page-header::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--accent);
    filter: blur(150px);
    opacity: 0.15;
    bottom: -200px;
    right: -100px;
    z-index: 1;
}

/* Sections */
section {
    padding: 100px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--accent);
}

/* Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: white;
    padding: 80px 10% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #94a3b8;
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #1e293b;
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 3.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero { padding: 0 5%; }
    .hero-content h1 { font-size: 2.8rem; }
    .nav-links { display: none; } /* Mobile menu toggle needed */
}
