/* 
AIFormul8r Website Styles
Color Scheme:
- Primary Colors: Charcoal Gray (#333333), Teal Blue (#2BA7A0)
- Secondary Colors: Light Gray (#F5F5F5), Soft White (#FFFFFF), Muted Silver (#C0C0C0)
*/

/* ===== Base Styles ===== */
:root {
    --charcoal: #333333;
    --teal: #2BA7A0;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --silver: #C0C0C0;
    --teal-transparent: rgba(43, 167, 160, 0.1);
    --teal-glow: rgba(43, 167, 160, 0.5);
    --transition-speed: 0.3s;
    /* UI tokens */
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--white);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

/* Modern gradient hero title (replaces old glitch heading) */
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.1;
    background: linear-gradient(90deg, #2BA7A0 0%, #1f7a75 40%, #333333 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--charcoal);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--teal);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.underline {
    height: 4px;
    width: 60px;
    background: var(--teal);
    margin: 0.5rem auto 0;
    position: relative;
}

.underline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -15px;
    width: 15px;
    height: 4px;
    background: var(--teal);
    opacity: 0.5;
}

.underline::after {
    content: '';
    position: absolute;
    top: 0;
    right: -15px;
    width: 15px;
    height: 4px;
    background: var(--teal);
    opacity: 0.5;
}

/* ===== Custom Cursor ===== */
/* Disable custom cursor */
.cursor, .cursor-follower { display: none !important; }

/* Explicit default cursor behavior */
body { cursor: auto; }
a, button { cursor: pointer; }

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background-color: var(--teal);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(43, 167, 160, 0.3);
}

.btn-primary:hover {
    background-color: #259891;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(43, 167, 160, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--teal);
    border: 2px solid var(--teal);
}

.btn-secondary:hover {
    background-color: var(--teal-transparent);
    color: var(--teal);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(43, 167, 160, 0.2);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

/* ===== Header & Navigation ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
}

header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    transition: all var(--transition-speed) ease;
}

header.scrolled .logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    position: relative;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--teal);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--charcoal);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    top: 16px;
}

.hamburger.open span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.open span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* ===== Hero Section ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--light-gray);
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 25% 45%, rgba(43,167,160,0.12) 0%, transparent 55%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 75% 70%, rgba(43,167,160,0.10) 0%, transparent 55%);
    z-index: 0;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    text-align: center;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    position: relative;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--charcoal);
    opacity: 0.9;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 300px;
    margin-top: 2rem;
}

.hero-visual .formula-animation { 
    filter: drop-shadow(0 10px 24px rgba(0,0,0,0.08));
}

/* Unify radii and shadows on cards */
.service-card,
.code-container,
.formula-result,
.contact-form,
.floating-elements .element {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.service-card:hover,
.floating-elements .element:hover {
    box-shadow: var(--shadow-lg);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--charcoal);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 6px;
    height: 6px;
    background-color: var(--charcoal);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--charcoal);
    border-bottom: 2px solid var(--charcoal);
    transform: rotate(45deg);
    margin-top: 10px;
}

/* ===== About Section ===== */
.about {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: var(--teal-transparent);
    z-index: 0;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.about-text {
    flex: 1;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.9;
}

.about-visual {
    flex: 1;
    position: relative;
    min-height: 450px;
    margin-top: 2rem;
}

.floating-elements {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 1.5rem;
    align-content: start;
    max-width: 1100px;
    margin: 0 auto;
}

.floating-elements .element {
    position: relative;
    background-color: var(--white);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    width: 100%;
    z-index: 2;
    text-align: center;
}

/* Reset earlier absolute placements for a clean grid */
.about .floating-elements .element:nth-child(1),
.about .floating-elements .element:nth-child(2),
.about .floating-elements .element:nth-child(3) {
    top: auto; left: auto; right: auto; bottom: auto; transform: none;
}

.floating-elements .element:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.icon-container {
    width: 60px;
    height: 60px;
    background-color: var(--teal-transparent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem;
    transition: all var(--transition-speed) ease;
}

.element:hover .icon-container {
    background-color: var(--teal);
}

.icon-container i {
    font-size: 1.5rem;
    color: var(--teal);
    transition: all var(--transition-speed) ease;
}

.element:hover .icon-container i {
    color: var(--white);
}

/* ===== Services Section ===== */
.services {
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.services::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: var(--teal-transparent);
    z-index: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background-color: var(--teal);
    transition: height var(--transition-speed) ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--teal-transparent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 5px 15px rgba(43, 167, 160, 0.1);
}

.service-card:hover .service-icon {
    background-color: var(--teal);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(43, 167, 160, 0.2);
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--teal);
    transition: all var(--transition-speed) ease;
}

.service-card:hover .service-icon i {
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 1rem;
    transition: all var(--transition-speed) ease;
}

.service-card:hover h3 {
    color: var(--teal);
}

/* ===== Technology Section ===== */
.technology {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.tech-showcase {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
}

.tech-image-wrap {
    width: 100%;
    padding: 0 5vw;
}
.tech-image-wrap .ui-screen {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.04);
}

/* Full-width images across the screen */
.technology .container { max-width: 100%; width: 100%; }

@media (max-width: 1200px) {
    .tech-screens { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .tech-screens { grid-template-columns: 1fr; }
}

.code-container {
    background-color: var(--charcoal);
    border-radius: 10px;
    padding: 1.5rem;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    height: 260px; /* keep box fully expanded */
    border-left: 4px solid var(--teal);
    z-index: 3;
    margin-right: 0;
}

.code-container pre {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* prevent vertical growth while typing */
}

.code-container code {
    font-family: 'Courier New', monospace;
    color: var(--white);
    font-size: 0.9rem;
    line-height: 1.5;
}

.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.formula-result {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 1.5rem;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    border-right: 4px solid var(--teal);
    z-index: 2;
}

.result-header {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--teal);
}

.ingredient-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
}

.ingredient-row:hover {
    background-color: rgba(43, 167, 160, 0.05);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.ingredient-row:last-child {
    border-bottom: none;
}

.ingredient-name {
    font-weight: 500;
}

.ingredient-percentage {
    color: var(--teal);
    font-weight: 600;
}

.tech-text {
    flex: 1;
    z-index: 1;
    text-align: center;
    padding: 0 5vw;
    margin-top: 3rem; /* extra spacing above the heading */
}

.tech-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    gap: 2.5rem; /* increased spacing between steps */
    align-items: start;
    padding: 0 5vw;
    margin-top: 2rem; /* spacing between heading and steps */
}

.step { display: flex; gap: 1rem; transition: all var(--transition-speed) ease; padding: 1rem; border-radius: 8px; }

.step:hover { background-color: var(--light-gray); transform: translateY(-4px); }

.step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--teal);
    opacity: 0.3;
    line-height: 1;
    transition: all var(--transition-speed) ease;
}

.step:hover .step-number {
    opacity: 0.6;
}

.step-content h4 {
    margin-bottom: 0.5rem;
}

/* Centered How It Works heading with comfortable spacing */
.tech-text > h3 {
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
}

/* ===== Contact Section ===== */
.contact {
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: var(--teal-transparent);
    z-index: 0;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.contact-form-container {
    flex: 1;
    max-width: 600px;
}

.contact-form {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 0;
    font-size: 1rem;
    border: none;
    outline: none;
    background-color: transparent;
    color: var(--charcoal);
    font-family: 'Roboto', sans-serif;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    top: 0.8rem;
    left: 0;
    font-size: 1rem;
    color: var(--silver);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -1.2rem;
    font-size: 0.8rem;
    color: var(--teal);
}

.form-group .line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--silver);
}

.form-group .line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--teal);
    transition: all 0.3s ease;
}

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

.contact-form .btn {
    margin-top: 1rem;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.info-icon {
    width: 60px;
    height: 60px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
}

.info-item:hover .info-icon {
    background-color: var(--teal);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(43, 167, 160, 0.2);
}

.info-icon i {
    font-size: 1.5rem;
    color: var(--teal);
    transition: all var(--transition-speed) ease;
}

.info-item:hover .info-icon i {
    color: var(--white);
}

.info-content h3 {
    margin-bottom: 0.3rem;
}

.info-content p {
    margin-bottom: 0;
    color: var(--charcoal);
    opacity: 0.8;
}

/* ===== Footer ===== */
footer {
    background-color: var(--charcoal);
    color: var(--white);
    padding: 4rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}
.footer-nav ul {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-nav ul li a {
    opacity: 0.85;
}

.footer-column h3 {
    color: var(--teal);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-column a {
    color: var(--white);
    opacity: 0.7;
    transition: all var(--transition-speed) ease;
}

.footer-column a:hover {
    color: var(--teal);
    opacity: 1;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--teal);
    border-radius: 50%;
    transform: scale(0);
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-icon:hover::before {
    transform: scale(1);
}

.social-icon i {
    font-size: 1.2rem;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ===== Responsive Styles ===== */
@media screen and (max-width: 1024px) {
    html {
        font-size: 15px;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .about-content { flex-direction: column; gap: 3rem; }

    .about-visual,
    .tech-visual {
        order: -1;
    }

    /* About feature cards: switch to single column stacked grid */
    .about .floating-elements { 
        grid-template-columns: 1fr; 
    }
    .about .floating-elements .element { 
        left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; transform: none !important; 
    }

    .formula-result {
        right: 0;
    }

    .contact-content {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: all 0.5s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
    .tech-steps { grid-template-columns: 1fr 1fr; }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

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

    .element {
        width: 180px;
    }
    .tech-steps { grid-template-columns: 1fr; }
}