/* ===== CSS Variables ===== */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --background: #0f0f23;
    --surface: #16213e;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.floating-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: -200px;
    left: -200px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    top: 50%;
    right: -150px;
    animation-delay: -5s;
}

.shape-3 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    bottom: -200px;
    left: 30%;
    animation-delay: -10s;
}

.shape-4 {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    top: 30%;
    left: 20%;
    animation-delay: -7s;
}

.shape-5 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    bottom: 20%;
    right: 20%;
    animation-delay: -12s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    text-decoration: none;
}

.logo-text {
    font-family: 'Fira Code', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 20px 40px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.wave {
    display: inline-block;
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(0);
    }

    20% {
        transform: rotate(-8deg);
    }

    40% {
        transform: rotate(-4deg);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lastname {
    display: block;
    color: var(--text);
}

.typewriter-container {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    height: 35px;
}

.typewriter {
    color: var(--secondary);
    font-weight: 600;
}

.cursor {
    color: var(--primary);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.hero-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.3rem;
    transition: var(--transition);
    text-decoration: none;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.social-link.github:hover {
    background: #333;
    border-color: #333;
    transform: translateY(-3px);
}

.social-link.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    transform: translateY(-3px);
}

/* Code Card */
.hero-visual {
    display: flex;
    justify-content: center;
}

.code-card {
    background: rgba(22, 33, 62, 0.9);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    max-width: 450px;
    width: 100%;
    animation: codeCardFloat 6s ease-in-out infinite;
}

@keyframes codeCardFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.code-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
}

.code-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27ca40;
}

.code-title {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.code-content {
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
}

.code-content pre {
    margin: 0;
}

.keyword {
    color: #c792ea;
}

.class-name {
    color: #ffcb6b;
}

.function {
    color: #82aaff;
}

.self {
    color: #ff5370;
}

.string {
    color: #c3e88d;
}

/* Scroll Indicator */
.scroll-indicator {
    text-align: center;
    margin-top: auto;
}

.scroll-indicator a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.scroll-indicator a:hover {
    color: var(--primary);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* Sections */
section {
    padding: 100px 20px;
    position: relative;
}

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

.section-tag {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--primary);
    display: block;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-footer {
    text-align: center;
    margin-top: 60px;
}

/* About Section */
.about-section {
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.03), transparent);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-card {
    background: rgba(22, 33, 62, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.about-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.about-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.about-school {
    color: var(--text) !important;
    font-weight: 600;
}

/* Skills Section */
.skills-section {
    background: linear-gradient(180deg, transparent, rgba(16, 185, 129, 0.03), transparent);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.skill-category {
    background: rgba(22, 33, 62, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid var(--border);
}

.skill-category h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category h3 i {
    color: var(--primary);
}

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

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

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

.skill-level {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.skill-bar {
    height: 8px;
    background: var(--surface);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    width: var(--progress);
    animation: fillProgress 2s ease-out forwards;
    transform-origin: left;
}

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

    to {
        transform: scaleX(1);
    }
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.tool-item:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-5px);
}

.tool-item i {
    font-size: 1.8rem;
    color: var(--primary-light);
}

.tool-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Projects Section */
.projects-section {
    background: linear-gradient(180deg, transparent, rgba(168, 85, 247, 0.03), transparent);
}

.projects-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    background: rgba(22, 33, 62, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--primary);
    transform: translateX(10px);
}

.project-date {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.project-date .date {
    font-weight: 600;
    color: var(--primary-light);
    font-size: 0.95rem;
}

.project-date .location {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.project-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.project-badge.captain {
    background: rgba(16, 185, 129, 0.2);
    color: var(--secondary);
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.project-subtitle {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 15px;
}

.project-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.tag:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: var(--primary-light);
}

.github-cta {
    text-align: center;
    margin-top: 50px;
}

.github-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: var(--transition);
}

.github-btn:hover {
    background: #444;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.05), transparent);
}

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

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-info>p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(22, 33, 62, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
}

.contact-link:hover {
    border-color: var(--primary);
    transform: translateX(10px);
}

.contact-link-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}

.contact-link-icon.github {
    background: #333;
}

.contact-link-icon.linkedin {
    background: #0077b5;
}

.contact-link-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-link-label {
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-link-value {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-link .fa-arrow-right {
    color: var(--text-muted);
    transition: var(--transition);
}

.contact-link:hover .fa-arrow-right {
    color: var(--primary);
    transform: translateX(5px);
}

/* Terminal Card */
.terminal-card {
    background: rgba(22, 33, 62, 0.9);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.terminal-title {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.terminal-content {
    padding: 25px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 2;
}

.terminal-content p {
    margin: 0;
}

.prompt {
    color: var(--secondary);
}

.output {
    color: var(--text-muted);
    padding-left: 20px;
}

.output.success {
    color: var(--secondary);
}

.cursor-blink {
    animation: blink 1s infinite;
}

/* Footer */
.footer {
    padding: 50px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-family: 'Fira Code', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.footer-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.footer-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-divider {
    width: 100px;
    height: 2px;
    background: var(--gradient-primary);
    margin: 0 auto 25px;
    border-radius: 2px;
}

.footer-credit {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-credit .fa-robot {
    color: var(--primary);
    font-size: 1.2rem;
}

.ai-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.name-highlight {
    color: var(--text);
    font-weight: 600;
}

.footer-year {
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-description {
        margin: 0 auto 30px;
    }

    .hero-buttons,
    .hero-social {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .about-content,
    .skills-grid,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .project-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15, 15, 35, 0.98);
        flex-direction: column;
        padding: 30px;
        gap: 25px;
        transform: translateY(-200%);
        transition: var(--transition);
        border-bottom: 1px solid var(--border);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}