/* Global Variables */
:root {
    --primary-color: #00ADB5;
    /* Teal */
    --secondary-color: #222831;
    /* Dark Gray/Black */
    --text-color: #393E46;
    /* Dark Gray */
    --bg-color: #EEEEEE;
    /* Light Gray */
    --white: #FFFFFF;
    --accent: #3A4750;

    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 20px 0;
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-color);
    font-family: var(--font-mono);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-color);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    /* Offset for fixed navbar */
    background: linear-gradient(rgba(34, 40, 49, 0.8), rgba(34, 40, 49, 0.9)), url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

.hero .name {
    color: var(--white);
    font-size: 5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
}

.hero .greeting {
    color: #e0e0e0;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero .title {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero .tagline {
    color: #f0f0f0;
    font-size: 1.3rem;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto 50px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero .tech-stack-icons {
    color: #e0e0e0;
    font-size: 2.5rem;
    gap: 40px;
    margin-top: 50px;
}

.tech-stack-icons i {
    transition: var(--transition);
}


.tech-stack-icons i:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.hero .btn-secondary {
    color: var(--white);
    border-color: var(--white);
}

.hero .btn-secondary:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

/* Sections Common */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* About Section */
.about-content {
    max-width: 1100px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    /* Image (2) | Text (3) */
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555;
    text-align: justify;
}

.about-buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background-color: #e0e0e0;
    border-radius: 50%;
    /* Circular */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 5px solid var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.image-placeholder i {
    font-size: 8rem;
    color: var(--white);
}

/* Make image responsive */
.about-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-text p {
        text-align: center;
    }

    .about-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skill-category h3 {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--secondary-color);
    text-align: center;
    font-size: 1.8rem;
    /* Bigger than default, smaller than section title (2.5rem) */
}

.skill-list li {
    margin-bottom: 15px;
}

.skill-list span {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: var(--white);
    border: 1px solid var(--primary-color);
    color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.tag:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.language-list li {
    margin-bottom: 10px;
    font-size: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* Responsive adjustments for new sections */
/* Language Cards Redesign */
.full-width {
    grid-column: 1 / -1;
}

.language-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    /* Reduced gap */
    margin-top: 20px;
}

.lang-card {
    background-color: var(--white);
    /* Changed to White to match other cards */
    border-radius: 10px;
    /* SLightly smaller radius */
    padding: 20px 15px;
    /* Reduced padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center content vertically */
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #eee;
    min-height: 200px;
    /* Keep a baseline size, but allow content to expand */
    height: auto;
    width: 100%;
    /* Ensure it fills the grid cell width */
}

.lang-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.lang-icon {
    font-size: 3rem;
    /* Smaller icon */
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90px;
    /* Increased height for larger images (like smarc.png) */
    width: 100%;
    /* Ensure full width for centering */
}

.lang-icon.python i {
    color: #FFD43B;
    /* Python Yellow */
}

.lang-icon.c-lang .custom-icon {
    color: var(--primary-color);
    /* Teal/Website Primary */
    font-family: sans-serif;
    font-weight: 900;
}

.lang-icon.cpp-lang .custom-icon {
    color: var(--primary-color);
    /* Teal/Website Primary */
    font-family: sans-serif;
    font-weight: 900;
}

.lang-icon.bash-lang i {
    color: #4EAA25;
    /* Bash Green - Keep distinct */
}

/* Colors for new tech stack icons */
.lang-icon .fa-layer-group {
    color: #E4B54C;
}

/* Yocto */
.lang-icon .fa-linux {
    color: #333333;
}

/* Linux */
.lang-icon .fa-microchip {
    color: #00ADB5;
}

/* STM32/Hardware (Teal) */
.lang-icon .fa-plug,
.lang-icon .fa-network-wired,
.lang-icon .fa-project-diagram,
.lang-icon .fa-clipboard-check {
    color: #393E46;
}

/* Generic Hardware */

.lang-icon .fa-docker {
    color: #2496ED;
}

/* Docker Blue */
.lang-icon .fa-git-alt {
    color: #F05032;
}

/* Git Orange */
.lang-icon .fa-gitlab {
    color: #FC6D26;
}

/* GitLab Orange */
.lang-icon .fa-jenkins {
    color: #D24939;
}

/* Jenkins Red */

.lang-icon .fa-raspberry-pi {
    color: #C51A4A;
}

/* Raspberry Pi Red */
.lang-icon .fa-broadcast-tower {
    color: #009cde;
}

/* Nordic/Bluetooth Blue */

.contact-card .fa-linkedin {
    color: #0077b5;
}

.contact-card .fa-github {
    color: #333;
}

.contact-card .fa-youtube {
    color: #FF0000;
}

.lang-icon .fa-jira {
    color: #0052CC;
}

/* Jira Blue */
.lang-icon .fa-confluence {
    color: #172B4D;
}

/* Confluence Blue */
.lang-icon .fa-laptop-code,
.lang-icon .fa-code {
    color: #0078d7;
}

/* VS Code/Qt Blue */
.lang-icon .fa-microsoft {
    color: #EA4335;
}

/* Office Red/Orange combo */

.lang-card h4 {
    color: var(--secondary-color);
    /* Dark text for white card */
    font-size: 1.2rem;
    /* Smaller font */
    margin-bottom: 15px;
    font-weight: 700;
}

.lang-card h4:last-child {
    margin-bottom: 0;
}

.lang-progress-container {
    width: 100%;
    height: 6px;
    /* Thinner progress bar */
    background-color: #eee;
    /* Light grey background */
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.lang-progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    /* Primary Teal */
    border-radius: 10px;
}

.lang-level {
    color: #777;
    /* Darker grey for white background */
    font-size: 0.85rem;
    font-weight: 500;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-top: 5px solid var(--secondary-color);
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-color);
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.project-desc {
    color: #666;
    margin-bottom: 35px;
    /* Increased spacing */
    font-size: 1.05rem;
    line-height: 1.8;
    /* Better readability */
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.project-tags .tag {
    font-size: 0.8rem;
    padding: 5px 10px;
    background-color: #f0f2f5;
    border: none;
    color: #555;
    box-shadow: none;
    border: 1px solid #e0e0e0;
}

/* Contact Section */
.contact-container {
    text-align: center;
}

.contact-text {
    max-width: 600px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
    color: #555;
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    width: 300px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-card p {
    color: #666;
}

/* Social Subsection */
.social-subsection {
    margin-top: 60px;
    text-align: center;
}

.social-subsection h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-icon-btn {
    width: 60px;
    height: 60px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    color: var(--secondary-color);
    border: 1px solid #eee;
}

.social-icon-btn:hover {
    transform: translateY(-5px);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-icon-btn.linkedin:hover {
    background-color: #0077b5;
    border-color: #0077b5;
}

.social-icon-btn.github:hover {
    background-color: #333;
    border-color: #333;
}

.social-icon-btn.youtube:hover {
    background-color: #ff0000;
    border-color: #ff0000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-cards {
        flex-direction: column;
        align-items: center;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .name {
        font-size: 2.5rem;
    }

    .title {
        font-size: 1.4rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn-secondary {
        margin-left: 0;
    }
}
