/*
Theme Name: The AI Edge
Theme URI: http://a-i-edge.com
Author: Nova
Description: Custom Glassmorphism Theme for The AI Edge
Version: 1.0
*/

/* --- Variables & Reset --- */
:root {
    --primary-bg: #050a10; /* Very dark blue-black */
    --card-bg: rgba(20, 25, 40, 0.7);
    --gold: #c5a059; /* From the Logo */
    --neon-cyan: #00f0ff; /* From the background screens */
    --neon-purple: #bc13fe;
    --text-white: #ffffff;
    --text-grey: #a0a0a0;
    
    --font-heading: 'Orbitron', sans-serif; /* Sci-fi feel */
    --font-body: 'Outfit', sans-serif; /* Clean tech feel */
}

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

body {
    background-color: var(--primary-bg);
    color: var(--text-white);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(5, 10, 16, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Logo Link Fix --- */
.logo-link {
    text-decoration: none; /* No underline */
    color: inherit;        /* Keep the white/gold text color */
    cursor: pointer;
}

.logo-link:hover .logo-text {
    text-shadow: 0 0 10px var(--neon-cyan); /* Optional: Cool glow on hover */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--neon-cyan);
}

.cta-btn {
    padding: 10px 20px;
    background: linear-gradient(45deg, var(--gold), #e0c080);
    color: #000;
    border-radius: 4px;
    font-weight: 600;
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    /* --- NEW BACKGROUND STACK --- */
    background: 
        /* Layer 1: A dark overlay to ensure text readability */
        linear-gradient(to right, rgba(5, 10, 16, 0.9) 30%, rgba(5, 10, 16, 0.6)),
        /* Layer 2: Your new 3D Image */
        url('http://a-i-edge.com/wp-content/uploads/2025/12/hero-depth-bg.jpg');
        
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* OPTIONAL: Makes the background stay still while you scroll for extra depth effect */
}

.hero-content {
    max-width: 50%;
    z-index: 2;
}

h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: -webkit-linear-gradient(0deg, #fff, var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-headline {
    font-size: 1.2rem;
    color: var(--text-grey);
    margin-bottom: 30px;
    max-width: 80%;
}

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

.primary-btn {
    padding: 15px 30px;
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: var(--font-heading);
    cursor: pointer;
    transition: 0.3s;
    
    /* --- ADD THESE 2 LINES --- */
    text-decoration: none;
    display: inline-block; 
}

.primary-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 20px var(--neon-cyan);
}

/* Styling for the second button */
.secondary-btn {
    padding: 15px 30px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-heading);
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    
    /* --- Fixes for Link behavior --- */
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.secondary-btn:hover {
    background: var(--gold);
    color: #000; /* Black text on Gold background */
    box-shadow: 0 0 20px var(--gold);
}

.hero-image-container {
    position: relative;
    width: 45%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Styling the Persona Image */
.hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating Glass Card Element */
.glass-card {
    position: absolute;
    bottom: 20%;
    left: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 200px;
}

.glass-card h3 {
    font-size: 0.9rem;
    color: var(--text-grey);
    margin-bottom: 5px;
}

.glass-card p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

/* --- Feed Section --- */
.feed-section {
    padding: 5rem 10%;
    background: #020508;
}

.section-title {
    font-family: var(--font-heading);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.highlight {
    color: var(--neon-cyan);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.grid-item {
    background: #1a1f2e;
    height: 300px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}

.grid-item:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
}

.post-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, #000);
}

/* --- Newsletter Section --- */
.newsletter-section {
    padding: 6rem 10%;
    /* Using the side-profile image as background with dark overlay */
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://a-i-edge.com/wp-content/themes/ai-edge/assets/about-bg.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.newsletter-content h2 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.signup-form {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.signup-form input {
    padding: 15px;
    width: 300px;
    border-radius: 5px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.signup-form button {
    padding: 15px 30px;
    background: var(--gold);
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-content {
        max-width: 100%;
        margin-top: 20px;
    }

    .hero-image-container {
        width: 80%;
        height: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .nav-links {
        display: none; /* Hide Desktop Links */
    }
}

/* --- Mobile Menu Styles --- */

/* The Button (Three Lines) */
.hamburger-menu {
    display: none; /* Hidden on Desktop */
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2000; /* Above everything */
}

.bar {
    width: 30px;
    height: 3px;
    background-color: var(--text-white);
    border-radius: 2px;
    transition: 0.3s;
}

/* The Full Screen Menu Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen to the right */
    width: 70%;   /* Covers 70% of the screen */
    height: 100vh;
    background: rgba(5, 10, 16, 0.95);
    backdrop-filter: blur(15px);
    border-left: 1px solid var(--gold);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s ease-in-out;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

/* When Active (JavaScript adds this class) */
.mobile-nav-overlay.active {
    right: 0; /* Slides in */
}

.mobile-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.mobile-links a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.2s;
}

.mobile-links a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* Responsive Trigger */
@media (max-width: 768px) {
    .nav-links { display: none; } 
    .hamburger-menu { display: flex; } 
}

/* --- About Section --- */
.about-section {
    padding: 6rem 10%;
    background: linear-gradient(to bottom, #020508, #0a101a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
}

/* The Visual Side */
.about-visual {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%; /* Circular portrait */
    z-index: 2;
    border: 3px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* Rotating Tech Ring Animation */
.tech-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed var(--gold);
    animation: rotate-ring 20s linear infinite;
    z-index: 1;
    opacity: 0.6;
}

@keyframes rotate-ring {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* The Text Content */
.about-content {
    flex: 1;
}

.label-badge {
    display: inline-block;
    padding: 5px 10px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-size: 0.8rem;
    font-family: var(--font-heading);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 10px;
}

.about-content h3 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.about-content p {
    color: var(--text-grey);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Tech Specs List */
.specs-list {
    list-style: none;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.specs-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    width: 70%;
}

.specs-list li span:first-child {
    color: var(--text-grey);
}

.specs-list li span:last-child {
    color: var(--text-white);
    text-align: right;
}

/* Mobile Responsiveness for About Section */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    
    .specs-list li {
        width: 100%;
    }
    
    .about-visual {
        width: 300px;
        height: 300px;
        margin-bottom: 30px;
    }
    
    .about-img {
        width: 250px;
        height: 250px;
    }
}

/* --- Article Page Styles --- */
.article-body {
    background-color: var(--primary-bg);
    padding-top: 100px; /* Space for fixed navbar */
    min-height: 100vh;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(20, 25, 40, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
}

.article-header {
    border-bottom: 1px solid var(--gold);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.article-header h1 {
    font-family: var(--font-heading);
    color: var(--neon-cyan);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.meta-info {
    color: var(--text-grey);
    font-size: 0.9rem;
    display: flex;
    gap: 20px;
}

.article-content {
    color: #ddd;
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-content h2 {
    color: var(--text-white);
    margin-top: 30px;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.article-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--gold);
    text-decoration: none;
    font-weight: bold;
    border: 1px solid var(--gold);
    padding: 5px 15px;
    border-radius: 4px;
}

.back-btn:hover {
    background: var(--gold);
    color: black;
}

/* --- Footer Styles --- */
.site-footer {
    background: #020508;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 10%;
    margin-top: auto; /* Pushes footer to bottom */
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.social-link {
    color: var(--gold);
    text-decoration: none;
    font-size: 1.1rem;
    border: 1px solid var(--gold);
    padding: 10px 20px;
    border-radius: 50px;
    transition: 0.3s;
}

.social-link:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 15px var(--gold);
}

.copyright {
    color: var(--text-grey);
    font-size: 0.8rem;
    margin-top: 20px;
}

/* --- Dropdown Menu Styles --- */
.dropdown-trigger {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* The Box that appears on hover */
.dropdown-content {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; /* Position below the link */
    left: 50%;
    transform: translateX(-50%); /* Center it */
    background: rgba(5, 10, 16, 0.95); /* Deep dark background */
    border: 1px solid var(--gold);
    border-radius: 8px;
    width: 240px;
    padding: 15px;
    flex-direction: column;
    gap: 15px;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    list-style: none;
    z-index: 10000;
}

/* Show it when hovering over the trigger */
.dropdown-trigger:hover .dropdown-content {
    display: flex;
}

/* Styling the links inside the dropdown */
.dropdown-content li a {
    font-size: 0.9rem;
    color: var(--text-white);
    text-transform: none; /* easier to read */
    display: block;
    transition: 0.3s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 5px;
}

.dropdown-content li:last-child a {
    border-bottom: none;
}

.dropdown-content li a:hover {
    color: var(--neon-cyan);
    padding-left: 5px; /* Slight movement effect */
}

/* Pagination Styles */
.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.pagination a, .pagination span {
    padding: 10px 20px;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.3s;
}

.pagination a:hover, .pagination span.current {
    background: var(--gold);
    color: #000;
}