* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ff88;
    --secondary-color: #00d4ff;
    --accent-color: #ff0080;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-light: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.glitch {
    position: relative;
    color: var(--text-primary);
    animation: glitch-text 5s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-color);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--secondary-color);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-text {
    0%, 90%, 100% { opacity: 1; }
    91%, 99% { opacity: 0.8; }
}

@keyframes glitch-anim {
    0% { clip: rect(54px, 9999px, 33px, 0); }
    20% { clip: rect(12px, 9999px, 120px, 0); }
    40% { clip: rect(98px, 9999px, 77px, 0); }
    60% { clip: rect(40px, 9999px, 88px, 0); }
    80% { clip: rect(22px, 9999px, 145px, 0); }
    100% { clip: rect(70px, 9999px, 60px, 0); }
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 72px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-container {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
    min-height: 50px;
}

.typing-text {
    color: var(--primary-color);
}

.cursor {
    color: var(--primary-color);
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--secondary-color);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary span,
.btn-primary i {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--primary-color);
    font-size: 24px;
    border-radius: 10px;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
    border-color: var(--primary-color);
}

.hero-image {
    position: relative;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    position: relative;
    z-index: 1;
}

.floating-card {
    position: absolute;
    background: var(--bg-light);
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 136, 0.2);
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 24px;
    color: var(--primary-color);
}

.floating-card span {
    font-weight: 600;
    color: var(--text-primary);
}

.card-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 30%;
    left: -10%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 10%;
    right: -5%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

section {
    padding: 120px 0;
    position: relative;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.title-number {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
}

.title-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.section-subtitle {
    text-align: center;
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

.about-text {
    font-size: 18px;
    color: var(--text-secondary);
}

.about-text .lead {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.about-text p {
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    font-size: 16px;
    color: var(--text-secondary);
}

.about-expertise {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.expertise-card {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: var(--transition);
    text-align: center;
}

.expertise-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.2);
}

.expertise-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    font-size: 40px;
    color: var(--bg-dark);
}

.expertise-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.expertise-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.skills {
    background: var(--bg-darker);
}

.skills-content {
    display: grid;
    gap: 40px;
}

.skills-category {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.skills-category h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.skill-items {
    display: grid;
    gap: 25px;
}

.skill-item {
    display: grid;
    gap: 10px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}

.skill-info span:first-child {
    color: var(--text-primary);
    font-weight: 600;
}

.skill-level {
    color: var(--secondary-color);
    font-size: 14px;
    padding: 4px 12px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 6px;
}

.skill-bar {
    height: 8px;
    background: var(--bg-dark);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    width: 0;
    transition: width 1s ease-in-out;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tech-tag {
    padding: 12px 24px;
    background: var(--bg-dark);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.tech-tag:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.projects-grid {
    display: grid;
    gap: 40px;
}

.project-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.2);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    font-size: 30px;
    color: var(--bg-dark);
}

.project-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    color: var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: rotate(45deg);
}

.project-link-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--bg-dark);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
}

.project-link-button:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.project-preview {
    position: relative;
    cursor: pointer;
}

.project-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    transition: var(--transition);
}

.project-preview:hover .project-image {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.3);
    filter: brightness(0.7);
}

.image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    z-index: 2;
}

.project-preview:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    font-size: 48px;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.image-overlay span {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.project-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.project-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.project-tech span {
    padding: 8px 16px;
    background: var(--bg-dark);
    color: var(--secondary-color);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.project-preview {
    margin-top: 30px;
}

.preview-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 212, 255, 0.1);
    border-left: 3px solid var(--secondary-color);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.preview-note i {
    color: var(--secondary-color);
}

.contact {
    background: var(--bg-darker);
    padding-bottom: 120px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 36px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-cards {
    display: grid;
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.2);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    font-size: 28px;
    color: var(--bg-dark);
}

.contact-card-info h4 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.contact-card-info p {
    font-size: 16px;
    color: var(--primary-color);
    margin: 0;
}

.cta-box {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    text-align: center;
}

.cta-box h3 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.cta-box > p {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.cta-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    color: var(--text-secondary);
    font-size: 16px;
}

.cta-features i {
    color: var(--primary-color);
    font-size: 18px;
}

.btn-large {
    width: 100%;
    justify-content: center;
    padding: 20px;
    font-size: 18px;
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 48px;
    }

    .typing-container {
        font-size: 24px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-expertise {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .floating-card {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .typing-container {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--primary-color);
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10001;
    border: 2px solid var(--primary-color);
}

.modal-close:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.modal-content-wrapper {
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-image {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.3);
    border: 2px solid var(--primary-color);
}

.modal-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--bg-light);
    color: var(--text-secondary);
    border-radius: 30px;
    font-size: 14px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.modal-hint i {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .modal-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .modal-content-wrapper {
        max-width: 95%;
        max-height: 80vh;
    }
    
    .modal-controls {
        bottom: 15px;
    }
    
    .modal-hint {
        font-size: 12px;
        padding: 8px 16px;
    }
}

.warning-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.warning-modal.active {
    display: flex;
}

.warning-modal-content {
    background: var(--bg-light);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.warning-header i {
    font-size: 36px;
    color: #ffa500;
}

.warning-header h3 {
    font-size: 28px;
    color: var(--text-primary);
    margin: 0;
}

.warning-body {
    margin-bottom: 30px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.warning-body p {
    margin-bottom: 15px;
    font-size: 16px;
}

.warning-body strong {
    color: var(--primary-color);
    font-weight: 600;
}

.warning-footer {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-warning-cancel,
.btn-warning-continue {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-warning-cancel {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--text-secondary);
}

.btn-warning-cancel:hover {
    background: var(--text-secondary);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.btn-warning-continue {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.btn-warning-continue:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

@media (max-width: 480px) {
    .warning-modal-content {
        padding: 30px 20px;
    }
    
    .warning-header h3 {
        font-size: 24px;
    }
    
    .warning-header i {
        font-size: 28px;
    }
    
    .warning-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-warning-cancel,
    .btn-warning-continue {
        width: 100%;
        justify-content: center;
    }
}

