/* assets/css/style.css */
:root {
    --primary-color: #0f172a; /* Deep Navy (Stays the same - provides contrast) */
    --accent-color: #F6B82F;  /* NAETOSOFT GOLD */
    --accent-hover: #d9a022;  /* Slightly darker gold for hover states */
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --font-main: 'Manrope', sans-serif;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: #fff;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* Navbar */
.navbar {
    padding-top: 20px;
    padding-bottom: 20px;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.navbar-brand img {
    height: 55px;
    width: auto;
    max-width: 200px;
    object-fit: contain; 
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark);
    margin-left: 15px;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color); /* Gold active state */
}

/* Buttons - CRITICAL UPDATE FOR YELLOW */
.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #0f172a; /* Dark text on Yellow background for readability */
    padding: 12px 30px;
    font-weight: 700; /* Bolder text for the yellow button */
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(246, 184, 47, 0.4); /* Gold shadow */
}

.btn-outline-primary {
    color: #0f172a;
    border-color: var(--accent-color);
}

.btn-outline-primary:hover {
    background-color: var(--accent-color);
    color: #0f172a;
    border-color: var(--accent-color);
}

/* Hero Section */
.hero-section {
    padding: 120px 0 100px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.25;
    padding-bottom: 10px;
    /* Gradient from Navy to Gold */
    background: -webkit-linear-gradient(45deg, var(--primary-color), #d9a022); 
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
}

/* Project Cards */
.project-card {
    position: relative;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.project-img-wrapper {
    height: 250px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.05);
}

.project-body {
    padding: 25px;
}

.badge-tech {
    background-color: #fffbeb; /* Very pale yellow */
    color: #b45309; /* Darker gold/orange for text readability */
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* Modal Custom Styles */
.modal-content { border-radius: 16px; border: none; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.modal-header { border-bottom: 1px solid #f1f5f9; padding: 25px; }
.modal-body { padding: 30px; }
.form-control, .form-select { padding: 12px; border-radius: 8px; border: 1px solid #e2e8f0; }
.form-control:focus, .form-select:focus { border-color: var(--accent-color); box-shadow: 0 0 0 4px rgba(246, 184, 47, 0.15); }

/* =========================================
   PREMIUM FOOTER (Gold Edition)
   ========================================= */

.footer-premium {
    background-color: #0b1120; /* Deep Navy */
    color: #cbd5e1;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-premium h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
}

.footer-premium .text-muted {
    color: #94a3b8 !important;
}

.footer-premium a.text-muted:hover {
    color: #fff !important;
}

.footer-link {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-color); /* Gold Hover */
    padding-left: 5px;
}

/* Background Icons - Now Gold! */
.footer-bg-icon {
    position: absolute;
    color: var(--accent-color); /* Gold */
    opacity: 0.05; /* Kept subtle */
    z-index: 0;
    pointer-events: none;
}

.icon-code {
    font-size: 300px;
    top: -50px;
    right: -50px;
    transform: rotate(-15deg);
}

.icon-database {
    font-size: 200px;
    bottom: -50px;
    left: 10%;
    transform: rotate(10deg);
}

.icon-cpu {
    font-size: 150px;
    top: 20%;
    left: 40%;
    opacity: 0.03;
}

/* Footer Inputs */
.footer-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 12px 15px;
    border-radius: 8px;
}

.footer-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color); /* Gold Border on focus */
    color: #ffffff;
    box-shadow: none;
    outline: none;
}

.footer-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1;
}

.social-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.05);
}

.social-btn:hover {
    background: var(--accent-color); /* Gold Background */
    color: #0f172a; /* Dark Icon on Gold */
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

/* assets/css/style.css - APPEND TO BOTTOM */

/* OVERRIDE BOOTSTRAP DEFAULT BLUE TEXT */
.text-primary {
    color: #b45309 !important; /* A darker gold/brown for readability on white */
}

a.text-primary:hover {
    color: #d97706 !important;
}

/* Pagination / Active Links */
.page-link {
    color: #0f172a;
}
.page-link.active, .active > .page-link {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #0f172a;
}

/* assets/css/style.css - APPEND TO BOTTOM */

/* Fix for Fixed Navbar overlapping page content */
.page-header-spacer {
    padding-top: 120px !important;
    padding-bottom: 60px;
}

/* =========================================
   HERO ANIMATED BACKGROUND (Tech Edition)
   ========================================= */

/* 1. The Container */
.hero-section {
    position: relative;
    background-color: #0f172a; /* Fallback */
    background: radial-gradient(circle at top center, #1e293b 0%, #0f172a 80%);
    overflow: hidden; /* Clips the floating elements */
    z-index: 1;
}

/* 2. The Animated Grid Overlay */
.hero-grid {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px; /* Grid square size */
    z-index: -2;
    transform: perspective(500px) rotateX(20deg) scale(1.5); /* The "3D Tech" look */
    animation: gridMove 20s linear infinite;
    opacity: 0.6;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(20deg) scale(1.5) translateY(0); }
    100% { transform: perspective(500px) rotateX(20deg) scale(1.5) translateY(50px); }
}

/* 3. The Gold Glow (Behind Text) */
.hero-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(246, 184, 47, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: -1;
    pointer-events: none;
    animation: glowPulse 5s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* 4. Floating Tech Shapes (Squares/Code) */
.tech-shape {
    position: absolute;
    bottom: -50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: -1;
    animation: floatUp linear infinite;
}

/* Specific Shapes */
.s1 { width: 60px; height: 60px; left: 10%; animation-duration: 15s; animation-delay: 0s; }
.s2 { width: 100px; height: 100px; left: 20%; animation-duration: 25s; animation-delay: 2s; border-radius: 50%; } /* Circle */
.s3 { width: 40px; height: 40px; left: 85%; animation-duration: 12s; animation-delay: 5s; }
.s4 { width: 80px; height: 80px; left: 70%; animation-duration: 20s; animation-delay: 1s; }
.s5 { width: 50px; height: 50px; left: 40%; animation-duration: 18s; animation-delay: 7s; border: 1px solid var(--accent-color); opacity: 0.1; } /* Gold Square */

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* Update Text Colors for Dark Background */
.hero-section h1, .hero-section p {
    position: relative; /* Brings text above animations */
    z-index: 2;
}

/* Make sure the gradient text still pops on dark bg */
.hero-title {
    /* Brighter Gradient for Dark Background */
    background: -webkit-linear-gradient(45deg, #ffffff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.2); /* Depth */
}

.hero-subtitle {
    color: #cbd5e1 !important; /* Lighter slate color for readability */
}

/* --- ARTICLE PAGE STYLES --- */

.article-content { 
    line-height: 1.8; 
    font-size: 1.15rem; 
    color: #334155; 
}

.article-content h2, 
.article-content h3 { 
    margin-top: 40px; 
    margin-bottom: 20px; 
    font-weight: 800; 
    color: #0f172a; 
}

/* THE FIX: Full Image Rendering */
.article-img {
    width: 100%;       /* Spans the full width of the container */
    height: auto;      /* Calculates height naturally based on the image */
    object-fit: contain; /* Ensures nothing is cut off */
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Adds depth */
    background-color: #f1f5f9; /* Subtle background in case of transparency */
}

/* Blog Card Image Fix */
.blog-card-img {
    height: 220px;         /* Fixed height to keep all cards aligned */
    width: 100%;           /* Full width of the card */
    object-fit: contain;   /* SHOWS FULL IMAGE (scales down to fit, doesn't crop) */
    background-color: #f8fafc; /* Light gray background to fill any empty space */
    border-bottom: 1px solid #e2e8f0; /* Subtle separator line */
    padding: 10px;         /* Optional: Adds a little breathing room inside the frame */
}

/* assets/css/style.css - APPEND TO BOTTOM */

/* === COOKIE CONSENT CARD === */
.cookie-card {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 340px;
    background-color: #0f172a; /* Premium Navy */
    color: #cbd5e1;
    padding: 25px;
    border-radius: 16px;
    border-left: 5px solid var(--accent-color); /* Gold Border */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); /* Deep Shadow */
    z-index: 10000; /* Above everything */
    opacity: 0;
    visibility: hidden;
    transform: translateY(50px);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.cookie-card.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cookie-card h5 {
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-btn-accept {
    background-color: var(--accent-color);
    color: #0f172a;
    font-weight: 700;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    width: 100%;
    transition: 0.3s;
}

.cookie-btn-accept:hover {
    background-color: #d9a022;
    transform: translateY(-2px);
}

.cookie-btn-decline {
    background: transparent;
    border: 1px solid #334155;
    color: #94a3b8;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    width: 100%;
    transition: 0.3s;
}

.cookie-btn-decline:hover {
    border-color: #cbd5e1;
    color: #fff;
}

/* Mobile Adjustment */
@media (max-width: 576px) {
    .cookie-card {
        left: 20px;
        right: 20px;
        width: auto;
        bottom: 20px;
    }
}

/* assets/css/style.css - APPEND TO BOTTOM */

/* === WHATSAPP WIDGET === */

/* 1. The Floating Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Official WhatsApp Green (Recognizable) */
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    z-index: 9999;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #fff;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Pulse Animation (To grab attention) */
.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: whatsappPulse 2s infinite;
    z-index: -1;
}

@keyframes whatsappPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* 2. The Chat Box (Hidden by default) */
.whatsapp-chat-box {
    position: fixed;
    bottom: 100px; /* Sits above button */
    right: 30px;
    width: 320px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 10000;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

.whatsapp-chat-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header */
.wa-header {
    background: #0f172a; /* NaetoSoft Navy */
    padding: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 3px solid var(--accent-color); /* Gold Accent */
}

.wa-avatar {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    padding: 2px;
}

.wa-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Chat Body */
.wa-body {
    padding: 20px;
    background-color: #f1f5f9;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png'); /* WhatsApp Doodle BG pattern */
    background-size: 300px;
    opacity: 0.9;
    height: 250px;
    display: flex;
    flex-direction: column;
}

.wa-message {
    background: #fff;
    padding: 10px 15px;
    border-radius: 0 12px 12px 12px;
    font-size: 0.9rem;
    color: #334155;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 5px;
    max-width: 85%;
    position: relative;
}

.wa-time {
    font-size: 0.7rem;
    color: #94a3b8;
    text-align: right;
    margin-top: 4px;
}

/* Footer (Input Area) */
.wa-footer {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
}

.wa-btn-start {
    width: 100%;
    background: #25D366;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
    text-decoration: none;
}

.wa-btn-start:hover {
    background: #1da851;
    color: #fff;
}

/* assets/css/style.css - APPEND TO BOTTOM */

/* === NEW YEAR COUNTDOWN BAR === */
#launch-countdown-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px; /* FIXED HEIGHT */
    background-color: #0f172a;
    border-bottom: 2px solid var(--accent-color);
    color: #fff;
    z-index: 100000; /* Must be higher than navbar */
    display: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    /* Flexbox centering to keep content inside the 60px */
    display: none; /* JS toggles this to flex */
    align-items: center; 
    justify-content: center;
}

.countdown-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-family: 'Manrope', sans-serif;
}

.countdown-label {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-right: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 6px;
    min-width: 60px;
    border: 1px solid rgba(255,255,255,0.1);
}

.timer-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-color); /* Gold Numbers */
    line-height: 1;
}

.timer-text {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: #94a3b8;
}

/* Mobile responsive for countdown */
@media (max-width: 768px) {
    .countdown-flex { gap: 10px; }
    .countdown-label { display: none; } /* Hide label on small screens */
    .timer-box { min-width: 50px; }
}

/* === SNOW CONFETTI ANIMATION === */
.snowflake {
    position: fixed;
    top: -10px;
    color: #fff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px #000;
    z-index: 99998; /* Just below the navbar/countdown */
    pointer-events: none; /* Let clicks pass through */
    animation-name: fall, shake-it;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
}

@keyframes fall {
    0% { top: -10% }
    100% { top: 100% }
}

@keyframes shake-it {
    0% { transform: translateX(0px) }
    50% { transform: translateX(80px) }
    100% { transform: translateX(0px) }
}