/*=================================================================
  1. GLOBAL STYLES & VARIABLES
=================================================================*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
    --primary-color: #C68642;
    --secondary-color: #E0AC69;
    --accent-color: #F1C27D;
    --dark-bg: #000000;
    --medium-bg: #161616;
    --light-bg: #ffffff;
    --light-text: #ffffff;
    --heading-text: #FFFFFF;
    --border-color: rgba(0, 255, 136, 0.2);
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --header-height: 80px;
    --border-radius: 10px;
    --container-width: 1200px;
    --section-padding: 80px 0;
    --card-padding: 2rem;
    --transition-speed: 0.4s;
    --shadow-light: 0 4px 15px rgba(255, 115, 0, 0.25);
    --shadow-strong: 0 8px 35px rgba(255, 136, 0, 0.4);
}


/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--dark-bg);
    color: var(--light-text);
    font-family: var(--font-secondary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    color: var(--heading-text);
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: var(--section-padding);
    overflow: hidden;
    /* Prevent horizontal scroll from animations */
}

.section-dark {
    background-color: var(--dark-bg);
}

.section-medium {
    background-color: var(--medium-bg);
}

.text-center {
    text-align: center;
}

.sub-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
    color: var(--light-text);
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary-color);
    color: var(--heading-text);
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--accent-color);
    transition: width var(--transition-speed) ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--heading-text);
}


/*=================================================================
  2. HEADER & NAVIGATION
=================================================================*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: transparent;
    transition: background-color var(--transition-speed) ease, padding var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.header.sticky {
    background-color: rgba(13, 27, 42, 0.95);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo img {
    height: 70px;
    filter: brightness(0) invert(1);
    transition: height var(--transition-speed) ease;
}

.header.sticky .logo img {
    height: 60px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links li a {
    color: var(--heading-text);
    font-family: var(--font-primary);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color var(--transition-speed) ease;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--heading-text);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger animation */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/*=================================================================
  3. FOOTER
=================================================================*/
.footer {
    background-color: var(--medium-bg);
    padding: 60px 0 30px;
    border-top: 4px solid var(--primary-color);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-col {
    padding: 0 1rem;
}

.footer-col h4 {
    color: var(--heading-text);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 50px;
    background-color: var(--primary-color);
}

.footer-logo img {
    max-width: 180px;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-col p,
.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--light-text);
    transition: all var(--transition-speed) ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-col .contact-info {
    margin-top: 1rem;
}

.footer-col .contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.footer-col .contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 4px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-bg);
    color: var(--heading-text);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all var(--transition-speed) ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.9rem;
    color: var(--light-text);
}

/*=================================================================
  4. PAGE-SPECIFIC: INDEX (HOMEPAGE)
=================================================================*/

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(13, 27, 42, 0.8), rgba(13, 27, 42, 0.9)), url('https://via.placeholder.com/1920x1080/0D1B2A/FFFFFF?text=Digital+Marketing+Background') no-repeat center center/cover;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease-out;
    color: var(--heading-text);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.5s;
    animation-fill-mode: backwards;
    color: var(--light-text);
}

.hero-content .btn {
    animation: fadeInUp 1s ease-out 1s;
    animation-fill-mode: backwards;
}


/* Services Section */
.services-section {
    background: var(--medium-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--dark-bg);
    padding: var(--card-padding);
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    perspective: 1000px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 280px;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-card-front {
    background-color: var(--dark-bg);
    border-radius: var(--border-radius);
}

.service-card-back {
    background-color: var(--secondary-color);
    color: white;
    transform: rotateY(180deg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.service-card .icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: transform var(--transition-speed) ease;
}

.service-card:hover .icon {
    transform: scale(1.1) rotate(-10deg);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--heading-text);
}

.service-card-back p {
    font-size: 0.9rem;
    margin: 0;
}

/* Core Values Section (3D Cube) */
.core-values-section {
    padding: 100px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.core-values-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 3rem;
}

.core-values-content {
    flex-basis: 50%;
    max-width: 500px;
}

.cube-container {
    flex-basis: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
    height: 300px;
}

.cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(0, 168, 232, 0.2);
    border: 2px solid var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--heading-text);
    font-family: var(--font-primary);
}

.cube-face-front {
    transform: translateZ(100px);
}

.cube-face-back {
    transform: rotateY(180deg) translateZ(100px);
}

.cube-face-right {
    transform: rotateY(90deg) translateZ(100px);
}

.cube-face-left {
    transform: rotateY(-90deg) translateZ(100px);
}

.cube-face-top {
    transform: rotateX(90deg) translateZ(100px);
}

.cube-face-bottom {
    transform: rotateX(-90deg) translateZ(100px);
}


/* Why Choose Us Section */
.why-choose-us-section {
    background: var(--medium-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat-item {
    background: var(--dark-bg);
    padding: 2rem 1rem;
    text-align: center;
    border-radius: var(--border-radius);
    border-bottom: 4px solid transparent;
    transition: all var(--transition-speed) ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.stat-item .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-item .counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-text);
    font-family: var(--font-primary);
}

.stat-item p {
    font-size: 1rem;
    color: var(--light-text);
    margin: 0;
}

/* Our Process Section (Timeline) */
.process-section {
    position: relative;
    padding: 80px 0;
}

.process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--light-bg);
    z-index: 1;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 60px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 60px;
    text-align: left;
}

.timeline-content {
    padding: 2rem;
    background: var(--medium-bg);
    border-radius: var(--border-radius);
    position: relative;
    border: 1px solid var(--border-color);
}

.timeline-item .timeline-dot {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--dark-bg);
    border: 4px solid var(--primary-color);
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: 2;
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: translateY(-50%) scale(1.2);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-item .step {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--medium-bg);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 2rem auto 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial {
    min-width: 100%;
    box-sizing: border-box;
    padding: 2rem;
    text-align: center;
}

.testimonial blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 2rem;
}

.testimonial blockquote::before,
.testimonial blockquote::after {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    opacity: 0.5;
}

.testimonial blockquote::before {
    top: -1rem;
    left: 0;
}

.testimonial blockquote::after {
    bottom: -3rem;
    right: 0;
}

.testimonial-author {
    font-weight: 600;
    font-family: var(--font-primary);
    color: var(--heading-text);
}

.testimonial-author span {
    display: block;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--light-text);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.slider-btn {
    background-color: var(--light-bg);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.slider-btn:hover {
    background-color: var(--primary-color);
}

/* Industries Section */
.industries-section {
    padding-bottom: 100px;
}

.industries-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.industry-tag {
    background-color: var(--medium-bg);
    color: var(--light-text);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
    cursor: default;
}

.industry-tag:hover {
    background-color: var(--primary-color);
    color: var(--heading-text);
    transform: scale(1.05);
    border-color: var(--primary-color);
}

/* Interactive Calculator */
.calculator-section {
    background-color: var(--medium-bg);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--dark-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.calculator-form .form-group {
    margin-bottom: 1.5rem;
}

.calculator-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.calculator-form select,
.calculator-form input[type="range"] {
    width: 100%;
    padding: 10px;
    border-radius: var(--border-radius);
    border: 1px solid var(--light-bg);
    background-color: var(--medium-bg);
    color: var(--light-text);
    font-size: 1rem;
}

.calculator-form input[type="range"] {
    padding: 0;
}

.range-value {
    display: inline-block;
    margin-left: 10px;
    font-weight: bold;
    color: var(--primary-color);
}

.calculator-result {
    text-align: center;
    background: var(--medium-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
}

.calculator-result h3 {
    color: var(--primary-color);
}

#estimated-cost {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-primary);
    margin: 1rem 0;
    color: var(--heading-text);
}

.calculator-result p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--heading-text);
    font-size: 2.8rem;
}

.cta-section h2::after {
    background: var(--heading-text);
}

.cta-section p {
    color: var(--heading-text);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 1.5rem auto 2.5rem auto;
}

/*=================================================================
  5. PAGE-SPECIFIC: CONTACT
=================================================================*/
.page-header {
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(13, 27, 42, 0.8), rgba(13, 27, 42, 0.8)), url('https://via.placeholder.com/1920x400/0D1B2A/FFFFFF?text=Abstract+Lines') no-repeat center center/cover;
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--heading-text);
}

.contact-section {
    padding: var(--section-padding);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    background: var(--medium-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.contact-info-block {
    color: var(--light-text);
}

.contact-info-block h3 {
    margin-bottom: 2rem;
}

.contact-info-block ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-info-block ul li i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-bg);
    background-color: var(--dark-bg);
    color: var(--light-text);
    border-radius: var(--border-radius);
    transition: border-color var(--transition-speed);
    font-family: var(--font-secondary);
}

.contact-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 168, 232, 0.3);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
}


/*=================================================================
  6. PAGE-SPECIFIC: LEGAL PAGES
=================================================================*/
.legal-section {
    padding: 80px 0;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--medium-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.legal-content h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.legal-content h2::after {
    left: 0;
    transform: none;
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.legal-content p,
.legal-content li {
    color: var(--light-text);
    line-height: 1.8;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
}


/*=================================================================
  7. ANIMATIONS & KEYFRAMES
=================================================================*/
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
    transform: translateY(50px);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    transform: translateX(-100px);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    transform: translateX(100px);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 3D Cube Rotation */
@keyframes rotate-cube {
    0% {
        transform: rotateX(0) rotateY(0);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/*=================================================================
  8. RESPONSIVE DESIGN (MEDIA QUERIES)
=================================================================*/

/* Large Desktops (1200px and up) */
@media (min-width: 1200px) {
    h1 {
        font-size: 4.5rem;
    }

    .hero-content h1 {
        font-size: 5rem;
    }
}


/* Tablets (768px to 1199px) */
@media (max-width: 1199px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 991px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .core-values-container {
        flex-direction: column;
    }

    .core-values-content {
        flex-basis: 100%;
        max-width: 100%;
        text-align: center;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Mobile Devices (up to 767px) */
@media (max-width: 767px) {
    :root {
        --section-padding: 60px 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    /* Mobile Navigation */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--dark-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.5s ease-in-out;
        z-index: 100;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
    }

    .nav-links.active li {
        animation: navLinkFade 0.5s ease forwards;
    }

    .nav-links.active li:nth-child(1) {
        animation-delay: 0.2s;
    }

    .nav-links.active li:nth-child(2) {
        animation-delay: 0.3s;
    }

    .nav-links.active li:nth-child(3) {
        animation-delay: 0.4s;
    }

    .nav-links.active li:nth-child(4) {
        animation-delay: 0.5s;
    }

    .nav-links.active li:nth-child(5) {
        animation-delay: 0.6s;
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links li a {
        font-size: 1.5rem;
    }

    .hamburger {
        display: flex;
        z-index: 101;
    }

    .header .btn {
        display: none;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    /* Timeline on Mobile */
    .process-section::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 20px;
        left: 0 !important;
        text-align: left !important;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 60px;
    }

    .timeline-item .timeline-dot {
        left: 10px !important;
    }

    .testimonial blockquote {
        font-size: 1rem;
    }

    .calculator-wrapper,
    .contact-wrapper {
        padding: 1.5rem;
    }

    .legal-content {
        padding: 1.5rem;
    }
}