/* Base styles and variables */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1d4ed8;
    --dark-color: #111827;
    --light-color: #f9fafb;
    --text-color: #374151;
    --border-color: #e5e7eb;
    --gradient: linear-gradient(135deg, #e8ebf3 0%, #36368a 100%);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.45);
    outline-offset: 4px;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--dark-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.primary-btn {
    background: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.secondary-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
    padding: 4px;
    border: 0;
    background: transparent;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section - Centered Layout */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 0;
}

.hero-image-center {
    margin-bottom: 30px;
}

.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #4a6fa5;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-text-center {
    max-width: 800px;
    margin: 0 auto;
}

.hero-name {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.hero-title {
    font-size: 1.4rem;
    color: #4a6fa5;
    margin-bottom: 15px;
    font-weight: 500;
}

.hero-tagline {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.primary-btn {
    background-color: #4a6fa5;
    color: white;
    border: 2px solid #4a6fa5;
}

.primary-btn:hover {
    background-color: #3a5a80;
    border-color: #3a5a80;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 111, 165, 0.3);
}

.secondary-btn {
    background-color: transparent;
    color: #4a6fa5;
    border: 2px solid #4a6fa5;
}

.secondary-btn:hover {
    background-color: #4a6fa5;
    color: white;
    transform: translateY(-2px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hero-name {
        font-size: 2.2rem;
    }
    
    .hero-title {
        font-size: 1.2rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
    
    .profile-img {
        width: 220px;
        height: 220px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        text-align: center;
    }
}

/* About section */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.profile-image {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: var(--shadow);
    border: 4px solid var(--primary-color);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    max-width: 800px;
    font-size: 1.1rem;
}

.about-text p {
    margin-bottom: 1rem;
}

/* Skills section */
.skills {
    background-color: var(--light-color);
}

.skills-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.skill-category {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.skill-category h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--dark-color);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Education section */
.education {
    background-color: white;
}

.education-item {
    background: var(--light-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.education-info h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
}

.degree {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.duration {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.education-info h4 {
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.education-info ul {
    list-style-type: disc;
    padding-left: 20px;
}

.education-info li {
    margin-bottom: 0.5rem;
}

/* Experience section */
.experience {
    background-color: var(--light-color);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 1rem;
}

.timeline-content li {
    margin-bottom: 0.8rem;
}

/* Projects section */
.projects {
    background-color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.flagship-project {
    grid-column: 1 / -1;
    border-top: 4px solid var(--primary-color);
    background: #f8fbff;
}

.flagship-project .project-content {
    max-width: 980px;
}

.project-eyebrow,
.case-eyebrow {
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.project-evidence {
    font-weight: 600;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.project-content p {
    margin-bottom: 15px;
    color: var(--text-color);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tech-stack span {
    background-color: #e5e7eb;
    color: var(--dark-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.project-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-link:hover {
    text-decoration: underline;
}

/* Activities section */
.activities {
    background-color: var(--light-color);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.activity-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.activity-card h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.role {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.duration {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

/* Contact section */
.contact {
    background-color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info {
    background: var(--light-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    font-size: 1.8rem;
    color: var(--dark-color);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--light-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Form status messages */
#form-status {
    margin-top: 20px;
}

.form-success {
    color: #059669;
    padding: 10px;
    background-color: #d1fae5;
    border-radius: 6px;
}

.form-error {
    color: #dc2626;
    padding: 10px;
    background-color: #fee2e2;
    border-radius: 6px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 30px 0;
}

footer p {
    margin-bottom: 10px;
}

/* SentinelMCP case study */
.case-study {
    padding-top: 80px;
    background: white;
}

.case-hero {
    padding: 72px 0 64px;
    background: var(--light-color);
    border-bottom: 1px solid var(--border-color);
}

.case-hero-content,
.case-copy {
    max-width: 940px;
}

.case-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 36px;
    color: var(--primary-color);
    font-weight: 600;
}

.case-back:hover {
    text-decoration: underline;
}

.case-hero h1 {
    margin: 8px 0 18px;
    color: var(--dark-color);
    font-size: 3.8rem;
}

.case-lead {
    max-width: 820px;
    margin-bottom: 20px;
    color: #1f2937;
    font-size: 1.45rem;
    font-weight: 500;
}

.case-intro {
    max-width: 820px;
    margin-bottom: 26px;
    font-size: 1.05rem;
}

.case-tech {
    margin-bottom: 28px;
}

.case-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.case-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.case-section {
    padding: 72px 0;
    border-bottom: 1px solid var(--border-color);
}

.case-section-alt {
    background: var(--light-color);
}

.case-section-number {
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
}

.case-section h2 {
    margin-bottom: 24px;
    color: var(--dark-color);
    font-size: 2rem;
}

.case-section p + p {
    margin-top: 18px;
}

.case-list {
    display: grid;
    gap: 14px;
}

.case-list li {
    position: relative;
    padding-left: 22px;
}

.case-list li::before {
    content: '';
    position: absolute;
    top: 0.7em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-color);
}

.architecture-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 30px 0;
    padding-left: 0;
    list-style: none;
    counter-reset: architecture-step;
}

.architecture-flow li {
    min-width: 0;
    padding: 15px 16px;
    border-left: 3px solid var(--primary-color);
    background: white;
    color: var(--dark-color);
    font-size: 0.9rem;
    font-weight: 600;
    overflow-wrap: anywhere;
    counter-increment: architecture-step;
}

.architecture-flow li::before {
    content: counter(architecture-step, decimal-leading-zero);
    display: block;
    margin-bottom: 5px;
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 700;
}

.case-note {
    padding: 18px 20px;
    border-left: 3px solid var(--primary-color);
    background: #eff6ff;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 28px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.metric-item {
    min-width: 0;
    padding: 20px 18px;
    border-right: 1px solid var(--border-color);
}

.metric-item:last-child {
    border-right: 0;
}

.metric-item strong,
.metric-item span {
    display: block;
    overflow-wrap: anywhere;
}

.metric-item strong {
    margin-bottom: 7px;
    color: var(--dark-color);
    font-size: 1.2rem;
}

.metric-item span {
    color: #6b7280;
    font-size: 0.82rem;
}

.case-footer-actions {
    margin-top: 32px;
}

/* Animation for project cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Media queries for responsiveness */
@media screen and (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .hero-name {
        font-size: 3rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }

    .metric-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metric-item:nth-child(2) {
        border-right: 0;
    }

    .metric-item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--border-color);
    }
}

@media screen and (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 1.3rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 200px;
        margin-bottom: 10px;
    }
    
    .nav-links {
        position: fixed;
        right: 0;
        height: 92vh;
        top: 80px;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
        z-index: -1;
        padding: 20px 0;
    }
    
    .nav-active {
        transform: translateX(0%);
    }
    
    .burger {
        display: block;
    }

    .case-hero h1 {
        font-size: 2.8rem;
    }

    .case-lead {
        font-size: 1.2rem;
    }

    .architecture-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .about-content {
        text-align: center;
    }
    
    .projects-grid,
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .toggle .line2 {
        opacity: 0;
    }
    
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

@media screen and (max-width: 576px) {
    .nav-links {
        width: 100%;
    }
    
    .hero-name {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 1.1rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }

    .case-hero {
        padding: 48px 0;
    }

    .case-hero h1 {
        font-size: 2.2rem;
    }

    .case-actions {
        flex-direction: column;
    }

    .case-actions .btn {
        width: 100%;
    }

    .architecture-flow,
    .metric-strip {
        grid-template-columns: 1fr;
    }

    .metric-item,
    .metric-item:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .metric-item:last-child {
        border-bottom: 0;
    }
}
