/* Base Variables & Setup */
:root {
    --bg-dark: #0a0a0c;
    --bg-surface: rgba(255, 255, 255, 0.03);
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;

    --accent-main: #00f2fe;
    --accent-light: #4facfe;
    --accent-gradient: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-main) 100%);

    --border-glass: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(79, 172, 254, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 242, 254, 0.08), transparent 25%);
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(0, 242, 254, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 254, 0.1);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
}

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

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

/* Typography Headings */
h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

h4 {
    font-size: 1.1rem;
    font-weight: 500;
}

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

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-main);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a:not(.btn-primary) {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Sections Global Layout */
section {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-top: 10rem;
    position: relative;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-main);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 242, 254, 0.2);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 3rem;
    max-width: 90%;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    border-left: 2px solid var(--border-glass);
    padding-left: 1.5rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    display: inline-block;
}

.stat-item span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-main);
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent-main);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: -1;
    animation: drift 10s ease-in-out infinite alternate;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.visual-card {
    width: 100%;
    max-width: 350px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.card-header {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    height: 120px;
    margin-bottom: 2rem;
}

.bar {
    flex: 1;
    background: var(--border-glass);
    border-radius: 4px;
    transition: height 1s ease;
}

.bar:nth-child(4) {
    background: var(--accent-gradient);
}

.card-footer {
    font-weight: 700;
    color: #fff;
    font-size: 1.2rem;
    margin-top: auto;
}

/* About Section */
.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    padding: 1.5rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-header span {
    color: var(--accent-main);
    font-weight: 700;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border-glass);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 10px;
    width: 0;
    /* Animated with JS */
    transition: width 1.5s ease-out;
}

.skill-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.project-card {
    display: flex;
    flex-direction: column;
}

.project-badge {
    align-self: flex-start;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.client {
    color: var(--accent-main);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.description {
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags span {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.active-missions {
    max-width: 600px;
    margin: 0 auto;
}

.active-missions h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.active-missions ul {
    list-style: none;
}

.active-missions li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-glass);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.active-missions li:last-child {
    border-bottom: none;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-main);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--accent-main);
}

.status-dot.completed {
    background: #4caf50;
    box-shadow: 0 0 10px #4caf50;
    opacity: 0.5;
}

/* Contact Section */
.contact-content {
    display: flex;
    justify-content: center;
}

.contact-info {
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.info-block {
    margin-bottom: 2rem;
}

.info-block:last-child {
    margin-bottom: 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
}

.info-block h4 {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.info-block a {
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
}

.sub-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.social-stats {
    display: flex;
    justify-content: space-around;
}

.social-stats strong {
    color: var(--text-main);
    font-size: 1.2rem;
    display: block;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in.visible {
    opacity: 1;
}

/* Timeline Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--border-glass);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--accent-main);
    border: 3px solid var(--bg-dark);
    top: 30px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--accent-main);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-content {
    padding: 20px 30px;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.timeline-content h4 {
    color: var(--accent-main);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.timeline-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.timeline-item p:not(.timeline-date) {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 8rem;
    }

    .hero-stats {
        border-left: none;
        padding-left: 0;
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .social-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* In a full build, add a hamburger menu */
    }

    h1 {
        font-size: 3rem;
    }

    section {
        padding: 5rem 1.5rem;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }

    .timeline-dot {
        left: 23px !important;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: 23px !important;
    }
}