/* style.css - Complete Professional Portfolio Styles */
:root {
    --primary-color: #333;           /* Dark text/main color */
    --background-color: #ffffff;     /* Clean white background */
    --light-gray: #f4f4f4;           /* Subtle background for sections/cards */
    --accent-color: #007bff;         /* Professional accent color (Blue) */
    --font-stack: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* --- 1. Global Reset and Typography --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-stack);
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--background-color);
    padding-top: 60px; /* Space for fixed header */
}

/* Centralizing Content */
.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

h1, h2, h3 {
    margin-bottom: 0.5rem;
    font-weight: 700;
}

/* --- 2. Header & Navigation --- */
.main-header {
    background: var(--background-color);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    border-bottom: 1px solid var(--light-gray);
    height: 60px;
    display: flex;
    align-items: center;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    margin-left: 10px;
    transition: color 0.3s;
}

.navbar ul li a:hover, .navbar ul li a.active {
    color: var(--accent-color);
}

/* --- 3. Buttons and Footer --- */
.btn {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background: #0056b3;
}

.main-footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--light-gray);
    color: var(--primary-color);
    font-size: 0.9rem;
    background: var(--background-color);
}

/* -------------------------------------------------------------------------- */
/* --- 4. INDEX PAGE SPECIFIC STYLES (Hero) --- */
/* -------------------------------------------------------------------------- */
#hero {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
}

#hero .hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px 0;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
}

.profile-pic {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--light-gray);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* -------------------------------------------------------------------------- */
/* --- 5. PROJECTS PAGE SPECIFIC STYLES (Two-Image Layout) --- */
/* -------------------------------------------------------------------------- */
#projects h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

/* Container for the single featured project */
.single-project-container {
    max-width: 900px; 
    margin: 0 auto;
    padding: 20px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    background-color: var(--background-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Grid for the two project images */
.project-media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 20px;
    margin-bottom: 20px;
}

.project-media-grid img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.project-info a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}


/* -------------------------------------------------------------------------- */
/* --- 6. CONTACT PAGE SPECIFIC STYLES --- */
/* -------------------------------------------------------------------------- */
#contact-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.contact-layout {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.contact-form-container {
    flex: 2;
}

.contact-info-container {
    flex: 1;
    background: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.social-links {
    margin-top: 20px;
    list-style: none;
    padding-left: 0;
}

.social-links li {
    margin-bottom: 10px;
}

.social-links li a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.social-links li a:hover {
    color: var(--accent-color);
}

/* -------------------------------------------------------------------------- */
/* --- 7. Mobile Responsiveness --- */
/* -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    body {
        padding-top: 50px;
    }
    .main-header {
        height: 50px;
    }
    
    /* Homepage: Stack hero elements */
    #hero .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-pic {
        order: -1; /* Move image to the top on mobile */
        margin-bottom: 20px;
    }

    /* Contact Page: Stack contact info and form */
    .contact-layout {
        flex-direction: column;
        gap: 30px;
    }
    
    .contact-info-container {
        order: -1; /* Move contact info above the form on mobile */
    }
    
    /* Projects Page: Stack images */
    .project-media-grid {
        grid-template-columns: 1fr; /* Single column for images */
    }
}