:root {
    --bg-color: #0B132B;
    --surface-color: #1C2541;
    --surface-hover: #233059;
    --accent-teal: #48CAE4;
    --accent-orange: #FB8500;
    --text-main: #FFFFFF;
    --text-muted: #8D99AE;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

/* Navbar */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: rgba(11, 19, 43, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logoImg{
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--accent-teal);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.3s;
    font-size: 1rem;
}

nav ul li a:hover {
    color: var(--accent-orange);
}

.git-img{
    background: var(--text-main);
    width: 80px;
    height: 30px;
    border: 1px solid var(--accent-teal);
    border-radius: 30px;
}

.git-img:hover{
    border: 1px solid var(--accent-orange);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 5%;
    gap: 20px;
}

.hero-logo {
    flex: 0 0 clamp(180px, 28vw, 300px);
    display: flex;
    justify-content: center;
    order: 2;
}

.hero-logo img {
    width: 100%;
    max-width: 300px;
    height: auto;
    opacity: 0.3;
    transform: translateX(-80px);
}

.hero-content {
    max-width: 600px;
    order: 1;
}

.hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-content h1 span {
    color: var(--accent-teal);
}

.hero-content p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 1rem;
}

.btn-mywork {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-orange), #ff9f0a);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Projects Section */
.projects-section {
    padding: 40px 5%;
}

.section-title {
    font-size: 1.6rem;
    margin-bottom: 25px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 18px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.3s, border-color 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-teal);
}

.project-number {
    position: absolute;
    top: 18px;
    right: 18px;
    font-weight: bold;
    color: var(--text-main);
    background: var(--accent-orange);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.project-preview {
    width: 100%;
    height: 170px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

a{
    text-decoration: none;
}

.project-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: #fff;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    color: var(--accent-teal);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-links a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 5%;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 40px;
    font-size: 0.85rem;
}

/* ==========================================
   Responsive Media Queries (Down to 350px)
   ========================================== */

@media (max-width: 768px) {
    nav {
        display: none; /* Can be hooked to a hamburger menu later if needed */
    }

    .hero {
        padding: 40px 5%;
        text-align: center;
        flex-direction: column;
    }

    .hero-logo {
        display: none;
    }

    .hero-logo img {
        transform: none;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

}

@media (max-width: 480px) {
    header {
        padding: 12px 15px;
    }

    .logo {
        font-size: 1rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .btn-mywork {
        width: 100%;
        text-align: center;
    }

    .projects-grid {
        grid-template-columns: 1fr; /* Force 1 column on very small screens */
    }
    
    .project-card {
        padding: 15px;
    }
}
