/* 
 * Style.css
 * Consolidated styles for Ahmed Tijani Portfolio
 * Theme: Elegant Black & White
 */

:root {
    /* Colors */
    --bg-color: #000000;
    --text-color: #FFFFFF;
    --text-secondary: #CCCCCC;
    --border-color: rgba(255, 255, 255, 0.2);
    --border-hover: rgba(255, 255, 255, 0.8);
    --card-bg: #0a0a0a;
    --accent-color: #FFFFFF;

    /* Typography */
    --font-main: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --section-padding: 6rem 0;

    /* Transitions */
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

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

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section {
    padding: var(--section-padding);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.btn-outline {
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--text-color);
    color: var(--text-color);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 40px;
    filter: invert(1);
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    position: relative;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: 0.2s;
}

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

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.8rem;
    margin-right: 2rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    font-family: inherit;
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--text-color);
    font-weight: 700;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 2rem auto;
    border: 2px solid var(--border-color);
}

#hero h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

#hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.tagline {
    display: block;
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 3rem;
    opacity: 0.8;
}

/* About Section */
#about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

#about p {
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    text-align: center;
    font-size: 1.1rem;
}

/* Tech Stack (Vertical Layout) */
#tech-stack h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column stack */
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.tech-category {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    transition: var(--transition);
}

.tech-category:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
}

.tech-category h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-tags span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: 0.2s;
    cursor: default;
}

.tech-tags span:hover {
    border-color: var(--text-color);
    color: var(--bg-color);
    background: var(--text-color);
    font-weight: 600;
}

/* Products Section */
#products h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.card,
.wide-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    transition: var(--transition);
    border-radius: 8px;
}

.card:hover,
.wide-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05);
}

.card h3,
.wide-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* OpenSeventy & Vision */
#openseventy,
#vision,
#hobbies {
    text-align: center;
}

.wide-card {
    max-width: 800px;
    margin: 0 auto;
}

/* Contact */
#contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.social-links a {
    font-size: 1.1rem;
    border-bottom: 1px solid transparent;
}

.social-links a:hover {
    border-bottom: 1px solid var(--text-color);
}

.emails {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.emails a {
    color: var(--text-secondary);
}

.emails a:hover {
    color: var(--text-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        order: 3;
    }

    .lang-switcher {
        margin-right: 1rem;
        order: 2;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: #000;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.3s;
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        left: 0;
    }

    #hero h1 {
        font-size: 2.5rem;
    }
}

/* RTL Support */
[dir="rtl"] {
    font-family: 'Tahoma', 'Segoe UI', sans-serif;
}

[dir="rtl"] .nav-links {
    left: auto;
    right: -100%;
}

[dir="rtl"] .nav-links.active {
    right: 0;
}