* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00d9ff;
    --secondary-color: #ff006e;
    --accent-color: #ffbe0b;
    --dark-bg: #0a0e27;
    --darker-bg: #050812;
    --card-bg: #1a1f3a;
    --text-light: #e8e9f3;
    --text-muted: #a0a5bd;
    --border-color: #2d3558;
    --success: #00d982;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 8, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 2px;
}

.logo-accent {
    color: var(--primary-color);
    font-size: 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 50px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 0, 110, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: slideInLeft 0.8s ease;
}

.hero-title {
    font-size: 50px;
    font-weight: 800;
    line-height: 1.6;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.title-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 46px;
}

.title-bullet {
    font-size: 46px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    min-width: 60px;
}

.primary-text {
    background: linear-gradient(135deg, var(--primary-color), #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.secondary-text {
    background: linear-gradient(135deg, var(--secondary-color), #ff3399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent-text {
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #00a8cc);
    color: #000;
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(0, 217, 255, 0.1);
    transform: translateY(-3px);
}

.hero-visual {
    animation: slideInRight 0.8s ease;
    perspective: 1000px;
}

.code-window {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.5), rgba(45, 53, 88, 0.5));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.15);
    transform: rotateX(5deg);
    transition: all 0.3s ease;
}

.code-window:hover {
    transform: rotateX(0deg);
    box-shadow: 0 30px 80px rgba(0, 217, 255, 0.25);
}

.window-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c940; }

.code-snippet {
    padding: 30px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    overflow-x: auto;
    color: var(--primary-color);
}

.keyword { color: var(--secondary-color); }
.function { color: var(--primary-color); }
.string { color: var(--success); }
.comment { color: var(--text-muted); }

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 8px;
    height: 8px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
}

/* About Section */
.about {
    padding: 100px 20px;
    background: rgba(26, 31, 58, 0.3);
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
}

.floating-card {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(255, 0, 110, 0.05));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    animation: float 3s ease-in-out infinite;
}

.card-content h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.card-content ul {
    list-style: none;
}

.card-content li {
    padding: 10px 0;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.card-content li:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

/* Projects Section */
.projects {
    padding: 100px 20px;
    border-top: 1px solid var(--border-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.5), rgba(45, 53, 88, 0.3));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.project-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.15);
    transform: translateY(-10px);
}

.project-card:hover::before {
    left: 100%;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.project-icon {
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.project-header h3 {
    font-size: 22px;
    color: var(--text-light);
}

.project-description {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(0, 217, 255, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tag:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--primary-color);
}

.tag-logo {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.tag-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(78%) sepia(81%) saturate(390%) hue-rotate(151deg) brightness(102%) contrast(102%);
    transition: filter 0.3s ease;
}

.tag:hover .tag-logo img {
    filter: brightness(0) saturate(100%) invert(99%) sepia(25%) saturate(9900%) hue-rotate(151deg) brightness(103%) contrast(102%);
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-link {
    flex: 1;
    padding: 10px 16px;
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

/* Skills Section */
.skills {
    padding: 100px 20px;
    background: rgba(26, 31, 58, 0.3);
    border-top: 1px solid var(--border-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-category {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.5), rgba(45, 53, 88, 0.3));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.1);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 18px;
}

.skill-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.skill-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--text-muted);
    font-size: 14px;
    transition: all 0.3s ease;
    width: fit-content;
}

.skill-item:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.skill-logo {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: saturate(0%) brightness(0.8);
    transition: filter 0.3s ease;
    object-fit: contain;
}

.skill-item:hover .skill-logo {
    filter: saturate(100%) brightness(1);
}

/* Contact Section */
.contact {
    padding: 100px 20px;
    border-top: 1px solid var(--border-color);
}

.contact-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 60px;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-links {
    text-align: center;
    max-width: 600px;
}

.contact-form {
    display: none;
}

.form-group {
    display: none;
}

.form-group input,
.form-group textarea {
    display: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    display: none;
}

.form-group input:focus,
.form-group textarea:focus {
    display: none;
}

.contact-links h3 {
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 28px;
    font-weight: 700;
}

.social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 500px;
    margin: 0 auto;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(255, 0, 110, 0.05));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
}

.social-link:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.15);
    transform: translateY(-5px);
}

.social-icon {
    font-size: 24px;
}

.social-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-color);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.footer p {
    margin: 10px 0;
    font-size: 14px;
}

.heart {
    color: var(--secondary-color);
    animation: heartbeat 1.5s ease-in-out infinite;
}

.footer-accent {
    color: var(--primary-color);
    font-style: italic;
    margin-top: 15px;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0.7;
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .section-title {
        font-size: 36px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .social-links {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .code-window {
        transform: rotateX(0deg);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .nav-logo {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .code-snippet {
        font-size: 12px;
        padding: 20px;
    }
}
