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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #0a0e27;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #1a1f3a 0%, #16213e 100%);
    color: #e0e0e0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(0, 150, 255, 0.1);
    border-bottom: 1px solid rgba(0, 150, 255, 0.2);
}

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

.navbar .logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.navbar .nav-links {
    list-style: none;
    gap: 2rem;
}

.navbar a:hover {
    color: #00d4ff;
    transition: color 0.3s ease;
}

/* Brand + Mobile Nav */
.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    width: 40px;
    height: 40px;
    display: inline-block;
}

.brand-text {
    font-weight: 700;
    color: #e0e0e0;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: #00d4ff;
    position: relative;
    transition: transform 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: #00d4ff;
    transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-links {
    display: none; /* hidden by default for mobile-first approach */
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links.open {
    display: flex;
}

/* Brand and hamburger */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    display: block;
}

.brand-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e0e0e0;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 28px;
    height: 2px;
    background: #00d4ff;
    position: relative;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 28px;
    height: 2px;
    background: #00d4ff;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(10,14,39,0.6) 0%, rgba(26,31,58,0.6) 100%), url('assets/img/software-development-coding-2.webp');
    color: #e0e0e0;
    padding: 100px 0;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 150, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    color: #b0b0b0;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #0099ff 0%, #00d4ff 100%);
    color: #0a0e27;
    padding: 12px 40px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #0099ff;
}

.cta-button:hover {
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 150, 255, 0.3);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: linear-gradient(180deg, #0a0e27 0%, #16213e 100%);
}

.services h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #b0b0b0;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.service-card {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.8) 0%, rgba(22, 33, 62, 0.6) 100%);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 150, 255, 0.3);
    border-left: 5px solid #00d4ff;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 150, 255, 0.25);
    border-color: rgba(0, 212, 255, 0.6);
    background: linear-gradient(135deg, rgba(26, 31, 58, 1) 0%, rgba(22, 33, 62, 0.8) 100%);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #00d4ff;
    font-weight: 700;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: block;
    margin-bottom: 14px;
    filter: drop-shadow(0 6px 18px rgba(0, 212, 255, 0.06));
}

.service-card > img + h3 { margin-top: 0; }

.service-card p {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(180deg, #16213e 0%, #0a0e27 100%);
}

.contact h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

/* Mobile navigation behaviour */
@media (max-width: 768px) {
    .nav-toggle { display: inline-flex; }
    .nav-links { position: absolute; top: 68px; right: 20px; background: rgba(10,14,39,0.95); padding: 16px; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,0.6); display: none; flex-direction: column; gap: 12px; }
    .nav-links.open { display: flex; }
    .nav-links li { list-style: none; }
    .nav-links a { color: #e0e0e0; padding: 8px 12px; display: block; }
    .brand-text { display: inline-block; }
}

@media (min-width: 769px) {
    .nav-links { display: flex !important; position: static; background: none; padding: 0; box-shadow: none; }
    .nav-toggle { display: none; }
}

.contact-info {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.8) 0%, rgba(22, 33, 62, 0.6) 100%);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    height: fit-content;
    border: 2px solid rgba(0, 150, 255, 0.3);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #00d4ff;
    font-weight: 700;
}

.contact-info p {
    margin-bottom: 1rem;
    color: #b0b0b0;
    line-height: 1.8;
}

.contact-methods {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 150, 255, 0.2);
}

.contact-methods p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: #00d4ff;
    font-weight: 600;
}

.contact-info a:hover {
    color: #0099ff;
}

/* Contact Form */
.contact-form {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.8) 0%, rgba(22, 33, 62, 0.6) 100%);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 150, 255, 0.3);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #e0e0e0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(0, 150, 255, 0.3);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: rgba(10, 14, 39, 0.5);
    color: #e0e0e0;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    background-color: rgba(10, 14, 39, 0.8);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    background: linear-gradient(135deg, #0099ff 0%, #00d4ff 100%);
    color: #0a0e27;
    padding: 12px 40px;
    border: 2px solid #0099ff;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 150, 255, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1f3a 0%, #16213e 100%);
    color: #b0b0b0;
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 150, 255, 0.2);
}

.footer a {
    color: #00d4ff;
}

.footer a:hover {
    color: #0099ff;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .nav-links {
        gap: 1rem;
    }

    .nav-toggle {
        display: block;
    }

    /* Hide the nav by default on mobile; show when `.open` is present */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, #0a0e27 0%, #16213e 100%);
        padding: 1rem 20px;
        flex-direction: column;
        gap: 0.5rem;
        border-top: 1px solid rgba(0,150,255,0.06);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    /* Hamburger -> X when open */
    .nav-toggle.open .hamburger { background: transparent; }
    .nav-toggle.open .hamburger::before { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open .hamburger::after { transform: translateY(-7px) rotate(-45deg); }

    .hero-content h2 {
        font-size: 2rem;
    }

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

    .services h2,
    .contact h2 {
        font-size: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form {
        padding: 25px;
    }

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

/* Desktop: show nav links as row */
@media (min-width: 769px) {
    .nav-links {
        display: flex;
        position: static;
        background: none;
        padding: 0;
        flex-direction: row;
        gap: 2rem;
    }

    .nav-toggle { display: none; }
}

@media (max-width: 480px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero {
        padding: 60px 0;
        min-height: auto;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 10px 30px;
        font-size: 1rem;
    }
}

/* Form Validation States */
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #ff6464;
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: #00d4ff;
}

/* Form Alerts */
.form-alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-alert-success {
    background-color: rgba(0, 150, 255, 0.1);
    border: 2px solid #00d4ff;
    color: #00d4ff;
}

.form-alert-error {
    background-color: rgba(255, 100, 100, 0.1);
    border: 2px solid #ff6464;
    color: #ff8888;
}
