/* 
 * Acebay Security - Proposal Styles
 * Modern, Clean, Responsive
 */

:root {
    --primary-color: #0056b3;
    --primary-gradient: linear-gradient(135deg, #0056b3 0%, #0088cc 100%);
    /* Professional Blue Gradient */
    --secondary-color: #2c3e50;
    --secondary-gradient: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%);
    /* Dark Slate Gradient */
    --accent-color: #e74c3c;
    --accent-gradient: linear-gradient(135deg, #e74c3c 0%, #f39c12 100%);
    /* Alert/Action Red Gradient */
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --footer-bg: #1a1a1a;

    --font-main: 'Noto Sans KR', sans-serif;

    --max-width: 1400px;
    /* Increased from 1200px to allow wider cards */
    --header-height: 80px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.5rem;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 30px;
}

.section {
    padding: 82px 0;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 50px;
    /* Pillow shape for modern look */
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
    background: linear-gradient(135deg, #004494 0%, #0077b3 100%);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--text-color);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    /* Initial transparent */
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    /* Slightly more opaque */
    box-shadow: none;
    /* Removed shadow to eliminate 'step' line */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Very subtle line instead */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 40px;
    transition: filter 0.3s ease;
}

/* Default Logo (Smart White Filter) */
/* invert(1): Blue->Yellow, White->Black, Black->White 
   grayscale(1): Yellow->Light Grey, Black->Black, White->White
   brightness(200%): Light Grey->White
   Result: White Cloud, Black AB, White Text */
header:not(.scrolled) .logo img {
    filter: invert(1) grayscale(1) brightness(200%);
}

/* Scrolled Logo (Original Colors) */
header.scrolled .logo img {
    filter: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-since {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 10px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

header.scrolled .logo-since {
    color: var(--secondary-color);
    border-color: rgba(0, 0, 0, 0.1);
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

/* Default Nav Links (White on Dark Hero) */
.nav-menu li a {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    /* Lighter for visibility */
    transition: color 0.3s;
}

.nav-menu li a:hover {
    color: #ffd700;
    /* Gold for hover */
}

/* Scrolled Nav Links (Dark on White Header) */
header.scrolled .nav-menu li a {
    color: var(--secondary-color);
}

header.scrolled .nav-menu li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    /* Tech Background: Grid + Vignette */
    background-color: #0b1c3c;
    background-image:
        /* Vignette (Depth) */
        radial-gradient(circle at center, transparent 0%, rgba(5, 16, 40, 0.8) 90%),
        /* Grid Lines */
        linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);

    background-size: cover, 40px 40px, 40px 40px;
    background-position: center center;
    background-attachment: fixed;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 0;
}

#pricing,
#contact {
    min-height: 82vh;
    /* Restored to 100vh to validly scroll to top */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Solutions / Features */
.services {
    background-color: var(--light-bg);
}

/* Force wider container specifically for this section to widen cards */
.services .container {
    max-width: 1150px;
    /* Reduced to ~15% less than 1320px */
    width: 70%;
    /* Reduced from 85% */
    padding: 0 15px;
    /* Minimal padding */
}

/* Allow text to be on one line */
.services .section-intro {
    max-width: 1000px;
    /* Increased from default 700px to prevent wrapping */
    width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    /* Further reduced to widen cards */
    row-gap: 10px;
    /* Tighter vertical spacing */
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--white);
    padding: 20px 15px 10px;
    /* Reduced vertical padding */
    /* Reduced padding from 40px 30px */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 5px solid transparent;
    height: 100%;
    /* Ensure uniform height if grid allows */
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    /* Slightly reduced lift */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    /* Slightly smaller icon */
    color: var(--primary-color);
    margin-bottom: 15px;
    /* Reduced margin */
}

.service-card h3 {
    margin-bottom: 10px;
    /* Reduced margin */
    font-size: 1.2rem;
    /* Adjusted for compactness */
}

.service-card p {
    font-size: 0.9rem;
    /* Slightly smaller text */
    line-height: 1.5;
}

/* Pricing / Contact CTA */
.cta-section {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: #999;
    padding: 50px 0 20px;
    text-align: center;
}

footer p {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        /* simple mobile hide for now, needs hamburger if strictly required, but keeping simple for proposal */
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Pricing Specifics */
.section-intro {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


.pricing-card {
    padding-bottom: 5px !important;
}

.pricing-card h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.pricing-divider {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #eee;
}

.pricing-list {
    text-align: left;
    margin-bottom: 30px;
    font-size: 0.95rem;
    padding-left: 0;
}

.pricing-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.pricing-list li i {
    color: var(--accent-color);
    margin-right: 10px;
    min-width: 20px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

/* Hero delays */
.hero-content h1 {
    animation-delay: 0.2s;
}

.hero-content p {
    animation-delay: 0.4s;
}

.hero-content .btn {
    animation-delay: 0.6s;
}

/* Service Card delays */
.service-card {
    opacity: 0;
    /* Default hidden for animation */
    animation: fadeInUp 0.8s ease-out forwards;
}

.services-grid .service-card:nth-child(1) {
    animation-delay: 0.2s;
}

.services-grid .service-card:nth-child(2) {
    animation-delay: 0.4s;
}

.services-grid .service-card:nth-child(3) {
    animation-delay: 0.6s;
}

.services-grid .service-card:nth-child(4) {
    animation-delay: 0.8s;
}

/* Featured Product Section */
.featured-product {
    background: linear-gradient(to right, #f8f9fa 50%, #ffffff 50%);
    /* Split bg effect */
    padding: 100px 0;
}

.product-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    /* Increased gap for better separation */
}

.product-layout>div {
    flex: 1;
    /* Force equal width */
}

.product-image {
    text-align: center;
    /* Center the image in its column */
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image img {
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: perspective(1000px) rotateY(5deg);
    transition: transform 0.5s ease;
    max-width: 100%;
}

.product-image img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.product-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    background: var(--accent-gradient);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    display: inline-block;
}

.feature-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.feature-group h4 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.feature-group ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
    color: #555;
    list-style: none;
}

.feature-group ul li::before {
    content: '\f00c';
    /* FontAwesome check */
    font-family: 'FontAwesome';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: normal;
}

.command-box {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-family: monospace;
}

.command-box h5 {
    color: #f1c40f;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.command-box code {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 5px;
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .featured-product {
        background: #fff;
    }

    .product-layout {
        flex-direction: column;
    }

    .product-image img {
        transform: none;
        margin-bottom: 30px;
    }

    .feature-lists {
        grid-template-columns: 1fr;
    }

    .command-grid {
        grid-template-columns: 1fr;
    }
}

/* Command Grid Styles */
.command-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 Columns */
    gap: 3px 20px;
    /* Very tight row gap */
    margin-top: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.cmd-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Faint border */
    padding-bottom: 2px;
    /* Minimal padding */
    font-size: 0.8rem;
    /* Smaller font */
    line-height: 1.4;
}

.cmd-item:last-child {
    border-bottom: none;
}

.cmd-item code {
    color: #2ecc71;
    font-weight: bold;
    background: transparent;
    font-size: 0.8rem;
}

.cmd-item span {
    color: #bdc3c7;
    font-size: 0.75rem;
    /* Smaller description */
}

/* Promotion Badges */
.nav-badge {
    background: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: super;
    margin-left: 3px;
    animation: pulse 2s infinite;
}

.special-link {
    color: var(--primary-color) !important;
    font-weight: bold;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #ffd700;
    /* Gold color for visibility */
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* =========================================
   Dynamic Enhancements 
   ========================================= */

/* 1. Navbar Scroll Effect */
header {
    background-color: transparent !important;
    /* Start transparent */
    box-shadow: none !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    padding: 15px 0;
    /* Taller initial state */
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    padding: 0;
    /* Compact scrolled state */
}

/* 2. Hero Background Animation */
@keyframes heroPan {
    0% {
        background-position: center;
        background-size: 100%;
    }

    50% {
        background-size: 110%;
    }

    100% {
        background-position: center;
        background-size: 100%;
    }
}

.hero {
    /* Animation removed to preserve grid pattern size */
    position: relative;
    /* For scroll down arrow positioning */
}

/* 3. Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
    z-index: 10;
}

.scroll-down:hover {
    opacity: 1;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* 4. Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Service Card Staggered Delay */
/* Service Card Staggered Delay */
/* Removed specific opacity:0 rule to rely on .reveal class or base styles 
   to avoid specificity issues where active class doesn't win. 
   .reveal { opacity: 0 } is already defined above. 
*/


/* =========================================
   Section Layout Enhancements 
   ========================================= */

/* Contact Modal Styles */
.modal-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Black overlay */
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--white);
    margin: 10vh auto;
    padding: 0;
    width: 90%;
    max-width: 450px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s;
    overflow: hidden;
}

.modal-header {
    background: var(--primary-gradient);
    padding: 20px;
    color: white;
    text-align: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: white;
}

.modal-body {
    padding: 30px 20px;
    text-align: center;
}

.modal-body p {
    color: #666;
    margin-bottom: 20px;
}

.email-box {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.email-box span {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.btn-copy {
    background: white;
    border: 1px solid #ccc;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s;
}

.btn-copy:hover {
    background: #eee;
    color: var(--primary-color);
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-action {
    display: block;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    transition: 0.2s;
}

.btn-action.gmail {
    background: #ea4335;
    color: white;
}

.btn-action.gmail:hover {
    background: #c5221f;
}

.btn-action.outlook {
    background: var(--secondary-color);
    color: white;
}

.btn-action.outlook:hover {
    background: #1a252f;
}

.close-modal {
    color: rgba(255, 255, 255, 0.8);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close-modal:hover {
    color: white;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =========================================
   Tech Evolution Animation 
   ========================================= */
.tech-evolution-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 25px 0 35px 0;
    /* Adjusted spacing */
    opacity: 0.9;
}

.tech-line {
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    width: 25px;
    border-radius: 2px;
}

.tech-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #00d2ff, transparent);
    animation: techFlow 2s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
}

.tech-line.long {
    width: 50px;
}

.tech-line.longer {
    width: 80px;
}

.tech-line.longest {
    width: 120px;
}

.tech-node {
    color: rgba(255, 255, 255, 0.2);
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

/* Staggered node activation */
.tech-node:nth-child(2) {
    animation: nodeFlash 2s 0.2s infinite;
}

.tech-node:nth-child(4) {
    animation: nodeFlash 2s 0.7s infinite;
}

.tech-node:nth-child(6) {
    animation: nodeFlash 2s 1.2s infinite;
}

.tech-node.glow {
    color: #ffd700;
    font-size: 20px;
    animation: techPulse 2s infinite;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.6));
}

@keyframes techFlow {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes nodeFlash {

    0%,
    100% {
        color: rgba(255, 255, 255, 0.2);
        text-shadow: none;
        transform: scale(1);
    }

    20% {
        color: #00d2ff;
        text-shadow: 0 0 10px #00d2ff;
        transform: scale(1.2);
    }

    40% {
        color: rgba(255, 255, 255, 0.2);
        text-shadow: none;
        transform: scale(1);
    }
}

@keyframes techPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Staggered line flow delays */
.tech-line:nth-child(1)::after {
    animation-delay: 0s;
}

.tech-line:nth-child(3)::after {
    animation-delay: 0.5s;
}

.tech-line:nth-child(5)::after {
    animation-delay: 1.0s;
}

.tech-line:nth-child(7)::after {
    animation-delay: 1.5s;
}