/* ===========================================
   MODERN TEMPLATE CSS
   Inspirado em Active Theory & Garden Eight
   =========================================== */

/* CSS Variables */
:root {
    --primary-red: #9e2a2b;
    --accent-red: #ce3033;
    --primary-black: #231c1c;
    --secondary-black: #333333;
    --dark-gray: #444444;
    --medium-gray: #666666;
    --light-gray: #999999;
    --off-white: #eaeaea;
    --pure-white: #ffffff;
    --accent-color: #9e2a2b;
    
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Manrope', sans-serif;
    --font-accent: 'Raleway', sans-serif;
    
    --section-padding: 4rem 0;
    --border-radius: 24px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 40px 100px rgba(0, 0, 0, 0.15);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--primary-black);
    background: var(--pure-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Cursor */
body {
    cursor: auto;
}

.custom-cursor {
    display: none;
}

/* Loading Screen */
.loading-screen {
    display: none;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary-red);
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem 0;
    background: transparent;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem 0;
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-black);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.navbar-logo:hover {
    opacity: 0.8;
}

/* Logo branca visível quando navbar está transparente/preto */
.navbar-logo-light {
    display: block;
}

.navbar-logo-dark {
    display: none;
}

/* Logo normal visível quando navbar scrolled (branco) */
.navbar.scrolled .navbar-logo-light {
    display: none;
}

.navbar.scrolled .navbar-logo-dark {
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-black);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-black);
    cursor: pointer;
    position: absolute;
    right: 0;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    background: linear-gradient(135deg, var(--pure-white) 0%, var(--off-white) 100%);
    padding-top: 250px;
    padding-bottom: 8rem;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('IMG/bg-hero-lorac.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
    will-change: transform;
}

.hero-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, 
        rgba(255,255,255,0.8) 0%, 
        rgba(255,255,255,0.3) 20%, 
        rgba(255,255,255,0.3) 80%, 
        rgba(255,255,255,0.8) 100%);
    z-index: 1;
}

.hero-content {
    text-align: left;
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(1.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--primary-black);
    opacity: 0;
    font-family: var(--font-primary);
}

.hero-title .highlight {
    color: var(--medium-gray);
    font-weight: 300;
}

.hero-subtitle {
    font-size: clamp(0.85rem, 1.8vw, 1.2rem);
    color: var(--dark-gray);
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-cta {
    --primary-color: #9e2a2b;
    --secondary-color: #fff;
    --hover-color: #ce3033;
    --arrow-width: 10px;
    --arrow-stroke: 2px;
    box-sizing: border-box;
    border: 0;
    border-radius: 20px;
    color: var(--secondary-color);
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    display: inline-flex;
    transition: 0.2s background;
    align-items: center;
    gap: 0.6em;
    font-weight: bold;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
}

.hero-cta .arrow-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-cta .arrow {
    margin-top: 1px;
    width: var(--arrow-width);
    background: var(--secondary-color);
    height: var(--arrow-stroke);
    position: relative;
    transition: 0.2s;
}

.hero-cta .arrow::before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    border: solid var(--secondary-color);
    border-width: 0 var(--arrow-stroke) var(--arrow-stroke) 0;
    display: inline-block;
    top: -3px;
    right: 3px;
    transition: 0.2s;
    padding: 3px;
    transform: rotate(-45deg);
}

.hero-cta:hover {
    background-color: var(--hover-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: var(--secondary-color);
}

.hero-cta:hover .arrow {
    background: var(--secondary-color);
}

.hero-cta:hover .arrow::before {
    right: 0;
}

.hero-scroll {
    display: none;
}

/* Section Styles */
.section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.section-dark {
    background: var(--primary-black);
    color: var(--pure-white);
}

.section-gray {
    background: var(--off-white);
    position: relative;
}

.section-title {
    font-size: clamp(1.5rem, 3.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    opacity: 0;
    font-family: var(--font-primary);
}

.section-subtitle {
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    color: var(--medium-gray);
    margin-bottom: 2rem;
    font-weight: 300;
    max-width: 600px;
    opacity: 0;
}

.section-dark .section-subtitle {
    color: var(--light-gray);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dark-gray);
}

.about-text strong {
    color: var(--primary-black);
    font-weight: 600;
}

.about-image-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 1s ease-in-out;
    z-index: 2;
}

.slider-image.active {
    opacity: 1;
    z-index: 3;
}

.slider-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(158, 42, 43, 0.7) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    aspect-ratio: 4/5;
    background: var(--medium-gray);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 2px solid var(--pure-white);
    border-radius: 50%;
    opacity: 0.3;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    line-height: 1.6;
    transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem;
    border-radius: 22px;
    color: #ffffff;
    overflow: hidden;
    background: var(--primary-red);
    transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
    width: 100%;
    height: 100%;
    position: relative;
}

.service-content::before {
    position: absolute;
    content: "";
    top: -4%;
    left: 50%;
    width: 90%;
    height: 90%;
    transform: translate(-50%);
    background: #d89698;
    z-index: -1;
    transform-origin: bottom;
    border-radius: inherit;
    transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-content::after {
    position: absolute;
    content: "";
    top: -8%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%);
    background: #ecd1d2;
    z-index: -2;
    transform-origin: bottom;
    border-radius: inherit;
    transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-icon {
    font-size: 2.5rem;
    z-index: 1;
    color: #ffffff;
}

.service-number {
    font-family: var(--font-accent);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    letter-spacing: 2px;
    z-index: 1;
}

.service-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0;
    color: #ffffff;
    z-index: 1;
    line-height: 1.3;
}

.service-btn {
    --primary-color: #ffffff;
    --secondary-color: #9e2a2b;
    --hover-color: #eaeaea;
    --arrow-width: 8px;
    --arrow-stroke: 2px;
    box-sizing: border-box;
    border: 0;
    border-radius: 16px;
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    display: inline-flex;
    transition: 0.2s background;
    align-items: center;
    gap: 0.5em;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    z-index: 1;
    margin-top: 0.5rem;
}

.service-btn .arrow-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-btn .arrow {
    margin-top: 1px;
    width: var(--arrow-width);
    background: var(--secondary-color);
    height: var(--arrow-stroke);
    position: relative;
    transition: 0.2s;
}

.service-btn .arrow::before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    border: solid var(--secondary-color);
    border-width: 0 var(--arrow-stroke) var(--arrow-stroke) 0;
    display: inline-block;
    top: -3px;
    right: 3px;
    transition: 0.2s;
    padding: 3px;
    transform: rotate(-45deg);
}

.service-btn:hover {
    background-color: var(--hover-color);
}

.service-btn:hover .arrow::before {
    right: 0;
}

.service-card:hover {
    transform: translate(0px, -16px);
}

.service-card:hover .service-content::before {
    rotate: -8deg;
    top: 0;
    width: 100%;
    height: 100%;
}

.service-card:hover .service-content::after {
    rotate: 8deg;
    top: 0;
    width: 100%;
    height: 100%;
}

/* Portfolio Section */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0 4rem;
}

.filter-btn {
    padding: 0.8rem 2rem;
    background: transparent;
    color: var(--dark-gray);
    border: 2px solid var(--light-gray);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-red);
    color: var(--pure-white);
    border-color: var(--primary-red);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.portfolio-item {
    background: var(--medium-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    transform: scale(0.9);
    aspect-ratio: 4/3;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-item:hover {
    transform: scale(1.02);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--pure-white);
    transform: translateY(100%);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.stat-number {
    font-size: clamp(1.5rem, 3.5vw, 3rem);
    font-weight: 900;
    color: var(--pure-white);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}

.stat-label {
    color: var(--light-gray);
    font-weight: 300;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/* Contact Section */
.contact-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3rem;
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.85rem 0;
    border: none;
    border-bottom: 2px solid var(--light-gray);
    background: transparent;
    font-size: 0.9rem;
    color: var(--primary-black);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-bottom-color: var(--primary-red);
}

.form-label {
    position: absolute;
    top: 1.5rem;
    left: 0;
    font-size: 1.1rem;
    color: var(--medium-gray);
    transition: var(--transition);
    pointer-events: none;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: 0;
    font-size: 0.9rem;
    color: var(--primary-red);
}

.form-submit {
    --primary-color: #9e2a2b;
    --secondary-color: #fff;
    --hover-color: #ce3033;
    --arrow-width: 10px;
    --arrow-stroke: 2px;
    box-sizing: border-box;
    border: 0;
    border-radius: 20px;
    color: var(--secondary-color);
    padding: 0.85rem 1.75rem;
    background: var(--primary-color);
    display: inline-flex;
    transition: 0.2s background;
    align-items: center;
    gap: 0.6em;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    align-self: flex-start;
}

.form-submit .arrow-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-submit .arrow {
    margin-top: 1px;
    width: var(--arrow-width);
    background: var(--secondary-color);
    height: var(--arrow-stroke);
    position: relative;
    transition: 0.2s;
}

.form-submit .arrow::before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    border: solid var(--secondary-color);
    border-width: 0 var(--arrow-stroke) var(--arrow-stroke) 0;
    display: inline-block;
    top: -3px;
    right: 3px;
    transition: 0.2s;
    padding: 3px;
    transform: rotate(-45deg);
}

.form-submit:hover {
    background-color: var(--hover-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.form-submit:hover .arrow {
    background: var(--secondary-color);
}

.form-submit:hover .arrow::before {
    right: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-label {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    color: var(--medium-gray);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-value {
    font-size: 0.95rem;
    color: var(--primary-black);
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--primary-red);
    color: var(--pure-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
    text-align: left;
}

.footer-brand {
    margin-bottom: 1rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-title {
    color: var(--pure-white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-list li i {
    color: var(--pure-white);
    font-size: 1rem;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: #ffffff;
    color: var(--primary-red);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
}

.footer-copy {
    color: #ffffff;
    font-size: 0.85rem;
    margin: 0;
}

/* Budget Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: var(--pure-white);
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--medium-gray);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--off-white);
    color: var(--primary-red);
}

.modal-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.modal-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.modal-subtitle {
    font-size: 1rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.modal-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--off-white);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    margin-bottom: 2rem;
}

.modal-input:focus {
    outline: none;
    border-color: var(--primary-red);
}

.modal-checkbox-group,
.modal-radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.modal-checkbox,
.modal-radio {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--off-white);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-checkbox:hover,
.modal-radio:hover {
    border-color: var(--primary-red);
    background: var(--off-white);
}

.modal-checkbox input,
.modal-radio input {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-red);
}

.modal-checkbox span,
.modal-radio span {
    font-size: 0.95rem;
    color: var(--primary-black);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.modal-btn,
.modal-btn-secondary {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    flex: 1;
}

.modal-btn {
    background: var(--primary-red);
    color: var(--pure-white);
}

.modal-btn:hover {
    background: var(--accent-red);
    transform: translateY(-2px);
}

.modal-btn-secondary {
    background: var(--off-white);
    color: var(--primary-black);
}

.modal-btn-secondary:hover {
    background: var(--medium-gray);
}

.modal-success {
    text-align: center;
    padding: 2rem 0;
}

.modal-success i {
    margin-bottom: 1.5rem;
}

/* Custom Notifications */
.custom-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--pure-white);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 20000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid var(--primary-red);
    min-width: 300px;
    max-width: 400px;
}

.custom-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.custom-notification.error {
    border-left-color: #dc3545;
}

.custom-notification.success {
    border-left-color: #28a745;
}

.custom-notification.warning {
    border-left-color: #ffc107;
}

.custom-notification-icon {
    font-size: 1.5rem;
    color: var(--primary-red);
    flex-shrink: 0;
}

.custom-notification.error .custom-notification-icon {
    color: #dc3545;
}

.custom-notification.success .custom-notification-icon {
    color: #28a745;
}

.custom-notification.warning .custom-notification-icon {
    color: #ffc107;
}

.custom-notification-content {
    flex: 1;
}

.custom-notification-title {
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.custom-notification-message {
    color: var(--dark-gray);
    font-size: 0.85rem;
    line-height: 1.4;
}

.custom-notification-close {
    background: none;
    border: none;
    color: var(--medium-gray);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    flex-shrink: 0;
}

.custom-notification-close:hover {
    background: var(--off-white);
    color: var(--primary-black);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: 2rem 0;
    }

    .hero-title {
        font-size: clamp(1.5rem, 8vw, 3rem);
    }

    .section-title {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .about-text {
        font-size: 0.9rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--pure-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        gap: 2rem;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.5rem;
        font-weight: 600;
        padding: 1rem 2rem;
    }

    .menu-toggle {
        display: block;
        font-size: 2rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .portfolio-item {
        grid-column: span 12 !important;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding-top: 100px;
        padding-bottom: 12rem;
        min-height: auto;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-left: 1rem;
        padding-right: 1rem;
        overflow: visible;
    }
    
    .hero-content {
        padding: 2rem 0.5rem 2rem;
        margin-top: 0;
        width: 100%;
    }
    
    .hero-cta {
        position: relative;
        display: inline-flex;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: clamp(1.3rem, 7vw, 2.5rem);
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
    }

    .hero-cta {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: clamp(1.3rem, 6vw, 2.2rem);
    }

    .section-subtitle {
        font-size: 0.85rem;
    }
    
    .service-card {
        padding: 1rem;
    }

    .service-title {
        font-size: 0.95rem;
    }

    .service-number {
        font-size: 0.75rem;
    }
    
    .about-text {
        font-size: 0.85rem;
    }

    .stat-number {
        font-size: clamp(1.3rem, 5vw, 2rem);
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .form-input {
        font-size: 0.85rem;
        padding: 0.75rem 0;
    }

    .form-submit {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }

    .contact-value {
        font-size: 0.9rem;
    }

    .contact-label {
        font-size: 0.7rem;
    }

    .custom-cursor {
        display: none;
    }

    body {
        cursor: auto;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio-grid {
        gap: 1rem;
    }

    .portfolio-item {
        border-radius: 12px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .section {
        padding: 3rem 0;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .loading-progress {
        width: 250px;
    }

    .loading-logo {
        font-size: 3rem;
    }
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.fade-up {
    opacity: 0;
    transform: translateY(50px);
}

.fade-in {
    opacity: 0;
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
}

/* Particle Background */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Performance Optimizations */
* {
    will-change: auto;
}

.hero-section *,
.service-card,
.portfolio-item {
    will-change: transform;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --pure-white: #1a1a1a;
        --off-white: #2a2a2a;
        --primary-black: #ffffff;
        --secondary-black: #f0f0f0;
        --dark-gray: #cccccc;
        --medium-gray: #999999;
        --light-gray: #666666;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 40px 100px rgba(0, 0, 0, 0.4);
    }
}

/* Keyboard Navigation Support */
.keyboard-navigation *:focus {
    outline: 2px solid var(--primary-black);
    outline-offset: 4px;
}

/* Reduced Motion Support */
.reduce-motion * {
    animation: none !important;
    transition: none !important;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-black);
    color: var(--pure-white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}
