:root {
    /* Colors */
    --primary-color: #1f8cc1;
    --primary-dark: #156b96;
    --accent-color: #db0d64;
    --accent-hover: #b00a50;
    --heading-color: #1893d2;
    --text-color: #083954;
    --text-light: #4a6b8a;
    --bg-color: #ffffff;
    --section-bg: #f8fbfe;
    --section-alt-bg: #e7f2f8;
    --white: #ffffff;
    --border-color: #e1edf7;
    
    /* Typography */
    --font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* Layout */
    --container-width: 1240px;
    --section-spacing: clamp(60px, 8vw, 90px);
    
    /* Effects */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 10px rgba(31, 140, 193, 0.05);
    --shadow-md: 0 10px 25px rgba(31, 140, 193, 0.12);
    --radius-md: 10px;
    --radius-lg: 16px;
}

/* Base Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--heading-color); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-color); }

h1, h2, h3, h4 { 
    color: var(--heading-color); 
    margin-bottom: 1rem; 
    font-weight: 700; 
    letter-spacing: -0.5px; 
    line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 8vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.6rem); }

/* Layout Components */
.container { 
    max-width: var(--container-width); 
    margin: 0 auto; 
    padding: 0 25px; 
}

.section { 
    padding: var(--section-spacing) 0; 
}

.section-alt {
    padding: var(--section-spacing) 0;
    background-color: var(--section-alt-bg);
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 20px 20px;
}

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

.section-title p { 
    font-size: 1.15rem; 
    color: var(--text-light); 
}

.section-title::after {
    content: ''; 
    display: block; 
    width: 60px; 
    height: 4px;
    background: var(--accent-color); 
    margin: 20px auto 0; 
    border-radius: 2px;
}

.grid { display: grid; gap: 40px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Typography Helpers */
.justify-text p, 
.card p, 
.contact-block p, 
.feature-item p, 
.service-body p, 
.expertise-text p, 
.footer-col p {
    text-align: justify;
    hyphens: auto;
}

/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    gap: 12px;
}

.btn i { font-size: 1.1rem; transition: transform 0.3s ease; }
.btn:hover i { transform: translateX(4px); }

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(219, 13, 100, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(219, 13, 100, 0.4);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--white);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Card Component */
.card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(31, 140, 193, 0.08);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(31, 140, 193, 0.15);
}

.card p { color: var(--text-light); font-size: 1rem; }

.feature-icon { 
    font-size: 2.2rem; 
    color: var(--primary-color); 
    margin-bottom: 30px; 
    background: rgba(31, 140, 193, 0.05); 
    width: 70px; height: 70px; 
    display: inline-flex; align-items: center; justify-content: center; 
    border-radius: 20px; 
    transition: var(--transition);
}

.card:hover .feature-icon { 
    background: var(--primary-color); 
    color: var(--white); 
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 10px 20px rgba(31, 140, 193, 0.2);
}

.feature-item-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.feature-item-header .feature-icon {
    margin-bottom: 0;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    border-radius: 12px;
}

.feature-item-header h3 { margin-bottom: 0; }

/* Header */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(31, 140, 193, 0.08);
    position: sticky; top: 0; z-index: 1000;
}

header .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 25px; 
}

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

nav ul { list-style: none; display: flex; gap: 35px; }

nav a { 
    font-weight: 700; 
    color: var(--text-color); 
    text-transform: uppercase; 
    font-size: 14px; 
    letter-spacing: 0.5px; 
    position: relative; 
    padding-bottom: 5px; 
}

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

nav a:hover::after, nav a.active::after { width: 100%; }
nav a:hover, nav a.active { color: var(--primary-color); }

.menu-toggle { 
    display: none; 
    font-size: 1.5rem; 
    color: var(--primary-color); 
    cursor: pointer; 
}

/* Heroes */
.hero { 
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 120px 0; 
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.15) 1px, transparent 0);
    background-size: 30px 30px;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; right: -50%; bottom: -50%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero h1 { 
    color: var(--white); 
    margin-bottom: 25px; 
    text-shadow: 0 2px 15px rgba(0,0,0,0.2); 
    letter-spacing: -1px;
}

.hero p { 
    font-size: clamp(1.1rem, 3vw, 1.3rem); 
    margin-bottom: 50px; 
    opacity: 0.95; 
    max-width: 850px; 
    margin: 0 auto 50px;
    font-weight: 400;
    text-align: center;
}

.hero .hero-btns { display: flex; justify-content: center; gap: 20px; }

/* Subpage Hero */
.hero-sub {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 100px 0; 
}

.hero-sub h1 { margin-bottom: 15px; }
.hero-sub p { max-width: 700px; }

/* Expertise Section */
.expertise-highlight {
    background-color: var(--white);
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.expertise-content {
    max-width: 1050px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.expertise-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    min-width: 240px;
    box-shadow: var(--shadow-md);
}

.expertise-badge .years {
    display: block;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
}

.expertise-badge .text {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 10px;
    letter-spacing: 1px;
}

.expertise-text p { font-size: 1.15rem; color: var(--text-light); }

/* Tech Stack */
.tech-grid { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: clamp(15px, 4vw, 45px); 
    margin-top: 50px; 
}

.tech-item { 
    text-align: center; 
    width: clamp(90px, 15vw, 150px);
    transition: var(--transition); 
    padding: clamp(12px, 3vw, 25px) 10px;
    border-radius: var(--radius-md); 
    background: var(--white); 
    box-shadow: var(--shadow-sm); 
    border: 1px solid var(--border-color); 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tech-item:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-md); 
    border-color: var(--primary-color); 
}

.tech-item i { 
    font-size: clamp(2rem, 5vw, 3.5rem); 
    margin-bottom: 12px; 
    display: block; 
}

.tech-item span { 
    font-size: clamp(0.75rem, 2vw, 0.95rem); 
    font-weight: 700; 
    color: var(--text-color); 
    white-space: nowrap; 
}

/* Services */
.service-body { padding: 40px; flex-grow: 1; }
.service-body ul { list-style: none; margin-top: 25px; }

.service-body li { 
    position: relative; 
    padding-left: 30px; 
    margin-bottom: 12px; 
    font-size: 1rem; 
}

.service-body li::before { 
    content: '\f058'; 
    font-family: 'Font Awesome 6 Free'; 
    font-weight: 900; 
    position: absolute; 
    left: 0; 
    color: var(--accent-color); 
    font-size: 1.1rem; 
    top: 2px; 
}

/* Contact Page */
.hero-bg-image {
    position: absolute;
    right: -5%; bottom: -15%;
    max-height: 130%;
    opacity: 0.5;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 8vw, 80px);
    align-items: flex-start;
}

.contact-info-block h2::after {
    content: '';
    display: block;
    width: 50px; height: 4px;
    background: var(--accent-color);
    margin-top: 15px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.contact-detail-item {
    display: flex;
    gap: 25px;
    align-items: center;
}

.contact-detail-icon {
    width: 65px; height: 65px;
    background: rgba(31, 140, 193, 0.05);
    color: var(--primary-color);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-detail-item:hover .contact-detail-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(31, 140, 193, 0.15);
}

.contact-detail-content strong {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.contact-detail-content span, .contact-detail-content a {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
}

.billing-info-block {
    background: var(--section-bg);
    padding: 50px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(31, 140, 193, 0.05);
}

.billing-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.billing-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(31, 140, 193, 0.08);
}

.billing-item:last-child { border-bottom: none; padding-bottom: 0; }
.billing-item i { color: var(--primary-color); font-size: 1.1rem; margin-top: 4px; }

.billing-item div strong {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 2px;
}

.billing-item div span { font-weight: 600; }

/* Footer */
footer { 
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%); 
    color: var(--white); 
    padding: 70px 0 0; 
    position: relative; 
    overflow: hidden; 
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 80px;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.15) 1px, transparent 0);
    background-size: 30px 30px;
    pointer-events: none;
}

.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 50px; 
    margin-bottom: 50px; 
    position: relative; 
    z-index: 1; 
}

.footer-col h4 { 
    color: var(--white); 
    font-size: 1.2rem; 
    text-transform: uppercase; 
    margin-bottom: 25px; 
    border-bottom: 2px solid var(--accent-color); 
    padding-bottom: 12px; 
    display: inline-block; 
    letter-spacing: 1px; 
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 15px; display: flex; align-items: center; font-size: 1.05rem; }
.footer-col li i { margin-right: 12px; color: var(--accent-color); }
.footer-col a { color: rgba(255,255,255,0.85); transition: var(--transition); }
.footer-col a:hover { color: var(--white); padding-left: 5px; }

.footer-bottom { 
    background: rgba(0,0,0,0.25); 
    padding: 25px 0; 
    text-align: center; 
    color: rgba(255,255,255,0.7); 
    font-size: 0.95rem; 
    position: relative; 
    z-index: 1; 
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle { display: block; order: 3; margin-left: auto; }
    nav { order: 2; }
    nav ul { 
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 100%; left: 0; right: 0; 
        background: var(--white); 
        padding: 25px; 
        box-shadow: var(--shadow-md); 
        gap: 20px; 
    }
    nav ul.active { display: flex; }
    
    .hero .hero-btns { flex-direction: column; gap: 15px; }
    .expertise-content { flex-direction: column; text-align: center; gap: 30px; }
    .expertise-badge { width: 100%; }
    .contact-layout { padding: 0; }
    .billing-info-block { background: transparent; border: none; padding: 0; }
    .hero-bg-image { right: -25%; opacity: 0.3; }
    .btn { width: 100%; }
}