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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: hsl(215, 28%, 17%);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Properties */
:root {
    --primary: hsl(221, 83%, 53%);
    --primary-dark: hsl(221, 83%, 43%);
    --primary-light: hsl(221, 83%, 63%);
    --slate: hsl(215, 28%, 17%);
    --slate-light: hsl(215, 16%, 47%);
    --gray-50: hsl(210, 40%, 98%);
    --white: #ffffff;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    z-index: 50;
    border-bottom: 1px solid hsl(214, 32%, 91%);
}

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

.logo-svg {
    width: 10rem;
    height: 2.5rem;
}

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

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    background: none;
    border: none;
    color: var(--slate-light);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.nav-cta {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

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

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

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

.hamburger-line {
    width: 1.5rem;
    height: 2px;
    background: var(--slate-light);
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    background: white;
    border-bottom: 1px solid hsl(214, 32%, 91%);
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
}

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

.mobile-nav-link {
    background: none;
    border: none;
    color: var(--slate-light);
    font-weight: 500;
    padding: 0.75rem;
    text-align: left;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    padding: 6rem 0 5rem;
    overflow: hidden;
    background: linear-gradient(135deg, hsl(210, 40%, 98%) 0%, hsl(217, 32%, 91%) 100%);
}

.hero-background {
    position: absolute;
    inset: 0;
    opacity: 0.05;
}

.hero-grid {
    width: 100%;
    height: 100%;
}

.hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-text {
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-text {
        text-align: left;
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--slate);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-title-accent {
    color: var(--primary);
    display: block;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--slate-light);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .hero-description {
        margin-left: 0;
        margin-right: 0;
    }
}

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

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    width: 100%;
    max-width: 350px;
    height: 300px;
    background: linear-gradient(135deg, hsl(221, 83%, 53%) 0%, hsl(260, 100%, 70%) 100%);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.hero-illustration:hover {
    transform: scale(1.05);
}

.illustration-svg {
    color: white;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.floating-elements {
    animation: bounce 3s ease-in-out infinite;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, hsl(210, 40%, 98%) 0%, hsl(217, 32%, 91%) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--slate);
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-description {
    font-size: 1.25rem;
    color: var(--slate-light);
    max-width: 768px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    position: relative;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--primary), hsl(240, 100%, 67%));
    border-radius: 1.5rem;
    opacity: 0.2;
    filter: blur(1px);
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 0.4;
}

.service-card-inner {
    position: relative;
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
}

.service-card:hover .service-card-inner {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary), hsl(240, 100%, 67%));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    transition: transform 0.3s ease;
}

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

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.service-card:hover .service-title {
    color: var(--primary);
}

.service-description {
    color: var(--slate-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-check {
    width: 1.5rem;
    height: 1.5rem;
    background: hsl(142, 76%, 94%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(142, 76%, 36%);
    transition: background-color 0.2s ease;
}

.feature-item:hover .feature-check {
    background: hsl(142, 76%, 90%);
}

.feature-item span {
    font-size: 0.875rem;
    color: var(--slate);
    font-weight: 500;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: var(--gray-50);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
}

.about-description {
    font-size: 1.125rem;
    color: var(--slate-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--slate-light);
    margin-top: 0.25rem;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-illustration {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--slate) 0%, hsl(221, 83%, 53%) 100%);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.workspace-svg {
    color: white;
}

/* Team Section */
.team-section {
    margin-top: 5rem;
}

.team-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate);
    text-align: center;
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.team-member {
    text-align: center;
}

.member-avatar {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.blue-gradient {
    background: linear-gradient(135deg, hsl(217, 91%, 60%) 0%, hsl(212, 100%, 70%) 100%);
}

.purple-gradient {
    background: linear-gradient(135deg, hsl(270, 91%, 65%) 0%, hsl(316, 100%, 74%) 100%);
}

.green-gradient {
    background: linear-gradient(135deg, hsl(142, 91%, 48%) 0%, hsl(158, 100%, 48%) 100%);
}

.orange-gradient {
    background: linear-gradient(135deg, hsl(25, 95%, 53%) 0%, hsl(0, 91%, 71%) 100%);
}

.member-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--slate);
}

.member-role {
    color: var(--primary);
    font-weight: 500;
    margin: 0.25rem 0;
}

.member-bio {
    font-size: 0.875rem;
    color: var(--slate-light);
}

/* Portfolio Section */
.portfolio-section {
    padding: 5rem 0;
    background: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    group: portfolio;
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.portfolio-item img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
}

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

.portfolio-content {
    padding: 1.5rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-description {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

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

.tech-tag {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.portfolio-cta {
    text-align: center;
    margin-top: 3rem;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: var(--slate);
    color: white;
}

.contact-section .section-title {
    color: white;
}

.contact-section .section-description {
    color: hsl(215, 16%, 75%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-label {
    font-weight: 500;
}

.contact-value {
    color: hsl(215, 16%, 75%);
}

.social-links {
    margin-top: 2rem;
}

.social-title {
    font-weight: 500;
    margin-bottom: 1rem;
}

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

.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: hsl(215, 25%, 27%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(215, 16%, 75%);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary);
    color: white;
}

/* Contact Form */
.contact-form-container {
    background: hsl(215, 25%, 27%);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid hsl(215, 25%, 30%);
}

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

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

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: hsl(215, 16%, 75%);
    font-size: 0.875rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: hsl(215, 25%, 23%);
    border: 1px solid hsl(215, 25%, 30%);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: hsl(215, 16%, 60%);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 6rem;
}

.btn-full {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-text {
    display: inline;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
    transform: translateX(2px);
}

/* Footer */
.footer {
    background: hsl(215, 25%, 27%);
    color: hsl(215, 16%, 75%);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-logo-svg {
    width: 10rem;
    height: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.footer-description {
    color: hsl(215, 16%, 60%);
    margin-bottom: 1.5rem;
    max-width: 400px;
}

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

.footer-social-link {
    color: hsl(215, 16%, 60%);
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-social-link:hover {
    color: hsl(217, 91%, 60%);
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.footer-column-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.footer-link {
    color: hsl(215, 16%, 60%);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    text-align: left;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: hsl(217, 91%, 60%);
}

.footer-bottom {
    border-top: 1px solid hsl(215, 25%, 30%);
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
}

.footer-copyright {
    color: hsl(215, 16%, 60%);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90%;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0;
}

.modal-header h3 {
    color: var(--slate);
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--slate-light);
    cursor: pointer;
    padding: 0.25rem;
}

.modal-close:hover {
    color: var(--slate);
}

.modal-body {
    padding: 1rem 1.5rem 1.5rem;
    color: var(--slate-light);
}

/* Responsive Design */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        align-items: stretch;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
    }
}

/* Loading States */
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary:disabled:hover {
    transform: none;
    background: var(--primary);
}

/* Success and Error Messages */
.success-message,
.error-message {
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.success-message {
    background: linear-gradient(135deg, hsl(142, 76%, 94%) 0%, hsl(142, 76%, 88%) 100%);
    border: 1px solid hsl(142, 76%, 78%);
    color: hsl(142, 76%, 20%);
}

.error-message {
    background: linear-gradient(135deg, hsl(0, 84%, 94%) 0%, hsl(0, 84%, 88%) 100%);
    border: 1px solid hsl(0, 84%, 78%);
    color: hsl(0, 84%, 20%);
}

.success-icon,
.error-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon {
    background: hsl(142, 76%, 82%);
    color: hsl(142, 76%, 20%);
}

.error-icon {
    background: hsl(0, 84%, 82%);
    color: hsl(0, 84%, 20%);
}

.success-message h3,
.error-message h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.success-message p,
.error-message p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .animate-pulse,
    .floating-elements {
        animation: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}