@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800;900&display=swap');

html {
    overflow-x: hidden;
    width: 100%;
}

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

:root {
    --primary: #00d4ff;
    --secondary: #0099ff;
    --accent: #00ffaa;
    --dark: #0a0e27;
    --dark-light: #1a1f3a;
    --text: #ffffff;
    --text-gray: #a0aec0;
    --gradient: linear-gradient(135deg, #00d4ff 0%, #0099ff 50%, #00ffaa 100%);
    --shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

body {
    font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    width: 100%;
    max-width: 100vw;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: 0 5px 30px rgba(0, 212, 255, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    height: 50px;
    max-width: 150px;
}

.logo img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

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

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

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

.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 8s infinite ease-in-out;
}

.hero-particles::before {
    background: rgba(0, 212, 255, 0.3);
    top: 10%;
    left: 10%;
}

.hero-particles::after {
    background: rgba(0, 255, 170, 0.3);
    bottom: 10%;
    right: 10%;
    animation-delay: -4s;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    word-wrap: break-word;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s infinite;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    color: var(--dark);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 70px rgba(0, 212, 255, 0.4);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-gray);
    font-size: 14px;
}

.hero-visual {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: var(--dark-light);
    padding: 20px 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: float 6s infinite ease-in-out;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.floating-card i {
    font-size: 32px;
    color: var(--primary);
}

.card-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 45%;
    right: 30%;
    animation-delay: -2s;
}

.card-3 {
    bottom: 15%;
    right: 5%;
    animation-delay: -4s;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0.2;
    animation: rotate 20s linear infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.circle-2 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
}

.circle-3 {
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--dark-light);
    position: relative;
}

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

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
}

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

.service-card {
    background: var(--dark);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
}

.service-icon i {
    font-size: 36px;
    color: var(--dark);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-features {
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-gray);
}

.service-features i {
    color: var(--accent);
}

.service-hover-effect {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
    transition: bottom 0.4s ease;
}

.service-card:hover .service-hover-effect {
    bottom: 0;
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.about-features {
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--dark-light);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(-10px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.feature-item i {
    font-size: 32px;
    color: var(--primary);
}

.feature-item h4 {
    margin-bottom: 5px;
}

.feature-item p {
    color: var(--text-gray);
    margin: 0;
    font-size: 14px;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tech-item {
    width: 100px;
    height: 100px;
    background: var(--dark-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.tech-item:hover {
    transform: translateY(-10px) rotate(5deg);
    background: var(--gradient);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}

.tech-item i {
    color: var(--primary);
    transition: all 0.3s ease;
}

.tech-item:hover i {
    color: var(--dark);
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background: var(--dark-light);
}

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

.portfolio-item {
    background: var(--dark);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

.portfolio-image {
    height: 250px;
    background: var(--dark-light);
    position: relative;
    overflow: hidden;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 170, 0.1));
}

.portfolio-placeholder i {
    font-size: 80px;
    color: var(--primary);
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-placeholder i {
    transform: scale(1.2) rotate(10deg);
}

.portfolio-info {
    padding: 30px;
}

.portfolio-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.portfolio-info p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

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

.portfolio-tags span {
    padding: 5px 15px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    border-radius: 15px;
    font-size: 12px;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
}

.testimonials-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
}

.testimonials-slider::-webkit-scrollbar {
    height: 8px;
}

.testimonials-slider::-webkit-scrollbar-track {
    background: var(--dark-light);
    border-radius: 10px;
}

.testimonials-slider::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.testimonials-slider::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

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

.testimonial-card {
    background: var(--dark-light);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 212, 255, 0.1);
    min-width: 400px;
    flex-shrink: 0;
}

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

.testimonial-stars {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.testimonial-stars i {
    color: #ffd700;
    font-size: 18px;
}

.testimonial-text {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--dark);
}

.testimonial-author h4 {
    margin-bottom: 5px;
}

.testimonial-author p {
    color: var(--text-gray);
    font-size: 14px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 24px;
    color: var(--dark);
}

.contact-item h4 {
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-gray);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: var(--dark-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.social-links a:hover {
    background: var(--gradient);
    color: var(--dark);
    transform: translateY(-5px);
}

.contact-form {
    background: var(--dark-light);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    width: 100%;
    max-width: 100%;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 50px 15px 20px;
    background: var(--dark);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    color: var(--text);
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

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

.form-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
}

.form-group textarea + i {
    top: 20px;
    transform: none;
}

/* Footer */
.footer {
    background: var(--dark-light);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.footer p {
    color: var(--text-gray);
}

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

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

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

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

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
    }
    
    .navbar .container {
        padding: 0 15px;
    }

    .logo {
        height: 40px;
        max-width: 120px;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--dark-light);
        width: 100%;
        max-width: 100vw;
        padding: 30px;
        transition: right 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        right: 0;
    }

    .hero {
        padding-top: 80px;
        min-height: auto;
        padding-bottom: 50px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        padding: 0 15px;
        gap: 30px;
    }

    .hero-visual {
        display: none;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .hero-stats {
        flex-direction: row;
        justify-content: space-between;
        gap: 15px;
    }
    
    .stat-item {
        flex: 1;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .tech-stack {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .tech-item {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-slider {
        overflow-x: auto;
    }
    
    .testimonial-card {
        min-width: 300px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact {
        padding: 60px 0;
    }
    
    .contact .container {
        padding: 0 15px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
        padding: 20px 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .form-group {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 40px 12px 15px;
        font-size: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .form-group i {
        left: 12px;
        font-size: 16px;
    }
    
    .contact-item {
        flex-direction: row;
        gap: 15px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }

    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
}
