:root {
    --bg-color: #0c0c0e;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #6C63FF;
    --accent-gradient: linear-gradient(135deg, #6C63FF 0%, #00B4DB 100%);
    --blob-1: #FF0080;
    --blob-2: #7928CA;
    --blob-3: #00B4DB;
    --font-main: 'Outfit', sans-serif;
    --nav-height: 70px;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Background Shapes */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--blob-1);
    top: -100px;
    left: -100px;
    animation: float 20s infinite alternate;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--blob-2);
    bottom: -50px;
    right: -100px;
    animation: float 15s infinite alternate-reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--blob-3);
    top: 40%;
    left: 40%;
    animation: float 18s infinite alternate;
}

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

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

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

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.dot {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.highlight-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(108, 99, 255, 0.1);
    color: #8B85FF;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

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

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 500px;
}

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

.btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn.primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(108, 99, 255, 0.4);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--card-border);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.float-animation {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0);
    }

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

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

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 30px;
    position: relative;
}

.icon-large {
    font-size: 2.5rem;
    color: #00B4DB;
    margin-bottom: 20px;
}

.code-snippet {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    color: #d4d4d4;
    line-height: 1.5;
}

.code-line {
    display: block;
}

.indent {
    padding-left: 20px;
}

.c-keyword {
    color: #569CD6;
}

.c-var {
    color: #9CDCFE;
}

.c-str {
    color: #CE9178;
}

.c-bool {
    color: #569CD6;
}

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

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 3px;
}

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

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    display: block;
    /* Ensure anchor tags behave like blocks */
    text-decoration: none;
    /* Remove underline from anchor */
    color: inherit;
    /* Inherit text color */
    cursor: pointer;
}

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

.card-image-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #1a1a1c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image {
    font-size: 4rem;
    color: #444;
    transition: var(--transition);
}

.project-card:hover .card-image {
    color: var(--accent-color);
    transform: scale(1.1);
}

.placeholder-youtube i {
    color: #FF0000;
    opacity: 0.8;
}

.placeholder-bug i {
    color: #00FF00;
    opacity: 0.8;
}

/* Bug Green */
.placeholder-fitness i {
    color: #00B4DB;
    opacity: 0.8;
}

.placeholder-tools i {
    color: #7928CA;
    opacity: 0.8;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tags span {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: #ccc;
    border: 1px solid var(--card-border);
}

.card-links {
    display: flex;
    gap: 15px;
}

.link-btn {
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
}

.link-btn:hover {
    color: var(--accent-color);
}

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

.skill-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.skill-item i {
    font-size: 2rem;
    color: #888;
    transition: var(--transition);
}

.skill-item:hover i {
    color: white;
}

.skill-item:hover i.fa-php {
    color: #777BB4;
}

.skill-item:hover i.fa-js {
    color: #F7DF1E;
}

.skill-item:hover i.fa-react {
    color: #61DAFB;
}

.skill-item:hover i.fa-docker {
    color: #2496ED;
}

.skill-item:hover i.fa-html5 {
    color: #E34F26;
}

.skill-item:hover i.fa-css3-alt {
    color: #1572B6;
}

.skill-item:hover i.fa-git-alt {
    color: #F05032;
}

/* Footer */
.footer {
    background: #08080a;
    padding: 60px 0 30px;
    margin-top: 50px;
    border-top: 1px solid var(--card-border);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-left h3 {
    margin-bottom: 5px;
}

.footer-left p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--accent-gradient);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
        display: none;
        /* Hide snippet on smaller tables for cleaner look or adjust size */
    }

    .subtitle {
        margin: 0 auto 30px;
    }

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

    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}