@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Fira+Code:wght@400;500;600&display=swap');

:root {
    --bg-color: #0d0d0d;
    --second-bg-color: #161616;
    --text-color: #ffffff;
    --second-text-color: #a0a0a0;
    --main-color: #00a8ff; /* Neon blue */
    --font-primary: 'Outfit', sans-serif;
    --font-code: 'Fira Code', monospace;
}

/* Light Mode Variables */
.light-mode {
    --bg-color: #f4f4f4;
    --second-bg-color: #ffffff;
    --text-color: #111111;
    --second-text-color: #555555;
    --main-color: #007bff; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: var(--font-primary);
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    transition: background 0.3s, color 0.3s;
}

/* Utility Classes */
.tag {
    color: var(--main-color);
    font-family: var(--font-code);
    font-weight: 500;
}

.white-text {
    color: var(--text-color);
}

.bold-white {
    color: var(--text-color);
    font-weight: 600;
}

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

.heading {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 600;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.light-mode .header {
    background: rgba(244, 244, 244, 0.8);
}

.logo {
    font-size: 1.5rem;
    color: var(--main-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar a {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    margin-left: 2.5rem;
    transition: 0.3s;
}

.navbar a:hover, .navbar a.active {
    color: var(--main-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-toggle {
    font-size: 1rem;
    color: var(--second-text-color);
    font-weight: 500;
}

.lang-toggle span {
    cursor: pointer;
    transition: 0.3s;
}

.lang-toggle span.active, .lang-toggle span:hover {
    color: var(--main-color);
}

.theme-toggle i {
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    transition: 0.3s;
}

.theme-toggle i:hover {
    color: var(--main-color);
}

.menu-icon {
    display: none;
}

/* Generic Section styling */
section {
    min-height: 100vh;
    padding: 8rem 9% 2rem;
}

/* Home Section */
.home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
}

.home-img .img-box {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 3px solid var(--main-color);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 25px rgba(0, 168, 255, 0.2);
}

.home-img .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-content {
    max-width: 600px;
}

.code-text {
    font-family: var(--font-code);
    color: var(--main-color);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.home-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.home-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--second-text-color);
    margin-bottom: 2rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--second-text-color);
    border-radius: 5px;
    font-size: 1.2rem;
    color: var(--second-text-color);
    transition: 0.3s ease;
}

.social-icons a:hover {
    border-color: var(--main-color);
    color: var(--main-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.2);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--main-color);
    border-radius: 5px;
    color: #000;
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.3s ease;
}

.btn:hover {
    box-shadow: 0 0 20px var(--main-color);
    transform: translateY(-2px);
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
}

.about-img .coffee-box {
    width: 200px;
    height: 200px;
    background: var(--second-bg-color);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.about-img .coffee-box:hover {
    transform: scale(1.05);
}

.about-img .coffee-box i {
    font-size: 6rem;
    color: var(--main-color);
}

.about-content {
    max-width: 700px;
}

.about-content p {
    font-size: 1rem;
    color: var(--second-text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--second-bg-color);
    padding: 2rem 1rem;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.skill-card i {
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.skill-card span {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

.skill-card:hover {
    border-color: var(--main-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 168, 255, 0.1);
}

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

.project-card {
    background: var(--second-bg-color);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: 0.3s ease;
    border: 1px solid transparent;
}

.project-card:hover {
    border-color: var(--main-color);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 168, 255, 0.1);
}

.project-icon i {
    font-size: 2.5rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.project-img-box {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.project-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.tech-icons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-icons i {
    font-size: 1.2rem;
    background: rgba(255,255,255,0.05);
    padding: 5px;
    border-radius: 4px;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--second-text-color);
    line-height: 1.5;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.btn-outline {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--main-color);
    border-radius: 5px;
    color: var(--main-color);
    font-weight: 500;
    transition: 0.3s ease;
    font-size: 0.9rem;
    width: 100%;
}

.btn-outline:hover {
    background: var(--main-color);
    color: #000;
}

.btn-outline.local {
    background: rgba(0, 168, 255, 0.1);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    background: var(--second-bg-color);
    color: var(--second-text-color);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 991px) {
    .header {
        padding: 2rem 5%;
    }
    section {
        padding: 7rem 5% 2rem;
    }
    .home {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }
    .social-icons {
        justify-content: center;
    }
    .about-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: block;
        font-size: 2rem;
        cursor: pointer;
        color: var(--text-color);
    }
    .navbar {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        padding: 1rem 5%;
        background: var(--bg-color);
        transition: 0.3s ease;
        box-shadow: 0 .5rem 1rem rgba(0,0,0,0.2);
    }
    .navbar.active {
        left: 0;
    }
    .navbar a {
        display: block;
        font-size: 1.2rem;
        margin: 1.5rem 0;
    }
    .home-content h1 {
        font-size: 2.8rem;
    }
}
