/* 
=========================
  Scribletopia - Enhanced CSS
  Author: Scribletopia Team
  Version: 2.0
=========================
*/

/* ==================== 1. Variables & Reset ==================== */
:root {
    /* Primary Colors - Enhanced for better contrast */
    --primary-color: #c82333;
    --primary-dark: #a81e2e;
    --primary-light: #e74c3c;
    
    /* Secondary Colors */
    --secondary-color: #343a40;
    --secondary-dark: #212529;
    --secondary-light: #495057;
    
    /* Accent Colors */
    --accent-blue: #3498db;
    --accent-green: #2ecc71;
    --accent-yellow: #f1c40f;
    --accent-purple: #9b59b6;
    
    /* Neutral Colors */
    --text-dark: #212121;
    --text-medium: #424242;
    --text-light: #757575;
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #f0f2f5;
    
    /* Shadows - Enhanced for depth */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 15px 30px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-rounded: 50px;
    --radius-circle: 50%;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== 2. Base Styles ==================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', 'Segoe UI', 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-medium);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition-fast);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 15px;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 15px;
}

/* ==================== 3. Layout & Containers ==================== */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-with-bg {
    background-color: var(--bg-light);
    position: relative;
}

.section-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/pattern-bg.png');
    background-repeat: repeat;
    background-size: 200px;
    opacity: 0.03;
    z-index: 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-weight: 800;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* ==================== 4. Header & Navigation ==================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

#header.sticky {
    box-shadow: var(--shadow-md);
    padding: 5px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--primary-color);
}

.logo-img {
    height: 50px;
    margin-right: 15px;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
}

.tagline {
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    position: relative;
    margin-left: 30px;
}

.nav-menu li a {
    color: var(--text-medium);
    font-weight: 600;
    padding: 10px 0;
    position: relative;
    font-size: 15px;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary-color);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown i {
    font-size: 12px;
    margin-left: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-fast);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-medium);
    transition: var(--transition-fast);
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Call-to-Action Button */
.cta-btn a {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 12px 30px;
    border-radius: var(--radius-rounded);
    font-weight: 600;
    transition: var(--transition-fast);
    min-width: 140px;
    text-align: center;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(200, 35, 51, 0.3);
}

.cta-btn a:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(200, 35, 51, 0.4);
}

/* ==================== 5. Hero Section ==================== */
.hero {
    padding: 180px 0 120px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--text-white);
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

/* Typing Animation */
.typed-text, .cursor {
    display: inline;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: #fff;
    margin-left: 4px;
    animation: blink 1s infinite;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    padding-left: 50px;
    animation: float 4s ease-in-out infinite;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 3;
    pointer-events: none;
}

/* ==================== 6. Section Components ==================== */
/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: var(--radius-rounded);
    font-weight: 600;
    text-align: center;
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--text-white);
    color: var(--primary-color);
    border: 2px solid var(--text-white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.btn-outline:hover {
    background-color: var(--text-white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Tabs */
.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.tab-btn {
    padding: 12px 30px;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition-fast);
    margin: 0 10px;
    position: relative;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-btn:hover::before,
.tab-btn.active::before {
    transform: scaleX(1);
}

.tab-content {
    position: relative;
    z-index: 1;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-pane.active {
    display: block;
}

/* ==================== 7. Services Section ==================== */
.service-tabs {
    margin-top: 40px;
}

.service-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.service-intro h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

/* Service Cards */
.service-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 35px;
    transition: var(--transition-medium);
    border-top: 4px solid transparent;
    border-top-color: var(--primary-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card.featured {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-yellow);
}

.service-card.featured::before {
    content: 'Featured';
    position: absolute;
    top: 20px;
    right: -30px;
    transform: rotate(45deg);
    background-color: var(--accent-yellow);
    color: var(--text-dark);
    padding: 5px 30px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.service-icon {
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: var(--transition-medium);
    width: 80px;
    height: 80px;
    background-color: rgba(200, 35, 51, 0.1);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: var(--text-white);
    transform: rotateY(180deg);
}

.service-info h4 {
    font-size: 20px;
    margin-bottom: 15px;
    transition: var(--transition-fast);
}

.service-card:hover .service-info h4 {
    color: var(--primary-color);
}

.service-info p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.card-link {
    margin-top: auto;
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-fast);
}

.card-link i {
    margin-left: 5px;
    transition: var(--transition-fast);
}

.card-link:hover {
    color: var(--primary-dark);
}

.card-link:hover i {
    transform: translateX(5px);
}

/* ==================== 8. About Section ==================== */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 70%;
    height: 70%;
    background-color: rgba(200, 35, 51, 0.05);
    border-radius: var(--radius-lg);
    z-index: -2;
}

.about-text {
    flex: 1;
}

.about-text .section-header {
    text-align: left;
    margin: 0 0 30px 0;
}

.about-text .section-header h2::after {
    left: 0;
    transform: none;
}

/* Stats Counter */
.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.stat-number::after {
    content: '+';
    position: absolute;
    top: 0;
    right: -15px;
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ==================== 9. Process Timeline ==================== */
.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(200, 35, 51, 0.2), rgba(200, 35, 51, 0.4), rgba(200, 35, 51, 0.2));
}

.timeline-item {
    position: relative;
    padding-bottom: 50px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 24px;
    z-index: 2;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.8), 0 0 0 12px rgba(200, 35, 51, 0.1);
}

.step-number {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background-color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 700;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline-content {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 30px;
    width: calc(50% - 50px);
    position: relative;
    transition: var(--transition-medium);
}

.timeline-content:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -15px;
    border-width: 15px 15px 15px 0;
    border-style: solid;
    border-color: transparent var(--bg-white) transparent transparent;
}

.timeline-item:nth-child(even) .timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -15px;
    border-width: 15px 0 15px 15px;
    border-style: solid;
    border-color: transparent transparent transparent var(--bg-white);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* ==================== 10. Portfolio/Samples Section ==================== */
.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: transparent;
    border: none;
    padding: 8px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-medium);
    transition: var(--transition-fast);
    margin: 5px;
    position: relative;
    border-radius: var(--radius-rounded);
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.filter-btn:hover, .filter-btn.active {
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: rgba(200, 35, 51, 0.1);
}

.filter-btn:hover::after, .filter-btn.active::after {
    width: 30px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.portfolio-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: var(--transition-medium);
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    color: var(--text-white);
    transform: translateY(20px);
    transition: var(--transition-medium);
    transition-delay: 0.1s;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-info h4 {
    color: var(--text-white);
    margin-bottom: 5px;
    font-size: 18px;
}

.portfolio-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 10px;
}

.portfolio-link {
    color: var(--text-white);
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.portfolio-link:hover {
    background-color: var(--text-white);
    color: var(--primary-color);
    transform: scale(1.1);
}

.portfolio-cta {
    text-align: center;
    margin-top: 30px;
}

.portfolio-cta .btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.portfolio-cta .btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* ==================== 11. Features & Cards ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 30px;
    transition: var(--transition-medium);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: var(--primary-color);
    transition: var(--transition-medium);
    z-index: -1;
}

.feature-card:hover::before {
    width: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover h3,
.feature-card:hover p {
    color: var(--text-white);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(200, 35, 51, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition-medium);
}

.feature-card:hover .feature-icon {
    background-color: var(--text-white);
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    transition: var(--transition-medium);
}

.feature-card p {
    transition: var(--transition-medium);
}

/* ==================== 12. Testimonials Section ==================== */
.testimonial-slider {
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slide {
    padding: 20px;
}

.testimonial-content {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 30px;
    position: relative;
    transition: var(--transition-medium);
}

.testimonial-content:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.testimonial-content::before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: -20px;
    left: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.testimonial-text {
    margin-bottom: 30px;
}

.testimonial-text p {
    font-style: italic;
}

.testimonial-client {
    display: flex;
    align-items: center;
}

.client-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid var(--primary-color);
}

.client-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.client-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.client-rating {
    color: var(--accent-yellow);
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.prev-btn, .next-btn {
    width: 40px;
    height: 40px;
    background-color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    transition: var(--transition-fast);
    margin: 0 10px;
}

.prev-btn:hover, .next-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.testimonial-dots {
    display: flex;
    gap: 10px;
    margin: 0 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--bg-light);
    transition: var(--transition-fast);
}

.dot.active {
    background-color: var(--primary-color);
}

/* ==================== 13. Careers Section ==================== */
.careers-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.careers-info {
    flex: 1;
}

.careers-text h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 24px;
}

.careers-text p {
    margin-bottom: 25px;
}

.career-perks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.perk-item {
    text-align: center;
    padding: 20px;
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
}

.perk-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.perk-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(200, 35, 51, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--primary-color);
    font-size: 24px;
}

.perk-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.perk-item p {
    font-size: 14px;
    margin-bottom: 0;
    color: var(--text-light);
}

.open-positions-heading {
    margin: 40px 0 20px;
}

.careers-accordion {
    margin-bottom: 30px;
}

.career-item {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 15px;
    overflow: hidden;
}

.career-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

.career-header:hover {
    background-color: rgba(200, 35, 51, 0.05);
}

.career-header h4 {
    margin-bottom: 0;
    font-size: 18px;
    flex: 1;
}

.location {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-light);
    margin-right: 20px;
}

.location i {
    margin-right: 5px;
    color: var(--primary-color);
}

.toggle-icon {
    width: 28px;
    height: 28px;
    background-color: rgba(200, 35, 51, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.career-item.active .toggle-icon {
    transform: rotate(45deg);
    background-color: var(--primary-color);
    color: var(--text-white);
}

.career-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.career-item.active .career-content {
    padding: 0 20px 20px;
    max-height: 500px;
}

.career-content p {
    margin-bottom: 15px;
}

.career-content h5 {
    font-size: 16px;
    margin: 15px 0 10px;
    color: var(--text-dark);
}

.career-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.career-content ul li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    list-style-type: none;
}

.career-content ul li::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 5px;
    height: 5px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.apply-btn {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 10px 20px;
    font-size: 14px;
    margin-top: 10px;
}

.apply-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.careers-form {
    flex: 1;
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.file-upload {
    position: relative;
    border: 1px dashed #ddd;
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: var(--transition-fast);
}

.file-upload:hover {
    border-color: var(--primary-color);
}

.file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-btn {
    padding: 10px 20px;
    background-color: var(--bg-light);
    border-radius: var(--radius-rounded);
    display: inline-block;
    margin-bottom: 10px;
    font-weight: 500;
}

.file-name {
    font-size: 14px;
    color: var(--text-light);
}

/* ==================== 14. Contact & Forms ==================== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
    border-bottom: 4px solid transparent;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--primary-color);
}

.contact-card .card-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(200, 35, 51, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 30px;
    color: var(--primary-color);
    transition: var(--transition-medium);
}

.contact-card:hover .card-icon {
    background-color: var(--primary-color);
    color: var(--text-white);
    transform: rotateY(180deg);
}

.contact-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.contact-card p {
    color: var(--text-medium);
    margin-bottom: 5px;
    font-size: 15px;
}

.contact-card .card-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    border-radius: var(--radius-rounded);
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 600;
    transition: var(--transition-medium);
    font-size: 14px;
}

.contact-card .card-link:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(200, 35, 51, 0.3);
}

.contact-content {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.contact-info {
    flex: 1;
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.info-header {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 20px;
}

.info-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-item {
    display: flex;
    gap: 20px;
}

.contact-info-item .icon {
    width: 50px;
    height: 50px;
    background-color: rgba(200, 35, 51, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
    flex-shrink: 0;
}

.contact-info-item .text h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.contact-info-item .text p {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 5px;
}

.location-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.location-tab {
    padding: 8px 15px;
    border: none;
    background-color: var(--bg-light);
    border-radius: var(--radius-rounded);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.location-tab.active, .location-tab:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.location-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.location-content.active {
    display: block;
}

.social-links-container {
    margin-top: 10px;
}

.social-links-container h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition-fast);
    font-size: 16px;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(200, 35, 51, 0.2);
}

.contact-form {
    flex: 1;
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-header {
    margin-bottom: 30px;
    text-align: center;
}

.form-header h3 {
    font-size: 24px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.form-header h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

input, select, textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: var(--bg-light);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(200, 35, 51, 0.1);
    background-color: var(--bg-white);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check input {
    width: auto;
    margin-right: 10px;
}

.form-check label {
    margin-bottom: 0;
    font-size: 14px;
}

.form-check label a {
    color: var(--primary-color);
    font-weight: 600;
}

.btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-rounded);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background-color: var(--primary-color);
    color: var(--text-white);
    box-shadow: 0 5px 15px rgba(200, 35, 51, 0.2);
}

.btn-block:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(200, 35, 51, 0.3);
}

.btn-block i {
    transition: all 0.3s ease;
}

.btn-block:hover i {
    transform: translateX(5px);
}

/* Form Success/Error Messages */
.form-message {
    padding: 15px;
    border-radius: var(--radius-md);
    margin-top: 20px;
    display: none;
}

.form-success {
    background-color: rgba(46, 204, 113, 0.1);
    border-left: 4px solid var(--accent-green);
    color: var(--accent-green);
}

.form-error {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--primary-color);
    color: var(--primary-color);
}

input.error, 
textarea.error, 
select.error {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* ==================== 15. Map Section ==================== */
.map-section {
    padding-top: 0;
    margin-top: -50px;
    position: relative;
    z-index: 1;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 500px;
    position: relative;
}

.map-overlay {
    position: absolute;
    top: 30px;
    left: 30px;
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    max-width: 350px;
    box-shadow: var(--shadow-md);
    z-index: 10;
    transition: all 0.3s ease;
}

.map-overlay.minimized {
    transform: translateX(-90%);
}

.overlay-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.overlay-content p {
    color: var(--text-medium);
    margin-bottom: 20px;
}

.view-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--text-white);
    border-radius: var(--radius-rounded);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(200, 35, 51, 0.2);
}

.view-map-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(200, 35, 51, 0.3);
}

/* ==================== 16. Footer ==================== */
.footer {
    background-color: var(--secondary-dark);
    color: var(--text-white);
    padding: 80px 0 20px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/pattern-bg.jpg');
    background-repeat: repeat;
    background-size: 200px;
    opacity: 0.05;
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.footer-logo .logo-text {
    color: var(--text-white);
}

.footer-logo .tagline {
    color: var(--secondary-light);
}

.about-column p {
    color: var(--secondary-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-newsletter {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-newsletter h3 {
    color: var(--text-white);
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-newsletter p {
    color: var(--secondary-light);
    margin-bottom: 15px;
    font-size: 14px;
}

.newsletter-form {
    display: flex;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-rounded);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-form input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    border-radius: var(--radius-rounded) 0 0 var(--radius-rounded);
    font-size: 14px;
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: 0 25px;
    font-weight: 600;
    border-radius: 0 var(--radius-rounded) var(--radius-rounded) 0;
    transition: var(--transition-fast);
}

.newsletter-form button:hover {
    background-color: var(--primary-dark);
}

.footer-column h3 {
    color: var(--text-white);
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--secondary-light);
    transition: var(--transition-fast);
    font-size: 15px;
    display: flex;
    align-items: center;
}

.footer-links a::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 10px;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-5px);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-white);
    padding-left: 5px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact li {
    display: flex;
    margin-bottom: 15px;
    color: var(--secondary-light);
    font-size: 15px;
}

.footer-contact li i {
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.copyright {
    color: var(--secondary-light);
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--secondary-light);
    transition: var(--transition-fast);
    font-size: 14px;
}

.footer-bottom-links a:hover {
    color: var(--text-white);
}

/* ==================== 17. Utility Classes ==================== */
/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(200, 35, 51, 0.2);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ==================== 18. Animations ==================== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from { 
        opacity: 0;
        transform: translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from { 
        opacity: 0;
        transform: translateX(20px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from { 
        opacity: 0;
        transform: translateX(-20px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes rubberBand {
    from { transform: scale3d(1, 1, 1); }
    30% { transform: scale3d(1.25, 0.75, 1); }
    40% { transform: scale3d(0.75, 1.25, 1); }
    50% { transform: scale3d(1.15, 0.85, 1); }
    65% { transform: scale3d(0.95, 1.05, 1); }
    75% { transform: scale3d(1.05, 0.95, 1); }
    to { transform: scale3d(1, 1, 1); }
}

/* ==================== 19. Media Queries ==================== */
@media (max-width: 1200px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .process-timeline::before {
        left: 30px;
    }
    
    .timeline-icon {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -15px;
        right: auto;
        border-width: 15px 15px 15px 0;
        border-color: transparent var(--bg-white) transparent transparent;
    }
    
    .careers-content {
        flex-direction: column;
    }
    
    .careers-form, 
    .careers-info {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 300px;
        height: calc(100vh - 80px);
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        box-shadow: var(--shadow-md);
        transition: var(--transition-fast);
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0 0 20px 0;
        width: 100%;
    }
    
    .nav-menu li a {
        display: block;
        padding: 10px 0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        min-width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 1000px;
    }
    
    .dropdown-menu li a {
        padding-left: 20px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text,
    .hero-image {
        max-width: 100%;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 50px;
        padding-left: 0;
    }
    
    .contact-content,
    .about-content {
        flex-direction: column;
    }
    
    .contact-info,
    .contact-form,
    .about-image,
    .about-text {
        width: 100%;
        max-width: 100%;
    }
    
    .service-tabs,
    .portfolio-filter {
        overflow-x: auto;
    }
    
    .tab-buttons {
        min-width: 500px;
    }
    
    .service-card.featured {
        transform: none;
    }
    
    .service-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .hero {
        padding: 150px 0 100px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        margin-bottom: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .contact-info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info-item .icon {
        margin: 0 auto 15px;
    }
    
    .location-tabs {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .testimonial-slider {
        padding: 0 10px;
    }
    
    .testimonial-slide {
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .timeline-content {
        width: 100%;
        margin-left: 0;
        margin-top: 70px;
    }
    
    .timeline-icon {
        top: -30px;
        left: 50%;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 15px;
        margin-bottom: 30px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .career-perks {
        grid-template-columns: 1fr;
    }
    
    .map-overlay {
        position: relative;
        top: 0;
        left: 0;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}