:root {
    --bg-color: #050a14;
    --text-color: #e0e6ed;
    --primary-color: #2563eb;
    /* Blue */
    --primary-hover: #1d4ed8;
    --secondary-bg: #0f172a;
    --accent-color: #3b82f6;
    --font-family: 'Inter', sans-serif;
    --racing-red: #ef4444;
    --carbon-fiber: #171717;
    --track-grey: #334155;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    min-height: 100vh;
    padding: 20px;
    background: radial-gradient(circle at 70% 50%, #0f172a 0%, #020617 100%);
    overflow-x: hidden;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    gap: 60px;
    margin: 0 auto;
    min-height: 90vh;
}

.content {
    flex: 1;
    max-width: 600px;
}

.name {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.role {
    font-size: 2rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 24px;
    line-height: 1.2;
}

.description {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    line-height: 1.6;
}

.highlight {
    color: #3b82f6;
    font-weight: 600;
}

.buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
    border: 1px solid #3b82f6;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: #94a3b8;
    border: 1px solid #334155;
}

.btn-secondary:hover {
    border-color: #475569;
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
}

.stats {
    display: flex;
    gap: 60px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.875rem;
    color: #94a3b8;
}

.image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.profile-image {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow:
        0 20px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(59, 130, 246, 0.3),
        0 0 60px rgba(59, 130, 246, 0.2),
        0 0 90px rgba(59, 130, 246, 0.1);
    filter: drop-shadow(0 0 20px rgba(37, 99, 235, 0.15));
    transition: all 0.3s ease;
}

.profile-image:hover {
    box-shadow:
        0 20px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(59, 130, 246, 0.4),
        0 0 80px rgba(59, 130, 246, 0.3),
        0 0 120px rgba(59, 130, 246, 0.15);
    transform: scale(1.02);
}

/* Responsive Design */
@media (max-width: 968px) {
    .container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }

    .content {
        max-width: 100%;
    }

    .buttons {
        justify-content: center;
    }

    .stats {
        justify-content: center;
    }

    .name {
        font-size: 2.5rem;
    }

    .role {
        font-size: 1.5rem;
    }
}

/* F1 Theme Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title::before {
    content: '';
    display: block;
    width: 8px;
    height: 40px;
    background: var(--racing-red);
    transform: skew(-20deg);
}

.f1-section {
    padding: 80px 20px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* About Me - The Driver */
.driver-card {
    background: linear-gradient(145deg, rgba(23, 23, 23, 0.9), rgba(10, 10, 10, 0.9));
    border: 1px solid #333;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.driver-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.03) 20px);
}

/* Competencies Section - Pit Stop */
.competencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.competency-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(5, 10, 20, 0.9));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.competency-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.competency-card:hover::before {
    left: 100%;
}

.competency-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.competency-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.competency-card:hover .competency-icon {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.competency-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.competency-description {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Skills - Telemetry */
.telemetry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.telemetry-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 25px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.telemetry-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.skill-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 15px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 1s ease;
}

/* Portfolio - Grand Prix */
.circuit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #1e293b;
    position: relative;
}

.project-image {
    height: 200px;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.project-info {
    padding: 25px;
}

.pole-position {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--racing-red);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: skew(-10deg);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(5, 10, 20, 0.9) 100%);
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    margin-top: 80px;
    padding: 60px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.footer-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-text {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-heading {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-link svg {
    flex-shrink: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.whatsapp-btn:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 5px 0;
}

.footer-made {
    color: #94a3b8;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .competencies-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact,
    .footer-links {
        align-items: center;
    }

    .whatsapp-btn {
        width: 100%;
    }
}