/* General Body Styles */
:root {
    --primary-color: #001f3f; /* Navy Blue */
    --text-color: #111111;
    --light-text-color: #444444;
    --bg-color: #f9f9f9;
    --border-color: #dddddd;
}

/* Professional Navigation Bar */
.main-nav {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: static;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(0, 31, 63, 0.05);
}

.nav-separator {
    color: var(--light-text-color);
    font-weight: 300;
    font-size: 1.2rem;
}

/* Project Title Links */
.project-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-content h3 a:hover {
    color: #003366;
    text-decoration: underline;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Lato', sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header and Hero Section */
.hero {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 60px;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    margin-bottom: 25px;
}

.hero h1 {
    font-family: 'Merriweather', serif;
    font-size: 4em;
    margin-bottom: 0.2em;
    color: var(--text-color);
    font-weight: 900;
}

.hero h2 {
    font-size: 1.5em;
    font-weight: 400;
    margin-bottom: 1.5em;
    color: var(--light-text-color);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Call to Action Buttons */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.cta-button {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.cta-button:hover {
    background-color: #000d1a;
    border-color: #000d1a;
}

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

.cta-button.secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Sections & Layout */
main {
    padding: 20px 0;
}

section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.section-wrapper {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 60px;
}

.section-title h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.2em;
    color: var(--text-color);
    font-weight: 900;
    position: sticky;
    top: 40px;
}

/* Experience & Case Study */
.case-study h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.6em;
    color: var(--primary-color);
    margin-top: 0;
}

ul {
    padding-left: 20px;
    list-style-type: '»';
    color: var(--primary-color);
}

li {
    margin-bottom: 12px;
    padding-left: 10px;
}

strong {
    font-weight: 700;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.testimonial blockquote {
    margin: 0 0 15px 0;
    font-style: italic;
    font-size: 1.2em;
    color: var(--light-text-color);
    border-left: 3px solid var(--primary-color);
    padding-left: 20px;
}

.testimonial cite {
    display: block;
    font-weight: 700;
    color: var(--primary-color);
    padding-left: 23px;
}

/* How I Work */
.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.step h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.4em;
    color: var(--primary-color);
    margin-top: 0;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.project-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #fff;
}

.project-content {
    padding: 30px;
}

.project-card h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.8em;
    color: var(--primary-color);
    margin: 0 0 10px 0;
}

.case-study-details {
    margin-top: 20px;
}

.case-study-details p {
    margin-bottom: 15px;
}

.tech-stack {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

code {
    background-color: #f0f0f0;
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: 700;
}

/* Video Player */
.video-container {
    position: relative;
    cursor: pointer;
}

.video-container video {
    width: 100%;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: rgba(0, 31, 63, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.play-button::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 22px solid white;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    margin-left: 4px;
}

.video-container:hover .play-button {
    background-color: rgba(0, 31, 63, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Footer */
.contact {
    text-align: center;
    padding: 60px 20px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

/* Responsive Design */
@media (max-width: 900px) {
    .section-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .section-title h2 {
        position: static;
        text-align: left;
        border-bottom: 2px solid var(--border-color);
        padding-bottom: 10px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3em;
    }
    .hero h2 {
        font-size: 1.2em;
    }
    .cta-buttons, .contact-info {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}