:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(20, 27, 45, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-color: #f3f4f6;
    --text-muted: #9ca3af;
    
    --primary: #10b981; /* Neon green/emerald for eco-energy */
    --primary-glow: rgba(16, 185, 129, 0.3);
    --accent-blue: #3b82f6; /* Blue for grid/inverter */
    --accent-blue-glow: rgba(59, 130, 246, 0.3);
    --accent-yellow: #f59e0b; /* Yellow for solar */
    --accent-yellow-glow: rgba(245, 158, 11, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background blur effects */
.bg-glow-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

.bg-glow-2 {
    position: absolute;
    top: 40%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Header / Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
    position: absolute;
    left: 2rem;
}

.logo-img {
    height: 32px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.logo-text span {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

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

.cta-btn {
    background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
    color: #ffffff;
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    color: #ffffff;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 9rem 2rem 5rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    min-height: 90vh;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    margin-bottom: 1.5rem;
    word-break: keep-all;
}

.hero-text h1 span {
    background: linear-gradient(90deg, var(--primary) 0%, #6ee7b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
    word-break: keep-all;
}

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

.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    padding: 0.7rem 1.6rem;
    border-radius: 30px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-graphic {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glassmorphism Mockup Box */
.mockup-box {
    width: 100%;
    max-width: 460px;
    height: 320px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    position: relative;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.8rem;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green { background: #10b981; }

.mockup-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Core Features Section */
.features-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Interactive Energy Flow Mockup (The Mini-Dashboard Screen) */
.ems-preview-section {
    padding: 6rem 2rem;
    background: rgba(17, 24, 39, 0.4);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.preview-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.preview-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.35;
}

.preview-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    word-break: keep-all;
}

.preview-points {
    list-style: none;
    margin-bottom: 2.5rem;
}

.preview-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.8rem;
    font-size: 0.98rem;
    color: #e5e7eb;
}

.preview-points i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Flow Dashboard Box */
.flow-dashboard {
    width: 100%;
    background: #0d1321;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.6);
    position: relative;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.status-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); opacity: 0.5; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Visual Flow Nodes Grid */
.flow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
}

/* Grid nodes placement */
.node {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s;
    cursor: pointer;
}

.node:hover {
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Grid coordinates for nodes */
.node-pv { grid-column: 1; grid-row: 1; border-color: var(--accent-yellow-glow); }
.node-pcs { grid-column: 2; grid-row: 2; border: 2px solid rgba(255, 255, 255, 0.12); }
.node-bms { grid-column: 1; grid-row: 3; border-color: var(--primary-glow); }
.node-load { grid-column: 3; grid-row: 1; border-color: var(--accent-blue-glow); }
.node-grid { grid-column: 3; grid-row: 3; border-color: var(--accent-blue-glow); }

.node-icon {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.node-pv .node-icon { color: var(--accent-yellow); }
.node-pcs .node-icon { color: #ffffff; }
.node-bms .node-icon { color: var(--primary); }
.node-load .node-icon { color: var(--accent-blue); }
.node-grid .node-icon { color: var(--accent-blue); }

.node-name {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.node-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

/* SVGs for flow lines background */
.flow-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.flow-path {
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
}

.flow-particle {
    stroke-width: 4;
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 10, 150;
    animation: dash 5s linear infinite;
}

.particle-pv { stroke: var(--accent-yellow); }
.particle-bms { stroke: var(--primary); }
.particle-load { stroke: var(--accent-blue); }
.particle-grid { stroke: var(--accent-blue); }

@keyframes dash {
    to {
        stroke-dashoffset: -160;
    }
}

/* Product Catalog Section */
.products-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: linear-gradient(180deg, rgba(20, 27, 45, 0.6) 0%, rgba(13, 18, 30, 0.8) 100%);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.product-img-holder {
    height: 200px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5rem;
    color: rgba(255,255,255,0.15);
    position: relative;
    border-bottom: 1px solid var(--card-border);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    word-break: keep-all;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
}

.product-features li {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-features i {
    color: var(--primary);
    font-size: 0.8rem;
}

.product-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.product-link:hover {
    gap: 10px;
}

/* Banner CTA */
.banner-section {
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(11, 15, 25, 1) 70%);
    border-top: 1px solid var(--card-border);
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.banner-content h2 {
    font-size: 2.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.banner-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    word-break: keep-all;
}

.banner-content .cta-btn {
    padding: 0.9rem 2.2rem;
    font-size: 1.05rem;
}

/* Footer */
footer {
    background: #070a12;
    border-top: 1px solid var(--card-border);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-about .logo-area {
    position: static;
    margin-bottom: 1rem;
}

.footer-about p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
    max-width: 320px;
    line-height: 1.7;
}

.footer-links h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-contact h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.footer-contact p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.footer-contact i {
    color: var(--primary);
    width: 16px;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.2s;
}

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

/* Contact Form Styles */
.contact-form-container {
    max-width: 600px;
    margin: 2rem auto 0;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: left;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    background: rgba(11, 15, 25, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding-top: 7.5rem;
    }
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .preview-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .preview-text {
        text-align: center;
    }
    .preview-points {
        display: inline-block;
        text-align: left;
    }
}

/* Hamburger Menu Icon */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
    position: absolute;
    right: 2rem;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(11, 15, 25, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--card-border);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1050;
    }
    nav.is-active {
        right: 0;
    }
    nav ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    nav a {
        font-size: 1.2rem;
    }
    .menu-toggle.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero-text h1 {
        font-size: 2.4rem;
    }
}

/* Projects / Cases Section */
.projects-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.project-img-holder {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-bottom: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.2);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-info h3 {
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 0.6rem;
    font-weight: 600;
    line-height: 1.4;
    word-break: keep-all;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 0;
    word-break: keep-all;
}

.project-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(11, 15, 25, 0.85);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.project-card.is-extra {
    display: none;
}

.projects-grid.is-expanded .project-card.is-extra:not(.is-filter-hidden) {
    display: flex;
}

.project-card.is-filter-hidden {
    display: none !important;
}

.projects-grid.is-filtering .project-card.is-extra:not(.is-filter-hidden) {
    display: flex;
}

.projects-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: 0 auto 2.5rem;
    max-width: 900px;
}

.projects-filter-btn {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    padding: 0.55rem 1.1rem;
    border-radius: 24px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.88rem;
    white-space: nowrap;
}

.projects-filter-btn:hover {
    color: #ffffff;
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.08);
}

.projects-filter-btn.is-active {
    color: #ffffff;
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}

.projects-empty {
    display: none;
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.projects-empty.is-visible {
    display: block;
}

.project-img-holder::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover .project-img-holder::after {
    opacity: 1;
}

.projects-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.projects-more-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.projects-more-btn:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
    color: var(--primary);
}

.project-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.project-lightbox-content {
    position: relative;
    max-width: 1100px;
    width: 100%;
    max-height: 90vh;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.project-lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: rgba(11, 15, 25, 0.85);
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.project-lightbox-close:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: var(--primary);
}

.project-lightbox-img-wrap {
    flex: 1;
    min-height: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.project-lightbox-img-wrap img {
    max-width: 100%;
    max-height: 65vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.project-lightbox-info {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--card-border);
}

.project-lightbox-info h3 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-lightbox-info p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
    word-break: keep-all;
}

@media (max-width: 768px) {
    .project-lightbox {
        padding: 1rem;
    }
    .project-lightbox-info {
        padding: 1.2rem;
    }
}

/* Scroll Reveal CSS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Dashboard Detailed Modal CSS */
.node-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1.5rem;
}

.node-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.node-modal-content {
    background: #0d1321;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.node-modal.is-open .node-modal-content {
    transform: scale(1);
}

.node-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.node-modal-close:hover {
    color: #ffffff;
}

.node-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 1rem;
}

.node-modal-header i {
    font-size: 1.8rem;
}

.node-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

.node-data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.node-data-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 0.8rem;
    border-radius: 8px;
}

.node-data-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.node-data-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
}

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

.toast {
    background: rgba(20, 27, 45, 0.95);
    border-left: 4px solid var(--primary);
    border-top: 1px solid var(--card-border);
    border-right: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    max-width: 450px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    border-left-color: #ef4444;
}

.toast-icon {
    font-size: 1.2rem;
    color: var(--primary);
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast-message {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Privacy Checkbox Styles */
.privacy-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: left;
}

.privacy-group input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--primary);
}

.privacy-link {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 0.85rem;
    padding: 0;
}

.privacy-link:hover {
    color: #6ee7b7;
}

/* Privacy policy modal */
.privacy-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1.5rem;
}

.privacy-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.privacy-modal-content {
    background: #0d1321;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.privacy-modal.is-open .privacy-modal-content {
    transform: scale(1);
}

.privacy-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.privacy-modal-close:hover {
    color: #ffffff;
}

.privacy-text-area {
    margin-top: 1rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 1rem;
    max-height: 250px;
    overflow-y: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}
