/* ==========================================================================
   DESIGN SYSTEM & SOPHISTICATED DARK MODE VARIABLES
   ========================================================================== */
:root {
    /* Color Tokens */
    --bg-base: #060709;
    --bg-surface: #0E1015;
    --bg-surface-elevated: #161920;
    --accent-blue: #2A66FF;
    --accent-blue-hover: #4d7dff;
    --accent-blue-glow: rgba(42, 102, 255, 0.15);
    --border-subtle: #1D212C;
    --border-accent: #2A3142;
    
    /* Typography Tokens */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Text Color Tokens */
    --text-pure: #FFFFFF;
    --text-primary: #E5E9F0;
    --text-secondary: #949EB2;
    --text-muted: #5E6779;
    
    /* Animation Tokens */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Spacings */
    --container-max-width: 1200px;
    --header-height: 80px;
}

/* ==========================================================================
   RESET & INITIAL BASE SETUP
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-base);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ==========================================================================
   BILINGUAL DISPLAY STATE LOGIC
   ========================================================================== */
body.lang-en [data-lang="pt"] {
    display: none !important;
}

body.lang-pt [data-lang="en"] {
    display: none !important;
}

/* ==========================================================================
   AESTHETIC DEEP BACKGROUND GLOW ELEMENTS
   ========================================================================== */
.bg-glow {
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(160px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.08;
    mix-blend-mode: screen;
}

.bg-glow-1 {
    top: -20vw;
    right: -10vw;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
}

.bg-glow-2 {
    bottom: -20vw;
    left: -10vw;
    background: radial-gradient(circle, #38bdf8 0%, transparent 70%);
}

/* ==========================================================================
   REUSABLE TYPOGRAPHY, BUTTONS & DECORATIONS
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-pure);
    font-weight: 600;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Section Header Styles */
.section-padding {
    padding: 100px 0;
}

.section-container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-blue);
    display: inline-block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.title-underline {
    width: 40px;
    height: 3px;
    background-color: var(--accent-blue);
    margin: 15px auto 0;
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.scroll-reveal:hover .title-underline {
    width: 80px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: var(--text-pure);
    box-shadow: 0 4px 14px rgba(42, 102, 255, 0.25);
}

.btn-primary:hover {
    background-color: var(--accent-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 102, 255, 0.35);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-pure);
    border: 1px solid var(--border-accent);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: var(--text-pure);
    transform: translateY(-2px);
}

.badge {
    display: inline-flex;
    padding: 6px 14px;
    background: rgba(42, 102, 255, 0.1);
    border: 1px solid rgba(42, 102, 255, 0.2);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-blue);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ==========================================================================
   HEADER & NAVIGATION BAR
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(6, 7, 9, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header-scrolled {
    height: 70px;
    background-color: rgba(6, 7, 9, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header-container {
    width: 90%;
    max-width: var(--container-max-width);
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-pure);
}

.logo-divider {
    width: 1px;
    height: 20px;
    background-color: var(--border-accent);
    margin: 0 12px;
}

.logo-sub {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Nav Desktop links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--accent-blue);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--text-pure);
}

.nav-link:hover::after {
    width: 100%;
}

/* Language Switcher Button Styles */
.lang-switcher {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 6px;
    transition: var(--transition-smooth);
    border-radius: 4px;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    color: var(--accent-blue);
}

.lang-switcher-separator {
    color: var(--border-accent);
    margin: 0 4px;
    font-size: 0.75rem;
    pointer-events: none;
}

/* Hamburger mobile button */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
    transform-origin: left center;
}

.mobile-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: rotate(45deg) translate(2px, 0px);
}

.mobile-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: rotate(-45deg) translate(2px, 0px);
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: rgba(6, 7, 9, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    padding: 40px;
}

.mobile-drawer.active {
    transform: translateX(0);
}

.nav-mobile {
    margin-bottom: auto;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-nav-link {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-secondary);
}

.mobile-nav-link:hover {
    color: var(--text-pure);
    padding-left: 8px;
}

/* ==========================================================================
   HERO / ABOUT SECTION STYLING
   ========================================================================== */
.hero-section {
    padding-top: calc(var(--header-height) + 60px);
    display: flex;
    align-items: center;
    min-height: 90vh;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
    aspect-ratio: 4 / 3;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.03);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 7, 9, 0.4) 0%, transparent 100%);
    pointer-events: none;
}

.hero-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-name {
    font-size: 3.8rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin: 16px 0 8px;
    line-height: 1.05;
}

.hero-title {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-contact-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

a.contact-item:hover {
    color: var(--text-pure);
}

.contact-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--accent-blue);
}

.hero-divider {
    width: 100%;
    border: 0;
    height: 1px;
    background: var(--border-subtle);
    margin-bottom: 30px;
}

.hero-summary {
    margin-bottom: 35px;
}

.summary-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-blue);
    margin-bottom: 12px;
    font-weight: 600;
}

.summary-text {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* ==========================================================================
   CORE CAPABILITIES SECTION STYLING
   ========================================================================== */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.capability-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.capability-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 1px;
    background: linear-gradient(135deg, var(--border-accent), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(220px circle at var(--x, 50%) var(--y, 50%), var(--accent-blue-glow), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.capability-card:hover .card-glow {
    opacity: 1;
}

.capability-card:hover {
    transform: translateY(-4px);
    background-color: var(--bg-surface-elevated);
    border-color: rgba(42, 102, 255, 0.3);
}

.capability-card:hover::before {
    background: linear-gradient(135deg, var(--accent-blue), transparent 60%);
    opacity: 1;
}

.card-icon-container {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-blue);
    transition: var(--transition-smooth);
}

.capability-card:hover .card-icon-container {
    background: rgba(42, 102, 255, 0.1);
    border-color: rgba(42, 102, 255, 0.2);
    color: var(--text-pure);
}

.card-icon {
    width: 24px;
    height: 24px;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.35;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: auto;
    font-weight: 300;
}

/* ==========================================================================
   VERTICAL EXPANDING TIMELINE SECTION STYLING
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 80px;
    padding-left: 30px;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot-wrapper {
    position: absolute;
    left: -30px;
    top: 6px;
    width: 9px;
    height: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--border-accent);
    transition: var(--transition-smooth);
    border: 2px solid var(--bg-base);
    z-index: 2;
}

.timeline-item:first-child .timeline-dot {
    background-color: var(--accent-blue);
    transform: scale(1.3);
}

.timeline-dot-ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(42, 102, 255, 0.15);
    z-index: 1;
    animation: ripple 2s infinite ease-out;
}

@keyframes ripple {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.timeline-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 30px;
    transition: var(--transition-smooth);
}

.timeline-card:hover {
    border-color: var(--border-accent);
}

.timeline-item:first-child .timeline-card {
    border-color: rgba(42, 102, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.timeline-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.timeline-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 6px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.timeline-role {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.timeline-company {
    font-size: 1rem;
    color: var(--text-pure);
    font-weight: 500;
    margin-top: 2px;
}

.timeline-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.meta-icon {
    width: 12px;
    height: 12px;
}

.timeline-body {
    position: relative;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

/* Dynamic Grid Expanding Logic */
.timeline-expandable-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
}

.timeline-expandable-content[aria-expanded="true"] {
    grid-template-rows: 1fr;
}

.expand-inner {
    min-height: 0;
    padding-top: 20px;
    border-top: 1px dashed var(--border-subtle);
    margin-top: 20px;
}

.bullets-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-pure);
    margin-bottom: 12px;
}

.accomplishment-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accomplishment-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
    font-weight: 300;
}

.accomplishment-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 9px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--accent-blue);
}

/* Timeline Expand Button styling */
.timeline-expand-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-top: 16px;
    padding: 4px 0;
    transition: var(--transition-smooth);
}

.timeline-expand-btn:hover {
    color: var(--text-pure);
}

.chevron-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.timeline-expandable-content[aria-expanded="true"] ~ .timeline-expand-btn .chevron-icon {
    transform: rotate(180deg);
}

.timeline-expandable-content[aria-expanded="true"] ~ .timeline-expand-btn .btn-text-expand {
    display: none;
}

.timeline-expandable-content[aria-expanded="false"] ~ .timeline-expand-btn .btn-text-collapse {
    display: none;
}

/* Compact Previous Positions List styling */
.previous-positions-container {
    max-width: 800px;
    margin: 60px auto 0;
    border-top: 1px solid var(--border-subtle);
    padding-top: 40px;
}

.previous-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.previous-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.previous-item {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 20px;
    transition: var(--transition-smooth);
}

.previous-item:hover {
    border-color: var(--border-accent);
    background-color: var(--bg-surface-elevated);
}

.previous-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.previous-role {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-pure);
}

.previous-date {
    font-size: 0.8rem;
    color: var(--accent-blue);
    font-weight: 500;
    flex-shrink: 0;
}

.previous-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 6px 0 10px;
}

.previous-divider {
    color: var(--border-accent);
}

.previous-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.4;
}

/* ==========================================================================
   EDUCATION SECTION STYLING
   ========================================================================== */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.education-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 30px;
    position: relative;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.ed-accent-line {
    position: absolute;
    top: 0;
    left: 30px;
    right: 30px;
    height: 2px;
    background-color: var(--accent-blue);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.education-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    background-color: var(--bg-surface-elevated);
}

.education-card:hover .ed-accent-line {
    transform: scaleX(1);
}

.ed-date, .ed-status {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    display: block;
}

.ed-degree {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.35;
}

.ed-institution {
    font-size: 0.9rem;
    color: var(--text-pure);
    font-weight: 500;
    margin-bottom: 12px;
}

.ed-detail {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: auto;
    font-weight: 300;
}

/* ==========================================================================
   CONTACT SECTION STYLING
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
}

.contact-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-pure);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-accent);
    outline: none;
    transition: var(--transition-smooth);
}

.form-group textarea {
    resize: none;
}

.form-group label {
    position: absolute;
    left: 0;
    top: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--accent-blue);
    transition: var(--transition-smooth);
}

/* Focus and Floating label visual details */
.form-group input:focus, .form-group textarea:focus {
    border-bottom-color: transparent;
}

.form-group input:focus ~ .input-line, 
.form-group textarea:focus ~ .input-line {
    width: 100%;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -12px;
    font-size: 0.75rem;
    color: var(--accent-blue);
}

.btn-submit {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
}

.send-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-submit:hover .send-icon {
    transform: translate(3px, -3px);
}

/* Contact Info Details side block */
.contact-info-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-side-title {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.info-side-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 300;
}

.info-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-link-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 16px 20px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.info-link-item:hover {
    border-color: var(--border-accent);
    background-color: var(--bg-surface-elevated);
    transform: translateX(4px);
}

.info-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.02);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    transition: var(--transition-smooth);
}

.info-link-item:hover .info-icon-wrapper {
    background-color: rgba(42, 102, 255, 0.15);
    border-color: rgba(42, 102, 255, 0.2);
}

.info-icon-wrapper svg {
    width: 18px;
    height: 18px;
}

.info-text-wrapper {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-pure);
    margin-top: 2px;
}

/* ==========================================================================
   FOOTER STYLING
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-subtle);
    background-color: var(--bg-base);
    padding: 40px 0;
}

.footer-container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-pure);
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-socials {
    list-style: none;
    display: flex;
    gap: 16px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.footer-socials a:hover {
    background-color: rgba(42, 102, 255, 0.1);
    border-color: rgba(42, 102, 255, 0.3);
    color: var(--accent-blue);
    transform: translateY(-2px);
}

.footer-socials svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   SUCCESS EMAIL POPUP MODAL STYLING
   ========================================================================== */
.success-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(6, 7, 9, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.success-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.success-modal {
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-accent);
    border-radius: 8px;
    padding: 40px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.success-modal-overlay.active .success-modal {
    transform: scale(1);
}

.close-modal-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-modal-btn:hover {
    color: var(--text-pure);
}

.success-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(42, 102, 255, 0.15);
    border: 1px solid rgba(42, 102, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    margin: 0 auto 24px;
}

.success-checkmark {
    width: 28px;
    height: 28px;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.modal-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
    font-weight: 300;
}

.close-modal-action-btn {
    width: 100%;
}

/* ==========================================================================
   SCROLL REVEAL ENTRANCE ANIMATIONS
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero elements progressive pageload fade-in delays */
.fade-in-delay-1,
.fade-in-delay-2,
.fade-in-delay-3,
.fade-in-delay-4,
.fade-in-delay-5 {
    opacity: 0;
    transform: translateY(15px);
    animation: heroFadeIn 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.fade-in-delay-1 { animation-delay: 0.2s; }
.fade-in-delay-2 { animation-delay: 0.35s; }
.fade-in-delay-3 { animation-delay: 0.5s; }
.fade-in-delay-4 { animation-delay: 0.65s; }
.fade-in-delay-5 { animation-delay: 0.8s; }

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   RESPONSIVENESS AND SCREEN ADAPTATIONS
   ========================================================================== */

/* Large Tablets & Small Desktops (1024px) */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .hero-grid {
        gap: 40px;
    }
    
    .hero-name {
        font-size: 3rem;
    }
    
    .contact-grid {
        gap: 40px;
    }
}

/* Medium Tablets (768px) */
@media (max-width: 768px) {
    .section-padding {
        padding: 70px 0;
    }
    
    .nav-desktop {
        display: none; /* Hide desktop menu */
    }
    
    .mobile-toggle {
        display: flex; /* Show mobile hamburger toggle */
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-image-container {
        max-width: 440px;
        margin: 0 auto;
    }
    
    .hero-info {
        align-items: center;
    }
    
    .hero-contact-bar {
        grid-template-columns: 1fr;
        gap: 12px;
        width: auto;
        text-align: left;
        margin: 0 auto 30px;
    }
    
    .hero-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Mobile Screens (480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .header-container {
        width: 92%;
    }
    
    .logo-divider, .logo-sub {
        display: none; /* Make logo super compact on small mobiles */
    }
    
    .hero-name {
        font-size: 2.4rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-card {
        padding: 20px;
    }
    
    .previous-header {
        flex-direction: column;
        gap: 4px;
    }
    
    .contact-card {
        padding: 24px;
    }
}
