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

:root {
    --deep-forest: #0a3d3d;
    --teal-primary: #1d6767;
    --teal-bright: #2d9393;
    --sage-light: #b8d4d4;
    --ocean-depth: #1b4a5f;
    --ocean-mid: #2d6b87;
    --mint-glow: #7dd3c0;
    --cream: #faf8f4;
    --charcoal: #1f2d2d;
    --fog: #e8efef;
    --shadow-teal: rgba(29, 103, 103, 0.12);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

body { font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--cream); color: var(--charcoal); line-height: 1.65; min-height: 100vh; position: relative; overflow-x: hidden; }

body::before { content: ''; position: fixed; top: -50%; right: -20%; width: 80%; height: 120%; background: radial-gradient(circle, rgba(125, 211, 192, 0.15) 0%, transparent 70%); animation: float 20s ease-in-out infinite; pointer-events: none; z-index: 0; }

body::after { content: ''; position: fixed; bottom: -30%; left: -10%; width: 60%; height: 80%; background: radial-gradient(circle, rgba(29, 107, 135, 0.08) 0%, transparent 70%); animation: float 25s ease-in-out infinite; animation-delay: -5s; pointer-events: none; z-index: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 4rem 2.5rem; position: relative; z-index: 1; }

header { margin-bottom: 2rem; animation: fadeInUp 0.8s ease-out; }

.header-content { height: 10rem; display: flex; flex-flow: row nowrap; justify-content: flex-start; align-items: center; gap: 1rem; }

.main-nav { display: flex; gap: 2.5rem; margin-top: 2.5rem; align-items: center; background-color: var(--charcoal); border-radius: 0.5rem; padding-inline-start: 1rem; }

.main-nav .nav-link { font-family: 'Crimson Pro', serif; font-size: 1.15rem; color: var(--fog); text-decoration: none; position: relative; padding: 0.25rem 0; letter-spacing: 0.02em; font-weight: 500; transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1); display: inline-block; cursor: pointer; }

.main-nav .nav-link:hover { color: var(--sage-light); }

.main-nav .active { color: var(--cream); cursor: default; font-weight: 600; }
.main-nav .nav-link.active:hover { color: var(--cream); }

h1 { font-family: 'Crimson Pro', serif; font-size: 5rem; font-weight: 700; background: linear-gradient(135deg, var(--deep-forest) 0%, var(--ocean-depth) 50%, var(--teal-primary) 100%); background-size: 200% 200%; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.1; margin-bottom: 1rem; letter-spacing: -0.03em; }

.tagline { font-family: 'DM Sans', sans-serif; font-size: 1.5rem; color: var(--ocean-mid); font-weight: 400; letter-spacing: 0.01em; margin-left: 4px; }

.head-shot { flex-basis: 10rem; flex-grow: 0; flex-shrink: 0; overflow: hidden; height: 100%; border-radius: 1rem; }
.head-shot img { width: 100%; }

.highlight-accent { position: absolute; top: -10px; left: -20px; width: 60px; height: 60px; background: linear-gradient(135deg, var(--mint-glow), var(--teal-bright)); border-radius: 50%; filter: blur(40px); opacity: 0.4; animation: float 8s ease-in-out infinite; }

.main-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; margin-bottom: 4rem; }

.card { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px); border-radius: 24px; padding: 2.5rem; box-shadow: 0 1px 3px rgba(29, 103, 103, 0.06), 0 8px 24px rgba(29, 103, 103, 0.08), 0 16px 48px rgba(29, 103, 103, 0.04); border: 1px solid rgba(184, 212, 212, 0.3); position: relative; overflow: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); animation: fadeInUp 0.8s ease-out backwards; }

.card::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(125, 211, 192, 0.1), transparent); transition: left 0.6s ease; }

.card:hover::before { left: 100%; }

.card:hover { transform: translateY(-4px); box-shadow: 0 2px 6px rgba(29, 103, 103, 0.08), 0 12px 32px rgba(29, 103, 103, 0.12), 0 24px 64px rgba(29, 103, 103, 0.06); }

.card:nth-child(1) { animation-delay: 0.1s; grid-column: span 12; }
.card:nth-child(2) { animation-delay: 0.2s; grid-column: span 7; }
.card:nth-child(3) { animation-delay: 0.3s; grid-column: span 5; }
.card:nth-child(4) { animation-delay: 0.4s; grid-column: span 12; }
.card:nth-child(5) { animation-delay: 0.5s; grid-column: span 6; }
.card:nth-child(6) { animation-delay: 0.6s; grid-column: span 6; }

.card h2 { font-family: 'Crimson Pro', serif; font-size: 2rem; color: var(--deep-forest); margin-bottom: 1.5rem; font-weight: 700; letter-spacing: -0.02em; position: relative; display: inline-block; }

.card h2::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 3px; background: linear-gradient(90deg, var(--teal-bright), var(--mint-glow)); transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 3px; }

.card:hover h2::after { width: 100%; }

.card h3 { font-family: 'DM Sans', sans-serif; font-size: 1.15rem; color: var(--ocean-depth); margin-top: 2rem; margin-bottom: 1rem; font-weight: 700; letter-spacing: 0.01em; }

.card p, .card li { color: var(--charcoal); margin-bottom: 1rem; font-size: 1.05rem; }

.role-group { margin-bottom: 2.5rem; padding-left: 1.5rem; border-left: 3px solid var(--sage-light); transition: border-color 0.3s ease; }

.role-group:hover { border-left-color: var(--teal-bright); }

.role-group:last-child { margin-bottom: 0; }

.company { font-weight: 700; color: var(--teal-primary); font-size: 1.15rem; display: block; margin-bottom: 0.5rem; }

.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }

.tech-category { background: linear-gradient(135deg, rgba(184, 212, 212, 0.2) 0%, rgba(125, 211, 192, 0.1) 100%); padding: 1.5rem; border-radius: 16px; border: 1px solid rgba(45, 147, 147, 0.15); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; }

.tech-category::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--teal-bright), var(--mint-glow)); border-radius: 16px 16px 0 0; opacity: 0; transition: opacity 0.3s ease; }

.tech-category:hover { transform: translateY(-2px); background: linear-gradient(135deg, rgba(184, 212, 212, 0.3) 0%, rgba(125, 211, 192, 0.15) 100%); box-shadow: 0 8px 24px var(--shadow-teal); }

.tech-category:hover::before { opacity: 1; }

.tech-category h4 { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ocean-mid); margin-bottom: 1rem; font-weight: 600; }

.tech-category ul { list-style: none; }

.tech-category li { padding: 0.4rem 0; color: var(--charcoal); font-size: 0.95rem; transition: transform 0.2s ease, color 0.2s ease; }

.tech-category li:hover { transform: translateX(4px); color: var(--teal-primary); }

.tech-category li:before { content: "▸"; color: var(--teal-bright); font-weight: bold; margin-right: 0.7rem; transition: color 0.2s ease; }

.tech-category li:hover:before { color: var(--mint-glow); }

.principles { list-style: none; }

.principles li { padding: 1rem 0; padding-left: 2rem; position: relative; transition: all 0.3s ease; }

.principles li:before { content: "→"; position: absolute; left: 0; color: var(--teal-bright); font-weight: bold; font-size: 1.2rem; transition: all 0.3s ease; }

.principles li:hover { padding-left: 2.5rem; color: var(--ocean-depth); }

.principles li:hover:before { left: 0.5rem; color: var(--mint-glow); }

.terminal-snippet { background: var(--charcoal); color: #7dd3c0; padding: 2rem; border-radius: 16px; font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; margin-top: 1.5rem; box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3), 0 8px 32px rgba(29, 103, 103, 0.2); border: 1px solid rgba(125, 211, 192, 0.2); position: relative; overflow: hidden; }

.terminal-snippet::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 32px; background: linear-gradient(180deg, rgba(125, 211, 192, 0.05) 0%, transparent 100%); border-bottom: 1px solid rgba(125, 211, 192, 0.1); }

.terminal-snippet::after { content: '● ● ●'; position: absolute; top: 8px; left: 16px; font-size: 12px; color: rgba(125, 211, 192, 0.3); letter-spacing: 6px; }

.terminal-content { margin-top: 16px; }
.terminal-snippet .terminal-line { color: inherit; margin: 0; padding: 0; }
.terminal-snippet .comment { color: #5a9a7f; font-style: italic; }
.terminal-snippet .prompt { color: #4a9db5; font-weight: 600; }

.stat-highlight { background: linear-gradient(135deg, rgba(125, 211, 192, 0.15), rgba(45, 147, 147, 0.1)); padding: 1.5rem; border-radius: 16px; margin-top: 1.5rem; border-left: 4px solid var(--teal-bright); }

.stat-highlight p { margin-bottom: 0; }

footer { text-align: center; padding: 3rem 0; color: var(--ocean-mid); font-size: 0.95rem; animation: fadeInUp 0.8s ease-out 0.7s backwards; }

.contact-section { margin-top: 2rem; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }

.contact-link { display: flex; align-items: center; justify-content: center; gap: 0.75rem; color: var(--ocean-depth); text-decoration: none; padding: 1.25rem 1.5rem; background: linear-gradient(135deg, rgba(184, 212, 212, 0.3) 0%, rgba(125, 211, 192, 0.15) 100%); border-radius: 16px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid rgba(45, 147, 147, 0.2); font-weight: 500; position: relative; overflow: hidden; }

.contact-link::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: radial-gradient(circle, rgba(125, 211, 192, 0.3), transparent); border-radius: 50%; transform: translate(-50%, -50%); transition: width 0.6s ease, height 0.6s ease; }

.contact-link:hover::before { width: 300px; height: 300px; }

.contact-link:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(29, 103, 103, 0.2); border-color: var(--teal-bright); }

.contact-link span { font-size: 1.5rem; position: relative; z-index: 1; }

.contact-link .label { position: relative; z-index: 1; }

.decorative-line { height: 2px; background: linear-gradient(90deg, transparent, var(--sage-light), transparent); margin: 3rem 0; border-radius: 2px; }

.intro-card { grid-column: span 12; }

.article-card { grid-column: span 12; }

.article-layout { display: flex; flex-flow: row wrap; gap: 1.5rem; align-items: flex-start; }

.article-image { flex: 0 0 10rem; width: 10rem; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--fog); }

.article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }

.article-card:hover .article-image img { transform: scale(1.05); }

.article-title { flex-basis: calc(100% - 10rem - 1.5rem); min-width: 0; }
.article-content { flex-basis: 100%; min-width: 0; }

.article-card h3 { font-family: 'Crimson Pro', serif; font-size: 1.5rem; color: var(--deep-forest); margin-bottom: 0.75rem; margin-top: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }

.article-card h3 a { color: var(--deep-forest); text-decoration: none; transition: color 0.3s ease; }

.article-card h3 a:hover { color: var(--teal-bright); }

.article-meta { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--ocean-mid); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }

.article-description { color: var(--charcoal); line-height: 1.7; margin-bottom: 1.5rem; }

.read-more { display: inline-block; color: var(--teal-primary); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 0.75rem 1.5rem; background: linear-gradient(135deg, rgba(184, 212, 212, 0.3) 0%, rgba(125, 211, 192, 0.15) 100%); border-radius: 12px; border: 1px solid rgba(45, 147, 147, 0.2); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

.read-more:hover { transform: translateX(4px); background: linear-gradient(135deg, rgba(184, 212, 212, 0.4) 0%, rgba(125, 211, 192, 0.25) 100%); border-color: var(--teal-bright); box-shadow: 0 4px 12px var(--shadow-teal); }

@media (max-width: 968px) {
    .card:nth-child(2) { grid-column: span 12; }
    .card:nth-child(3) { grid-column: span 12; }
    .card:nth-child(5) { grid-column: span 12; }
    .card:nth-child(6) { grid-column: span 12; }
    .article-card { grid-column: span 12; }
    h1 { font-size: 3.5rem; }
    .tech-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}

@media (max-width: 640px) {
    .container { padding: 2rem 1.5rem; }
    h1 { font-size: 2.8rem; }
    .tagline { font-size: 1.2rem; }
    .card { padding: 1.8rem; }
    .tech-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .header-content { flex-flow: column nowrap; }
    .head-shot { display: none; }
    .main-nav { gap: 2rem; margin-top: 2rem; }
    .main-nav .nav-link { font-size: 1rem; }
    .article-layout { flex-direction: column; }
    .article-image { flex: 0 0 auto; width: 100%; max-width: 20rem; }
}
