/* ========================================
   GRACETORY - Home Page Styles
   ======================================== */

/* ========== Hero Section ========== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 120px 40px 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(26, 26, 46, 0.7) 50%, rgba(26, 26, 46, 0.5) 100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/img/hero.png') center center / cover no-repeat;
    z-index: 0;
}

.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: fadeInUp 1s ease forwards;
}

.hero-visual {
    position: relative;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 169, 95, 0.15);
    border: 1px solid rgba(0, 169, 95, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero-tag span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-light);
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-title .accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* Hero Visual - Code Block */
.code-window {
    background: rgba(26, 26, 46, 0.9);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-header {
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red { background: #FF5F56; }
.code-dot.yellow { background: #FFBD2E; }
.code-dot.green { background: #27CA40; }

.code-body {
    padding: 24px;
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
}

.code-line {
    display: flex;
    gap: 16px;
}

.line-number {
    color: rgba(255, 255, 255, 0.2);
    user-select: none;
    min-width: 24px;
}

.code-content {
    color: rgba(255, 255, 255, 0.8);
}

.code-content .keyword { color: #C792EA; }
.code-content .function { color: #82AAFF; }
.code-content .string { color: #C3E88D; }
.code-content .comment { color: rgba(255, 255, 255, 0.3); }
.code-content .variable { color: #F78C6C; }

/* Floating Elements */
.floating-badge {
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 40px var(--shadow-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 3s ease-in-out infinite;
}

.floating-badge.badge-1 {
    top: -20px;
    right: 40px;
    animation-delay: 0s;
}

.floating-badge.badge-2 {
    bottom: 40px;
    left: -40px;
    animation-delay: 1s;
}
/* ========== Stats Section ========== */
.stats {
    background: var(--dark);
    padding: 60px 24px;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(0, 169, 95, 0.1) 1px, transparent 0);
    background-size: 40px 40px;
}

.stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

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

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-number .accent {
    color: var(--primary-light);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ========== Services Section ========== */
.services {
    padding: 120px 24px;
    background: var(--bg-gray);
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-header .section-desc {
    margin: 0 auto;
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.service-card-img .placeholder-img {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.service-card-body {
    padding: 32px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 169, 95, 0.03) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 60px var(--shadow);
    transform: translateY(-5px);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.service-tag {
    background: var(--bg-gray);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
}

/* ========== About Section ========== */
.about {
    padding: 120px 24px;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.about-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 40px 40px;
}

.about-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-content {
    color: white;
}

.about-content .section-tag {
    color: var(--primary-light);
}

.about-content .section-title {
    color: white;
}

.about-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.about-features {
    display: grid;
    gap: 20px;
}

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

.about-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 169, 95, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-feature-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-light);
}

.about-feature h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.about-feature p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.about-visual {
    position: relative;
}

.about-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.company-info {
    display: grid;
    gap: 24px;
}

.company-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.company-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.company-label {
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 500;
}

.company-value {
    color: white;
    font-size: 0.95rem;
}

/* ========== News Section ========== */
.news {
    padding: 120px 24px;
    background: var(--bg-gray);
}

.news-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.news-list {
    display: grid;
    gap: 16px;
}

.news-item {
    background: white;
    border-radius: 12px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.news-item:hover {
    box-shadow: 0 10px 40px var(--shadow-dark);
    transform: translateX(8px);
    border-color: var(--primary);
}

.news-date {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: var(--text-light);
    flex-shrink: 0;
}

.news-category {
    background: rgba(0, 169, 95, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    flex-shrink: 0;
}

.news-title {
    flex: 1;
    font-weight: 500;
}

.news-arrow {
    color: var(--primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.news-item:hover .news-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 600px;
        margin: 0 auto;
    }

    .hero-desc {
        margin: 0 auto 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

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

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

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

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

@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.2rem;
    }

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

    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 1.8rem;
    }
}
