:root {
    --bg-dark: #f0f4f8;
    --primary: #0073e6;
    /* Deep Blue */
    --secondary: #00bfff;
    /* Bright Cyan */
    --accent: #7000ff;
    /* Neon Purple */
    --text-main: #0f172a;
    --text-muted: #475569;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 115, 230, 0.2);
    /* Cyan neon border */

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.8;
    animation: float 20s infinite alternate;
}

#spikesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    left: -200px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -100px;
    right: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #f1f5f9;
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 115, 230, 0.2);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #f1f5f9;
    font-weight: 500;
    transition: 0.3s;
}

nav a:not(.btn-nav):hover {
    color: var(--primary);
}

.btn-nav {
    background: var(--glass-bg);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
}

.btn-nav:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 50px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.greeting {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
}

h1 {
    background: linear-gradient(to right, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 115, 230, 0.1);
}

.typing-container {
    font-size: 1.8rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 20px;
}

.bio-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 450px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
}

.primary-btn {
    background: var(--primary);
    color: #ffffff;
}

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

.secondary-btn:hover {
    border-color: var(--text-main);
}

.full-width {
    width: 100%;
    display: block;
    text-align: center;
    border: none;
    cursor: pointer;
}

/* Hero Image Visual */
.hero-image {
    flex: 1;
    max-width: 550px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.2);
    border: 1px solid rgba(0, 242, 255, 0.2);
}

.hero-img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    object-position: left center;
    display: block;
    filter: saturate(1.1) brightness(0.9);
    transition: filter 0.4s ease;
}

.hero-img:hover {
    filter: saturate(1.3) brightness(1.0);
}


/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 30px;
    transition: 0.3s;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 115, 230, 0.15);
    border-color: var(--primary);
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-text strong {
    color: var(--primary);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(74, 222, 128, 0.1);
    color: var(--primary);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info {
    margin-top: 30px;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

input,
textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Thin Footer */
.thin-footer {
    border-top: 1px solid var(--glass-border);
    padding: 15px 20px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f1f5f9;
    font-weight: 500;
}

.footer-logo-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--primary);
}

.footer-location {
    color: #94a3b8;
}

.footer-links a, .footer-social a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 12px;
    transition: color 0.3s, text-shadow 0.3s;
}

.footer-links a:hover, .footer-social a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.4);
}

.platforms-label {
    margin-right: 5px;
    color: #94a3b8;
}

/* Typography Helpers - Cursor */
.cursor {
    display: inline-block;
    width: 2px;
    background: var(--primary);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}



/* System Overview */
.system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.stat-card h3,
.terminal-card h3 {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--primary);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.pulse-dot {
    width: 15px;
    height: 15px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

.status-text {
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-main);
}

.sys-details {
    list-style: none;
}

.sys-details li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.sys-details span:first-child {
    color: var(--primary);
    font-weight: 600;
}

/* Progress Bars */
.skill-bar {
    margin-bottom: 15px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.progress-bg {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    border-radius: 4px;
    transform-origin: left;
    animation: slideIn 2s ease-out;
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* Terminal Log */
.terminal-window {
    height: 150px;
    overflow-y: hidden;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.log-entry {
    margin-bottom: 5px;
}

.contact-link {
    color: var(--primary);
    text-decoration: none;
    transition: 0.3s;
    border-bottom: 1px solid transparent;
}

.contact-link:hover {
    border-bottom: 1px solid var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #00f2ff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.6), 0 0 40px rgba(0, 242, 255, 0.4);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 242, 255, 0.7);
        transform: scale(1);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(0, 242, 255, 0);
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 242, 255, 0);
        transform: scale(1);
    }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px #00f2ff, 0 0 60px #00f2ff;
    animation: none;
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
}

/* ========== MOBILE RESPONSIVENESS ========== */
@media (max-width: 768px) {

    /* Header */
    header {
        padding: 15px 20px;
        flex-wrap: wrap;
        gap: 12px;
    }

    nav ul {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 0.9rem;
    }

    /* Hero Section — stack vertically */
    .hero-section {
        flex-direction: column;
        padding: 110px 20px 40px;
        text-align: center;
        gap: 30px;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
    }

    h1 {
        font-size: 2.2rem;
    }

    .typing-container {
        font-size: 1.3rem;
    }

    .bio-text {
        max-width: 100%;
        font-size: 1rem;
    }

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

    /* Hero Image — full width below the text */
    .hero-image {
        max-width: 100%;
        width: 100%;
        border-radius: 14px;
    }

    .hero-img {
        min-height: 220px;
        max-height: 280px;
        object-position: center;
    }

    /* About Grid */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* System Overview Grid */
    .system-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form {
        padding: 24px;
    }

    /* Section spacing */
    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    /* WhatsApp button */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
}

/* Thanks Page Styles */
.thanks-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.thanks-container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    z-index: 10;
}

.success-card {
    text-align: center;
    padding: 3rem;
    animation: fadeInScale 0.6s ease-out;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--accent);
    color: var(--bg-dark);
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 2rem;
    box-shadow: 0 0 30px var(--accent-glow);
}

.success-card h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.success-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.redirect-timer {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 300;
}

#countdown {
    color: var(--accent);
    font-weight: 600;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}