/* --- RESET & VARIABLES --- */
:root {
    --primary-color: #00adb5;
    --dark-bg: #222831;
    --light-bg: #393e46;
    --text-color: #eeeeee;
    --text-muted: #bdbdbd;
    --white: #ffffff;
    --card-bg: #393e46; /* Slightly lighter than dark-bg */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- UTILITIES --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    width: 100%;
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(34, 40, 49, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-btn {
    background: var(--primary-color);
    padding: 8px 20px;
    border-radius: 5px;
    color: var(--white) !important;
}

.nav-btn:hover {
    background: #008c94;
}

/* --- HERO SECTION --- */
.hero {
    height: 90vh; /* Better for mobile than 100vh */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #222831 0%, #1a1d23 100%);
    padding: 0 20px;
}

.img-container img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    margin-bottom: 25px;
    box-shadow: 0 0 20px rgba(0, 173, 181, 0.3);
    animation: float 6s ease-in-out infinite;
    image-rendering: -webkit-optimize-contrast;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

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

.hero h3 {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 20px;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: 20px;
    margin-top: 20px;
    width: 100%;
}

.hero-buttons .btn {
    white-space: nowrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.primary-btn {
    background: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 173, 181, 0.4);
}

.secondary-btn {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.secondary-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* --- ABOUT SECTION --- */
.about {
    background: var(--light-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.stat-card {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* --- SKILLS SECTION --- */
.skills {
    background: var(--dark-bg);
}

.skill-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.skill-tag {
    background: rgba(255,255,255,0.05);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-tag:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    color: #fff;
}

/* --- PROJECTS SECTION --- */
.projects {
    background: var(--light-bg);
}

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

.project-card {
    background: var(--dark-bg);
    padding: 30px;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.project-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

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

.card-tags {
    display: flex;
    gap: 10px;
}

.card-tags span {
    font-size: 0.8rem;
    background: rgba(0, 173, 181, 0.1);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 4px;
}

/* --- CONTACT SECTION --- */
.contact {
    background: var(--dark-bg);
    text-align: center;
}

.contact-box {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-item {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: rgba(255,255,255,0.05);
    border-radius: 50px;
    transition: 0.3s;
}

.contact-item:hover {
    background: var(--primary-color);
}

footer {
    background: #1a1d23;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* --- ANIMATIONS --- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {

    .hero-buttons {
        flex-direction: row;
        flex-wrap: nowrap;
    }
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }

    .stat-card {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 20px;
    }
    
    .stat-card i {
        margin-bottom: 0;
    }
}