@charset "utf-8";
/* ============================================
   Nassen System - Tech Theme CSS
   Dark futuristic design with full responsive
   ============================================ */

:root {
    --primary: #2196f3;
    --primary-dim: rgba(33,150,243,0.12);
    --secondary: #00bcd4;
    --accent: #4fc3f7;
    --bg-dark: #f0f4f8;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fbff;
    --text-main: #1e293b;
    --text-dim: #64748b;
    --border: rgba(33,150,243,0.15);
    --glow: 0 4px 15px rgba(33,150,243,0.12);
    --glow-strong: 0 8px 30px rgba(33,150,243,0.2);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
    --shadow-card: 0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-card-hover: 0 12px 40px rgba(33,150,243,0.15), 0 4px 12px rgba(0,0,0,0.06);
}

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

/* Hide scrollbar */
html {
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
html::-webkit-scrollbar { display: none; /* Chrome/Safari/Opera */ }

body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    font-size: 15px;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--secondary); text-shadow: none; }

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

/* ========== HEADER ========== */
#header {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--primary);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
}
.logo img {
    width: 45px; height: 45px;
    margin-right: 12px;
    border-radius: 8px;
    padding: 3px;
}
.logo:hover { color: var(--primary); }

/* Mobile menu button */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: 24px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

/* ========== NAVIGATION ========== */
#topnav {
    display: flex;
    list-style: none;
    gap: 0;
}
#topnav li a {
    display: block;
    padding: 28px 20px;
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s ease;
}
#topnav li a span {
    display: block;
    font-size: 15px;
    color: var(--text-main);
    transition: color 0.3s;
}
#topnav li a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: var(--glow);
}
#topnav li a:hover, #topnav li.active a {
    color: var(--primary);
}
#topnav li a:hover span, #topnav li.active a span {
    color: var(--primary);
}
#topnav li a:hover::after, #topnav li.active a::after {
    width: 80%;
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(160deg, #dbeafe 0%, #eff6ff 30%, #f0f4f8 50%, #ecfdf5 70%, #e0f2fe 100%);
    overflow: hidden;
    padding: 100px 20px;
    box-shadow: inset 0 -40px 80px rgba(0,0,0,0.03);
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(33,150,243,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(0,188,212,0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 20%, rgba(79,195,247,0.08) 0%, transparent 40%);
    animation: heroGlow 10s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    100% { transform: translate(-2%, 3%) scale(1.05); opacity: 1; }
}
/* Decorative floating orbs */
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    top: 15%; right: 10%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(33,150,243,0.06) 0%, transparent 70%);
    animation: orbFloat 12s ease-in-out infinite alternate;
    z-index: 1;
    pointer-events: none;
}
@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 20px) scale(1.15); }
}
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
}
.hero h1 {
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(135deg, #1565c0 0%, var(--primary) 40%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    line-height: 1.25;
    letter-spacing: -0.5px;
    filter: drop-shadow(0 2px 4px rgba(33,150,243,0.1));
}
.hero p {
    font-size: 22px;
    color: var(--text-dim);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero .btn { margin-top: 10px; padding: 16px 42px; font-size: 16px; }
.hero .btn-outline { padding: 15px 40px; font-size: 16px; }

/* Grid lines decoration */
.grid-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(33,150,243,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(33,150,243,0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 1;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ========== SECTION TITLE ========== */
.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: var(--text-main);
}
.section-title::after {
    content: '';
    display: block;
    width: 60px; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 15px auto 0;
    border-radius: 2px;
    box-shadow: var(--glow);
}

/* ========== CARDS ========== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 35px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.tech-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}
.tech-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(33,150,243,0.3);
    box-shadow: var(--shadow-card-hover);
    background: var(--bg-card-hover);
}
.tech-card:hover::before { opacity: 1; }

.tech-card h3 {
    font-size: 22px;
    color: var(--text-main);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tech-card h3 .icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary-dim), rgba(0,188,212,0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(33,150,243,0.1);
}
.tech-card p {
    color: var(--text-dim);
    margin-bottom: 20px;
    line-height: 1.8;
}
.tech-card img.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-shadow: none;
    box-shadow: 0 4px 15px rgba(33,150,243,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(33,150,243,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
    color: #fff !important;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary) !important;
}
.btn-outline:hover {
    background: var(--primary-dim);
    color: var(--primary) !important;
}

/* ========== NEWS ========== */
.news-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.news-item:hover {
    border-left-color: var(--secondary);
    box-shadow: var(--shadow-md);
    transform: translateX(6px) translateY(-2px);
}
.news-date {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.news-title {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 10px;
}
.news-title a { color: var(--text-main); }
.news-title a:hover { color: var(--primary); text-shadow: none; }
.news-summary { color: var(--text-dim); line-height: 1.8; }

/* ========== TABLE ========== */
.tech-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.tech-table th, .tech-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.tech-table th {
    background: rgba(33,150,243,0.08);
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
    width: 160px;
}
.tech-table td { color: var(--text-dim); }
.tech-table tr:last-child td, .tech-table tr:last-child th { border-bottom: none; }
.tech-table tr:hover td { background: rgba(33,150,243,0.04); }

/* ========== CONTENT ARTICLE ========== */
.article-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-card);
}
.article-content h3 {
    font-size: 24px;
    color: var(--text-main);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}
.article-content h4 {
    font-size: 18px;
    color: var(--primary);
    margin: 25px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.article-content h4::before {
    content: '▸';
    color: var(--accent);
}
.article-content p {
    color: var(--text-dim);
    margin-bottom: 15px;
    line-height: 1.9;
}
.article-content ul {
    list-style: none;
    margin: 15px 0;
}
.article-content ul li {
    padding: 8px 0 8px 20px;
    position: relative;
    color: var(--text-dim);
    line-height: 1.8;
}
.article-content ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 18px;
}
.article-content img.content-img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin: 20px 0;
}

/* ========== SIDEBAR (for service/greeting sub-pages) ========== */
.page-with-sidebar {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
.sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
}
.sidebar h3 {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.sidebar-nav {
    flex: 1;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-dim);
    border-radius: 8px;
    margin-bottom: 5px;
    font-size: 14px;
    transition: all 0.3s;
}
.sidebar-nav a img {
    width: 32px; height: 32px;
    border-radius: 6px;
    object-fit: cover;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    background: var(--primary-dim);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(33,150,243,0.08);
    transform: translateX(3px);
}
.sidebar-banner {
    margin-top: 20px;
    display: block;
    text-align: center;
}
.sidebar-banner img {
    border-radius: 8px;
    border: 1px solid var(--border);
    max-width: 100%;
}

/* ========== CONTACT BOX ========== */
.contact-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
}
.contact-box .mail-icon {
    font-size: 48px;
    margin-bottom: 20px;
}
.contact-box a.mail-link {
    font-size: 22px;
    color: var(--primary);
    font-weight: 600;
}

/* ========== MAP ========== */
.map-container {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin: 20px 0;
    box-shadow: var(--shadow-md);
}
.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* ========== FOOTER ========== */
#footer {
    background: linear-gradient(180deg, #1e293b 0%, #162032 100%);
    border-top: 1px solid rgba(33,150,243,0.15);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: 50px 40px 30px;
    margin-top: 60px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}
.footerlogo p {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 5px;
}
.footerlogo p:first-child {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.footnav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
}
.footnav a {
    color: #94a3b8;
    font-size: 13px;
}
.footnav a:hover { color: #4fc3f7; text-shadow: none; }

address {
    text-align: center;
    padding: 20px;
    color: #64748b;
    font-size: 12px;
    font-style: normal;
    border-top: 1px solid rgba(33,150,243,0.1);
    margin-top: 30px;
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .page-with-sidebar {
        grid-template-columns: 220px 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* Header */
    #header { padding: 0 20px; height: 65px; }
    .logo { font-size: 16px; }
    .logo img { width: 35px; height: 35px; }
    
    /* Mobile Menu */
    .menu-toggle { display: block; }
    #topnav {
        display: none;
        position: absolute;
        top: 65px; left: 0; right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        border-bottom: 1px solid var(--border);
        padding: 10px 0;
    }
    #topnav.open { display: flex; }
    #topnav li a { padding: 15px 25px; }
    #topnav li a::after { display: none; }
    
    /* Hero */
    .hero { min-height: 400px; padding: 60px 20px; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 17px; margin-bottom: 30px; }
    .hero .btn { padding: 13px 30px; font-size: 14px; }
    
    /* Container */
    .container { padding: 40px 15px; }
    
    /* Section Title */
    .section-title { font-size: 24px; margin-bottom: 30px; }
    
    /* Cards */
    .card-grid { grid-template-columns: 1fr; gap: 20px; }
    .tech-card { padding: 25px; }
    
    /* Sidebar layout */
    .page-with-sidebar {
        grid-template-columns: 1fr;
        padding: 20px 15px;
    }
    .sidebar {
        position: static;
        margin-bottom: 20px;
    }
    .sidebar-nav { display: flex; flex-wrap: wrap; gap: 5px; }
    .sidebar-nav a { flex: 1; min-width: 140px; font-size: 13px; padding: 10px; }
    
    /* Table */
    .tech-table th { width: 100px; font-size: 13px; }
    .tech-table th, .tech-table td { padding: 10px 12px; font-size: 13px; }
    
    /* Article */
    .article-content { padding: 25px; }
    .article-content h3 { font-size: 20px; }
    
    /* Footer */
    #footer { padding: 30px 20px 20px; }
    .footer-content { flex-direction: column; gap: 20px; }
    .footnav { gap: 12px; }
    
    /* Map */
    .map-container iframe { height: 280px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 26px; }
    .hero p { font-size: 15px; }
    .hero .btn { padding: 12px 26px; font-size: 13px; }
    .btn { padding: 10px 24px; font-size: 13px; }
    .tech-card h3 { font-size: 18px; }
    .section-title { font-size: 22px; }
    .news-title { font-size: 17px; }
    .sidebar-nav a { min-width: 100%; }
}

/* ============================================
   TECH ANIMATIONS
   ============================================ */

/* --- Scroll Reveal Animation Classes --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for card grids */
.card-grid .tech-card:nth-child(1) { transition-delay: 0s; }
.card-grid .tech-card:nth-child(2) { transition-delay: 0.15s; }
.card-grid .tech-card:nth-child(3) { transition-delay: 0.3s; }
.card-grid .tech-card:nth-child(4) { transition-delay: 0.45s; }

.news-item:nth-child(1) { transition-delay: 0s; }
.news-item:nth-child(2) { transition-delay: 0.1s; }
.news-item:nth-child(3) { transition-delay: 0.2s; }

/* --- Hero Animations --- */
.hero-content h1 {
    animation: heroTitleIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}
.hero-content p {
    animation: heroTitleIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
    transform: translateY(30px);
}
.hero-content .btn {
    animation: heroTitleIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    opacity: 0;
    transform: translateY(20px);
}
@keyframes heroTitleIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Animated grid background */
.grid-bg {
    animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

/* Floating particles in hero */
.hero::after {
    content: '';
    position: absolute;
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
    top: 30%; left: 15%;
    box-shadow:
        120px 80px 0 rgba(0,188,212,0.5),
        300px -40px 0 rgba(33,150,243,0.4),
        500px 120px 0 rgba(79,195,247,0.3),
        700px -20px 0 rgba(0,188,212,0.4),
        200px 200px 0 rgba(33,150,243,0.3),
        600px 180px 0 rgba(79,195,247,0.4),
        50px 150px 0 rgba(0,188,212,0.3),
        400px 60px 0 rgba(33,150,243,0.5);
    animation: particleFloat 12s ease-in-out infinite alternate;
    z-index: 1;
    pointer-events: none;
}
@keyframes particleFloat {
    0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(30px, -20px) scale(1.5); opacity: 1; }
    100% { transform: translate(-20px, 15px) scale(1); opacity: 0.6; }
}

/* --- Card Scan Line Effect --- */
.tech-card::after {
    content: '';
    position: absolute;
    top: -100%; left: 0;
    width: 100%; height: 50%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(33,150,243,0.04) 50%,
        transparent 100%
    );
    transition: top 0.6s ease;
    pointer-events: none;
}
.tech-card:hover::after {
    top: 100%;
}

/* --- Glowing Border Pulse on Cards --- */
.tech-card {
    animation: cardBorderPulse 4s ease-in-out infinite;
}
@keyframes cardBorderPulse {
    0%, 100% { border-color: var(--border); }
    50% { border-color: rgba(33,150,243,0.35); }
}
.tech-card:hover {
    animation: none;
}

/* --- Button Ripple Glow --- */
.btn {
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}
.btn:hover::before {
    width: 300px; height: 300px;
}

/* --- Section Title Underline Animation --- */
.section-title::after {
    animation: titleLineGlow 3s ease-in-out infinite alternate;
}
@keyframes titleLineGlow {
    0% { box-shadow: 0 0 10px rgba(33,150,243,0.3); width: 60px; }
    100% { box-shadow: 0 0 25px rgba(33,150,243,0.5); width: 100px; }
}

/* --- News Item Slide-In Glow --- */
.news-item {
    position: relative;
    overflow: hidden;
}
.news-item::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(33,150,243,0.05),
        transparent
    );
    transition: left 0.6s ease;
    pointer-events: none;
}
.news-item:hover::before {
    left: 100%;
}

/* --- Header Logo Spin on Hover --- */
.logo img {
    transition: transform 0.5s ease;
}
.logo:hover img {
    transform: rotate(360deg);
}

/* --- Sidebar Nav Active Indicator --- */
.sidebar-nav a.active {
    position: relative;
}
.sidebar-nav a.active::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 3px; height: 60%;
    background: var(--primary);
    transform: translateY(-50%);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 8px var(--primary);
    animation: sideIndicator 2s ease-in-out infinite alternate;
}
@keyframes sideIndicator {
    0% { box-shadow: 0 0 5px var(--primary); }
    100% { box-shadow: 0 0 15px var(--primary); }
}

/* --- Table Row Highlight Sweep --- */
.tech-table tr {
    position: relative;
    overflow: hidden;
}
.tech-table tr::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(33,150,243,0.06), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}
.tech-table tr:hover::after {
    left: 100%;
}

/* --- Contact Box Breathing Glow --- */
.contact-box {
    animation: contactGlow 4s ease-in-out infinite alternate;
}
@keyframes contactGlow {
    0% { box-shadow: 0 0 10px rgba(33,150,243,0.1); }
    100% { box-shadow: 0 0 25px rgba(33,150,243,0.2), inset 0 0 15px rgba(33,150,243,0.05); }
}

/* --- Mail Icon Bounce --- */
.mail-icon {
    animation: mailBounce 2s ease-in-out infinite;
}
@keyframes mailBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* --- Footer Top Border Scan --- */
#footer {
    position: relative;
    overflow: hidden;
}
#footer::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: footerScan 6s linear infinite;
}
@keyframes footerScan {
    0% { left: -50%; }
    100% { left: 100%; }
}

/* --- Typing Cursor Effect for Hero (optional class) --- */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--primary);
    margin-left: 2px;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Data Stream Decoration Lines --- */
.article-content h3 {
    position: relative;
}
.article-content h3::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 0; height: 1px;
    background: linear-gradient(90deg, var(--primary), transparent);
    animation: lineExpand 2s ease forwards;
}
@keyframes lineExpand {
    to { width: 100%; }
}

/* --- Number Counter Style (for stats if needed) --- */
.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Reduce motion for accessibility --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1;
        transform: none;
    }
}
