/* Professional DevOps/SRE Website Styles */

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #06b6d4;
    --accent: #10b981;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-alt: #f1f5f9;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Typography - Apple SF Pro Font Stack */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.65;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1, "liga" 1;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: clamp(0.75rem, 1.5vh, 1rem) 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.025em;
}

.nav-links {
    display: flex;
    gap: clamp(0.5rem, 2vw, 2rem);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.75rem, 1.5vw, 0.95rem);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: clamp(6rem, 12vh, 8rem) 2rem clamp(3rem, 6vh, 4rem);
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    border-bottom: 1px solid var(--border);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    font-weight: 600;
    margin-bottom: clamp(0.75rem, 2vh, 1rem);
    letter-spacing: 0.025em;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: clamp(0.5rem, 1.5vh, 0.75rem);
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: clamp(0.75rem, 2vh, 1rem);
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: clamp(1.5rem, 3vh, 2rem);
}

.hero-stats {
    display: flex;
    gap: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: clamp(1.5rem, 3vh, 2rem);
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    min-width: 100px;
}

.stat-number {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-label {
    font-size: clamp(0.75rem, 1.4vw, 0.875rem);
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: clamp(0.875rem, 1.5vh, 1rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.6vw, 1rem);
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

@media (max-width: 768px) {
    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: clamp(3rem, 6vh, 5rem) 0;
}

.section-alt {
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
    text-align: center;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    background: white;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.about-text p {
    font-size: clamp(0.9rem, 1.6vw, 1.05rem);
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 clamp(1rem, 2vh, 1.5rem) 0;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Expertise Section */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    max-width: 1200px;
    margin: 0 auto;
}

.expertise-card {
    background: white;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.expertise-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.expertise-icon {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: clamp(0.5rem, 1vh, 0.75rem);
    display: block;
}

.expertise-card h3 {
    font-size: clamp(1.05rem, 1.8vw, 1.15rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: clamp(0.5rem, 1vh, 0.75rem);
    line-height: 1.3;
}

.expertise-card p {
    font-size: clamp(0.85rem, 1.4vw, 0.9rem);
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Projects Section */
.projects-grid {
    display: grid;
    gap: clamp(1.5rem, 2.5vw, 2rem);
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
}

@media (max-width: 1024px) {
    .project-card {
        grid-template-columns: 1fr;
    }
}

.project-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.project-card.featured {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.project-main {
    padding: clamp(1.25rem, 2.5vw, 2rem);
}

.project-sidebar {
    background: var(--bg-secondary);
    padding: clamp(1.25rem, 2.5vw, 2rem);
    border-left: 1px solid var(--border);
}

@media (max-width: 1024px) {
    .project-sidebar {
        border-left: none;
        border-top: 1px solid var(--border);
    }
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: clamp(0.75rem, 1.5vh, 1rem);
}

.project-header h3 {
    font-size: clamp(1.25rem, 2.2vw, 1.5rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    flex: 1;
}

.project-tag {
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: clamp(0.65rem, 1.1vw, 0.7rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.featured-tag {
    background: var(--primary);
    color: white;
}

.project-description {
    font-size: clamp(0.875rem, 1.5vw, 0.95rem);
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: clamp(1rem, 2vh, 1.5rem);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.375rem, 0.8vw, 0.5rem);
}

.tech-tag {
    display: inline-block;
    padding: clamp(0.35rem, 0.7vw, 0.4rem) clamp(0.65rem, 1.2vw, 0.8rem);
    background: var(--bg-alt);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: clamp(0.7rem, 1.2vw, 0.75rem);
    font-weight: 500;
    border: 1px solid var(--border);
}

.project-impact {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vh, 1.5rem);
    margin-bottom: clamp(1rem, 2vh, 1.5rem);
}

.impact-item {
    text-align: left;
}

.impact-number {
    display: block;
    font-size: clamp(1.75rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.impact-label {
    display: block;
    font-size: clamp(0.75rem, 1.3vw, 0.8rem);
    color: var(--text-secondary);
    font-weight: 500;
}

.project-details h4 {
    font-size: clamp(0.95rem, 1.5vw, 1rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: clamp(0.5rem, 1vh, 0.75rem);
}

.project-details ul {
    list-style: none;
    padding: 0;
}

.project-details li {
    padding-left: 1.25rem;
    margin-bottom: clamp(0.375rem, 0.8vh, 0.5rem);
    position: relative;
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: clamp(0.8rem, 1.4vw, 0.875rem);
}

.project-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
}


/* Contact Section */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-description {
    font-size: clamp(0.95rem, 1.8vw, 1.125rem);
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: clamp(2rem, 4vh, 3rem);
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.contact-card {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.25rem);
    background: white;
    padding: clamp(1.25rem, 2.5vw, 1.5rem);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.contact-icon {
    font-size: clamp(1.5rem, 3vw, 2rem);
    flex-shrink: 0;
}

.contact-info {
    text-align: left;
}

.contact-info h4 {
    font-size: clamp(0.75rem, 1.4vw, 0.875rem);
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-info p {
    font-size: clamp(0.9rem, 1.6vw, 1rem);
    font-weight: 600;
    color: var(--text-primary);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: clamp(2.5rem, 4vh, 3rem) 0;
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
    font-size: clamp(0.875rem, 1.5vw, 0.95rem);
}

.footer-tagline {
    font-size: clamp(0.8rem, 1.4vw, 0.95rem);
    opacity: 0.7;
    font-style: italic;
}

/* Responsive Design - Minimal breakpoints needed with fluid typography */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
    }

    .stat {
        flex: 1 1 calc(50% - 1rem);
        min-width: 100px;
    }

    .contact-links {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeIn 0.8s ease-out;
}

/* Print Styles */
@media print {
    .navbar,
    .hero-cta,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
    }

    .section {
        page-break-inside: avoid;
    }
}
