/* 
   DevSecOps Theme - Modern Dark Mode 
   Colors: Dark Slate, Neon Cyan, Bright Green, White
*/

:root {
    --bg-color: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-primary: #06b6d4;
    /* Cyan */
    --accent-secondary: #10b981;
    /* Emerald */
    --accent-glow: rgba(6, 182, 212, 0.3);
    --font-main: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --nav-width: 280px;
    --transition-speed: 0.3s;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--accent-primary);
}

h3 {
    font-size: 1.75rem;
}

.text-mono {
    font-family: var(--font-mono);
}

.text-accent {
    color: var(--accent-primary);
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: var(--nav-width);
    background-color: var(--bg-secondary);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
    transition: transform var(--transition-speed);
}

.sidebar-header {
    padding: 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--accent-primary);
    margin: 0 auto 1rem;
    object-fit: cover;
    box-shadow: 0 0 20px var(--accent-glow);
}

.nav-links {
    flex: 1;
    padding: 2rem 0;
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
}

.nav-links::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 2rem;
    color: var(--text-secondary);
    font-weight: 500;
    border-left: 3px solid transparent;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border-left-color: var(--accent-primary);
}

.nav-item i {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.copy {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--nav-width);
    width: calc(100% - var(--nav-width));
}

section {
    padding: 5rem 4rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 200;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
}

/* Hero Section */
#home {
    position: relative;
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), url('../img/background/home-bg-min.jpg');
    background-size: cover;

    .hero-title {
        font-size: 4.5rem;
        margin-bottom: 1rem;
        letter-spacing: -2px;
    }

    .hero-title span {
        color: var(--accent-primary);
    }

    .typing-text {
        font-size: 1.5rem;
        color: var(--text-secondary);
        font-family: var(--font-mono);
    }

    .cursor {
        display: inline-block;
        width: 2px;
        background-color: var(--accent-secondary);
        animation: blink 1s infinite;
    }

    @keyframes blink {

        0%,
        100% {
            opacity: 1;
        }

        50% {
            opacity: 0;
        }
    }

    /* About Section */
    .about-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 4rem;
    }

    .info-list li {
        display: flex;
        justify-content: space-between;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .info-list .label {
        font-weight: 600;
        color: var(--text-primary);
    }

    .info-list .value {
        color: var(--text-secondary);
    }

    /* Resume Section */
    .timeline {
        position: relative;
        padding-left: 2rem;
        border-left: 2px solid rgba(255, 255, 255, 0.1);
    }

    .timeline-item {
        position: relative;
        margin-bottom: 3rem;
    }

    .timeline-item::before {
        content: '';
        position: absolute;
        left: -2.6rem;
        top: 0.5rem;
        width: 1rem;
        height: 1rem;
        background: var(--bg-color);
        border: 2px solid var(--accent-primary);
        border-radius: 50%;
    }

    .timeline-date {
        font-family: var(--font-mono);
        color: var(--accent-secondary);
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        display: block;
    }

    .timeline-content h4 {
        margin-bottom: 0.25rem;
    }

    .timeline-content h5 {
        font-size: 1rem;
        color: var(--text-secondary);
        font-weight: 400;
        margin-bottom: 1rem;
    }

    .timeline-content p {
        color: var(--text-secondary);
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    /* Events Grid */
    .events-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 2rem;
    }

    .event-card {
        position: relative;
        border-radius: 8px;
        overflow: hidden;
        aspect-ratio: 4/3;
    }

    .event-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }

    .event-card:hover img {
        transform: scale(1.1);
    }

    .event-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 1.5rem;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
        transform: translateY(100%);
        transition: transform 0.3s;
    }

    .event-card:hover .event-overlay {
        transform: translateY(0);
    }

    .event-title {
        margin-top: 3rem;
        margin-bottom: 1.5rem;
    }

    .cert-link {
        margin-left: 0.5rem;
        color: var(--accent-primary);
        font-size: 0.9rem;
        transition: color 0.3s;
    }

    .cert-link:hover {
        color: var(--text-primary);
    }

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

    .stat-card {
        background: var(--bg-secondary);
        padding: 1rem;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Responsive */
    @media (max-width: 992px) {
        .sidebar {
            transform: translateX(-100%);
        }

        .sidebar.open {
            transform: translateX(0);
        }

        .main-content {
            margin-left: 0;
            width: 100%;
        }

        .mobile-toggle {
            display: block;
        }

        section {
            padding: 4rem 2rem;
        }

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

        .hero-title {
            font-size: 3rem;
        }
    }

    @media (max-width: 768px) {
        .stats-grid {
            grid-template-columns: 1fr;
        }
    }