/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #DC143C;
    --dark-red: #B8001E;
    --light-red: #FF4444;
    --white: #FFFFFF;
    --off-white: #F8F8F8;
    --gray-light: #E5E5E5;
    --gray: #999999;
    --gray-dark: #333333;
    --black: #1A1A1A;
    
    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 40px rgba(220, 20, 60, 0.1);
    --shadow-hover: 0 20px 60px rgba(220, 20, 60, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 25px 0;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: var(--transition);
    object-fit: contain;
}

.navbar.scrolled .logo-img {
    height: 50px;
}

.logo-text {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--black);
    transition: var(--transition);
}

.navbar.scrolled .logo-text {
    color: var(--primary-red);
}

.logo-ampersand {
    color: var(--primary-red);
    margin: 0 5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: var(--transition);
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--gray-dark);
    transition: var(--transition);
    border-radius: 2px;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--white) 0%, var(--off-white) 100%);
    padding: 120px 0 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 0;
}

.hero-grid {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--primary-red) 1px, transparent 1px),
        linear-gradient(90deg, var(--primary-red) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-display);
    margin-bottom: 30px;
}

.hero-title-top {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 10px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title-main {
    display: block;
    font-size: 90px;
    font-weight: 900;
    color: var(--black);
    line-height: 1;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-description {
    font-size: 18px;
    color: var(--gray-dark);
    font-weight: 500;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.btn {
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
}

.btn-primary:hover {
    background: var(--dark-red);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeIn 1s ease-out 1s backwards;
}

.scroll-indicator span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray);
    margin-bottom: 10px;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: var(--primary-red);
    margin: 0 auto;
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollDown {
    0%, 100% { transform: translateY(0); opacity: 0; }
    50% { opacity: 1; }
}

/* ==========================================
   SECTIONS
   ========================================== */
section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-subtitle {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-red);
    margin-bottom: 15px;
    font-weight: 600;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 20px;
    font-family: var(--font-display);
}

.section-description {
    font-size: 18px;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services {
    background: var(--off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 20px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-red);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red), var(--light-red));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon i {
    font-size: 32px;
    color: var(--white);
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 15px;
}

.service-description {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 25px;
}

.service-link {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.service-link:hover {
    gap: 15px;
}

/* ==========================================
   WORK SECTION
   ========================================== */
.work-filter {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--gray-light);
    border-radius: 50px;
    color: var(--gray-dark);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
}

.work-item {
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.work-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.work-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

.work-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.work-placeholder i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.5);
}

.work-item:hover .work-placeholder {
    transform: scale(1.1);
}

.work-content {
    padding: 30px;
}

.work-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
}

.work-category {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
    background: var(--off-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text .section-subtitle,
.about-text .section-title {
    text-align: left;
}

.about-description {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 25px;
}

.about-values {
    display: grid;
    gap: 30px;
    margin-top: 50px;
}

.value-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.value-item i {
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 24px;
    flex-shrink: 0;
}

.value-item h4 {
    font-size: 20px;
    color: var(--black);
    margin-bottom: 5px;
}

.value-item p {
    color: var(--gray);
    font-size: 14px;
}

.about-image-wrapper {
    position: relative;
    height: 600px;
}

.about-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.grid-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

.gauge-icon i {
    font-size: 120px;
    color: rgba(255, 255, 255, 0.3);
}

/* ==========================================
   CLIENTS SECTION
   ========================================== */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--white);
    border-radius: 15px;
    border: 2px solid var(--gray-light);
    transition: var(--transition);
    cursor: pointer;
}

.client-logo:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.logo-placeholder {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-light);
    letter-spacing: 2px;
}

.testimonials {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-item {
    background: var(--white);
    padding: 60px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
}

.quote-icon {
    font-size: 40px;
    color: var(--primary-red);
    margin-bottom: 30px;
}

.testimonial-text {
    font-size: 20px;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-bottom: 40px;
    font-style: italic;
}

.testimonial-author h4 {
    font-size: 18px;
    color: var(--black);
    margin-bottom: 5px;
}

.testimonial-author p {
    color: var(--gray);
    font-size: 14px;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
    background: var(--off-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info .section-subtitle,
.contact-info .section-title {
    text-align: left;
}

.contact-description {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 50px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 16px;
    color: var(--black);
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--gray);
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-red);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-5px);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 15px;
    transition: var(--transition);
    background: var(--white);
    color: var(--gray-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand .logo-img {
    height: 70px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 15px;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-description {
    color: var(--gray);
    margin-top: 20px;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

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

.footer-column ul li a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray);
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

.footer-bottom-links a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--primary-red);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title-main {
        font-size: 70px;
    }
    
    .services-grid,
    .work-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 968px) {
    .logo-img {
        height: 50px;
    }
    
    .navbar.scrolled .logo-img {
        height: 45px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        padding: 40px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        gap: 20px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .hero-title-main {
        font-size: 50px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 40px;
    }
    
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .logo-img {
        height: 40px;
    }
    
    .navbar.scrolled .logo-img {
        height: 38px;
    }
    
    section {
        padding: 80px 0;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title-top {
        font-size: 24px;
    }
    
    .hero-title-main {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .services-grid,
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .testimonial-item {
        padding: 40px 30px;
    }
    
    .testimonial-text {
        font-size: 16px;
    }
    
    .contact-form-wrapper {
        padding: 30px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */
.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}
