/* design-hybrid: A custom blend of marketing-tech, motorsport, swiss-editorial, and experimental */

:root {
  --bg-dark: #0f1115; /* Motorsport dark background */
  --bg-card: #1a1d24; /* Motorsport panel background */
  --text-main: #ffffff;
  --text-muted: #8b92a5;
  
  --accent-gradient: linear-gradient(135deg, #3b82f6, #f43f5e, #fb923c); /* Marketing-tech gradient */
  --accent-solid: #ffb800; /* Motorsport yellow */
  
  --font-main: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Swiss editorial font */
  --radius-curved: 24px; /* Curved rectangles requested */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-main); background: var(--bg-dark); color: var(--text-main); line-height: 1.5; letter-spacing: -0.02em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.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; }

::selection { background: #f43f5e; color: #0f1115; }

.section-light { padding: 6rem 0; background: #15181e; position: relative; }
.section-dark { padding: 6rem 0; background: var(--bg-dark); position: relative; }



.section-dark .pill-badge-dark { background: var(--bg-card); color: var(--accent-solid); }

.section-header { text-align: center; display: flex; flex-direction: column; align-items: center; }

h1, h2, h3 { font-weight: 900; letter-spacing: -0.04em; } /* Swiss editorial huge/bold */
p { font-size: 1.2rem; font-weight: 400; color: var(--text-muted); line-height: 1.6; }

.pill-wrapper { margin-bottom: 2rem; }
.pill-badge { font-size: 0.9rem; font-weight: 700; background: rgba(255,184,0,0.1); color: var(--accent-solid); padding: 0.4rem 1.5rem; display: inline-block; text-transform: uppercase; border-radius: 50px; }
.pill-badge::before { content: '//'; color: var(--accent-solid); margin-right: 0.5rem; } /* Motorsport accent */

/* Swiss Editorial massive typography */
.section-title, .section-title-dark { font-size: 5rem; margin-bottom: 1rem; max-width: 800px; line-height: 0.9; text-transform: uppercase; text-align: center; }
.section-subtitle { font-size: 1.5rem; margin-bottom: 4rem; max-width: 900px; color: var(--text-muted); text-align: center; }

/* Header */
.header { padding: 1.5rem 0; position: sticky; top: 0; background: rgba(15, 17, 21, 0.9); z-index: 100; backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.05); }
.header-nav { display: flex; justify-content: space-between; align-items: baseline; }
.logo-text { font-weight: 900; font-size: 1.8rem; text-decoration: none; color: var(--text-main); letter-spacing: -0.05em; text-transform: uppercase; line-height: 1; }
.logo-text::before { content: '//'; color: var(--accent-solid); margin-right: 0.5rem; }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: baseline; }
.nav-links li { display: flex; align-items: baseline; }
.nav-links a { font-size: 1rem; font-weight: 700; text-decoration: none; color: var(--text-muted); transition: 0.3s; text-transform: uppercase; line-height: 1; }
.nav-links a:hover { color: #fff; }
.nav-links .nav-btn-contact { background: var(--accent-gradient); color: #fff; padding: 0.5rem 1.5rem; border-radius: 50px; border: none; line-height: 1; }
.lang-switcher { display: none; gap: 0.5rem; background: var(--bg-card); padding: 0.2rem 0.5rem; border-radius: 50px; align-items: baseline; }
.lang-btn { font-family: var(--font-main); font-size: 0.9rem; font-weight: 700; background: transparent; border: none; color: var(--text-muted); cursor: pointer; transition: 0.3s; padding: 0.3rem 0.8rem; border-radius: 50px; text-decoration: none; line-height: 1; }
.lang-btn.active { background: #fff; color: var(--bg-dark); pointer-events: none; cursor: default; }
.nav-toggle { display: none; }

/* Hero */
.hero { padding: 8rem 0; border: none; position: relative; }
.hero-row { display: grid; grid-template-columns: 1fr auto; gap: 4rem; align-items: center; }
.hero-content { display: flex; flex-direction: column; }
.hero-subtitle { font-size: 6rem; line-height: 0.9; margin-bottom: 2rem; letter-spacing: -0.04em; font-weight: 900; text-transform: uppercase; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-lead { font-size: 1.5rem; font-weight: 500; margin-bottom: 3rem; max-width: 600px; color: var(--text-main); border-left: 4px solid var(--accent-solid); padding-left: 1.5rem; text-align: justify; }
.hero-actions { display: flex; gap: 1.5rem; }

.portrait-img { width: 350px; height: 350px; border-radius: var(--radius-curved); object-fit: cover; border: 4px solid var(--bg-card); box-shadow: 10px 10px 0 var(--accent-solid); }

/* Buttons */
.btn { font-family: var(--font-main); font-size: 1.1rem; font-weight: 700; padding: 1rem 2.5rem; cursor: pointer; text-decoration: none; transition: 0.3s; display: inline-block; border-radius: 50px; text-transform: uppercase; border: none; }
.btn-primary { background: var(--accent-gradient); color: #fff; box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(244, 63, 94, 0.4); }
.btn-secondary { background: var(--bg-card); color: var(--text-main); border: 1px solid rgba(255,255,255,0.1); }
.btn-secondary:hover { background: #fff; color: var(--bg-dark); }

/* Services - Curved Rectangles + Experimental Hover */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-card { padding: 3rem 2rem; background: var(--bg-card); border-radius: var(--radius-curved); transition: transform 0.5s, background 0.5s, color 0.5s, box-shadow 0.5s; display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px solid rgba(255,255,255,0.05); }
.service-card:hover { transform: translateY(-15px); background: var(--accent-gradient); color: #fff; box-shadow: 0 15px 30px rgba(244, 63, 94, 0.3); }
.service-card:hover h3, .service-card:hover p { color: #fff; }
.card-emoji { font-size: 3rem; margin-bottom: 2rem; display: inline-block; transition: 0.5s; }
/* Experimental Hover Effect on Emoji */
.service-card:hover .card-emoji { transform: scale(1.5) rotate(10deg); filter: grayscale(100%) contrast(200%); }
.service-card p { text-align: justify; }
.service-card h3 { font-size: 2rem; margin-bottom: 1rem; text-transform: uppercase; }

/* Marquee */
.marquee-wrapper { margin-top: 3rem; margin-bottom: 4rem; background: var(--accent-solid); padding: 0.8rem 0; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 12s linear infinite; will-change: transform; }
.tool-text { font-size: 2.2rem; font-weight: 900; color: var(--bg-dark); margin-right: 3rem; text-transform: uppercase; }
@keyframes marquee { 100% { transform: translate3d(-50%, 0, 0); } }

/* Cert Cards */
.cert-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 4rem; }
.cert-card { padding: 1.5rem; background: var(--bg-card); border-radius: var(--radius-curved); display: flex; flex-direction: column; text-decoration: none; transition: transform 0.4s, background 0.4s; overflow: hidden; position: relative; }
.cert-card:hover { transform: translateY(-10px); background: var(--accent-gradient); }
.cert-card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 12px; margin-bottom: 1.5rem; transition: 0.4s; }
.cert-card:hover .cert-card-img { filter: grayscale(100%); }
.cert-card-content { font-size: 1.1rem; font-weight: 700; color: var(--text-main); text-align: center; text-transform: uppercase; margin-top: 0; }
.cert-card:hover .cert-card-content { color: #fff; }

/* Projects Grid */
.projects-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.project-card { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: center; padding: 4rem; background: var(--bg-card); border-radius: var(--radius-curved); transition: transform 0.5s, border-color 0.5s, box-shadow 0.5s; border: 1px solid rgba(255,255,255,0.05); }
.project-card:hover { transform: scale(1.02); border-color: var(--accent-solid); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.project-title { font-size: 4rem; margin-bottom: 1rem; line-height: 1; text-transform: uppercase; }
.project-card:hover .project-title { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.project-desc { font-size: 1.3rem; margin-bottom: 2rem; color: var(--text-muted); text-align: justify; }
.project-tech { font-size: 1rem; font-weight: 700; color: var(--accent-solid); text-transform: uppercase; margin-bottom: 2rem; letter-spacing: 0.1em; }
.project-link, .project-status { font-size: 1.2rem; font-weight: 700; color: var(--bg-dark); background: #fff; padding: 1rem 2rem; text-decoration: none; display: inline-flex; align-items: center; transition: 0.3s; border-radius: 50px; text-transform: uppercase; }
.project-link::after { content: '→'; margin-left: 0.5rem; transition: 0.3s; }
.project-link:hover { background: var(--accent-gradient); color: #fff; }
.project-link:hover::after { transform: translateX(5px); }

/* Contact */
.contact-content { padding: 6rem; background: var(--bg-card); border-radius: var(--radius-curved); display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px solid rgba(255,255,255,0.05); }
.contact-title { font-size: 5rem; line-height: 0.9; margin-bottom: 1rem; text-transform: uppercase; }
.contact-desc { font-size: 1.5rem; color: var(--text-muted); margin-bottom: 3rem; max-width: 600px; }
.contact-email-btn { background: transparent; color: var(--text-main); border: none; font-size: 3rem; font-weight: 900; font-family: var(--font-main); cursor: pointer; transition: 0.3s; padding: 0; text-transform: uppercase; display: inline-block; position: relative; }
.contact-email-btn:hover { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.social-links { display: flex; gap: 2rem; margin-top: 4rem; }
.social-icon { color: var(--bg-dark); background: #fff; padding: 1.2rem; border-radius: 50%; display: flex; transition: 0.3s; }
.social-icon svg { width: 28px; height: 28px; fill: currentColor; }
.social-icon:hover { background: var(--accent-solid); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(255, 184, 0, 0.2); }

/* Footer */
.footer { padding: 3rem 0; border-top: 1px solid rgba(255,255,255,0.05); text-align: center; margin-top: 4rem; }
.copyright { font-size: 1.1rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.copyright::before { content: '// '; color: var(--accent-solid); }

@media (max-width: 900px) {
  .hero-row, .project-card { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { font-size: 4rem; }
  .hero-lead { margin: 0 auto 3rem auto; border-left: none; border-bottom: 4px solid var(--accent-solid); padding-left: 0; padding-bottom: 1.5rem; }
  .services-grid, .cert-cards { grid-template-columns: 1fr; }
  .section-title { font-size: 3.5rem; }
  .contact-title { font-size: 3.5rem; }
  .contact-content { padding: 4rem 2rem; }
  
  /* Header Responsive */
  .nav-links { display: none; flex-direction: column; width: 100%; position: absolute; top: 100%; left: 0; background: #15181e; padding: 2rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav-links.active { display: flex; }
  .nav-btn-contact, .lang-switcher { display: none; }
  .nav-toggle { display: block; background: transparent; color: var(--text-main); border: none; font-size: 2rem; cursor: pointer; padding: 0.5rem; }
  
  .contact-email-btn { font-size: 2rem; word-break: break-all; }
  .project-title { font-size: 3rem; }
  .hero-portrait { margin: 0 auto; }
}

@media (max-width: 600px) {
  .hero-subtitle { font-size: 2.5rem; }
  .section-title, .contact-title { font-size: 2.5rem; }
  .contact-email-btn { font-size: 1.5rem; }
  .hero-portrait { width: 100%; max-width: 350px; }
  .portrait-img { width: 100%; height: auto; aspect-ratio: 1; }
  .container { padding: 0 1.5rem; }
  .section-light, .section-dark { padding: 4rem 0; }
  .hero { padding: 4rem 0; }
  .project-card { padding: 2rem; gap: 1.5rem; }
  .service-card { padding: 2rem 1.5rem; }
  .tool-text { font-size: 2.5rem; }
}
