/* 
==============================================
NOVAKUBE - Modern Web Design Agency
Main Stylesheet
==============================================
*/

/* ===== VARIABLES ===== */
:root {
    /* Colors */
    --primary-color: #6c63ff;
    --primary-dark: #5a52d9;
    --primary-light: #8a84ff;
    --secondary-color: #ff6584;
    --dark-color: #2d2d2d;
    --dark-light: #444444;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --gray-light: #e9ecef;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    
    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Poppins', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-normal: 0.5s ease;
    --transition-slow: 0.8s ease;
    
    /* Z-index layers */
    --z-back: -1;
    --z-normal: 1;
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

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

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 1rem = 10px */
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: var(--body-font);
    border: none;
    background: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-subtitle {
    display: inline-block;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 5rem;
    height: 2px;
    background-color: var(--primary-color);
}

.section-title {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.section-description {
    font-size: 1.8rem;
    color: var(--gray-color);
    max-width: 70rem;
    margin: 0 auto;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: rgba(108, 99, 255, 0.2);
    z-index: -1;
    transform: skewX(-5deg);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.5);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.3);
}

.btn-light {
    background-color: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-modal);
    transition: var(--transition-normal);
}

.loader {
    width: 6rem;
    height: 6rem;
    border-radius: var(--radius-full);
    border: 3px solid var(--gray-light);
    border-top: 3px solid var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
    position: fixed;
    width: 1rem;
    height: 1rem;
    border-radius: var(--radius-full);
    background-color: var(--primary-color);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: var(--z-modal);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--primary-color);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: var(--z-modal);
    transition: all 0.2s ease;
    mix-blend-mode: difference;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: var(--z-fixed);
    transition: var(--transition-fast);
}

.header.scrolled {
    background-color: white;
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
}

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

.logo {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--dark-color);
}

.logo-placeholder {
    display: flex;
    align-items: center;
    font-family: var(--heading-font);
    letter-spacing: 1px;
}

.logo-placeholder span {
    color: var(--dark-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 3rem;
    height: 2.1rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-item {
    margin: 0 1.5rem;
}

.nav-link {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    position: relative;
}

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

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

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

.nav-cta {
    margin-left: 2rem;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 18rem 0 10rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: url('../images/hero-pattern.svg') no-repeat;
    background-size: cover;
    opacity: 0.1;
    z-index: var(--z-back);
}

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

.hero-content {
    flex: 0 0 50%;
    max-width: 50%;
}

.hero-title {
    font-size: 5.6rem;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--gray-color);
    margin-bottom: 4rem;
}

.hero-cta {
    display: flex;
    gap: 2rem;
}

.hero-image {
    flex: 0 0 45%;
    max-width: 45%;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    z-index: var(--z-normal);
}

.floating-element {
    position: absolute;
    border-radius: var(--radius-full);
    background-color: var(--primary-color);
    z-index: var(--z-back);
}

.fe-1 {
    width: 8rem;
    height: 8rem;
    top: -2rem;
    left: -3rem;
    background-color: rgba(108, 99, 255, 0.2);
}

.fe-2 {
    width: 15rem;
    height: 15rem;
    bottom: -5rem;
    right: -5rem;
    background-color: rgba(255, 101, 132, 0.15);
}

.fe-3 {
    width: 5rem;
    height: 5rem;
    top: 40%;
    right: -2rem;
    background-color: rgba(23, 162, 184, 0.2);
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.mouse {
    width: 3rem;
    height: 5rem;
    border: 2px solid var(--dark-color);
    border-radius: 2rem;
    margin: 0 auto 1rem;
    position: relative;
}

.wheel {
    width: 0.6rem;
    height: 0.6rem;
    background-color: var(--dark-color);
    border-radius: var(--radius-full);
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(1.5rem);
    }
}

.scroll-arrow {
    display: block;
    text-align: center;
}

.scroll-arrow span {
    display: block;
    width: 1rem;
    height: 1rem;
    border-bottom: 2px solid var(--dark-color);
    border-right: 2px solid var(--dark-color);
    transform: rotate(45deg);
    margin: 0 auto 0.3rem;
    animation: scrollArrow 2s infinite;
}

.scroll-arrow span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-arrow span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scrollArrow {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 10rem 0;
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    gap: 3rem;
}

.service-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    opacity: 0.05;
    transition: var(--transition-normal);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-1rem);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    font-size: 3.6rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    transition: var(--transition-normal);
}

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

.service-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.service-description {
    color: var(--gray-color);
    margin-bottom: 2.5rem;
}

.service-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.service-link i {
    margin-left: 0.5rem;
    transition: var(--transition-fast);
}

.service-link:hover i {
    transform: translateX(0.5rem);
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 10rem 0;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/about-pattern.svg') no-repeat;
    background-size: cover;
    opacity: 0.05;
    z-index: var(--z-back);
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
}

.about-image {
    flex: 0 0 45%;
    max-width: 45%;
}

.about-image-wrapper {
    position: relative;
    z-index: var(--z-normal);
}

.shape {
    position: absolute;
    border-radius: var(--radius-md);
    z-index: var(--z-back);
}

.shape-1 {
    width: 20rem;
    height: 20rem;
    background-color: rgba(108, 99, 255, 0.1);
    top: -3rem;
    left: -3rem;
    transform: rotate(10deg);
}

.shape-2 {
    width: 15rem;
    height: 15rem;
    background-color: rgba(255, 101, 132, 0.1);
    bottom: -3rem;
    right: -3rem;
    transform: rotate(-10deg);
}

.about-text {
    flex: 0 0 50%;
    max-width: 50%;
}

.about-text p {
    margin-bottom: 2rem;
    color: var(--dark-light);
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin: 4rem 0;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 1.6rem;
    color: var(--gray-color);
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
    padding: 10rem 0;
    background-color: white;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.filter-btn {
    padding: 0.8rem 2rem;
    margin: 0.5rem;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--dark-color);
    background-color: transparent;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    background-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(108, 99, 255, 0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(35rem, 1fr));
    gap: 3rem;
}

.portfolio-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.portfolio-item:hover {
    transform: translateY(-1rem);
    box-shadow: var(--shadow-lg);
}

.portfolio-img {
    height: 25rem;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition-normal);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    transform: translateY(2rem);
    transition: var(--transition-normal);
}

.portfolio-item:hover .portfolio-content {
    transform: translateY(0);
}

.portfolio-content h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
}

.portfolio-content p {
    font-size: 1.4rem;
    color: var(--gray-light);
    margin-bottom: 1.5rem;
}

.portfolio-link {
    display: inline-block;
    width: 4rem;
    height: 4rem;
    line-height: 4rem;
    text-align: center;
    background-color: white;
    color: var(--primary-color);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.portfolio-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.portfolio-cta {
    text-align: center;
    margin-top: 5rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: 10rem 0;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/testimonial-pattern.svg') no-repeat;
    background-size: cover;
    opacity: 0.05;
    z-index: var(--z-back);
}

.testimonial-slider {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.testimonial-track {
    position: relative;
}

.testimonial-item {
    padding: 1.5rem;
}

.testimonial-content {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-quote {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-size: 3rem;
}

.testimonial-text {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    padding-top: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 6rem;
    height: 6rem;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-right: 1.5rem;
}

.author-info h4 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.author-info p {
    font-size: 1.4rem;
    color: var(--gray-color);
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4rem;
}

.testimonial-prev,
.testimonial-next {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: white;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background-color: var(--primary-color);
    color: white;
}

.testimonial-dots {
    display: flex;
    margin: 0 2rem;
}

.dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--gray-light);
    margin: 0 0.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background-color: var(--primary-color);
}

/* ===== CTA SECTION ===== */
.cta {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.cta-text {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    max-width: 70rem;
    margin-left: auto;
    margin-right: auto;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 10rem 0;
    background-color: white;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 5rem;
}

.contact-info {
    flex: 0 0 60%;
    max-width: 60%;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.contact-icon {
    width: 6rem;
    height: 6rem;
    border-radius: var(--radius-full);
    background-color: rgba(108, 99, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2rem;
    color: var(--primary-color);
    font-size: 2.2rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-details p {
    font-size: 1.6rem;
    color: var(--gray-color);
    line-height: 1.8;
}

.contact-social {
    margin-top: 4rem;
}

.contact-social h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: var(--radius-full);
    background-color: rgba(108, 99, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: var(--transition-fast);
}

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

.contact-image {
    flex: 0 0 35%;
    max-width: 35%;
    position: relative;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 8rem 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5rem;
}

.footer-logo {
    flex: 0 0 30%;
    max-width: 30%;
}

.footer-logo .logo-placeholder {
    margin-bottom: 2rem;
}

.footer-logo .logo-placeholder span {
    color: white;
}

.footer-logo p {
    font-size: 1.5rem;
    color: var(--gray-light);
    max-width: 30rem;
}

.footer-links {
    flex: 0 0 65%;
    max-width: 65%;
    display: flex;
    justify-content: space-between;
}

.footer-column h3 {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    color: white;
}

.footer-column ul li {
    margin-bottom: 1.2rem;
}

.footer-column ul li a {
    font-size: 1.5rem;
    color: var(--gray-light);
    transition: var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 1.5rem;
    color: var(--gray-light);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social .social-icon {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    right: 3rem;
    bottom: 3rem;
    width: 4.5rem;
    height: 4.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(108, 99, 255, 0.5);
    z-index: var(--z-tooltip);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-5px);
}

/* ===== MEDIA QUERIES ===== */
@media screen and (max-width: 1200px) {
    .hero-title {
        font-size: 4.8rem;
    }
    
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .about-image,
    .about-text,
    .contact-info,
    .contact-image {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .about-image {
        margin-bottom: 5rem;
    }
    
    .contact-image {
        order: -1;
        margin-bottom: 5rem;
    }
}

@media screen and (max-width: 992px) {
    html {
        font-size: 55%;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content,
    .hero-image {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 5rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr));
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo,
    .footer-links {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .footer-logo {
        margin-bottom: 4rem;
        text-align: center;
    }
    
    .footer-logo p {
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition-fast);
        z-index: var(--z-fixed);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        margin: 2rem 0;
    }
    
    .nav-cta {
        margin: 2rem 0 0 0;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
    }
    
    .footer-links {
        flex-wrap: wrap;
    }
    
    .footer-column {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 3rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom p {
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 576px) {
    html {
        font-size: 50%;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-column {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ===== CUSTOM FIXES ===== */

/* Fix for the "Digital Presence?" blue text in CTA section */
.cta .highlight {
    color: #000 !important; /* Change from blue (primary-color) to black */
    font-weight: bold; /* Keep it bold for emphasis */
}

/* Fixes for the testimonial slider to show all three testimonials */
.testimonial-slider {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    transition: transform 0.5s ease;
}

.testimonial-item {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 300px;
    display: block;
}

/* Ensure testimonial content boxes have consistent height */
.testimonial-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Make sure testimonial controls work properly with the slider */
.testimonial-controls {
    margin-top: 3rem;
}


/* ===== LANGUAGE SWITCHER ===== */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1.5rem;
}

.lang-flag {
  font-size: 1.6rem;
  text-decoration: none;
  transition: opacity 0.3s;
  color: var(--dark-color);
}

.lang-flag:hover {
  opacity: 0.6;
}

.active-lang {
  font-weight: bold;
  text-decoration: underline;
}



/* ===== CTA WITH FLAGS CONTAINER ===== */
.nav-cta-with-flags {
  display: flex;
  align-items: center;
  gap: 1rem;
}



.lang-flag {
  font-family: system-ui, sans-serif !important;
}


/* === Hover underline for nav links === */

.nav-link {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--dark-color);
  padding: 0.5rem 1rem;
  position: relative;
}

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

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

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