:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --bg-color: #f4f7f6;
    --text-color: #333;
    --card-bg: #ffffff;
    --nav-bg: #1a252f;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- NAVIGATION BAR --- */
.main-nav {
    background-color: var(--nav-bg);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    width: 100%;          /* Forces container to take full screen width */
    padding: 0 40px;      /* Adds safe spacing from the very edge of screen */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    box-sizing: border-box; /* Ensures padding doesn't break layout */
}

.brand-logo {
    margin-right: auto;   /* Pushes all other links to the right */
    color: #3498db;       /* CHANGED: Blue Color (same as your accent) */
    font-weight: 800;     /* CHANGED: Extra Bold */
    text-decoration: none;
    font-size: 2.2rem;    /* CHANGED: Much larger size */
    letter-spacing: 1px;
}

.main-nav a.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s;
}

.main-nav a.nav-link:hover, .main-nav a.nav-link.active {
    background-color: var(--accent-color);
}

/* --- LANDING PAGE HERO (New) --- */
.landing-hero {
    flex: 1; /* Takes up remaining height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

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

.landing-content .subtitle {
    font-size: 1.5rem;
    color: #bdc3c7;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.2s, background 0.2s;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* --- STANDARD CONTENT PAGES --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header Inside Profile/Projects */
.page-header {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.profile-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color);
}

/* Sections & Cards */
section {
    background: var(--card-bg);
    margin-bottom: 25px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-top: 0;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.skill-card h3 { color: var(--primary-color); margin-bottom: 5px; }
.skill-list { font-size: 0.95rem; }

/* Responsive */
@media (max-width: 768px) {
    .page-header { flex-direction: column; text-align: center; }
    .landing-content h1 { font-size: 2rem; }
}

/* --- NEW CONTACT ROW STYLES --- */
/* --- UPDATED CONTACT ROW (Header Alignment) --- */
.contact-row {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on tiny mobile screens */
    align-items: center; /* This forces vertical centering */
    gap: 20px; /* Consistent space between Email, Phone, and Buttons */
    margin-top: 15px;
}

.contact-text {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    white-space: nowrap; /* Prevents email/phone from breaking into two lines */
}

/* Style for LinkedIn and GitHub (Clickable Buttons) */
.contact-btn {
    text-decoration: none;
    color: #ffffff;            /* White text */
    background-color: #2c3e50; /* Dark Blue background */
    padding: 6px 12px;         /* Padding to make it look like a button */
    border-radius: 4px;        /* Rounded corners */
    font-size: 0.95rem;
    display: inline-flex;      /* Keeps icon and text aligned inside button */
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background-color: #3498db; /* Lighter blue on hover */
}

/* --- TABLE STYLES FOR RESUME --- */
.career-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.95rem;
}

.career-table th, .career-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.career-table th {
    background-color: #f8f9fa;
    color: var(--primary-color);
    font-weight: bold;
}

.career-table tr:hover {
    background-color: #f1f1f1; /* Light grey hover effect */
}

/* --- JOB HEADER STYLES (To align Company Name and Date) --- */
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee; /* Optional: Adds a subtle divider line */
    padding-bottom: 10px;
}

.job-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.job-date {
    background: #e1f5fe;
    color: #0277bd;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    white-space: nowrap;
}

/* Ensure Lists inside sections look clean */
section ul {
    margin-bottom: 0;
    padding-left: 20px;
}

section li {
    margin-bottom: 8px;
}

/* --- PROJECT CARD STYLES --- */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Responsive columns */
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

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

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.project-title {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.project-status {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Status Colors */
.status-completed { background: #e8f5e9; color: #2e7d32; }
.status-live { background: #e1f5fe; color: #0277bd; }
.status-upcoming { background: #fff3e0; color: #ef6c00; }

.project-description {
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes tags to the bottom */
}

/* Tech Tags (Pills) */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto; /* Aligns to bottom of card */
}

.tech-tag {
    background-color: #f1f2f6;
    color: #57606f;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* --- ABOUT PAGE STYLES --- */

/* Certifications Grid */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.cert-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid var(--accent-color); /* Blue top border */
}

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

.cert-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.cert-title {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
    display: block;
}

.cert-issuer {
    font-size: 0.9rem;
    color: #777;
}

/* Education Timeline Look */
.education-item {
    border-left: 3px solid #ddd;
    padding-left: 20px;
    margin-bottom: 30px;
    position: relative;
}

.education-item::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    left: -7.5px;
    top: 5px;
}

/* Hobbies */
.hobby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.hobby-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}