/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ff88;
    --secondary-color: #00cc6a;
    --accent-color: #00ff88;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --panel-bg: rgba(0, 255, 136, 0.05);
    --text-color: #ffffff;
    --text-dim: #888888;
    --code-font: 'Fira Code', monospace;
    --body-font: 'Poppins', sans-serif;
    --transition-speed: 0.3s;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background: var(--darker-bg);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== Background Animation Canvas ===== */
#codeCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--code-font);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color var(--transition-speed) var(--ease);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

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

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

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all var(--transition-speed) var(--ease);
    border-radius: 2px;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

.typing-text {
    font-family: var(--code-font);
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

#typed-cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--text-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s var(--ease);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    animation: fadeInUp 1s var(--ease) 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s var(--ease) 0.4s both;
}

.btn {
    padding: 1rem 2rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-family: var(--code-font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) var(--ease);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left var(--transition-speed) var(--ease);
    z-index: -1;
}

.btn-primary:hover {
    color: var(--dark-bg);
}

.btn-primary:hover::before {
    left: 0;
}

.btn-secondary {
    background: var(--panel-bg);
    border-color: var(--text-dim);
    color: var(--text-color);
}

.btn-secondary::before {
    background: var(--text-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
}

.btn-secondary:hover::before {
    background: var(--text-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.8rem;
    animation: fadeInUp 1s var(--ease) 0.6s both;
}

.scroll-arrow {
    width: 20px;
    height: 35px;
    border: 2px solid var(--text-dim);
    border-radius: 20px;
    position: relative;
    margin-top: 0.5rem;
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
    50% { opacity: 0; transform: translateX(-50%) scale(1.5); }
}

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

/* ===== Sections ===== */
section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
    font-family: var(--code-font);
    font-size: 0.9rem;
    color: var(--primary-color);
}

.title-number {
    font-family: var(--code-font);
    font-size: 1.5rem;
    font-weight: 700;
}

.title-text {
    font-size: 3rem;
    font-weight: 700;
}

/* ===== Services Section ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--panel-bg);
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 2rem;
    border-radius: 10px;
    transition: all var(--transition-speed) var(--ease);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-speed) var(--ease);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.5);
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

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

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

.service-card p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    font-family: var(--code-font);
    font-size: 0.7rem;
    border-radius: 3px;
}

/* ===== Skills Section ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--panel-bg);
    border: 1px solid rgba(0, 255, 136, 0.15);
    padding: 2rem;
    border-radius: 10px;
    transition: all var(--transition-speed) var(--ease);
}

.skill-category:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.1);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.skill-icon {
    font-size: 2rem;
}

.skill-header h3 {
    font-size: 1.3rem;
}

.skill-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1rem;
    border-radius: 5px;
}

.bar-fill {
    flex: 1;
    height: 8px;
    background: rgba(0, 255, 136, 0.2);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0;
    transition: width 1.5s var(--ease);
    animation: fillAnimation 1.5s var(--ease) forwards;
}

@keyframes fillAnimation {
    from { width: 0; }
}

.bar-text {
    font-family: var(--code-font);
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* ===== Packages Section ===== */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.package-card {
    background: var(--panel-bg);
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 2.5rem;
    border-radius: 15px;
    transition: all var(--transition-speed) var(--ease);
    position: relative;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 255, 136, 0.2);
}

.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.featured:hover {
    transform: scale(1.08) translateY(-10px);
}

.package-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 0.5rem 1rem;
    font-family: var(--code-font);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.package-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.package-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 2rem;
}

.currency {
    font-size: 1.5rem;
    color: var(--text-color);
}

.price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.package-features {
    list-style: none;
    margin-bottom: 2rem;
}

.package-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.check {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.package-card .btn-package {
    width: 100%;
    padding: 1rem;
}

.btn-package {
    font-size: 0.8rem;
    padding: 1rem 2rem;
}

.btn-featured {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-bg);
    border: none;
}

.btn-featured::before {
    background: var(--dark-bg);
}

/* ===== Stats Section ===== */
.stats {
    background: var(--panel-bg);
    padding: 4rem 2rem;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--code-font);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== Contact Section ===== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    padding-right: 2rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--panel-bg);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: all var(--transition-speed) var(--ease);
}

.contact-item:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-item > div {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

.contact-value {
    font-size: 1.1rem;
    color: var(--text-color);
}

.contact-form {
    background: var(--panel-bg);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 5px;
    color: var(--text-color);
    font-family: var(--code-font);
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition-speed) var(--ease);
}

.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 5px;
    color: var(--text-color);
    font-family: var(--code-font);
    font-size: 0.9rem;
    outline: none;
    resize: vertical;
    min-height: 120px;
    transition: all var(--transition-speed) var(--ease);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, $transition-speed);
}

.form-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* ===== Footer ===== */
.footer {
    background: rgba(5, 5, 5, 0.95);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color var(--transition-speed) var(--ease);
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 5px;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all var(--transition-speed) var(--ease);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 255, 136, 0.1);
    color: var(--text-dim);
    font-size: 0.9rem;
    font-family: var(--code-font);
}

/* ===== Animations ===== */
.card-reveal {
    opacity: 0;
    transform: translateY(50px);
    animation: revealCard 0.8s var(--ease) forwards;
}

@keyframes revealCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .package-card.featured {
        transform: none;
    }

    .package-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        padding: 2rem;
        transition: left var(--transition-speed) var(--ease);
        border-top: 1px solid rgba(0, 255, 136, 0.2);
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .package-card.featured {
        grid-column: auto;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 2.5rem;
    }

    @keyframes float {
        0%, 100% {
            transform: translateY(0) rotate(0deg);
        }
        50% {
            transform: translateY(-10px) rotate(5deg);
        }
    }

    .package-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 480px) {
    :root {
        --body-font: 'Poppins', sans-serif;
    }

    .hero-title {
        font-size: 2rem;
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
    }
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.5);
}

/* ===== Loading Screen ===== */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-text {
    font-family: var(--code-font);
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== Particle Effect ===== */
.particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    pointer-events: none;
    opacity: 0;
    z-index: 0;
    animation: particleFloat 3s ease-in-out infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(0);
    }
}

/* ===== Hover Glow Effect ===== */
.glow-effect {
    position: relative;
    overflow: hidden;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(0, 255, 136, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all var(--transition-speed) var(--ease);
}

.glow-effect:hover::after {
    left: 100%;
}