:root {
    --primary-orange: #EE6C4D; 
    --text-dark: #1A1A1A;
    --text-light: #666666;
    --bg-white: #FFFFFF;
    --bg-light-gray: #F9F9F9;
    --transition-speed: 0.5s;
    --hero-bg: url('media/CV-1101.webp');
    --hero-overlay-1: rgba(255, 255, 255, 0.95);
    --hero-overlay-2: rgba(255, 255, 255, 0.4);
}

.dark-mode {
    --text-dark: #FFFFFF;
    --text-light: #A0A0A0;
    --bg-white: #121212;
    --bg-light-gray: #1E1E1E;
    --hero-bg: url('media/CV-2415.webp');
    --hero-overlay-1: rgba(18, 18, 18, 0.95);
    --hero-overlay-2: rgba(18, 18, 18, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background-color: var(--primary-orange);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease-out;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-white);
    transition: background-color var(--transition-speed) ease;
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-orange);
    border-radius: 10px;
    border: 3px solid var(--bg-white);
    transition: border-color var(--transition-speed) ease;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #d85c3e;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light-gray);
    transition: background-color var(--transition-speed) ease;
}

.navbar {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar.scrolled {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar.scrolled .nav-container {
    height: 60px;
}

.logo img {
    height: 40px; 
    width: auto;
    transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
}

.navbar.scrolled .logo img {
    height: 30px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-orange);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-orange);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    width: 100%;
    height: 2.5px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1001;
    transition: color var(--transition-speed) ease, transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.theme-toggle:hover {
    color: var(--primary-orange);
    transform: scale(1.15) translateY(-2px);
}

.theme-toggle.animate {
    animation: popToggle 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popToggle {
    0% { transform: scale(1); }
    50% { transform: scale(0.7) rotate(-10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-white);
    margin-top: 0;
    position: relative;
    overflow: hidden;
    transition: background-color var(--transition-speed) ease;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, var(--hero-overlay-1), var(--hero-overlay-2)), var(--hero-bg);
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: background-image var(--transition-speed) ease;
    will-change: transform, opacity;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
    will-change: transform, opacity;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-dark);
    transition: color var(--transition-speed) ease;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    transition: color var(--transition-speed) ease;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--primary-orange);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #d85c3e;
    transform: translateY(-3px);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--primary-orange);
    margin-bottom: 30px;
}

.divider.center {
    margin: 0 auto 30px auto;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.subtitle, .subtitle-center {
    font-size: 1.2rem;
    color: var(--primary-orange);
    margin-bottom: 20px;
    font-weight: 600;
}

.subtitle-center {
    text-align: center;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.split-image {
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.split-image:hover img {
    transform: scale(1.05);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 35px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-orange);
    line-height: 1;
}

.feature-item h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-dark);
    transition: color var(--transition-speed) ease;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    transition: color var(--transition-speed) ease;
}

.tagline, .tagline-center {
    margin-top: 40px;
    font-size: 1.1rem;
    color: var(--primary-orange);
    font-weight: 600;
}

.tagline-center {
    text-align: center;
    margin-top: 50px;
}

.quartz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.quartz-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color var(--transition-speed) ease;
}

.quartz-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.bg-number {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--text-dark);
    opacity: 0.05;
    z-index: 0;
    transition: opacity 0.3s ease, color var(--transition-speed) ease;
}

.quartz-card:hover .bg-number {
    opacity: 0.2;
    color: var(--primary-orange);
}

.quartz-card h5 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
    transition: color var(--transition-speed) ease;
}

.quartz-card p {
    font-size: 1rem;
    color: var(--text-light);
    position: relative;
    z-index: 1;
    transition: color var(--transition-speed) ease;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    background-color: var(--bg-light-gray); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: flex-end;
    height: 100%;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.gallery-item .overlay span {
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-item {
    background: var(--bg-light-gray);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color var(--transition-speed) ease;
}

.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: var(--primary-orange);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 5px 15px rgba(238, 108, 77, 0.3);
}

.contact-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    transition: color var(--transition-speed) ease;
}

.contact-item p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    transition: color var(--transition-speed) ease;
}

footer {
    background-color: transparent;
    color: var(--text-dark);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background-color: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(238, 108, 77, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #d85c3e;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(238, 108, 77, 0.6);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 45px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-lightbox:hover {
    color: var(--primary-orange);
}

#download-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background-color: var(--primary-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(238, 108, 77, 0.4);
}

#download-btn:hover {
    background-color: #d85c3e;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(238, 108, 77, 0.6);
}

@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.6s cubic-bezier(0.77, 0, 0.175, 1), background-color var(--transition-speed) ease;
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 24px;
        opacity: 0;
        transform: translateX(50px);
        transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
    }
    
    .nav-links.active a {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-links.active li:nth-child(1) a { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(2) a { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(3) a { transition-delay: 0.4s; }
    .nav-links.active li:nth-child(4) a { transition-delay: 0.5s; }
    .nav-links.active li:nth-child(5) a { transition-delay: 0.6s; }

    .nav-right {
        gap: 20px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-item .overlay {
        padding: 10px;
    }
    
    .gallery-item .overlay span {
        font-size: 0.9rem;
    }
}