/* 
   Theme Name: Perussi Networks Theme Stylesheet
   Description: Clean, premium, and fully responsive CSS Design System for Perussi Networks.
   Author: Antigravity Code Assistant
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@400;600;700;800&display=swap');

/* ==========================================
   DESIGN SYSTEM VARIABLES
   ========================================== */
:root {
    /* Color Palette */
    --color-bg-dark: #070d19;      /* Deep midnight blue for dark sections */
    --color-bg-deep: #03060b;      /* Darker gradient start */
    --color-bg-light: #f6f8fb;     /* Very light grayish blue for light sections */
    --color-white: #ffffff;
    --color-primary: #0a192f;      /* Dark corporate navy */
    --color-primary-light: #172a45;/* Slightly lighter dark navy for cards */
    --color-accent-blue: #0070f3;  /* Vibrant electric blue for key CTAs and highlights */
    --color-accent-hover: #0056b3; /* Darker blue for active/hover states */
    --color-whatsapp: #25d366;     /* Brand WhatsApp Green */
    --color-text-dark: #1e293b;    /* Charcoal dark slate for headings in light sections */
    --color-text-body: #475569;    /* Muted slate for paragraphs in light sections */
    --color-text-white: #f8fafc;   /* Crisp white for text on dark backgrounds */
    --color-text-muted: #94a3b8;   /* Light slate for subheadings on dark backgrounds */
    --color-border: #e2e8f0;       /* Softer borders for light cards */
    
    /* Layout & Styling Tokens */
    --font-heading: 'Montserrat', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-pill: 50px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-premium: 0 30px 60px -15px rgba(10, 25, 47, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-body);
    background-color: var(--color-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.25;
}

p {
    font-size: 1rem;
    color: var(--color-text-body);
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

/* ==========================================
   BUTTONS & CTAs
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-accent-blue);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(0, 112, 243, 0.4);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 112, 243, 0.6);
}

.btn-whatsapp {
    background-color: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-whatsapp:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--color-white);
}

.btn-whatsapp-filled {
    background-color: var(--color-whatsapp);
    color: var(--color-white);
    border-color: var(--color-whatsapp);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-filled:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
}

/* Pulsing effect for WhatsApp icon or button */
.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ==========================================
   NAVIGATION BAR (HEADER)
   ========================================== */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-normal);
    padding: 1.25rem 0;
    background-color: rgba(7, 13, 25, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-nav.scrolled {
    padding: 0.85rem 0;
    background-color: rgba(7, 13, 25, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 2.2rem;
    height: 2.2rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--color-white);
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.logo-sub {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.72rem;
    color: var(--color-accent-blue);
    letter-spacing: 3.86px;
    line-height: 1.1;
    text-transform: uppercase;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.75rem;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text-white);
    opacity: 0.85;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    opacity: 1;
    color: var(--color-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-blue);
    transition: var(--transition-normal);
}

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

/* Mobile Toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-white);
    transition: var(--transition-normal);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 5.5rem;
    background-color: var(--color-bg-dark);
    background-image: linear-gradient(rgba(7, 13, 25, 0.75), rgba(7, 13, 25, 0.85)), url('../images/hero-bg.png') !important;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Background overlay lines/nodes aesthetic via CSS */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(0, 112, 243, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 820px;
    margin: 0 auto 4rem 0;
    text-align: left;
}

.hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.18;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.hero-title span.highlight {
    color: var(--color-accent-blue);
    display: inline-block;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--color-text-white);
    opacity: 0.9;
    max-width: 720px;
    margin: 0 0 2.5rem 0;
    line-height: 1.7;
    font-weight: 300;
}

.hero-ctas {
    display: flex;
    justify-content: flex-start;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Trust Badges Bar */
.hero-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 3.5rem;
    margin-top: 2rem;
}

.badge-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
}

.badge-icon-wrapper {
    background-color: rgba(0, 112, 243, 0.15);
    border: 1px solid rgba(0, 112, 243, 0.3);
    padding: 0.75rem;
    border-radius: var(--border-radius-sm);
    color: var(--color-accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.25rem;
}

.badge-info p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* ==========================================
   SECTION HEADER (COMMON)
   ========================================== */
.section {
    padding: 6.5rem 0;
}

.section-light {
    background-color: var(--color-white);
}

.section-gray {
    background-color: var(--color-bg-light);
}

.section-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4.5rem auto;
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--color-accent-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.section-title {
    font-size: 2.15rem;
    font-weight: 800;
    color: var(--color-text-dark);
    letter-spacing: -0.5px;
}

.section-dark .section-title {
    color: var(--color-white);
}

/* ==========================================
   PROBLEMS SECTION
   ========================================== */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Items in grid - layout adjustment for final element */
.problems-grid .problem-card:nth-child(7) {
    grid-column: span 1; /* By default will span normal, handled via flex alignment centered on wider screens */
}

/* Perfect alignment wrapper */
.problems-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.problem-row-1 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.25rem;
}

.problem-row-2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.problem-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 2.25rem 1.75rem;
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 112, 243, 0.2);
}

.problem-icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(0, 112, 243, 0.05);
    border-radius: 50%;
    color: var(--color-accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.problem-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.problem-card p {
    font-size: 0.85rem;
    color: var(--color-text-body);
    line-height: 1.5;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2.25rem;
}

.service-card {
    grid-column: span 2;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 2.5rem 2.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.service-card:nth-child(4),
.service-card:nth-child(5) {
    grid-column: span 3;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(0, 112, 243, 0.15);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.service-icon-wrapper {
    width: 3.8rem;
    height: 3.8rem;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.service-header h3 {
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.3;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--color-text-body);
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.service-list {
    list-style: none;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text-dark);
}

.service-item svg {
    color: var(--color-accent-blue);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* ==========================================
   HOW WE WORK SECTION
   ========================================== */
.how-work {
    background-color: #050a12; /* Rich darker deep blue */
    background-image: linear-gradient(135deg, #050a12 0%, #0c182b 100%);
    position: relative;
    overflow: hidden;
}

.how-work::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 112, 243, 0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}

.pipeline-container {
    position: relative;
    padding: 1rem 0;
}

/* Dotted connection line for larger screens */
.pipeline-line {
    position: absolute;
    top: 3rem;
    left: 10%;
    right: 10%;
    height: 2px;
    background-image: linear-gradient(to right, rgba(0, 112, 243, 0.4) 33%, rgba(255, 255, 255, 0) 0%);
    background-position: top;
    background-size: 8px 2px;
    background-repeat: repeat-x;
    z-index: 1;
}

.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.pipeline-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pipeline-icon-circle {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    background-color: #0b1a32;
    border: 3px solid var(--color-accent-blue);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(0, 112, 243, 0.3);
    transition: var(--transition-normal);
    position: relative;
}

.pipeline-card:hover .pipeline-icon-circle {
    transform: scale(1.08);
    background-color: var(--color-accent-blue);
    box-shadow: 0 0 30px rgba(0, 112, 243, 0.6);
}

.pipeline-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.85rem;
}

.pipeline-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 240px;
}

/* ==========================================
   DIFERENCIAIS & QUEM ATENDEMOS
   ========================================== */
.split-section-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr 1.1fr;
    gap: 2.5rem;
    align-items: center;
}

/* List with checks */
.checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-text-dark);
}

.checklist-item svg {
    color: var(--color-accent-blue);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* Middle Server Rack Image Container */
.rack-image-container {
    width: 100%;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    aspect-ratio: 1 / 1;
}

.rack-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.rack-image-container:hover img {
    transform: scale(1.04);
}

/* Segment list with icons */
.segment-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 2rem;
}

.segment-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.segment-icon-wrapper {
    width: 2.2rem;
    height: 2.2rem;
    background-color: rgba(0, 112, 243, 0.05);
    border-radius: var(--border-radius-sm);
    color: var(--color-accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Coverage/Location bar */
.coverage-bar {
    background-color: var(--color-bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 2rem 2.5rem;
    margin-top: 4.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: var(--shadow-sm);
}

.coverage-icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(0, 112, 243, 0.1);
    border-radius: 50%;
    color: var(--color-accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.6rem;
}

.coverage-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.coverage-content p {
    font-size: 0.88rem;
    color: var(--color-text-body);
    line-height: 1.5;
}

/* ==========================================
   PRE-FOOTER CTA SECTION
   ========================================== */
.prefooter-cta {
    background-color: var(--color-bg-dark);
    background-image: linear-gradient(rgba(7, 13, 25, 0.75), rgba(7, 13, 25, 0.85)), url('../images/hero-bg.png') !important;
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 6.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.25;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.cta-box p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.cta-box .hero-ctas {
    justify-content: center;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: #03060c; /* Deep midnight-black */
    padding: 5.5rem 0 2rem 0;
    color: var(--color-text-muted);
    font-size: 0.88rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 1.1fr 1fr;
    gap: 3.5rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.75rem;
}

.footer-about .logo {
    margin-bottom: 1.25rem;
}

.footer-about p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.social-links {
    display: flex;
    gap: 0.85rem;
}

.social-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
    background-color: var(--color-accent-blue);
    border-color: var(--color-accent-blue);
    transform: translateY(-2px);
}

/* Footer Link list */
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--color-text-muted);
    font-weight: 400;
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: 4px;
}

/* Footer contacts */
.footer-contacts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.contact-item svg {
    color: var(--color-accent-blue);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.contact-item span {
    line-height: 1.4;
}

/* Email and address styling with copy functionalities */
.contact-email-wrapper,
.contact-address-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.clickable-address {
    cursor: pointer;
    transition: color 0.2s;
}

.clickable-address:hover {
    color: var(--color-white);
}

.email-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.email-link:hover {
    color: var(--color-white);
    text-decoration: none !important; /* explicitly ensure no underline on hover */
}

.copy-btn {
    background: none;
    border: none;
    padding: 2px;
    margin: 0;
    color: var(--color-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.1s, background-color 0.2s;
    border-radius: 4px;
}

.copy-btn:hover {
    color: var(--color-accent-blue);
    background-color: rgba(255, 255, 255, 0.08);
}

.copy-btn:active {
    transform: scale(0.9);
}

.copy-btn svg {
    margin-top: 0 !important; /* override contact-item svg margin if any */
    pointer-events: none;
}

.copy-btn .check-svg {
    color: #00ff88; /* Sleek premium green for copy success */
}

/* Tooltip Feedback */
.copy-tooltip {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translate(-50%, 8px);
    background-color: var(--color-accent-blue);
    color: var(--color-white);
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--color-accent-blue) transparent transparent transparent;
}

.copy-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.footer-about-text {
    line-height: 1.6;
    font-size: 0.85rem;
}

/* Copyright footer bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
}

/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */

/* Large Tablets & Medium Screen Desktops */
@media (max-width: 1199px) {
    .problems-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .problem-row-1, .problem-row-2 {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .problem-row-2 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
    
    .service-card {
        grid-column: span 1;
    }
    
    .service-card:nth-child(5) {
        grid-column: span 2;
    }
    
    .split-section-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .rack-image-container {
        grid-column: span 2;
        grid-row: 1;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Medium Tablets & Mobile Screens */
@media (max-width: 991px) {
    html, body {
        overflow-x: hidden;
    }

    .section {
        padding: 4.5rem 0;
    }
    
    .hero {
        padding-top: 8.5rem;
        padding-bottom: 4.5rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-badges {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-top: 2.5rem;
    }
    
    .badge-item {
        max-width: 450px;
        margin: 0 auto;
    }
    
    /* Navbar Hamburger & Drawer Menu */
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 4.8rem;
        left: -100%;
        width: 100%;
        height: calc(100vh - 4.8rem);
        background-color: var(--color-bg-dark);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 3rem;
        gap: 2rem;
        transition: var(--transition-normal);
        z-index: 999;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        visibility: hidden;
        opacity: 0;
    }
    
    .nav-menu.active {
        left: 0;
        visibility: visible;
        opacity: 1;
    }
    
    .nav-link {
        font-size: 1.15rem;
    }
    
    .header-cta-btn {
        display: none; /* Hide header CTA on mobile/tablets, keeping interface clean */
    }
    
    .pipeline-line {
        display: none;
    }
    
    .pipeline-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 1.5rem;
    }
    
    .pipeline-icon-circle {
        margin-bottom: 1.25rem;
    }
    
    .split-section-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .rack-image-container {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
        max-width: 400px;
    }
    
    .coverage-bar {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 1.25rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

/* Small Tablets & Large Mobiles */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.85rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
    }
    
    .problem-row-1, .problem-row-2 {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .problem-row-2 {
        max-width: 100%;
    }
    
    .problem-card {
        padding: 1.75rem 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card,
    .service-card:nth-child(4),
    .service-card:nth-child(5) {
        grid-column: auto;
    }
    
    .pipeline-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .pipeline-card p {
        max-width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .cta-box h2 {
        font-size: 1.75rem;
    }
}

/* Extra Small Mobiles */
@media (max-width: 480px) {
    .container {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .logo-main {
        font-size: 1.15rem;
    }
    
    .logo-sub {
        font-size: 0.65rem;
        letter-spacing: 3.57px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}
