/* Base Styles & Variables */
:root {
    --dark-bg: #1A1F2C;
    --dark-bg-lighter: #242A38;
    --primary: #9B87F5;
    --primary-light: #B3A3F7;
    --primary-dark: #7E69AB;
    --secondary: #0EA5E9;
    --secondary-light: #38BDF8;
    --secondary-dark: #0369A1;
    --text: #F8FAFC;
    --text-muted: #94A3B8;
    --border: #334155;
    --gradient: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    --font-base: 'Montserrat', sans-serif;
    --font-headers: 'Montserrat', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
    --font-weight-bold: 600;
    --font-weight-normal: 400;
    --font-weight-light: 200;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-base);
    font-weight: var(--font-weight-normal);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    
    background-color: var(--dark-bg);
    color: var(--text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    font-family: var(--font-headers);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary);
}

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

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

.highlight {
    color: var(--primary);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

section {
    padding: 5rem 0;
}

.not-found {
    font-size: 2rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: var(--text);
    box-shadow: 0 4px 6px rgba(155, 135, 245, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 6px 8px rgba(155, 135, 245, 0.4);
    transform: translateY(-2px);
    color: var(--text);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: rgba(155, 135, 245, 0.1);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(26, 31, 44, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    margin: 0;
    font-family: var(--font-headers);
}

.nav-links {
    display: flex;
    list-style: none;
    font-family: var(--font-headers);
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text);
    margin: 3px 0;
    transition: 0.4s;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(26, 31, 44, 0.9), rgba(26, 31, 44, 0.9)), 
                url('/assets/images/cover-photo.jpg') center/cover no-repeat;
    position: relative;
}

/* .hero-content {
    max-width: 800px;
} */

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    margin-top: 3rem;
}

.hero .hero-content h2 {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 1rem;
    margin-bottom: 0;
    max-width: 600px;
}

.hero-content p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-top: 1rem;
    margin-bottom: 0;
    color: var(--text-muted);
    max-width: 600px;
}

.hero-content p.wide {
    max-width: 800px;
}

.hero-content h1 {
    max-width: 800px;
}

.hero-content .btn-primary {
    margin-top: 2rem;
}

/* Featured Article */
.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background-color: var(--dark-bg-lighter);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.featured-image {
    height: 100%;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 2rem;
}

.featured-content h3 {
    font-size: 1.75rem;
    margin: 0.5rem 0 1rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag {
    background: rgba(155, 135, 245, 0.2);
    color: var(--primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
}

.meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 1rem 0;
    display: flex;
    gap: 1rem;
}

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

.article-card {
    background-color: var(--dark-bg-lighter);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.article-image {
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-content h3 {
    font-size: 1.3rem;
    margin: 0.5rem 0 1rem;
}

.article-content .category {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.article-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Footer */
footer {
    background-color: var(--dark-bg-lighter);
    padding: 4rem 0 2rem;
}

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

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: var(--text-muted);
}

.footer-links {
    font-family: var(--font-headers);
}

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

.footer-links ul {
    list-style: none;
}

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

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    html {
        font-size: 14px;
    }
    
    .featured-article {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--dark-bg);
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: 0.4s;
        opacity: 0;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        opacity: 1;
    }
    
    .nav-links li {
        margin: 0.75rem 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-content,
    .contact-content,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        gap: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .timeline::before {
        left: 0.75rem;
    }
    
    .timeline-marker {
        left: 0;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
    
    .stack-categories {
        grid-template-columns: 1fr;
    }
    
    .certification-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .certification-content {
        width: 100%;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 0;
    }
    
    .hero {
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}
