/* Font imports */
@font-face {
    font-family: "Ubuntu";
    src: url(../fonts/Ubuntu/Ubuntu-Regular.ttf);
}

@font-face {
    font-family: "Ubuntu-Light";
    src: url(../fonts/Ubuntu/Ubuntu-Light.ttf);
}

@font-face {
    font-family: "Ubuntu-Medium";
    src: url(../fonts/Ubuntu/Ubuntu-Medium.ttf);
}

@font-face {
    font-family: "Ubuntu-Bold";
    src: url(../fonts/Ubuntu/Ubuntu-Bold.ttf);
}

/* CSS Variables */
:root {
    --primary-blue: #0066cc;
    --secondary-blue: #0052a3;
    --accent-cyan: #00d4ff;
    --dark-bg: #0a0e27;
    --darker-bg: #050810;
    --card-bg: #131829;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-muted: #7a8ba0;
    --border-color: #1e2a47;
    --success-green: #00c853;
    --error-red: #ff1744;
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #00d4ff 100%);
    --gradient-card: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Ubuntu", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: "Ubuntu-Bold", sans-serif;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.lead {
    font-size: 1.25rem;
    font-family: "Ubuntu-Medium";
    color: var(--text-primary);
}

/* Navigation */
.navbar {
    background-color: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: "Ubuntu-Bold";
    font-size: 1.5rem;
    color: var(--text-primary);
}

.logo img {
    height: 40px;
    width: auto;
}

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

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: "Ubuntu-Medium";
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.nav-menu a:hover {
    color: var(--accent-cyan);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-family: "Ubuntu-Medium";
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.4);
}

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

.btn-secondary:hover {
    background-color: var(--accent-cyan);
    color: var(--dark-bg);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 102, 204, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(0, 102, 204, 0.08) 0%, transparent 40%),
        var(--darker-bg);
    background-size: 200% 200%, 200% 200%, 200% 200%, 100% 100%;
    background-position: 0% 0%, 100% 100%, 50% 0%, 0% 0%;
    position: relative;
    animation: gradientShift 20s ease infinite;
}

.hero-content {
    max-width: 900px;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: "Ubuntu-Medium";
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-tech-stack {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.3s backwards;
    max-width: 1000px;
}

.tech-category {
    text-align: center;
}

.tech-category-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: "Ubuntu-Medium";
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tech-badge {
    background-color: var(--card-bg);
    color: var(--accent-cyan);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: "Ubuntu-Medium";
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Section */
.services {
    background-color: var(--darker-bg);
}

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

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.2);
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

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

.service-card > p {
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-top: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

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

/* About Section */
.about {
    background-color: var(--dark-bg);
}

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

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

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

.highlight-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: scale(1.05);
    border-color: var(--primary-blue);
}

.highlight-card h3 {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.highlight-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    background-color: var(--darker-bg);
}

.contact-form {
    max-width: 700px;
    margin: 3rem auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-family: "Ubuntu-Medium";
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: "Ubuntu";
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

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

.privacy-notice {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 1.5rem 0;
    text-align: center;
}

.form-message {
    max-width: 700px;
    margin: 3rem auto;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.form-message.success {
    background-color: rgba(0, 200, 83, 0.1);
    border: 1px solid var(--success-green);
}

.form-message.error {
    background-color: rgba(255, 23, 68, 0.1);
    border: 1px solid var(--error-red);
}

.form-message h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 5rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: "Ubuntu-Bold";
    font-size: 1.25rem;
}

.footer-logo img {
    height: 30px;
    width: auto;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

@keyframes gradientShift {
    0% {
        background-position: 0% 0%, 100% 100%, 50% 0%, 0% 0%;
    }
    25% {
        background-position: 20% 30%, 80% 70%, 70% 20%, 0% 0%;
    }
    50% {
        background-position: 40% 50%, 60% 50%, 50% 40%, 0% 0%;
    }
    75% {
        background-position: 60% 30%, 40% 70%, 30% 20%, 0% 0%;
    }
    100% {
        background-position: 0% 0%, 100% 100%, 50% 0%, 0% 0%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 73px;
        flex-direction: column;
        background-color: rgba(10, 14, 39, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
    }

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

    .mobile-menu-toggle {
        display: flex;
    }

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

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn-large {
        width: 100%;
        max-width: 300px;
    }

    h2 {
        font-size: 2rem;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 6rem 1rem 3rem;
    }

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

    .tech-badge {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .service-card {
        padding: 1.5rem;
    }
}

/* Medium screens - better layout for about section */
@media (min-width: 900px) {
    .about-content {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }

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