@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Poppins:wght@400;500;700&display=swap');
/* --- Global Styles & Variables --- */
:root {
    --primary-color: #faa11b; /* A more modern orange */
    --primary-gradient: linear-gradient(135deg, #4adde2a1 0%, #cebb16c0 100%);
    --secondary-color: #333;
    --bg-color: #f9f9f9;
    --light-color: #1f242d;
    /* A softer, layered shadow */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.05);

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

section {
    padding: 5rem 0;
    text-align: center;
}
/* This new class holds our content */
.container {
    max-width: 1200px;
    margin: 0 auto; /* 0 top/bottom, auto left/right */
    padding: 0 2rem; /* Keeps content off the edges on mobile */
}

h1, h2, h3 {
    font-family: var(--font-heading); /* <-- ADDED */
    font-weight: 700; /* <-- ADDED (Ensures it's bold) */
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* --- Header & Navigation --- */
header {
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-family: var(--font-heading); /* <-- ADDED */
    font-size: 1.5rem;
    font-weight: 700; /* <-- CHANGED (from 'bold') */
    color: var(--secondary-color);
}

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

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

.nav-links a {
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hamburger Menu (for mobile) */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    background-image: var(--primary-gradient), url('images/background.jpg');
    background-size: cover;
    background-position: center; 
    color: var(--light-color);
    padding-top: 60px; /* Offset for fixed header */
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--light-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--light-color); /* Add a border */
}

.cta-button:hover {
    background-color: transparent; /* Invert on hover */
    color: var(--light-color); /* Invert on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* About Section */
#about {
    background-color: var(--bg-color);
}

.about-image {
    padding: 5px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: inline-block; /* Keeps it as a circle */
    box-shadow: var(--shadow);
    
    /* NEW: Center the image and add vertical space */
    margin: 0 auto 2.5rem auto; /* Top: 0, Right: auto, Bottom: 2.5rem, Left: auto */
}
/* This is the new gradient frame */
.about-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%; /* This makes the photo round */
    display: block;
}

.about-text {
    max-width: 800px; /* Stops text from being too wide */
    margin: 0 auto;   /* Centers the text block */
    text-align: left; /* Aligns the text inside to the left */
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem; /* Makes text readable */
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--light-color);
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
    transition: all 0.3s ease; /* So shadow and transform both animate */
}


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

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding: 1rem;
}

.project-card h3 {
    padding: 1rem 1.5rem 0;
    color: var(--primary-color);
}

.project-card p {
    padding: 0.5rem 1.5rem;
}

.project-links {
    padding: 1rem 1.5rem;
}

.project-links a {
    margin-right: 1rem;
    font-weight: bold;
    color: var(--primary-color);
}
.project-links a:hover {
    color: var(--secondary-color); /* Changes text to dark grey */
    background-color: transparent; /* IMPORTANT: Keeps background clear */
}

/* Skills Section */
#skills {
    background-color: var(--bg-color);
}
.skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.skills-list li {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
}

/* Contact Section */
#contact p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    font-size: 2.5rem;
    margin: 0 1rem;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

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

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--secondary-color);
    color: var(--light-color);
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen */
        height: 100vh;
        width: 60%;
        background-color: var(--light-color);
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease-in-out;
    }

    .nav-links.nav-active {
        right: 0; /* Slide in */
    }

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

    .hamburger {
        display: block;
    }

    /* Hamburger Animation */
    .hamburger.toggle .line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .hamburger.toggle .line:nth-child(2) {
        opacity: 0;
    }
    .hamburger.toggle .line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.2rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }
}