/* Global Styles */
:root {
    --bg-color: #0d0d12;
    --text-color: #ffffff;
    --primary-color: #6c5ce7;
    /* Matches App */
    --accent-color: #00cec9;
    --card-bg: #1e1e24;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

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

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 10% 20%, rgba(108, 92, 231, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 206, 201, 0.1) 0%, transparent 40%);
    animation: bg-pulse 10s infinite alternate;
}

@keyframes bg-pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Header */
header {
    padding: 20px 0;
    position: absolute;
    width: 100%;
    z-index: 10;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #a29bfe);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    z-index: -1;
    transition: opacity 0.3s;
    opacity: 0;
}

.btn:hover::before {
    opacity: 1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.4);
}

.btn.small {
    padding: 10px 25px;
    font-size: 0.9rem;
}

.btn.disabled {
    background: #444;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Custom Glow Effect class */
.glow {
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.5);
}

/* Projects Section */
.projects {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(108, 92, 231, 0.3);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.project-card p {
    color: #aaa;
    margin-bottom: 20px;
    font-size: 1rem;
}

.tags {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tags li {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #ddd;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Animations (CSS + Scroll Classes) */
.fade-in-down {
    animation: fadeInDown 1s ease-out forwards;
    opacity: 0;
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

/* Scroll Interaction State */
.fade-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 20;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(13, 13, 18, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        /* Corrected flex direction for mobile menu */
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s ease;
        z-index: 15;
    }

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

    .nav-links a {
        font-size: 1.5rem;
    }

    /* Hamburger Animation to X */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Footer Disclaimer */
.disclaimer {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #888;
}

.disclaimer a {
    color: var(--accent-color);
    text-decoration: underline;
}

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

/* Antigravity Section */
.antigravity-section {
    padding: 60px 0 100px;
    position: relative;
    z-index: 1;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    /* Constrain width for better look */
    margin: 0 auto;
}

/* Evolution Timeline */
.evolution {
    padding: 100px 0;
    position: relative;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #00d2ff, #6c5ce7, transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 60px;
}

.timeline-dot {
    position: absolute;
    left: 12px;
    top: 5px;
    width: 18px;
    height: 18px;
    background: #00d2ff;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.6);
    z-index: 2;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    transition: all 0.3s;
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.timeline-content h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #00d2ff;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 15px;
    }

    .timeline-dot {
        left: 7px;
    }

    .timeline-item {
        padding-left: 45px;
    }
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(108, 92, 231, 0.2);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(108, 92, 231, 0.3);
}

.antigravity-content h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #fff 0%, #a29bfe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.antigravity-content p {
    color: #b0b0b0;
    max-width: 650px;
    margin: 0 auto 15px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.antigravity-content .highlight {
    color: #fff;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.antigravity-content .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary-color);
    opacity: 0.5;
}

/* Profile & AI Terminal Sections */
.about,
.contact {
    padding: 100px 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
}

.about .glass-panel {
    margin-top: 30px;
    line-height: 1.8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about .glass-panel p {
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.about .glass-panel a {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: bold;
}

.about .glass-panel a:hover {
    color: var(--primary-color);
}

/* Terminal Styles */
.terminal-container {
    background: #0d0d16;
    border-radius: 16px;
    border: 1px solid rgba(108, 92, 231, 0.5);
    overflow: hidden;
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.2), 0 20px 50px rgba(0, 0, 0, 0.6);
    text-align: left;
    font-family: 'Outfit', 'Courier New', Courier, monospace;
    position: relative;
    margin-top: 40px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.terminal-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(108, 92, 231, 0.3), 0 25px 60px rgba(0, 0, 0, 0.7);
}

.terminal-header {
    background: rgba(30, 30, 46, 0.8);
    backdrop-filter: blur(5px);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-buttons span:nth-child(1) {
    background: #ff5f56;
}

.terminal-buttons span:nth-child(2) {
    background: #ffbd2e;
}

.terminal-buttons span:nth-child(3) {
    background: #27c93f;
}

.terminal-title {
    color: #888;
    font-size: 0.8rem;
    flex-grow: 1;
    text-align: center;
}

.terminal-body {
    padding: 20px;
    height: 300px;
    overflow-y: auto;
    color: #00ffcc;
    font-size: 0.95rem;
    line-height: 1.5;
}

.terminal-line {
    margin-bottom: 8px;
    word-break: break-all;
    white-space: pre-wrap;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    padding: 10px 20px 20px;
    background: #12121e;
}

.prompt {
    color: #6c5ce7;
    margin-right: 10px;
    font-weight: bold;
}

#terminal-input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    width: 100%;
    outline: none;
}

.terminal-line.user-msg {
    color: #fff;
}

.terminal-line.system-msg {
    color: var(--accent-color);
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: transparent;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(108, 92, 231, 0.2);
    border-radius: 4px;
}

.usage-title {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--accent-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.process-list {
    list-style: none;
    padding: 0;
}

.process-list li {
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 3px solid var(--primary-color);
}

.process-list strong {
    display: block;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 5px;
}

.process-list p {
    font-size: 1rem !important;
    color: #ccc;
    margin-bottom: 0 !important;
}

.contact .btn {
    margin-top: 20px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
        /* Reduce Hero Title size */
        margin: 0 10px 20px;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    .antigravity-section {
        padding: 40px 0 60px;
    }

    .glass-panel {
        padding: 40px 20px;
        margin: 0 15px;
        /* Add side margin */
    }

    .antigravity-content h2 {
        font-size: 2rem;
        /* Reduce Antigravity Title size */
    }

    .antigravity-content p {
        font-size: 1rem;
    }

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

/* Mini Terminal for Project Chatbot */
.mini-terminal {
    background: #0d0d16;
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 12px;
    margin: 20px 0;
    overflow: hidden;
    font-family: 'Outfit', 'Courier New', Courier, monospace;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.mini-terminal-body {
    padding: 15px;
    height: 140px;
    overflow-y: auto;
    font-size: 0.9rem;
    color: #00ffcc;
}

.mini-terminal-input-line {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    background: #14141e;
}

.mini-terminal-input-line input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    outline: none;
    font-size: 0.85rem;
    font-family: inherit;
}

.mini-terminal-body::-webkit-scrollbar {
    width: 4px;
}

.mini-terminal-body::-webkit-scrollbar-thumb {
    background: rgba(108, 92, 231, 0.3);
    border-radius: 2px;
}