/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors from logo */
    --logo-gold: rgb(255, 222, 89);       /* #ffde59 - Convert from 100%, 87.098694%, 34.899902% */
    --logo-orange: rgb(255, 145, 77);     /* #ff914d - Convert from 100%, 56.898499%, 30.198669% */
    --logo-light-blue: rgb(12, 192, 223); /* #0cc0df - Convert from 4.699707%, 75.299072%, 87.5% */
    --logo-teal: rgb(93, 224, 230);       /* #5de0e6 - Convert from 36.499023%, 87.799072%, 90.19928% */
    --logo-dark-blue: rgb(0, 74, 173);    /* #004aad - Convert from 0%, 28.999329%, 67.799377% */
    --logo-green: rgb(51, 204, 153);      /* Adding a green tone from the logo blue-teal spectrum */
    
    /* Gradients based on logo colors */
    --primary-gradient: linear-gradient(135deg, var(--logo-orange) 0%, var(--logo-gold) 100%);
    --secondary-gradient: linear-gradient(135deg, var(--logo-light-blue) 0%, var(--logo-teal) 100%);
    --accent-gradient: linear-gradient(135deg, var(--logo-teal) 0%, var(--logo-dark-blue) 100%);
    --green-gradient: linear-gradient(135deg, var(--logo-teal) 0%, var(--logo-green) 100%);
    
    /* Other colors */
    --dark-bg: #0a0a14;
    --darker-bg: #05050d;
    --text-white: #ffffff;
    --text-light: #e0e0e0;
    --text-muted: #a0a0a0;
    
    /* Spacing and other variables */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --letter-spacing-base: -0.055em; /* Match Canva logo -55 spacing */
    --letter-spacing-headers: -0.055em; /* Match Canva logo -55 spacing */
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--dark-bg);
    overflow-x: hidden;
    letter-spacing: var(--letter-spacing-base);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

a {
    text-decoration: none;
    color: var(--text-white);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--logo-gold);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.055em; /* Match Canva logo -55 spacing */
    transition: all 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: all 0.9s cubic-bezier(0.19, 1, 0.22, 1);
    border-radius: var(--border-radius);
}

.primary-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
}

.primary-btn::before {
    background: var(--secondary-gradient);
    opacity: 0;
    transform: scale(1.08);
    transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.7s ease;
}

.primary-btn:hover::before {
    opacity: 1;
    transform: scale(1);
    background: var(--secondary-gradient);
}

.primary-btn:hover {
    color: var(--text-white);
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(12, 192, 223, 0.3);
}

.secondary-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
}

.secondary-btn::before {
    opacity: 0;
    background: var(--secondary-gradient);
    transform: scale(1.08);
    transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.7s ease;
}

.secondary-btn:hover::before {
    opacity: 1;
    transform: scale(1);
}

.secondary-btn:hover {
    color: var(--text-white);
    transform: translateY(-3px);
    border-color: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: var(--letter-spacing-headers);
}

.underline {
    height: 4px;
    width: 60px;
    background: var(--primary-gradient);
    margin: 0 auto;
    border-radius: 2px;
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.4rem 0;
    transition: transform 0.4s ease, background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
    background-color: transparent;
}

header.folded {
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}

header.scrolled {
    padding: 0.2rem 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(10, 10, 20, 0.7);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

header:hover, 
.header-detector:hover + header {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.header-detector {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    z-index: 999;
    opacity: 0;
}

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

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

.logo img {
    height: 70px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem;
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: var(--letter-spacing-headers);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-white);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(10, 10, 20, 0.85), rgba(10, 10, 20, 0.95));
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 145, 77, 0.15) 0%, rgba(10, 10, 20, 0) 70%);
    z-index: 1;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 50px 160px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 90px 40px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 130px 80px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 170px 120px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 210px 160px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 250px 100px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 290px 60px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 330px 30px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 350px 170px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 400px 200px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 430px 130px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 470px 10px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 520px 80px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 580px 190px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 550px 120px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 630px 50px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 650px 180px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 700px 40px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 750px 140px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 800px 100px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 850px 30px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 900px 160px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 950px 200px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 1000px 60px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 1050px 170px, #fff, rgba(0, 0, 0, 0));
    background-size: 1100px 1100px;
    animation: stars 120s linear infinite;
    opacity: 0.7;
}

.stars::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 150px 260px, var(--logo-orange), rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 290px 180px, var(--logo-gold), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 470px 220px, var(--logo-light-blue), rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 610px 280px, var(--logo-teal), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 750px 340px, var(--logo-dark-blue), rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 950px 300px, var(--logo-green), rgba(0, 0, 0, 0));
    background-size: 1100px 1100px;
    animation: stars 180s linear infinite;
    opacity: 0.5;
}

@keyframes stars {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 1100px 1100px;
    }
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    padding: 2rem 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: var(--letter-spacing-headers);
}

.hero-content h1 span {
    position: relative;
    display: inline-block;
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
    animation: underlineAnimation 1.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    animation-delay: 0.5s;
}

@keyframes underlineAnimation {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.cta-buttons .primary-btn {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.cta-buttons .primary-btn::before {
    background: var(--secondary-gradient);
    opacity: 0;
    transform: scale(1.08);
    transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.7s ease;
}

.cta-buttons .primary-btn:hover::before {
    opacity: 1;
    transform: scale(1);
    background: var(--secondary-gradient);
}

.cta-buttons .primary-btn:hover {
    color: var(--text-white);
    border-color: transparent;
}

.cta-buttons .secondary-btn {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.cta-buttons .secondary-btn::before {
    background: var(--green-gradient);
    opacity: 0;
    transform: scale(1.08);
    transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.7s ease;
}

.cta-buttons .secondary-btn:hover::before {
    opacity: 1;
    transform: scale(1);
}

.cta-buttons .secondary-btn:hover {
    color: var(--text-white);
    border-color: transparent;
}

/* About Section */
.about {
    padding: var(--spacing-lg) 0;
    background-color: var(--darker-bg);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 150px 260px, var(--logo-light-blue), rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 290px 180px, var(--logo-gold), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 470px 220px, var(--logo-orange), rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 610px 280px, var(--logo-green), rgba(0, 0, 0, 0));
    background-size: 1100px 1100px;
    opacity: 0.1;
    z-index: 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    position: relative;
}

.image-container {
    position: relative;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-image: url('../assets/about-image.jpg');
    background-size: cover;
    background-position: center;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(12, 192, 223, 0.6) 0%, rgba(51, 204, 153, 0.6) 100%);
    mix-blend-mode: overlay;
}

/* Services Section with Glowing Effect */
.services {
    padding: var(--spacing-lg) 0;
    background-color: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(12, 192, 223, 0.15) 0%, rgba(10, 10, 20, 0) 25%),
        radial-gradient(circle at 80% 20%, rgba(51, 204, 153, 0.15) 0%, rgba(10, 10, 20, 0) 25%);
    opacity: 0.7;
    z-index: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: 2.5rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1), 
                box-shadow 0.9s cubic-bezier(0.19, 1, 0.22, 1), 
                background-color 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
    transform: scale(1.5);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover::before {
    opacity: 1;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1.5);
    }
    50% {
        transform: scale(2);
    }
    100% {
        transform: scale(1.5);
    }
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.service-card:nth-child(odd) .service-icon {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.service-card:nth-child(even) .service-icon {
    background: var(--green-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    letter-spacing: var(--letter-spacing-base);
    position: relative;
    z-index: 2;
}

.service-card p {
    font-size: 1rem;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
}

/* CTA Section */
.cta {
    padding: var(--spacing-lg) 0;
    background: linear-gradient(rgba(10, 10, 20, 0.9), rgba(10, 10, 20, 0.95));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 50px 160px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 90px 40px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 130px 80px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 400px 200px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 850px 30px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 1050px 170px, #fff, rgba(0, 0, 0, 0));
    background-size: 1100px 1100px;
    opacity: 0.1;
    z-index: 0;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    letter-spacing: var(--letter-spacing-headers);
}

.cta p {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-light);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.cta .btn {
    position: relative;
    z-index: 1;
}

/* Contact Section */
.contact {
    padding: var(--spacing-lg) 0;
    background-color: var(--darker-bg);
}

.contact-content {
    display: flex;
    gap: 4rem;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.contact-item:nth-child(1) i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-item:nth-child(2) i {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-item:nth-child(3) i {
    background: var(--green-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-item p {
    color: var(--text-light);
    font-size: 1.1rem;
    letter-spacing: var(--letter-spacing-base);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    letter-spacing: var(--letter-spacing-base);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--logo-gold);
}

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

.contact-form button.primary-btn {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.contact-form button.primary-btn::before {
    background: var(--secondary-gradient);
    opacity: 0;
    transform: scale(1.08);
    transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.7s ease;
}

.contact-form button.primary-btn:hover::before {
    opacity: 1;
    transform: scale(1);
    background: var(--secondary-gradient);
}

.contact-form button.primary-btn:hover {
    color: var(--text-white);
    border-color: transparent;
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    padding-top: var(--spacing-lg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
    height: 70px;
}

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

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
    color: var(--text-white);
}

/* LinkedIn brand color on hover */
.footer-social a:nth-of-type(1):hover {
    background: #0077b5; /* LinkedIn blue */
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 119, 181, 0.3);
}

/* Telegram brand color on hover */
.footer-social a:nth-of-type(2):hover {
    background: #30abeb; /* Telegram blue - updated to official brand color */
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(48, 171, 235, 0.3);
}

.footer-bottom {
    padding: var(--spacing-md) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-muted);
}

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

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 15px;
    letter-spacing: var(--letter-spacing-base);
}

.footer-legal a:hover {
    color: var(--logo-gold);
}

/* Responsive Design */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .about-content, .contact-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .image-container {
        height: 300px;
    }
    
    .service-card {
        backdrop-filter: none; /* Fix for older mobile browsers that don't support backdrop-filter */
    }
    
    .logo img {
        height: 60px; /* Slightly smaller logo on medium screens */
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(5, 5, 13, 0.95); /* Slightly transparent background */
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
        z-index: 999; /* Ensure it's above other content */
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
    }
    
    .nav-links a {
        font-size: 1.2rem; /* Larger font size for mobile navigation */
    }
    
    .hamburger {
        display: block;
        z-index: 1000; /* Ensure it's above the nav */
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-content {
        padding: 1rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%; /* Full width buttons on mobile */
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
        flex-wrap: wrap; /* Allow wrapping for small screens */
    }
    
    .logo img {
        height: 50px; /* Smaller logo on mobile */
    }
    
    /* Fix for underline animation on mobile */
    .hero-content h1 span {
        display: inline;
        line-height: 1.3;
        background-position: 0 100%;
    }
    
    .hero-content h1 span::after {
        bottom: -5px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .section-header h2, .cta h2 {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 2rem 1rem;
    }
    
    /* Smaller padding on mobile */
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-content h1 {
        font-size: 1.9rem;
    }
    
    .logo img {
        height: 45px; /* Even smaller logo on very small screens */
    }
    
    /* Better form UX on mobile */
    .form-group input, .form-group textarea {
        padding: 0.75rem;
        font-size: 16px; /* Prevent zoom on input focus on iOS */
    }
    
    /* Footer improvements */
    .footer-legal a {
        margin: 0 8px;
    }
    
    /* Ensure service cards don't get too cramped */
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Fix for larger mobile devices in landscape */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 6rem 0 3rem;
    }
    
    .nav-links {
        padding: 1rem 0;
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
}

.form-status {
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    display: none;
}

.form-status.success {
    display: block;
    background-color: rgba(51, 204, 153, 0.15);
    border: 1px solid rgba(51, 204, 153, 0.5);
    color: var(--logo-green);
}

.form-status.error {
    display: block;
    background-color: rgba(255, 77, 77, 0.15);
    border: 1px solid rgba(255, 77, 77, 0.5);
    color: rgb(255, 110, 110);
}

/* Adding responsive font sizing */
html {
    font-size: 16px;
}

/* Fix touchscreen hover issues */
@media (hover: hover) {
    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
        background-color: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .service-card:hover::before {
        opacity: 1;
        animation: pulse 3s infinite;
    }
    
    .primary-btn:hover::before,
    .secondary-btn:hover::before {
        opacity: 1;
        transform: scale(1);
    }
    
    .primary-btn:hover,
    .secondary-btn:hover {
        color: var(--text-white);
        transform: translateY(-3px);
        border-color: transparent;
    }
}

/* For touch devices, use active states instead of hover */
@media (hover: none) {
    .service-card:active {
        background-color: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .primary-btn:active::before,
    .secondary-btn:active::before {
        opacity: 1;
        transform: scale(1);
    }
    
    .primary-btn:active,
    .secondary-btn:active {
        color: var(--text-white);
        border-color: transparent;
    }
    
    /* Remove transform animations that might cause issues on touch devices */
    .service-card:hover,
    .primary-btn:hover,
    .secondary-btn:hover,
    .footer-social a:hover {
        transform: none;
    }
    
    /* Fix for the hero title underline on touch devices */
    .hero-content h1 span::after {
        animation: underlineAnimation 1.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
        animation-delay: 0.5s;
    }
} 