/* ==========================================
   LINAARK ARCHITECTS - Premium Portfolio CSS
   ========================================== */

/* CSS Variables - Dark Theme (Default) */
:root {
    /* Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: rgba(25, 25, 25, 0.8);

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    --accent-primary: #c9a962;
    --accent-secondary: #a88a4a;
    --accent-gradient: linear-gradient(135deg, #c9a962 0%, #a88a4a 100%);

    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(201, 169, 98, 0.5);

    --shadow-color: rgba(0, 0, 0, 0.3);
    --glow-color: rgba(201, 169, 98, 0.3);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-width: 1280px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-smooth: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f8f6f3;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eee9e2;
    --bg-card: rgba(255, 255, 255, 0.9);

    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-muted: #888888;

    --accent-primary: #b8943d;
    --accent-secondary: #9a7a2e;
    --accent-gradient: linear-gradient(135deg, #b8943d 0%, #9a7a2e 100%);

    --border-color: rgba(0, 0, 0, 0.1);
    --border-hover: rgba(184, 148, 61, 0.5);

    --shadow-color: rgba(0, 0, 0, 0.1);
    --glow-color: rgba(184, 148, 61, 0.2);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: none;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--glow-color);
    transition: all var(--transition-normal);
    animation: bounceIn 0.6s ease 1s both;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 8px 30px var(--glow-color);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--bg-primary);
    transition: all var(--transition-normal);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Theme transition for all elements */
*,
*::before,
*::after {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    opacity: 0.5;
}

.cursor.hover {
    width: 16px;
    height: 16px;
}

.cursor-follower.hover {
    width: 60px;
    height: 60px;
    border-color: var(--accent-secondary);
}

.cursor-follower.snapped {
    border-color: var(--accent-primary);
    opacity: 0.8;
    background: rgba(201, 169, 98, 0.05);
    transition: transform 0.1s ease, width 0.3s cubic-bezier(0.25, 1, 0.5, 1), height 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-radius 0.3s ease;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-normal);
}

em {
    font-style: italic;
    color: var(--accent-primary);
}

/* ==========================================
   NAVIGATION
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: transparent;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--text-primary);
}

.logo-sub {
    font-size: 0.65rem;
    letter-spacing: 6px;
    color: var(--accent-primary);
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text-secondary);
    position: relative;
    padding: 5px 0;
}

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

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

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

.nav-link.cta-btn {
    padding: 12px 28px;
    background: var(--accent-gradient);
    color: var(--bg-primary);
    border-radius: 30px;
    font-weight: 500;
}

.nav-link.cta-btn::after {
    display: none;
}

.nav-link.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(201, 169, 98, 0.3);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-normal);
}

.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(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right var(--transition-smooth);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.mobile-link:hover {
    color: var(--accent-primary);
    transform: translateX(10px);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 40px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(201, 169, 98, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(201, 169, 98, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border: 1px solid rgba(201, 169, 98, 0.2);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 5%;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 15%;
    border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
    animation-delay: -10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 30%;
    right: 20%;
    border-radius: 50%;
    animation-delay: -15s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(30px, -30px) rotate(5deg);
    }

    50% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }

    75% {
        transform: translate(20px, 10px) rotate(3deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    background: rgba(201, 169, 98, 0.1);
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 30px;
    margin-bottom: 40px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-primary);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line-1 {
    animation: slideUp 0.8s ease 0.3s both;
}

.hero-title .line-2 {
    animation: slideUp 0.8s ease 0.4s both;
}

.hero-title .line-3 {
    animation: slideUp 0.8s ease 0.5s both;
}

.hero-title .line-4 {
    animation: slideUp 0.8s ease 0.6s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 50px;
    animation: fadeInUp 0.8s ease 0.7s both;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease 0.8s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all var(--transition-normal);
    cursor: none;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-normal);
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(201, 169, 98, 0.4);
}

.btn-primary:hover svg {
    transform: translateX(5px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-large {
    padding: 20px 45px;
    font-size: 1.05rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    animation: fadeInUp 0.8s ease 0.9s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    animation: fadeInUp 0.8s ease 1s both;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {

    0%,
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(12px);
    }
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ==========================================
   SECTION STYLES
   ========================================== */

.section-header {
    margin-bottom: 60px;
}

.section-header.center {
    text-align: center;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 20px;
    position: relative;
    padding-left: 40px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 25px;
    height: 1px;
    background: var(--accent-primary);
}

.section-header.center .section-tag {
    padding-left: 0;
}

.section-header.center .section-tag::before {
    display: none;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.2;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 20px;
    max-width: 600px;
}

.section-header.center .section-desc {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */

.about-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text .lead {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 25px;
    line-height: 1.7;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-features {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.feature:hover .feature-icon {
    background: var(--accent-gradient);
    border-color: transparent;
}

.feature:hover .feature-icon svg {
    color: var(--bg-primary);
}

.feature-text h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* About Visual */
.about-visual {
    position: relative;
}

.visual-card {
    aspect-ratio: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.card-lines {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 6px;
}

.card-lines span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.card-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.blueprint-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201, 169, 98, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 169, 98, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* ==========================================
   SCATTERED BLOCKS ASSEMBLY ANIMATION
   ========================================== */

.blocks-assembly {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
}

.blocks-assembly .block {
    position: absolute;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.3);
    animation: assembleBlock 8s ease-in-out infinite;
}

/* Foundation blocks - bottom row */
.foundation-1 {
    width: 60px;
    height: 20px;
    --final-left: 30px;
    --final-top: 220px;
    --start-left: -80px;
    --start-top: 300px;
    --start-rotate: -45deg;
    animation-delay: 0s;
}

.foundation-2 {
    width: 60px;
    height: 20px;
    --final-left: 110px;
    --final-top: 220px;
    --start-left: 140px;
    --start-top: 320px;
    --start-rotate: 30deg;
    animation-delay: 0.3s;
}

.foundation-3 {
    width: 60px;
    height: 20px;
    --final-left: 190px;
    --final-top: 220px;
    --start-left: 350px;
    --start-top: 280px;
    --start-rotate: 60deg;
    animation-delay: 0.6s;
}

/* Left wall blocks */
.wall-l1 {
    width: 25px;
    height: 40px;
    --final-left: 35px;
    --final-top: 175px;
    --start-left: -60px;
    --start-top: 50px;
    --start-rotate: -90deg;
    animation-delay: 0.9s;
}

.wall-l2 {
    width: 25px;
    height: 40px;
    --final-left: 35px;
    --final-top: 130px;
    --start-left: -100px;
    --start-top: 180px;
    --start-rotate: 45deg;
    animation-delay: 1.2s;
}

.wall-l3 {
    width: 25px;
    height: 40px;
    --final-left: 35px;
    --final-top: 85px;
    --start-left: -40px;
    --start-top: -30px;
    --start-rotate: -60deg;
    animation-delay: 1.5s;
}

/* Right wall blocks */
.wall-r1 {
    width: 25px;
    height: 40px;
    --final-left: 220px;
    --final-top: 175px;
    --start-left: 350px;
    --start-top: 120px;
    --start-rotate: 90deg;
    animation-delay: 1s;
}

.wall-r2 {
    width: 25px;
    height: 40px;
    --final-left: 220px;
    --final-top: 130px;
    --start-left: 380px;
    --start-top: 200px;
    --start-rotate: -45deg;
    animation-delay: 1.3s;
}

.wall-r3 {
    width: 25px;
    height: 40px;
    --final-left: 220px;
    --final-top: 85px;
    --start-left: 320px;
    --start-top: -20px;
    --start-rotate: 60deg;
    animation-delay: 1.6s;
}

/* Center wall blocks */
.center-1 {
    width: 130px;
    height: 30px;
    --final-left: 75px;
    --final-top: 85px;
    --start-left: 100px;
    --start-top: -80px;
    --start-rotate: 180deg;
    animation-delay: 1.8s;
}

.center-2 {
    width: 130px;
    height: 30px;
    --final-left: 75px;
    --final-top: 120px;
    --start-left: 300px;
    --start-top: 60px;
    --start-rotate: -30deg;
    animation-delay: 2s;
}

/* Door block */
.door-block {
    width: 40px;
    height: 65px;
    --final-left: 120px;
    --final-top: 155px;
    --start-left: 140px;
    --start-top: 350px;
    --start-rotate: 0deg;
    animation-delay: 2.2s;
    background: linear-gradient(180deg, rgba(168, 138, 74, 0.3) 0%, rgba(10, 10, 10, 0.8) 100%);
    border: 2px solid var(--accent-primary);
}

/* Window blocks */
.window-left {
    width: 35px;
    height: 35px;
    --final-left: 70px;
    --final-top: 160px;
    --start-left: -50px;
    --start-top: 250px;
    --start-rotate: -120deg;
    animation-delay: 2.4s;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.4) 0%, rgba(201, 169, 98, 0.1) 100%);
    border: 2px solid var(--accent-primary);
}

.window-right {
    width: 35px;
    height: 35px;
    --final-left: 175px;
    --final-top: 160px;
    --start-left: 350px;
    --start-top: 220px;
    --start-rotate: 120deg;
    animation-delay: 2.5s;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.4) 0%, rgba(201, 169, 98, 0.1) 100%);
    border: 2px solid var(--accent-primary);
}

/* Roof blocks */
.roof-left {
    width: 80px;
    height: 25px;
    --final-left: 60px;
    --final-top: 55px;
    --start-left: -100px;
    --start-top: -50px;
    --start-rotate: -45deg;
    animation-delay: 2.7s;
    transform-origin: right center;
    clip-path: polygon(0% 100%, 50% 0%, 100% 100%);
}

.roof-right {
    width: 80px;
    height: 25px;
    --final-left: 140px;
    --final-top: 55px;
    --start-left: 350px;
    --start-top: -60px;
    --start-rotate: 45deg;
    animation-delay: 2.8s;
    transform-origin: left center;
    clip-path: polygon(0% 100%, 50% 0%, 100% 100%);
}

.roof-top {
    width: 140px;
    height: 50px;
    --final-left: 70px;
    --final-top: 30px;
    --start-left: 70px;
    --start-top: -150px;
    --start-rotate: 0deg;
    animation-delay: 3s;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

/* Extra scattered decorative blocks */
.scatter-1 {
    width: 20px;
    height: 15px;
    --final-left: 10px;
    --final-top: 250px;
    --start-left: -80px;
    --start-top: 150px;
    --start-rotate: 180deg;
    animation-delay: 0.2s;
    opacity: 0.6;
}

.scatter-2 {
    width: 15px;
    height: 20px;
    --final-left: 260px;
    --final-top: 240px;
    --start-left: 380px;
    --start-top: 300px;
    --start-rotate: -90deg;
    animation-delay: 0.5s;
    opacity: 0.6;
}

.scatter-3 {
    width: 18px;
    height: 12px;
    --final-left: 5px;
    --final-top: 100px;
    --start-left: -60px;
    --start-top: -20px;
    --start-rotate: 45deg;
    animation-delay: 1.1s;
    opacity: 0.5;
}

.scatter-4 {
    width: 12px;
    height: 18px;
    --final-left: 265px;
    --final-top: 120px;
    --start-left: 400px;
    --start-top: 80px;
    --start-rotate: -60deg;
    animation-delay: 1.4s;
    opacity: 0.5;
}

.scatter-5 {
    width: 16px;
    height: 16px;
    --final-left: 130px;
    --final-top: 260px;
    --start-left: 130px;
    --start-top: 380px;
    --start-rotate: 90deg;
    animation-delay: 0.7s;
    opacity: 0.4;
}

.scatter-6 {
    width: 14px;
    height: 14px;
    --final-left: 200px;
    --final-top: 35px;
    --start-left: 280px;
    --start-top: -80px;
    --start-rotate: -120deg;
    animation-delay: 2.9s;
    opacity: 0.4;
}

/* Main assembly animation */
@keyframes assembleBlock {
    0% {
        left: var(--start-left);
        top: var(--start-top);
        transform: rotate(var(--start-rotate)) scale(0.5);
        opacity: 0;
    }

    15% {
        opacity: 1;
        transform: rotate(calc(var(--start-rotate) * 0.5)) scale(0.8);
    }

    40% {
        left: var(--final-left);
        top: var(--final-top);
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }

    45% {
        transform: rotate(0deg) scale(1.05);
    }

    50% {
        transform: rotate(0deg) scale(1);
    }

    /* Hold assembled position */
    75% {
        left: var(--final-left);
        top: var(--final-top);
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }

    /* Scatter back out */
    85% {
        opacity: 0.8;
        transform: rotate(calc(var(--start-rotate) * 0.3)) scale(0.9);
    }

    100% {
        left: var(--start-left);
        top: var(--start-top);
        transform: rotate(var(--start-rotate)) scale(0.5);
        opacity: 0;
    }
}

/* Glow effect on assembled house */
.blocks-assembly::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(201, 169, 98, 0.15) 0%, transparent 70%);
    animation: glowPulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {

    0%,
    30%,
    100% {
        opacity: 0;
    }

    50%,
    70% {
        opacity: 1;
    }
}

/* ==========================================
   SERVICES SECTION
   ========================================== */

.services-section {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px 20px;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-hover);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(201, 169, 98, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all var(--transition-normal);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent-primary);
    transition: color var(--transition-normal);
}

.service-card:hover .service-icon {
    background: var(--accent-gradient);
}

.service-card:hover .service-icon svg {
    color: var(--bg-primary);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--accent-primary);
    font-weight: 500;
}

.service-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-normal);
}

.service-link:hover svg {
    transform: translateX(5px);
}

/* ==========================================
   PROJECTS SECTION
   ========================================== */

.projects-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.projects-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: var(--bg-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.project-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-lines {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 5px;
}

.placeholder-lines span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
}

.project-placeholder svg {
    width: 60%;
    height: 60%;
    color: var(--accent-primary);
    opacity: 0.3;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-project {
    padding: 15px 30px;
    background: var(--accent-gradient);
    color: var(--bg-primary);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.project-card:hover .view-project {
    transform: translateY(0);
}

.project-info {
    padding: 25px;
}

.project-category {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 10px;
    display: block;
}

.project-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.project-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================
   TEAM SECTION
   ========================================== */

.team-section {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all var(--transition-smooth);
    position: relative;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.team-card.featured {
    transform: scale(1.05);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 50px rgba(201, 169, 98, 0.2);
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-hover);
}

.team-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.team-visual {
    position: relative;
    margin-bottom: 25px;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-placeholder svg {
    width: 60%;
    height: 60%;
    color: var(--text-muted);
}

.team-contact-icon {
    position: absolute;
    bottom: -5px;
    right: calc(50% - 75px);
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.team-contact-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-contact-icon svg {
    width: 18px;
    height: 18px;
    color: var(--bg-primary);
}

.team-contact-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(201, 169, 98, 0.4);
}

.team-info h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.team-role {
    font-size: 0.85rem;
    color: var(--accent-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.team-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 10px 20px;
    background: var(--bg-tertiary);
    border-radius: 25px;
    transition: all var(--transition-normal);
}

.team-phone svg {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
}

.team-phone:hover {
    background: var(--accent-gradient);
    color: var(--bg-primary);
}

.team-phone:hover svg {
    color: var(--bg-primary);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */

.contact-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(201, 169, 98, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent-primary);
}

.contact-text .label {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

.contact-text a {
    color: var(--text-primary);
    font-size: 1rem;
    transition: color var(--transition-normal);
}

.contact-text a:hover {
    color: var(--accent-primary);
}

.phone-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 50px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--transition-normal);
}

.form-group textarea {
    resize: none;
}

.form-group label {
    position: absolute;
    left: 0;
    top: 15px;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: all var(--transition-normal);
}

.form-group input:focus~label,
.form-group input:valid~label,
.form-group textarea:focus~label,
.form-group textarea:valid~label {
    top: -10px;
    font-size: 0.75rem;
    color: var(--accent-primary);
    letter-spacing: 1px;
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width var(--transition-normal);
}

.form-group input:focus~.focus-border,
.form-group textarea:focus~.focus-border {
    width: 100%;
}

.btn-submit {
    align-self: flex-start;
    margin-top: 10px;
    border: none;
    font-family: var(--font-body);
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    padding: 80px 0 30px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 20px;
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: color var(--transition-normal);
}

.footer-col a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {

    .services-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-visual {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .team-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .container {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 100px 20px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .services-grid,
    .projects-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 30px;
    }

    /* Hide custom cursor on mobile */
    .cursor,
    .cursor-follower {
        display: none;
    }

    body {
        cursor: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .service-card,
    .project-card,
    .team-card {
        padding: 25px;
    }
}

/* ==========================================
   ANIMATIONS ON SCROLL
   ========================================== */

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animations for cards */
.service-card,
.project-card,
.team-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card.visible,
.project-card.visible,
.team-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.loading {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-card) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ==========================================
   ENHANCED ANIMATIONS
   ========================================== */

/* Glowing text animation */
.glow-text {
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 5px var(--accent-primary), 0 0 10px var(--accent-primary), 0 0 15px var(--accent-primary);
    }

    to {
        text-shadow: 0 0 10px var(--accent-primary), 0 0 20px var(--accent-primary), 0 0 30px var(--accent-primary), 0 0 40px var(--accent-secondary);
    }
}

/* Gradient text animation */
.gradient-text {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), #fff, var(--accent-primary));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 4s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating animation */
.float-animation {
    animation: floatUpDown 3s ease-in-out infinite;
}

@keyframes floatUpDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Rotate animation */
.rotate-slow {
    animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Scale pulse */
.scale-pulse {
    animation: scalePulse 2s ease-in-out infinite;
}

@keyframes scalePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Shake animation */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* Ripple effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.ripple:active::after {
    transform: scale(2);
    opacity: 1;
    transition: 0s;
}

/* Slide in animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInBottom {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Zoom in */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Flip animation */
@keyframes flipIn {
    from {
        opacity: 0;
        transform: perspective(400px) rotateY(90deg);
    }

    to {
        opacity: 1;
        transform: perspective(400px) rotateY(0);
    }
}

/* Blur in */
@keyframes blurIn {
    from {
        opacity: 0;
        filter: blur(20px);
    }

    to {
        opacity: 1;
        filter: blur(0);
    }
}

/* Enhanced card hover */
.service-card:hover,
.project-card:hover {
    animation: cardPop 0.3s ease forwards;
}

@keyframes cardPop {
    0% {
        transform: translateY(-10px) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.02);
    }

    100% {
        transform: translateY(-10px) scale(1);
    }
}

/* Underline animation */
.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background: var(--accent-gradient);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.animated-underline:hover::after {
    width: 100%;
}

/* Border animation */
.border-animate {
    position: relative;
}

.border-animate::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: inherit;
    background: var(--accent-gradient) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Typewriter effect */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--accent-primary);
    white-space: nowrap;
    animation: typing 3.5s steps(40) 1s forwards, blinkCursor 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blinkCursor {
    50% {
        border-color: transparent;
    }
}

/* Morphing shapes */
.morph-shape {
    animation: morphing 8s ease-in-out infinite;
}

@keyframes morphing {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    50% {
        border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%;
    }

    75% {
        border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

/* Particle dots background */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 15s infinite ease-in-out;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: 6s;
}

.particle:nth-child(5) {
    left: 50%;
    animation-delay: 8s;
}

.particle:nth-child(6) {
    left: 60%;
    animation-delay: 10s;
}

.particle:nth-child(7) {
    left: 70%;
    animation-delay: 12s;
}

.particle:nth-child(8) {
    left: 80%;
    animation-delay: 14s;
}

.particle:nth-child(9) {
    left: 90%;
    animation-delay: 1s;
}

.particle:nth-child(10) {
    left: 95%;
    animation-delay: 3s;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* Light theme specific adjustments */
[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .hero-gradient {
    background:
        radial-gradient(circle at 20% 20%, rgba(184, 148, 61, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(184, 148, 61, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

[data-theme="light"] .shape {
    border-color: rgba(184, 148, 61, 0.25);
}

[data-theme="light"] .project-placeholder,
[data-theme="light"] .avatar-placeholder {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

/* ==========================================
   FORM PREMIUM ENHANCEMENTS
   ========================================== */

/* Autofill override to blend with dark/light themes */
.form-group input:-webkit-autofill,
.form-group textarea:-webkit-autofill {
    -webkit-text-fill-color: var(--text-primary) !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--bg-tertiary) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Floating label trigger on autofill */
.form-group input:-webkit-autofill ~ label,
.form-group textarea:-webkit-autofill ~ label {
    top: -10px;
    font-size: 0.75rem;
    color: var(--accent-primary);
    letter-spacing: 1px;
}

/* Custom error highlighting */
.form-group input.invalid,
.form-group textarea.invalid {
    border-bottom: 2px solid #ff4a4a !important;
}

.form-group input.invalid ~ label,
.form-group textarea.invalid ~ label {
    color: #ff4a4a !important;
}

.form-group input.invalid ~ .focus-border,
.form-group textarea.invalid ~ .focus-border {
    background: #ff4a4a !important;
    width: 100% !important;
}

/* Premium Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
}

.toast.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.toast-error {
    border-left: 4px solid #ff4a4a;
}

.toast-error svg {
    color: #ff4a4a;
    width: 20px;
    height: 20px;
}

.toast-success {
    border-left: 4px solid #4CAF50;
}

.toast-success svg {
    color: #4CAF50;
    width: 20px;
    height: 20px;
}

/* Premium success screen animation */
.contact-success-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 20px 0;
    opacity: 0;
    animation: fadeInSuccess 0.6s ease forwards;
}

@keyframes fadeInSuccess {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
}

.success-icon svg {
    width: 100%;
    height: 100%;
}

.success-icon .circle {
    fill: none;
    stroke: var(--accent-primary);
    stroke-width: 4;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: strokeCircle 0.8s ease forwards;
}

.success-icon .check {
    fill: none;
    stroke: var(--accent-primary);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: strokeCheck 0.4s 0.8s ease forwards;
}

@keyframes strokeCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes strokeCheck {
    to {
        stroke-dashoffset: 0;
    }
}

.contact-success-screen h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 12px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-success-screen p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 420px;
}

.btn-send-again {
    font-size: 0.9rem;
    padding: 12px 25px;
    border-radius: 25px;
}

/* ==========================================
   PREMIUM ACCENTS & MICRO-ANIMATIONS
   ========================================== */

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #252525;
    border-radius: 20px;
    border: 2px solid var(--bg-primary);
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Custom Text Highlight Selection */
::selection {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* Ambient Background Glow Orbs */
.ambient-glows {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    -webkit-filter: blur(140px);
    opacity: 0.15;
    mix-blend-mode: screen;
    animation: floatOrb 25s ease-in-out infinite alternate;
}

/* Adjust opacity for light theme to look clean and premium */
[data-theme="light"] .glow-orb {
    opacity: 0.08;
    mix-blend-mode: multiply;
    filter: blur(120px);
    -webkit-filter: blur(120px);
}

.glow-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-duration: 22s;
}

.glow-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    bottom: 10%;
    right: -5%;
    animation-duration: 28s;
    animation-delay: -5s;
}

.glow-orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    top: 50%;
    left: 40%;
    animation-duration: 25s;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -60px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 40px) scale(0.95);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* ==========================================
   PRELOADER ANIMATION
   ========================================== */

.preloader {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

.preloader.fade-out {
    transform: translateY(-100vh);
}

.preloader-content {
    text-align: center;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preloader-logo {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    animation: preloaderLogoFade 0.8s 0.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.preloader-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--text-primary);
}

.preloader-logo .logo-sub {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 10px;
    color: var(--accent-primary);
    margin-top: 5px;
}

@keyframes preloaderLogoFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preloader-line-wrap {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    border-radius: 1px;
}

.preloader-line {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left center;
    animation: preloaderFill 1.8s 0.6s cubic-bezier(0.85, 0, 0.15, 1) forwards;
}

@keyframes preloaderFill {
    0% {
        transform: scaleX(0);
    }
    50% {
        transform: scaleX(0.7);
    }
    100% {
        transform: scaleX(1);
    }
}

/* ==========================================
   SERVICE CARD BACKROUND SVG ANIMATIONS
   ========================================== */

.card-animation-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15; /* Always visible for continuous movement */
    overflow: hidden;
    transition: opacity var(--transition-normal);
}

.service-card:hover .card-animation-wrap {
    opacity: 0.7; /* Grow brighter on hover */
}

.svg-anim {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* SVG Line Drawing Base - Triggers when card scrolls into view */
.draw-line {
    fill: none;
    stroke: var(--accent-primary);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 2.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-card.visible .draw-line {
    stroke-dashoffset: 0;
}

/* Specific SVG animations - RUNNING CONTINUOUSLY */

/* 1. Residential: Subtle breathing scale */
.residential-anim {
    transform-origin: center;
    animation: breatheEasy 8s infinite alternate ease-in-out;
}

@keyframes breatheEasy {
    from { transform: scale(1); }
    to { transform: scale(1.03); }
}

/* Staggered drawing delay when scrolling into view */
.service-card.visible .main-house { transition-delay: 0s; }
.service-card.visible .door { transition-delay: 0.5s; }
.service-card.visible .window { transition-delay: 0.8s; }

/* 2. Commercial: Continuously twinkling window lights */
.commercial-anim .window-dot {
    fill: var(--accent-primary);
    opacity: 0;
    transform: scale(0);
    transform-origin: center;
    animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.1;
        transform: scale(0.6);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.2);
    }
}

/* Staggered delays so they twinkle organically */
.commercial-anim .d1 { animation-delay: 0.2s; }
.commercial-anim .d2 { animation-delay: 0.8s; }
.commercial-anim .d3 { animation-delay: 1.4s; }
.commercial-anim .d4 { animation-delay: 0.5s; }
.commercial-anim .d5 { animation-delay: 1.1s; }

/* 3. 3D Vis: Continuous spinning wireframe cube */
.rotating-cube-group {
    transform-origin: 50px 52px;
    animation: rotateCube 25s infinite linear;
}

@keyframes rotateCube {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.visualization-anim .vertex-node {
    fill: var(--bg-primary);
    stroke: var(--accent-primary);
    stroke-width: 1.2;
    opacity: 0;
    transform: scale(0);
    transform-origin: center;
    animation: pulseNode 4s infinite alternate ease-in-out;
}

@keyframes pulseNode {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.7);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.visualization-anim .vertex-node:nth-child(even) {
    animation-delay: -2s;
}

/* 4. Interior: Continuously pulsing lamp glow */
.interior-anim .lamp-light {
    fill: rgba(201, 169, 98, 0.05);
    opacity: 0.3;
    animation: pulseLight 4s infinite alternate ease-in-out;
}

@keyframes pulseLight {
    0% { opacity: 0.2; }
    100% { opacity: 0.8; }
}

.interior-anim {
    transform-origin: center;
    animation: breatheEasy 7s infinite alternate-reverse ease-in-out;
}

/* Ensure card text and icon stay above background video/svg */
.service-icon,
.service-card h3,
.service-card p {
    position: relative;
    z-index: 1;
}

/* ==========================================
   PROJECTS EMPTY STATE (COMING SOON)
   ========================================== */

.projects-empty-state {
    grid-column: 1 / -1; /* Take up entire grid row width */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-normal);
}

.projects-empty-state.show {
    opacity: 1;
    transform: translateY(0);
}

.empty-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    background: rgba(201, 169, 98, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    border: 1px solid rgba(201, 169, 98, 0.15);
}

.empty-icon svg {
    width: 32px;
    height: 32px;
    color: var(--accent-primary);
}

.projects-empty-state h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.projects-empty-state p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 420px;
    line-height: 1.7;
}