:root {
    --primary-color: #00d4ff;
    --primary-dark: #0099cc;
    --secondary-color: #7b68ee;
    --accent-color: #ff6b6b;
    --bg-dark: #0a0a1a;
    --bg-card: rgba(255,255,255,0.05);
    --text-primary: #ffffff;
    --text-secondary: #8892b0;
    --border-color: rgba(255,255,255,0.1);
    --gradient-bg: linear-gradient(135deg, #0c0c1e 0%, #1a1a3e 50%, #0f0f2a 100%);
    --gradient-primary: linear-gradient(135deg, #00d4ff, #0099cc);
    --gradient-secondary: linear-gradient(135deg, #7b68ee, #483d8b);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gradient-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

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

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10,10,26,0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(10,10,26,0.95);
    padding: 10px 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

nav .logo h1 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 2px;
}

nav .logo p {
    color: var(--text-secondary);
    font-size: 10px;
    letter-spacing: 4px;
    margin-top: 2px;
}

nav .menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav .menu li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

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

nav .menu li a:hover::after, nav .menu li a.active::after {
    width: 100%;
}

nav .menu-btn {
    display: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 100px 20px 50px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0,212,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(123,104,238,0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0,212,255,0.05) 0%, transparent 70%);
}

.hero .grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero .particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
}

.hero-content .tagline {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 4px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-content h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-content .btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,212,255,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,212,255,0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,212,255,0.3);
}

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

.section {
    padding: 100px 20px;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title .subtitle {
    color: var(--primary-color);
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 20px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

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

.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(0,212,255,0.15);
}

.project-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: rgba(0,212,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.project-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-card .tag {
    padding: 5px 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
}

.project-card .read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.project-card .read-more:hover {
    transform: translateX(5px);
}

.project-card .read-more span {
    margin-left: 5px;
}

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

.about-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-content p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-content ul {
    list-style: none;
    padding-left: 0;
}

.about-content ul li {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 2;
    padding-left: 25px;
    position: relative;
}

.about-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.about-content strong {
    color: #fff;
}

.stats-section {
    background: rgba(255,255,255,0.03);
    padding: 80px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-item .number {
    font-size: 48px;
    font-weight: 300;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-item .label {
    color: var(--text-secondary);
    font-size: 14px;
    letter-spacing: 2px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(0,212,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-item .info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-item .info p {
    color: var(--text-secondary);
    font-size: 14px;
}

.contact-form {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
}

.contact-form h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0,212,255,0.1);
}

.contact-form .form-group textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,212,255,0.3);
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,212,255,0.5);
}

.footer {
    background: rgba(10,10,26,0.9);
    border-top: 1px solid var(--border-color);
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
    padding-left: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
}

.footer-bottom .icp {
    margin-top: 10px;
    display: block;
}

.footer-bottom .icp a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-bottom .icp a:hover {
    color: var(--primary-color);
}

.project-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px;
}

.project-detail .project-header {
    margin-bottom: 40px;
}

.project-detail .project-header .category {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0,212,255,0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
}

.project-detail .project-header h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
}

.project-detail .project-header p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
}

.project-detail .project-content {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
}

.project-detail .project-content img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 30px;
}

.project-detail .project-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.project-detail .project-content p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.project-detail .project-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.project-detail .project-content ul li {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 2;
    padding-left: 25px;
    position: relative;
}

.project-detail .project-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 20px;
}

.project-detail .project-content strong {
    color: #fff;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.back-link:hover {
    transform: translateX(-5px);
}

.back-link span {
    margin-right: 5px;
}

.success-message {
    background: rgba(76,175,80,0.2);
    border: 1px solid rgba(76,175,80,0.4);
    border-radius: 10px;
    padding: 15px;
    color: #4caf50;
    margin-bottom: 20px;
    text-align: center;
}

.error-message {
    background: rgba(255,77,79,0.2);
    border: 1px solid rgba(255,77,79,0.4);
    border-radius: 10px;
    padding: 15px;
    color: #ff4d4f;
    margin-bottom: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    nav .menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10,10,26,0.98);
        flex-direction: column;
        padding: 30px;
        transition: left 0.3s ease;
    }
    
    nav .menu.active {
        left: 0;
    }
    
    nav .menu-btn {
        display: block;
    }
    
    nav .menu li {
        margin-bottom: 20px;
    }
    
    nav .menu li a {
        font-size: 18px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero-content .btn-group {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-item .number {
        font-size: 36px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .project-detail .project-header h1 {
        font-size: 28px;
    }
    
    .project-detail .project-content {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        padding: 20px;
    }
    
    .project-card .icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .project-card h3 {
        font-size: 18px;
    }
}