/* Design System Variables */
:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --accent-yellow: #FFD000;
    --yellow-glow: rgba(255, 208, 0, 0.4);
    --text-primary: #1A1A1A;
    --text-secondary: #555555;
    --text-grey: #777777;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --font-heading: 'Space Grotesk', 'Poppins', sans-serif;
    --font-body: 'Inter', 'Roboto', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Glassmorphism Effect */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}

.glass:hover {
    border-color: var(--accent-yellow);
    box-shadow: 0 15px 40px var(--yellow-glow);
    transform: translateY(-5px) scale(1.02);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--accent-yellow);
    color: #000;
}

.btn-primary:hover {
    background-color: #f2c600;
    box-shadow: 0 5px 15px var(--yellow-glow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.btn-outline {
    background-color: transparent;
    color: #000;
    border: 1.5px solid var(--accent-yellow);
}

.btn-outline:hover {
    background-color: var(--accent-yellow);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: #000;
}

.logo-img {
    height: 36px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-links a:hover {
    color: #000;
}

.nav-btns {
    display: flex;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #000;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 14rem 0 10rem;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
}

.glow-bg {
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, var(--yellow-glow) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    color: #000;
    letter-spacing: -1px;
}

.text-glow {
    position: relative;
    display: inline-block;
    color: #000;
}

.text-glow::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--accent-yellow);
    z-index: -1;
    opacity: 0.6;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    font-weight: 500;
    letter-spacing: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Sections General */
section {
    padding: 8rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 5rem;
    color: #000;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #000;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Services/Products Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    padding: 3rem 2.5rem;
    text-align: left;
    background: #FFFFFF;
}

.card-icon {
    font-size: 2.8rem;
    color: #000;
    margin-bottom: 2rem;
    background: var(--accent-yellow);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: #000;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.card-link {
    color: #000;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* AI Section */
.ai-section {
    background-color: var(--bg-secondary);
}

.bot-chat {
    background: #FFFFFF;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-msg {
    background: #F1F3F5;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.chat-msg.user {
    background: var(--accent-yellow);
    color: #000;
}

/* Security Dashboard */
.dashboard {
    background: #FFFFFF;
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 400px;
    overflow: hidden;
    border-radius: 20px;
}

.dash-sidebar {
    background: #F8F9FA;
    border-right: 1px solid var(--glass-border);
    padding: 2rem;
}

.sidebar-item {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.sidebar-item.active {
    background: var(--accent-yellow);
    color: #000;
}

.dash-main {
    padding: 2rem;
}

.status-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.status-card {
    background: #F8F9FA;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.status-card span {
    font-size: 0.8rem;
    color: var(--text-grey);
    display: block;
    margin-bottom: 0.5rem;
}

.status-val {
    font-size: 1.2rem;
    font-weight: 700;
}

.text-success { color: #28a745; }

.logs-preview {
    background: #1A1A1A;
    padding: 1.5rem;
    border-radius: 12px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #00FF88;
}

.log-entry {
    margin-bottom: 0.5rem;
}

.log-time { color: var(--text-grey); }

/* E-Learning */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    overflow: hidden;
}

.course-img {
    height: 180px;
    background: linear-gradient(45deg, #f1f3f5, #e9ecef);
    position: relative;
}

.course-info {
    padding: 1.5rem;
}

.progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin-bottom: 0.8rem;
}

.progress {
    height: 100%;
    background: var(--accent-yellow);
    border-radius: 3px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-grey);
}

/* DevOps Section */
.devops-section {
    background-color: var(--bg-secondary);
}

.p-step {
    background: #FFFFFF;
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
}

/* Footer */
.footer {
    padding: 6rem 0 3rem;
    background: #FFFFFF;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: #000;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p, .footer-links a, .footer-contact p {
    color: var(--text-secondary);
}

.footer-brand p {
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: #000;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #F1F3F5;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--accent-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-grey);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-btns {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        padding: 2rem;
        border-bottom: 1px solid var(--glass-border);
        text-align: center;
        gap: 1.5rem;
    }
    .nav-links.active, .nav-btns.active {
        display: flex;
    }
    .nav-links a {
        color: #000;
        font-size: 1.1rem;
    }
    .nav-btns {
        top: 350px; /* Adjust based on links height */
        padding-top: 0;
        background: transparent;
        border-bottom: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .dashboard {
        grid-template-columns: 1fr;
    }
    .dash-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        display: flex;
        overflow-x: auto;
        padding: 1rem;
    }
    .sidebar-item {
        margin-bottom: 0;
        white-space: nowrap;
    }
    .status-cards {
        grid-template-columns: 1fr;
    }
}
