@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto+Mono:wght@400;500&display=swap');

:root {
    --background: #f5f4f1; /* Lighter version of rgb(143, 133, 112) */
    --text: rgb(73, 68, 57); /* Darker version of rgb(143, 133, 112) for readability */
    --primary: rgb(79, 116, 148); /* Blue gray as requested */
    --primary-dark: rgb(63, 93, 118); /* Darker version for hover states */
    --primary-light: rgb(142, 171, 196); /* Lighter version for backgrounds */
    --secondary: rgb(143, 133, 112); /* The warm beige/taupe color */
    --secondary-light: rgb(173, 166, 150); /* Lighter version for subtle elements */
    --accent: rgb(181, 101, 118); /* Complementary accent color */
    --light: rgb(245, 244, 241); /* Very light version of secondary for backgrounds */
    --dark: rgb(56, 53, 45); /* Very dark version of secondary for footers/dark sections */
    --border: rgb(214, 209, 198); /* Light version of secondary for borders */
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    background-color: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-highlight {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 3rem;
}

nav ul li a {
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-color: rgb(240, 238, 234); /* Subtle light version of secondary */
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.hero-text {
    padding: 2rem 0;
}

.hero-subtitle {
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 3px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--primary);
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

.secondary-button {
    display: inline-block;
    background-color: transparent;
    color: var(--text);
    padding: 0.8rem 2rem;
    border-radius: 3px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    margin-left: 1rem;
    cursor: pointer;
}

.secondary-button:hover {
    background-color: var(--light);
    border-color: var(--secondary);
}

.hero-visual {
    position: relative;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-stats {
    display: flex;
    margin-top: 4rem;
}

.hero-stat {
    margin-right: 3rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 500;
}

/* Section Styles */
.section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Expertise Section */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.expertise-card {
    background-color: white;
    padding: 3rem 2rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--border);
}

.expertise-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.expertise-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.expertise-description {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.expertise-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.expertise-skill {
    background-color: var(--light);
    color: var(--secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-family: 'Roboto Mono', monospace;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background-color: var(--border);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-content {
    width: 45%;
    padding: 2rem;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-date {
    position: absolute;
    top: 0;
    width: max-content;
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: white;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: 500;
}

.timeline-item:nth-child(odd) .timeline-date {
    left: -120px;
}

.timeline-item:nth-child(even) .timeline-date {
    right: -120px;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    left: 50%;
    width: 15px;
    height: 15px;
    background-color: var(--primary);
    border-radius: 50%;
    transform: translateX(-50%);
    border: 3px solid white;
    box-shadow: 0 0 0 2px rgba(79, 116, 148, 0.3);
}

.timeline-company {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.timeline-position {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.timeline-description {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-skill {
    background-color: var(--light);
    color: var(--secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-family: 'Roboto Mono', monospace;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.project-card {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

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

.project-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.project-content {
    padding: 2rem;
}

.project-category {
    font-size: 0.9rem;
    color: var(--primary);
    font-family: 'Roboto Mono', monospace;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-description {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.project-link {
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.project-link span {
    margin-left: 0.5rem;
    transition: margin-left 0.3s ease;
}

.project-link:hover span {
    margin-left: 0.8rem;
}

/* Case Studies Section */
.case-study {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 3rem;
    overflow: hidden;
}

.case-study-content {
    padding: 3rem;
}

.case-study-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.case-study-subtitle {
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.case-study-section {
    margin-bottom: 2rem;
}

.case-study-section-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

/* Email Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: white;
    width: 90%;
    max-width: 500px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-50px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem;
    background-color: var(--primary);
    color: white;
    position: relative;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

.modal-body {
    padding: 2rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
}

.modal-form-group {
    margin-bottom: 1.5rem;
}

.modal-form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.modal-form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 3px;
    transition: border-color 0.3s ease;
}

.modal-form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.modal-submit {
    background-color: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 3px;
    font-weight: 500;
    border: 1px solid var(--primary);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modal-submit:hover {
    background-color: transparent;
    color: var(--primary);
}

/* Contact Section */
.contact-section {
    background-color: rgba(79, 116, 148, 0.08); /* Very light version of primary color */
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info {
    margin-bottom: 3rem;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.contact-description {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.2rem;
    color: var(--primary);
    margin-right: 1rem;
    background-color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-text {
    font-size: 1rem;
    color: var(--text);
}

.contact-form {
    background-color: white;
    padding: 3rem;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 3px;
    transition: border-color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-button {
    background-color: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 3px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--primary);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    width: 100%;
}

.submit-button:hover {
    background-color: transparent;
    color: var(--primary);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: rgb(230, 227, 220); /* Light version of secondary for better contrast */
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.footer-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    max-width: 400px;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message {
    padding: 1rem;
    border-radius: 3px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.message-success {
    background-color: rgba(34, 197, 94, 0.1);
    color: rgb(34, 197, 94);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.message-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: rgb(239, 68, 68);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Media Queries */
@media (max-width: 1200px) {
    .container {
        padding: 0 3rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero::before {
        display: none;
    }
    
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .timeline-date {
        position: relative;
        left: 0 !important;
        right: auto !important;
        margin-bottom: 1rem;
        display: inline-block;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 2rem;
    }
    
    .header-content {
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 5rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    nav {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
    }
    
    nav.active ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav.active ul li {
        margin: 1rem 0;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
    }
    
    .hero-stat {
        margin-right: 0;
        margin-bottom: 2rem;
    }
    
    .cta-button, .secondary-button {
        display: block;
        width: 100%;
        text-align: center;
        margin: 1rem 0;
    }
}