:root {
    /* Brand Colors */
    --primary-color: #ff4057;
    --secondary-color: #DCDCDC;
    --accent-color: #DCDCDC;
    --bg-color: #0b0b0f;
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-color: #ffffff;
    --text-muted: #a0a0a0;

    /* Fonts */
    --font-heading: 'Lora', serif;
    --font-body: 'Roboto', sans-serif;

    /* Spacing & Sizing */
    --section-padding: 120px 20px;
    --container-max-width: 1200px;
    --transition-speed: 0.3s;
    --reveal-speed: 0.8s;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--reveal-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delayed {
    transition-delay: 0.2s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(255, 64, 87, 0.15) 0px, transparent 40%),
        radial-gradient(at 100% 0%, rgba(220, 220, 220, 0.08) 0px, transparent 40%),
        radial-gradient(at 100% 100%, rgba(255, 64, 87, 0.1) 0px, transparent 40%),
        radial-gradient(at 0% 100%, rgba(255, 64, 87, 0.05) 0px, transparent 40%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background: rgba(40, 38, 52, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-speed);
}

header.scrolled {
    background: rgba(40, 38, 52, 0.98);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
    transition: height var(--transition-speed);
}

header.scrolled nav {
    height: 100px;
}

.logo a img {
    height: 80px;
    width: auto;
    display: block;
    transition: height var(--transition-speed);
}

header.scrolled .logo a img {
    height: 70px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-color);
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(11, 11, 15, 0.95) 0%, rgba(11, 11, 15, 0.6) 100%),
        url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&q=80&w=2072') center/cover no-repeat;
    z-index: 1;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, var(--bg-color), transparent);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 50px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(255, 64, 87, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 64, 87, 0.4);
    background-color: #ff5a6e;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: var(--bg-color);
    border-color: #ffffff;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

/* Section Common */
.section-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 6rem;
    position: relative;
    padding-bottom: 1.5rem;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

section {
    padding: var(--section-padding);
}

/* Partnerships */
#partnerships {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.01);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#partnerships .section-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 3rem;
    color: var(--text-muted);
}

#partnerships .section-title::after {
    display: none;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6rem;
    flex-wrap: wrap;
}

.partner-logo {
    opacity: 0.5;
    filter: grayscale(1);
    transition: all var(--transition-speed);
    max-width: 180px;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.05);
}

.partner-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0;
    border-radius: 24px;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 64, 87, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 64, 87, 0.1);
}

.service-card::before {
    content: '';
    height: 180px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

/* Specific Service Banners */
.service-card.svc-strategy::before { background: url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&q=80&w=800') center/cover no-repeat; }
.service-card.engineering::before { background: url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&q=80&w=800') center/cover no-repeat; }
.service-card.migration::before { background: url('https://images.unsplash.com/photo-1544383835-bda2bc66a55d?auto=format&fit=crop&q=80&w=800') center/cover no-repeat; }
.service-card.analytics::before { background: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&q=80&w=800') center/cover no-repeat; }
.service-card.web-dev::before { background: url('https://images.unsplash.com/photo-1547658719-da2b51169166?auto=format&fit=crop&q=80&w=800') center/cover no-repeat; }
.service-card.professional::before { background: url('https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&q=80&w=800') center/cover no-repeat; }

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 185px;
    background: linear-gradient(to bottom, rgba(11, 11, 15, 0) 0%, rgba(11, 11, 15, 0.8) 70%, var(--bg-color) 100%);
    pointer-events: none;
    z-index: 2;
}

.service-card h3 {
    color: #ffffff;
    margin: -40px 2.5rem 0;
    padding-bottom: 2rem;
    font-size: 1.8rem;
    position: relative;
    z-index: 10;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.service-card p, .service-card ul {
    padding: 0 2.5rem;
}

.service-card p {
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.service-card ul {
    margin-bottom: 3rem;
    text-align: left;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-card ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Why Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    text-align: center;
}

.feature-item h3 {
    color: #ffffff;
    margin-bottom: 1.25rem;
    font-size: 1.8rem;
}

.feature-item p {
    color: var(--text-muted);
}

/* Process */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.step {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    transition: all var(--transition-speed);
}

.step:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.step-num {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 64, 87, 0.15);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.step h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.step p {
    color: var(--text-muted);
}

/* Technologies */
.tech-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.tech-category h4 {
    margin-bottom: 2.5rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    text-align: center;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
}

.tech-item {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all var(--transition-speed);
    backdrop-filter: blur(5px);
    color: rgba(255, 255, 255, 0.8);
}

.tech-item:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 64, 87, 0.3);
}

/* Contact */
#contact {
    background: linear-gradient(to bottom, transparent, rgba(255, 64, 87, 0.05));
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.contact-info p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.detail-item strong {
    display: block;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

.detail-item a, .detail-item span {
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 500;
}

/* Form Styling */
#contact-form {
    background: var(--card-bg);
    padding: 3.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-speed);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 4px rgba(255, 64, 87, 0.1);
}

#form-status {
    margin-top: 1.5rem;
    font-weight: 500;
}

#form-status.success {
    color: #4CAF50;
}

#form-status.error {
    color: var(--primary-color);
}

/* Footer */
footer {
    padding: 5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .hero-content h1 {
        font-size: 3.8rem;
    }
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 20px;
    }

    nav {
        height: 80px;
    }

    .logo a img {
        height: 45px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-color);
        padding: 6rem 2rem;
        gap: 2rem;
        text-align: center;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

/* Final Override for Strategy Banner */
.service-card.svc-strategy::before { 
    background: linear-gradient(rgba(11, 11, 15, 0.4), rgba(11, 11, 15, 0.4)), 
                url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&q=80&w=800') center/cover no-repeat !important; 
    z-index: 1 !important; 
}
