/* --- Variables & Reset --- */
:root {
    --primary-color: #007bff;
    --secondary-color: #00d4ff; /* Electric Blue/Teal */
    --dark-bg: #0b0c10;
    --dark-grey: #1f2833;
    --light-text: #c5c6c7;
    --white: #66fcf1; /* Neon Cyan for highlights */
    --pure-white: #ffffff;
    --accent: #45a29e;
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- Utilities --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.text-center { text-align: center; }
.bg-light { background-color: #ffffff; }

.highlight {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    margin-left: 10px;
}

.btn-outline:hover {
    background: #fff;
    color: #333;
}

/* --- Navbar --- */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-link {
    margin-left: 30px;
    font-weight: 500;
    color: #555;
}

.nav-link:hover {
    color: var(--primary-color);
}

.btn-contact {
    background: var(--primary-color);
    color: white !important;
    padding: 8px 20px;
    border-radius: 4px;
}

.btn-contact:hover {
    background: #0056b3;
    color: white !important;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px auto;
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    background: url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.lead {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 20px;
}

/* --- Cards / Technologies --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-align: center;
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--primary-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.arduino-color { color: #00979d; }
.rpi-color { color: #c51a4a; }
.esp-color { color: #333; }

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: bold;
}

/* --- Projects --- */
.projects-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    border-left: 5px solid #ddd;
}

.project-item:hover {
    border-left: 5px solid var(--primary-color);
}

.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: white;
    margin-right: 15px;
    text-transform: uppercase;
    font-weight: bold;
    min-width: 100px;
    text-align: center;
}

.beginner { background-color: #28a745; }
.intermediate { background-color: #ffc107; color: #333; }
.advanced { background-color: #dc3545; }

.project-content h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.tags span {
    background: #f1f1f1;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #666;
    margin-right: 5px;
}

/* --- Contact & Footer --- */
.contact-section {
    background-color: var(--dark-grey);
    color: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 15px;
    width: 20px;
    color: var(--secondary-color);
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: white;
}

.social-links a:hover {
    background: var(--primary-color);
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 4px;
}

footer {
    background: #000;
    color: #777;
    text-align: center;
    padding: 20px 0;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item { margin: 20px 0; }
    
    .menu-toggle { display: block; }
    
    .hero h1 { font-size: 2rem; }
    
    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .project-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .badge { margin-bottom: 10px; }
}