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

:root {
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-color: #ffffff;
    --card-bg: #1a1a1a;
    --border-color: #2a2a2a;
    --hover-color: #2a2a2a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Side Icon */
.side-icon-container {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 999;
    transform: translateX(200px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
}

.side-icon-container.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.side-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 5px 20px rgba(255, 255, 255, 0.15));
    will-change: transform;
    cursor: pointer;
}

/* Message Bubble */
.message-bubble {
    position: fixed;
    right: 9rem;
    bottom: 4rem;
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    z-index: 998;
    opacity: 0;
    transform: translateX(20px) scale(0.8);
    pointer-events: none;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
    animation: messagePopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.message-bubble::after {
    content: '';
    position: absolute;
    right: -8px;
    bottom: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid var(--accent-color);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.message-bubble.fade-out {
    animation: messageFadeOut 0.3s ease-out forwards;
}

@keyframes messagePopIn {
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes messageFadeOut {
    to {
        opacity: 0;
        transform: translateX(20px) scale(0.8);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.7;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    animation: fadeIn 1s ease-in;
}

.floating-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    animation: float 3s ease-in-out infinite;
}

.floating-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(255, 255, 255, 0.1));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 400;
}

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

/* Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--accent-color);
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: var(--bg-color);
}

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

.about-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    background-color: var(--hover-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    background-color: var(--card-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    animation: slideUp 0.6s ease-out;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: auto;
    line-height: 1.6;
    flex-grow: 1;
}

.project-status {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    background-color: transparent;
    color: var(--text-secondary);
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.project-link {
    padding: 0.5rem 1rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}

/* Footer */
.footer {
    background-color: var(--bg-color);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .side-icon-container {
        display: none;
    }

    .nav-container {
        padding: 1rem 1.5rem;
    }

    .nav-menu {
        gap: 1rem;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .floating-icon {
        width: 120px;
        height: 120px;
    }

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

    .about-text {
        font-size: 1rem;
    }

    .social-links {
        gap: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .side-icon-container {
        display: none;
    }

    .nav-menu {
        gap: 0.8rem;
        font-size: 0.9rem;
    }

    .nav-logo {
        font-size: 1rem;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .floating-icon {
        width: 100px;
        height: 100px;
    }

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

    .social-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .project-card {
        padding: 1.5rem;
    }
}

/* Smooth scroll behavior */
section {
    scroll-margin-top: 80px;
}
