/* ---------- VARIABLES ---------- */
:root {
    --primary-color: #1abc9c;
    --secondary-color: #34495e;
    --background-color: #ecf0f1;
    --card-background: #ffffff;
    --text-color: #2c3e50;
    --text-secondary: #7f8c8d;
    --font-poppins: 'Poppins', sans-serif;
}

/* ---------- GLOBAL ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-poppins);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: 0.3s;
}

a:hover {
    color: #16a085;
}

/* ---------- HEADER ---------- */
.header {
    position: fixed;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

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

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--secondary-color);
    font-weight: 600;
}

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

/* Hamburger menu toggle button */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

/* ---------- HERO ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 6rem;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    flex: 1;
}

.hero-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #000;
    text-align: left;
}

/* ---------- BUTTONS ---------- */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

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

.primary-btn:hover {
    background-color: #16a085;
}

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

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

/* ---------- HERO ACTIONS ---------- */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ---------- SECTIONS ---------- */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background-color: var(--primary-color);
}

/* ---------- ABOUT ---------- */
.about-content p {
    margin-bottom: 1rem;
    color: #000;
}

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

.project-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-tech {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    transition: color 0.3s;
}

.link-btn:hover {
    color: var(--primary-color);
}

/* ---------- SKILLS ---------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-category {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.skill-category h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.skill-category li {
    background-color: #f1f1f1;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ---------- CODING CARDS ---------- */
/* Using project-card for consistency */

/* ---------- CONTACT ---------- */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-color);
    background-color: var(--card-background);
    border: 2px solid var(--primary-color);
    transition: 0.3s, box-shadow 0.3s, transform 0.3s;
}

.contact-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.contact-btn:hover {
    color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(77, 208, 225, 0.4);
    transform: translateY(-2px);
}

.contact-btn:hover i {
    transform: translateY(-3px);
}

/* ---------- FOOTER ---------- */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-secondary);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ---------- ANIMATIONS ---------- */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards;
}

.fade-in-up-delay {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image img {
        width: 200px;
        height: 200px;
    }

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

    .subtitle {
        font-size: 1rem;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.7rem;
    }

    /* Mobile header changes */
    .nav {
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
        position: relative;
    }

    .nav-links {
        display: none; /* Hide nav links by default on mobile */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        z-index: 999;
    }

    .nav-links.active {
        display: flex; /* Show nav links when active */
    }

    .nav-links li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid #f1f1f1;
    }

    .nav-links a {
        padding: 1rem;
        display: block;
        width: 100%;
    }

    .menu-toggle {
        display: flex; /* Show the hamburger menu on mobile */
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Existing media query changes */
    .coding-cards {
        gap: 1rem;
    }

    .project-card {
        padding: 1.8rem 1rem;
    }

    .project-card h3 {
        font-size: 1.1rem;
    }
    
    .primary-btn, .secondary-btn {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
}
@media (max-width: 480px) {
    .primary-btn, .secondary-btn {
        padding: 0.75rem 0.8rem;
        font-size: 0.9rem;
    }
}