/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a1628;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Color Variables */
:root {
    --primary-cyan: #00D4AA;
    --primary-blue: #4A9EFF;
    --dark-navy: #0a1628;
    --darker-navy: #061018;
    --light-cyan: #33E0BB;
    --light-blue: #6BB1FF;
    --text-primary: #ffffff;
    --text-secondary: #B8C5D6;
    --gradient-primary: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    --gradient-secondary: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
}

/* Circuit Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(74, 158, 255, 0.1) 0%, transparent 50%),
        linear-gradient(90deg, transparent 49%, rgba(0, 212, 170, 0.03) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(74, 158, 255, 0.03) 50%, transparent 51%);
    background-size: 200px 200px, 300px 300px, 50px 50px, 50px 50px;
    background-position: 0 0, 100px 100px, 0 0, 25px 25px;
    z-index: -1;
    animation: circuitFlow 20s linear infinite;
}

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

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

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

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-cyan);
}

.nav-logo i {
    font-size: 1.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary-cyan);
}

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

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

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

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

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

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 212, 170, 0.4);
}

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

.btn-secondary:hover {
    background: var(--primary-cyan);
    color: white;
    transform: translateY(-2px);
}

/* Floating Elements */
.hero-visual {
    position: relative;
    height: 500px;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.floating-card i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.floating-card span {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.floating-card span small {
    font-size: 0.7rem;
    opacity: 0.8;
    font-weight: 400;
}

.card-1 {
    top: 15%;
    left: 8%;
    animation: floatUpDown 8s ease-in-out infinite;
    animation-delay: 0s;
}

.card-2 {
    top: 45%;
    right: 15%;
    animation: floatLeftRight 7s ease-in-out infinite;
    animation-delay: 2s;
}

.card-3 {
    bottom: 15%;
    left: 25%;
    animation: floatDiagonal 9s ease-in-out infinite;
    animation-delay: 4s;
}

.card-4 {
    top: 8%;
    right: 8%;
    animation: floatCircular 10s ease-in-out infinite;
    animation-delay: 1s;
}

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

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-25px) translateX(5px); }
    50% { transform: translateY(-15px) translateX(-3px); }
    75% { transform: translateY(-30px) translateX(8px); }
}

@keyframes floatLeftRight {
    0%, 100% { transform: translateX(0px) translateY(0px); }
    25% { transform: translateX(-20px) translateY(-10px); }
    50% { transform: translateX(15px) translateY(-25px); }
    75% { transform: translateX(-10px) translateY(-15px); }
}

@keyframes floatDiagonal {
    0%, 100% { transform: translateX(0px) translateY(0px) rotate(0deg); }
    25% { transform: translateX(15px) translateY(-20px) rotate(2deg); }
    50% { transform: translateX(-10px) translateY(-30px) rotate(-1deg); }
    75% { transform: translateX(20px) translateY(-10px) rotate(3deg); }
}

@keyframes floatCircular {
    0% { transform: translateX(0px) translateY(0px); }
    25% { transform: translateX(12px) translateY(-18px); }
    50% { transform: translateX(0px) translateY(-25px); }
    75% { transform: translateX(-12px) translateY(-18px); }
    100% { transform: translateX(0px) translateY(0px); }
}

/* Section Styles */
.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background: rgba(6, 16, 24, 0.5);
}

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

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 170, 0.2);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 170, 0.2);
}

.portfolio-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.portfolio-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--gradient-secondary);
    opacity: 0.1;
}

.portfolio-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.portfolio-placeholder span {
    font-size: 1.2rem;
    font-weight: 600;
}

.portfolio-screenshot {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8f9fa;
    overflow: hidden;
}

.portfolio-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-screenshot img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-cyan);
}

.portfolio-overlay p {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.tech-stack {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.tech-stack span {
    background: var(--gradient-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Services Section */
.services {
    padding: 100px 0;
}

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

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-cyan);
    box-shadow: 0 20px 40px rgba(0, 212, 170, 0.2);
}

.service-card.beta {
    border-color: var(--primary-blue);
}

.service-card.beta:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 20px 40px rgba(74, 158, 255, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.service-card.beta .service-icon {
    background: var(--gradient-secondary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.beta-badge {
    background: var(--primary-blue);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 10px;
}

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

.service-card ul {
    list-style: none;
    text-align: left;
}

.service-card li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

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

/* Special Offer Section */
.special-offer {
    padding: 80px 0;
    background: rgba(6, 16, 24, 0.8);
    text-align: center;
}

.offer-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.offer-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.offer-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.form-group input {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    border: 2px solid rgba(0, 212, 170, 0.3);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

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

.form-group input::placeholder {
    color: var(--text-secondary);
}

.offer-success {
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid var(--primary-cyan);
    border-radius: 20px;
    padding: 40px;
    margin-top: 30px;
}

.offer-success i {
    font-size: 3rem;
    color: var(--primary-cyan);
    margin-bottom: 20px;
}

.offer-success h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-cyan);
}

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

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

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-cyan);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.contact-info li i {
    color: var(--primary-cyan);
    font-size: 1.2rem;
}

.instagram-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.instagram-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 170, 0.2);
}

.instagram-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.instagram-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.instagram-card p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(240, 148, 51, 0.3);
}

.btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(240, 148, 51, 0.4);
}

/* Footer */
.footer {
    background: var(--darker-navy);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(0, 212, 170, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-cyan);
    margin-bottom: 15px;
}

.footer-logo i {
    font-size: 1.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links h4,
.footer-social h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-cyan);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-cyan);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 212, 170, 0.1);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 22, 40, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 30px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .floating-card {
        padding: 15px;
        font-size: 0.8rem;
    }
    
    .card-1 {
        top: 8%;
        left: 3%;
        animation: floatUpDown 6s ease-in-out infinite;
    }
    
    .card-2 {
        top: 8%;
        right: 3%;
        animation: floatLeftRight 5s ease-in-out infinite;
    }
    
    .card-3 {
        bottom: 35%;
        left: 3%;
        animation: floatDiagonal 7s ease-in-out infinite;
    }
    
    .card-4 {
        bottom: 35%;
        right: 3%;
        animation: floatCircular 8s ease-in-out infinite;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .form-group {
        flex-direction: column;
        align-items: center;
    }
    
    .form-group input {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Glowing Effects */
.glow {
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.5);
}

.glow-blue {
    box-shadow: 0 0 20px rgba(74, 158, 255, 0.5);
}