/* Basic Reset for cross-browser consistency */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Body Styles */
body {
    font-family: Arial, sans-serif; /* Professional, readable font */
    line-height: 1.6;
    color: #333; /* Dark gray text */
    background-color: #f4f4f9; /* Very light background */
}

/* Layout and Containers */
.container {
    max-width: 800px; /* Max width for a readable resume */
    margin: 20px auto; /* Centers the content and adds top/bottom spacing */
    padding: 30px;
    background-color: #fff; /* White background for the main sections */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    border-radius: 8px; /* Slightly rounded corners */
}

/* Header Styling */
header {
    background-color: #2c3e50; /* Dark, professional color */
    color: #ecf0f1; /* Light text */
    padding: 40px 0;
    text-align: center;
    border-bottom: 5px solid #3498db; /* A splash of accent color */
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 5px;
}

header p {
    font-size: 1.2em;
    margin-bottom: 15px;
}

/* Navigation Links */
nav a {
    color: #ecf0f1;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #3498db; /* Change link color on hover */
}

/* Section Headings */
h2 {
    color: #2c3e50;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
    margin-bottom: 20px;
    font-size: 1.8em;
}

/* Work Experience Entries */
.job-entry {
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 3px solid #3498db;
}

.job-entry h3 {
    color: #34495e;
    font-size: 1.3em;
}

.job-entry .dates {
    font-style: italic;
    color: #777;
    margin-bottom: 10px;
}

.job-entry ul {
    list-style-type: disc;
    margin-left: 25px;
}

/* Skills Tags */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background-color: #ecf0f1;
    color: #2c3e50;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    border: 1px solid #ddd;
}

/* Contact and Footer */
address a {
    color: #3498db;
    text-decoration: none;
}

address a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 15px;
    background-color: #2c3e50;
    color: #ecf0f1;
    font-size: 0.9em;
    margin-top: 30px;
}

/* --- Video Gallery Styling --- */

.video-gallery {
    display: grid;
    /* This creates a two-column layout on larger screens */
    grid-template-columns: 1fr 1fr; 
    gap: 30px; /* Space between videos */
    margin-top: 20px;
}

.video-item h3 {
    color: #3498db;
    font-size: 1.2em;
    margin-bottom: 10px;
}

/* This is the key for responsive video sizing */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (9/16 = 0.5625) */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* Media Query for smaller screens (like phones) */
@media (max-width: 700px) {
    .video-gallery {
        /* On small screens, stack the videos into one column */
        grid-template-columns: 1fr; 
    }
}

/* --- Projects Gallery Styling --- */

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.project-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.project-item:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

.project-links {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.project-link-btn {
    display: block;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    flex: 1;
    transition: background-color 0.3s;
}

.project-link-btn.live {
    background-color: #3498db; /* Accent color */
    color: white;
}

.project-link-btn.code {
    background-color: #ecf0f1; /* Light color */
    color: #2c3e50;
    border: 1px solid #ddd;
}

.project-link-btn.live:hover {
    background-color: #2980b9;
}

.project-link-btn.code:hover {
    background-color: #ddd;
}