/**
 * Project Pages Common Stylesheet
 * Shared styles for all project/article pages in BVRobotics
 * Used by: ChatWithMe.html, OpenAISDK.html, TrainingvsRag.html, GDSMCP.html, PromptPack.html, etc.
 */

:root {
    --primary-blue: #2196F3;
    --dark-blue: #1A237E;
    --accent-blue: #00BCD4;
    --ai-purple: #9C27B0;
    --ai-pink: #E91E63;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #00BCD4 0%, #2196F3 100%);
    --gradient-ai: linear-gradient(135deg, #E91E63 0%, #9C27B0 100%);
    --gradient-dark: linear-gradient(135deg, #1A237E 0%, #0a0a0a 100%);
}

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

body {
    font-family: 'Roboto', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Aggressive Fonts */
.aggressive-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.aggressive-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(33, 150, 243, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

/* Animated Icons */
.icon-animated {
    display: inline-block;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(233, 30, 99, 0.8));
    }
}

.icon-rotate {
    animation: rotate 3s linear infinite;
}

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

/* Modern Navbar */
.navbar {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-blue) !important;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-blue) !important;
    transform: translateY(-2px);
}

/* Page Header */
.page-header {
    background: var(--gradient-dark);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(33, 150, 243, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.page-header .lead {
    font-size: 1.2rem;
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

/* Content Sections */
.content-section {
    background: var(--card-bg);
    border-radius: 25px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.1);
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.content-section h2 i {
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.content-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--dark-blue);
}

.content-section p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.content-section ul, .content-section ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Code Blocks */
.code-section {
    background: #1e1e1e;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(0, 212, 255, 0.2);
    overflow-x: auto;
}

.code-section pre {
    color: #d4d4d4;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.code-section code {
    color: #d4d4d4;
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(33, 150, 243, 0.1) 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-blue);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    display: block;
}

.feature-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

/* Tech Tags */
.tech-tags {
    margin: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-tags .badge {
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--gradient-accent);
    color: white;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.tech-tags .badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.5);
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--gradient-accent);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Image Gallery */
.gallery-section {
    margin: 3rem 0;
}

.image-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    border: 3px solid rgba(0, 212, 255, 0.3);
}

.image-container:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 212, 255, 0.4);
    border-color: var(--accent-blue);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: var(--gradient-accent);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
    transition: all 0.3s ease;
    margin: 1rem;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.6);
    color: white;
    text-decoration: none;
}

/* Footer */
footer {
    background: var(--darker-bg);
    color: var(--text-light);
    text-align: center;
    padding: 3rem 0;
    border-top: 2px solid rgba(0, 212, 255, 0.3);
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header .lead {
        font-size: 1rem;
    }
    
    .content-section {
        padding: 2rem 1.5rem;
        margin: 1.5rem 0;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }

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

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

/* Special ChatWithMe styles (if needed, can be overridden per page) */
.page-header.chatwithme-header {
    background: var(--gradient-ai);
}

.page-header.chatwithme-header::before {
    background: 
        radial-gradient(circle at 30% 20%, rgba(233, 30, 99, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(156, 39, 176, 0.2) 0%, transparent 50%);
}

.page-header.chatwithme-header h1 {
    background: linear-gradient(135deg, #ffffff 0%, #00BCD4 100%);
    font-size: 4rem;
    font-weight: 900;
}

.page-header.chatwithme-header .lead {
    font-size: 1.5rem;
}

.content-section.chatwithme-section {
    border-color: rgba(233, 30, 99, 0.2);
}

.content-section.chatwithme-section::before {
    background: var(--gradient-ai);
}

.content-section.chatwithme-section h2 {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 2.5rem;
}

.content-section.chatwithme-section h2 i {
    color: var(--ai-pink);
    font-size: 2rem;
}

.navbar.chatwithme-navbar {
    border-bottom-color: rgba(233, 30, 99, 0.3);
}

.navbar.chatwithme-navbar .navbar-brand {
    color: var(--ai-pink) !important;
    text-shadow: 0 0 10px rgba(233, 30, 99, 0.5);
}

.navbar.chatwithme-navbar .nav-link:hover {
    color: var(--ai-pink) !important;
}

