/*
Theme Name: Cleverplant
Theme URI: https://sapiensflux.com/cleverplant/
Author: Antigravity
Description: A custom premium WordPress theme for Cleverplant - Smart Plant Care Solutions.
Version: 1.2
License: GNU General Public License v2 or later
Text Domain: cleverplant
*/

:root {
    /* High-Tech Palette */
    --primary-color: #70A9A1;
    /* Soft Teal */
    --secondary-color: #40798C;
    /* Muted Slate */
    --accent-color: #8CDEDC;
    /* Electric Cyan Highlight */

    --text-main: #F0F4EF;
    /* Off White */
    --text-muted: #B3C5C3;
    /* Muted Teal-Grey */

    --background-dark: #0B1615;
    /* Near Black Teal */
    --background-card: rgba(26, 45, 43, 0.6);
    /* Glassy Dark Teal */

    --font-heading: 'Outfit', 'Pretendard', sans-serif;
    --font-body: 'Inter', 'Pretendard', sans-serif;

    --transition-speed: 0.3s;
    --shadow-glow: 0 0 40px rgba(112, 169, 161, 0.15);
    --glass-border: 1px solid rgba(112, 169, 161, 0.1);
}

/* Korean Font Override */
body.lang-ko,
body.lang-ko h1,
body.lang-ko h2,
body.lang-ko h3,
body.lang-ko h4,
body.lang-ko h5,
body.lang-ko h6,
body.lang-ko p,
body.lang-ko a,
body.lang-ko span {
    font-family: 'Pretendard', var(--font-body) !important;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--background-dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    /* Grid Pattern Overlay */
    background-image:
        linear-gradient(rgba(112, 169, 161, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(112, 169, 161, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-attachment: fixed;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind everything */
    pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: white;
}

h1 {
    font-size: 4rem;
    letter-spacing: -0.04em;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: 1300px;
    /* Wider for tech look */
    margin: 0 auto;
    padding: 0 2rem;
}

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

.mb-2 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: var(--glass-border);
    border-radius: 2px;
    /* Tech square */
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: rgba(112, 169, 161, 0.2);
    color: var(--accent-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(112, 169, 161, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 0 40px rgba(112, 169, 161, 0.4);
    text-shadow: 0 0 10px var(--accent-color);
}

.btn-outline {
    background: transparent;
    color: var(--text-muted);
}

.btn-outline:hover {
    color: white;
    border-color: white;
}

.section-padding {
    padding: 8rem 0;
}

.bg-dim {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Header & Navigation */
.site-header {
    padding: 2rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(11, 22, 21, 0.9) 0%, rgba(11, 22, 21, 0) 100%);
    backdrop-filter: blur(2px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lang-switcher {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.lang-switcher a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.lang-switcher a:hover,
.lang-switcher a.active {
    color: var(--primary-color);
}

.lang-switcher .sep {
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* Logo */
.logo-link {
    display: block;
    line-height: 0;
}

.logo-img {
    height: 40px;
    width: auto;
    opacity: 0.9;
}

.logo-link:hover .logo-img {
    opacity: 1;
    transform: scale(1.05);
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.main-navigation a {
    font-weight: 500;
    font-family: var(--font-heading);
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.main-navigation a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(140, 222, 220, 0.5);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 4rem;
    overflow: hidden; /* Ensure background doesn't spill over */
}

/* Moving Background using pseudo-element */
.hero-section::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: linear-gradient(rgba(11, 22, 21, 0.7), rgba(11, 22, 21, 0.7)), url('assets/images/hero_infrastructure.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: panZoom 30s infinite alternate linear;
}

@keyframes panZoom {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.1) translate(-2%, -2%);
    }
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    background: rgba(11, 22, 21, 0.4);
    padding: 3rem;
    border: var(--glass-border);
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 5rem;
    line-height: 0.95;
    margin-bottom: 2rem;
    background: linear-gradient(to bottom right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 600px;
    border-left: 2px solid var(--primary-color);
    padding-left: 1.5rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--background-card);
    padding: 3rem;
    border: var(--glass-border);
    transition: transform var(--transition-speed);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.feature-card:hover::before {
    transform: translateX(100%);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(140, 222, 220, 0.3);
}

/* About Section */
.about-section {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    height: 500px;
    border: var(--glass-border);
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image::after {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    bottom: -10px;
    left: -10px;
    border: 1px solid rgba(112, 169, 161, 0.3);
    z-index: -1;
}

/* Footer */
.site-footer {
    background-color: #050a09;
    color: var(--text-muted);
    padding: 1.5rem 0 1rem;
    border-top: var(--glass-border);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    white-space: nowrap;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: white;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-col a {
    text-decoration: none;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.4;
}

/* Mobile */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-section {
        padding-top: 8rem;
        text-align: center;
        display: block;
    }

    .hero-content {
        margin: 0 auto;
        width: 100%;
        border: none;
        background: transparent;
        padding: 0;
    }

    .hero-subtitle {
        margin: 0 auto 3rem;
        border-left: none;
        padding-left: 0;
    }

    .about-section {
        flex-direction: column-reverse;
    }

    .about-image {
        width: 100%;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        z-index: 1100;
    }

    .mobile-toggle span {
        width: 30px;
        height: 2px;
        background: white;
        transition: 0.3s;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #0B1615;
        padding: 8rem 2rem;
        transition: 0.4s ease;
        z-index: 1050;
    }

    .main-navigation.active {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 2rem;
    }

    .main-navigation a {
        font-size: 1.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Text Highlighting */
.text-highlight {
    color: var(--primary-color);
    font-weight: 700;
}/* Single Post Styling */
.blog-single {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(11, 22, 21, 0.85);
    backdrop-filter: blur(20px);
    padding: 4rem;
    border: var(--glass-border);
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.entry-title {
    font-size: 3rem; /* Large title */
    line-height: 1.2;
    margin-bottom: 1rem;
    color: white;
}

.entry-meta {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.entry-content {
    font-size: 1.15rem; /* Larger body text */
    line-height: 1.8; /* Relaxed line height */
    color: #e0e6e5; /* Readable off-white */
}

.entry-content p {
    margin-bottom: 1.8rem;
}

.entry-content h2 {
    font-size: 2.2rem;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid rgba(112, 169, 161, 0.2);
    padding-bottom: 0.5rem;
}

.entry-content h3 {
    font-size: 1.6rem;
    margin-top: 3rem;
    margin-bottom: 1.2rem;
    color: var(--accent-color);
}

.entry-content h4 {
    font-size: 1.3rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.entry-content ul, .entry-content ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.entry-content li {
    margin-bottom: 0.8rem;
}

.entry-content strong {
    color: white;
    font-weight: 700;
}

.entry-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 1rem 0 1rem 2rem;
    margin: 2.5rem 0;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-muted);
    background: rgba(140, 222, 220, 0.05);
}

.entry-content img {
    border-radius: 4px;
    margin: 3rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
}

.post-navigation {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 3rem;
    margin-top: 5rem;
    display: flex;
    justify-content: space-between;
}

.post-navigation a {
    color: var(--text-muted);
    font-weight: 600;
    font-family: var(--font-heading);
}

.post-navigation a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .entry-title { font-size: 2.2rem; }
    .entry-content { font-size: 1.05rem; }
    .entry-content h2 { font-size: 1.8rem; }
}
