/* Base Styles */
:root {
    --primary-color: #0078d7;
    --primary-glow: #00a2ff;
    --secondary-color: #005a9e;
    --accent-color: #00c3ff;
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --dark-card: #1a1a1a;
    --dark-hover: #222222;
    --text-light: #e0e0e0;
    --text-gray: #a0a0a0;
    --border-color: #333333;
    --success-color: #00cc66;
    --error-color: #ff3333;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--darker-bg);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(0, 40, 83, 0.1), rgba(0, 20, 40, 0.05));
    pointer-events: none;
    z-index: -1;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

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

.section:nth-child(odd) {
    background-color: var(--dark-bg);
}

.section:nth-child(even) {
    background-color: var(--darker-bg);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--accent-color);
    position: relative;
    text-shadow: 0 0 10px rgba(0, 195, 255, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 120, 215, 0.3);
}

.btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 120, 215, 0.4);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 120, 215, 0.2);
}

header.scrolled {
    padding: 10px 0;
    background-color: rgba(5, 5, 5, 0.98);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 90px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(0, 195, 255, 0.5));
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-light);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: var(--transition);
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--accent-color);
}

nav ul li a:hover::after {
    width: 100%;
}

#btn-mobile {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    color: var(--text-light);
}

#hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-light);
    position: relative;
    transition: var(--transition);
}

#hamburger::before,
#hamburger::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: currentColor;
    position: absolute;
    transition: var(--transition);
}

#hamburger::before {
    top: -8px;
}

#hamburger::after {
    bottom: -8px;
}

/* Home Section */
#home {
    background: linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.9)), url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2000&q=80') no-repeat center center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 80px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.7rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-content h1 span {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 195, 255, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* About Section */
#about {
    position: relative;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    background-color: rgba(0, 120, 215, 0.05);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(0, 120, 215, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.expertise-areas h3 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-light);
}

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

.expertise-item {
    background-color: var(--dark-card);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.expertise-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transition: var(--transition);
}

.expertise-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 120, 215, 0.3);
    background-color: var(--dark-hover);
}

.expertise-item:hover::before {
    height: 100%;
}

.expertise-item .icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 195, 255, 0.3);
}

.expertise-item h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Services Section */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--dark-card);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background-color: var(--dark-hover);
    border-color: rgba(0, 120, 215, 0.3);
}

.service-card:hover::after {
    width: 100%;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card:hover .service-icon {
    color: var(--accent-color);
    transform: scale(1.1);
}

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

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

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

.portfolio-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-info {
    text-align: center;
    padding: 0 30px;
    transform: translateY(20px);
    transition: var(--transition);
}

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

.portfolio-info p {
    color: var(--text-light);
}

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

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

/* Contact Section */
#contact {
    position: relative;
}

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

.contact-form h3,
.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-light);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 120, 215, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
}

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

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 5px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.info-item:hover {
    background-color: rgba(0, 120, 215, 0.1);
    border-color: rgba(0, 120, 215, 0.3);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--dark-card);
    color: var(--text-light);
    border-radius: 50%;
    margin-right: 15px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    font-size: 1.5rem;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
    z-index: 100;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    color: var(--text-gray);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

/* Code-Like Effects */
.code-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 120, 215, 0.2), transparent);
}

.terminal-cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background-color: var(--accent-color);
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .expertise-grid,
    .services-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    #btn-mobile {
        display: block;
    }

    #menu {
        display: block;
        position: absolute;
        width: 100%;
        top: 75px;
        right: 0;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 1000;
        height: 0;
        transition: 0.6s;
        visibility: hidden;
        overflow-y: hidden;
        border-top: 1px solid var(--border-color);
    }

    #nav.active #menu {
        height: calc(100vh - 75px);
        visibility: visible;
        overflow-y: auto;
    }

    #menu li {
        padding: 1rem 0;
        margin: 0 1rem;
        border-bottom: 1px solid rgba(0, 120, 215, 0.1);
    }

    #nav.active #hamburger {
        transform: rotate(45deg);
    }

    #nav.active #hamburger::before {
        transform: rotate(90deg);
        top: 0;
    }

    #nav.active #hamburger::after {
        transform: rotate(90deg);
        bottom: 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .section {
        padding: 60px 0;
    }

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

@media screen and (max-width: 576px) {
    .expertise-grid,
    .services-list,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }

    .expertise-item,
    .service-card {
        padding: 20px;
    }
    
    .portfolio-image img {
        height: 250px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}