/*
Theme Name: TGSystem Theme
Theme URI: http://tgsystem.kr
Author: TaeKeon System
Author URI: http://tgsystem.kr
Description: 태건시스템 공식 홈페이지 테마 - AI Vision, Kiosk, Safety System 등 IT 솔루션 전문기업
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tgtheme
Tags: business, corporate, technology, one-column, custom-menu, featured-images
*/

/* ============================================
   TGSystem Theme - Main Stylesheet
   ============================================ */

:root {
    /* Minimal Premium - Black & White + Single Accent */
    --primary: #000000;
    --primary-blue: #0066FF;
    --primary-dark: #0052CC;

    /* Neutrals - Clean grays */
    --dark: #000000;
    --gray-900: #111111;
    --gray-800: #1A1A1A;
    --gray-700: #333333;
    --gray: #666666;
    --gray-light: #999999;
    --gray-200: #E5E5E5;
    --gray-100: #F5F5F5;
    --light: #FAFAFA;
    --white: #FFFFFF;

    /* Single accent color */
    --accent: #0066FF;
    --gradient-blue: linear-gradient(135deg, #0066FF 0%, #0052CC 100%);

    /* Subtle shadows - Apple style */
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06);

    /* Spacing - larger radius for modern feel */
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Animation - subtle and fast */
    --transition: all 0.15s ease;
    --transition-slow: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--white);
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-logo img {
    height: 45px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.main-nav a {
    font-weight: 600;
    font-size: 15px;
    color: var(--gray-dark);
    position: relative;
    padding: 10px 0;
}

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

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

.header-cta {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: -0.01em;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--dark);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--gray-800);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 1px solid var(--gray-200);
}

.btn-outline:hover {
    border-color: var(--dark);
}

.btn-blue {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-blue:hover {
    background: var(--primary-dark);
}

/* Hero buttons */
.hero .btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero .btn-outline:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--dark);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

/* ============================================
   Hero Section - Premium Design
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--dark);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.08) 0%, transparent 60%);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,140,0,0.5), transparent),
        radial-gradient(2px 2px at 50px 160px, rgba(255,215,0,0.3), transparent),
        radial-gradient(2px 2px at 90px 40px, rgba(255,140,0,0.4), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,215,0,0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: sparkle 20s linear infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

@keyframes sparkle {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(255, 140, 0, 0.2);
    border: 1px solid rgba(255, 140, 0, 0.4);
    border-radius: 50px;
    color: #FFD700;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-title-line {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.hero-title-gradient {
    display: block;
    color: var(--white);
    font-weight: 600;
    letter-spacing: -0.03em;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 48px;
    max-width: 480px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    to { left: 100%; }
}

.btn-glow svg {
    margin-left: 8px;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.hero-clients {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.clients-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 500;
}

.clients-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.client-badge {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
}

.hero-visual {
    position: relative;
    text-align: center;
    perspective: 1000px;
}

.hero-image-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(0, 85, 255, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 85, 255, 0.1) 0%,
        transparent 50%,
        rgba(255, 140, 0, 0.1) 100%
    );
    pointer-events: none;
}

.hero-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    animation: float 3s ease-in-out infinite;
    z-index: 10;
}

.hero-card .card-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card .card-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.hero-card-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.hero-card-2 {
    top: 50%;
    right: -5%;
    animation-delay: 0.5s;
}

.hero-card-3 {
    bottom: 15%;
    left: 5%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Stats Bar */
.stats-bar {
    background: var(--white);
    padding: 40px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-bar .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stats-bar .stat-item {
    text-align: center;
    padding: 20px;
    background: transparent;
    box-shadow: none;
}

.stats-bar .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
}

.stat-plus {
    font-size: 2rem;
    color: var(--accent);
}

.stats-bar .stat-label {
    font-size: 0.95rem;
    color: var(--gray);
    margin-top: 8px;
    font-weight: 500;
}

/* ============================================
   Page Header - Unified for all subpages
   ============================================ */

.page-header {
    padding: 160px 0 80px;
    background: #111;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.page-header p {
    color: rgba(255,255,255,0.6);
    max-width: 600px;
    margin: 0 auto;
}

.page-header .section-label {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
}

/* ============================================
   Sections Common
   ============================================ */

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-label {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(0, 85, 255, 0.08);
    color: var(--primary-blue);
    font-size: 12px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ============================================
   Solutions Section
   ============================================ */

.solutions {
    background: var(--white);
}

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

.solution-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.solution-card:hover {
    border-color: var(--dark);
}

.solution-icon {
    width: 48px;
    height: 48px;
    background: var(--gray-100);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
}

.solution-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--dark);
    stroke-width: 1.5;
}

.solution-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.solution-card p {
    color: var(--gray);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.solution-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.solution-link:hover {
    gap: 12px;
}

/* ============================================
   Portfolio Section
   ============================================ */

.portfolio {
    background: var(--light);
}

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

.portfolio-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.portfolio-card:hover {
    border-color: var(--dark);
}

.portfolio-card.portfolio-featured {
    border: 1px solid var(--dark);
}

.portfolio-image {
    position: relative;
    height: 160px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 2;
}

.portfolio-tag {
    padding: 4px 10px;
    background: var(--dark);
    color: white;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.portfolio-icon-large {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.portfolio-icon-large svg {
    width: 50px;
    height: 50px;
    fill: rgba(255, 255, 255, 0.9);
}

.portfolio-content {
    padding: 30px;
}

.portfolio-client {
    color: var(--primary-blue);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.portfolio-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.portfolio-content > p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.portfolio-features {
    list-style: none;
    margin-bottom: 20px;
}

.portfolio-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--gray-dark);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.portfolio-features li:last-child {
    border-bottom: none;
}

.portfolio-features svg {
    width: 18px;
    height: 18px;
    fill: var(--accent);
    flex-shrink: 0;
}

.portfolio-specs {
    display: flex;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.portfolio-specs span {
    font-size: 0.85rem;
    color: var(--gray);
}

.portfolio-specs strong {
    color: var(--primary-blue);
}

.portfolio-cta {
    text-align: center;
    margin-top: 50px;
}

/* ============================================
   About Section
   ============================================ */

.about {
    background: var(--white);
}

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

.about-visual {
    position: relative;
}

.about-visual-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow:
        0 30px 80px rgba(0, 85, 255, 0.25),
        0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-visual-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0a1a2a 100%);
}

.about-visual-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(0, 85, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 140, 0, 0.2) 0%, transparent 40%);
}

.about-visual-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.about-visual-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
}

.about-logo-area {
    text-align: center;
    margin-bottom: 30px;
}

.about-logo-area .tg-logo {
    display: block;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #0055FF, #00AAFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.05em;
}

.about-logo-area .tg-name {
    display: block;
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.3em;
    margin-top: -5px;
}

.about-stats-mini {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

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

.stat-mini-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF8C00;
}

.stat-mini-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-tech-icons {
    display: flex;
    gap: 15px;
}

.about-tech-icons svg {
    width: 32px;
    height: 32px;
    stroke: rgba(255, 255, 255, 0.4);
    transition: all 0.3s;
}

.about-tech-icons svg:hover {
    stroke: #0055FF;
    transform: scale(1.1);
}

.about-floating-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #FF8C00, #FFD700);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.4);
    z-index: 10;
}

.about-floating-badge .badge-year {
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
}

.about-floating-badge .badge-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a0a00;
}

/* Legacy support */
.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-image-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow);
    z-index: 2;
}

.badge-year {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-dark);
    font-weight: 500;
}

.highlight-item svg {
    width: 22px;
    height: 22px;
    fill: var(--accent);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 25px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 5px;
}

/* ============================================
   Contact Section
   ============================================ */

.contact {
    background: var(--dark);
    color: var(--white);
}

.contact .section-header h2 {
    color: var(--white);
}

.contact .section-header p {
    color: var(--gray-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

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

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

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.contact-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--gray-light);
    font-size: 0.95rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: var(--radius);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    background: #0a0a0a;
    color: var(--gray-light);
    padding: 60px 0 30px;
}

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

.footer-brand img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-links h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .hero-content,
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

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

    .hero-card {
        display: none;
    }

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

@media (max-width: 768px) {
    .main-nav,
    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-title-line,
    .hero-title-gradient {
        font-size: 2rem;
    }

    .hero-badge {
        font-size: 11px;
        padding: 6px 14px;
    }

    .hero-clients {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-visual {
        display: none;
    }

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

    .section-header h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 60px 0;
    }

    .stats-bar .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

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

    .about-stats {
        grid-template-columns: 1fr;
    }

    .about-image-badge {
        width: 80px;
        height: 80px;
        top: -10px;
        right: -10px;
    }

    .badge-year {
        font-size: 1.4rem;
    }

    .portfolio-content {
        padding: 20px;
    }

    .portfolio-content h3 {
        font-size: 1.2rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */

.solution-card,
.portfolio-card,
.value-card,
.area-card,
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.solution-card.revealed,
.portfolio-card.revealed,
.value-card.revealed,
.area-card.revealed,
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for cards */
.solutions-grid .solution-card:nth-child(1) { transition-delay: 0s; }
.solutions-grid .solution-card:nth-child(2) { transition-delay: 0.1s; }
.solutions-grid .solution-card:nth-child(3) { transition-delay: 0.2s; }
.solutions-grid .solution-card:nth-child(4) { transition-delay: 0.3s; }
.solutions-grid .solution-card:nth-child(5) { transition-delay: 0.4s; }
.solutions-grid .solution-card:nth-child(6) { transition-delay: 0.5s; }

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 85, 255, 0.3);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* Page loaded state */
body.loaded .hero-content {
    animation: fadeInUp 0.8s ease forwards;
}

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