/* Main Colors - Enhanced Designer Palette */
:root {
    --primary-color: #2c6bed; /* Refined blue */
    --secondary-color: #ff9a3c; /* Vibrant orange */
    --green-color: #4caf78; /* Refined green */
    --purple-color: #a94dab; /* Refined purple */
    --deep-purple-color: #5a55c9; /* Enhanced deep purple */
    --accent-color: #ff5e7d; /* New accent pink */
    --text-color: #2d3142; /* Richer text color */
    --light-text: #ffffff;
    --dark-background: #1a1d2a; /* Deeper dark background */
    --light-background: #f8f9fc; /* Subtle light background */
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Standard card shadow */
    --hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.12); /* Enhanced hover shadow */
    --border-radius: 12px; /* Standard border radius */
    --transition-standard: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Professional easing */
}

/* Base Styles - Enhanced Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

html, body {
    width: 100vw;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
}

body {
    background-color: var(--light-background);
    color: var(--text-color);
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Container and Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Enhanced Typography */
h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-color), var(--deep-purple-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
    margin: 2.5rem 0 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

h3 {
    font-size: 1.75rem;
    margin: 1.75rem 0 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    color: rgba(45, 49, 66, 0.85);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    display: inline-block;
    position: relative;
    margin-bottom: 20px;
    z-index: 1;
}

.section-title h2::before {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    opacity: 0.1;
    border-radius: 50%;
    left: -20px;
    top: -10px;
    z-index: -1;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--deep-purple-color));
    border-radius: 2px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(44, 107, 237, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition-standard);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled {
    background-color: rgba(26, 29, 42, 0.95);
    padding: 8px 0;
}

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

.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--light-text);
    position: relative;
    z-index: 2;
}

.navbar-logo span {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-standard);
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    opacity: 0.9;
}

.nav-link:hover {
    color: var(--light-text);
    opacity: 1;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--light-text);
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 1px;
}

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

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--secondary-color), 
        var(--accent-color),
        var(--purple-color), 
        var(--primary-color));
    background-size: 300% 100%;
    width: 0%;
    z-index: 1001;
    transition: width 0.1s ease;
    animation: gradientShift 6s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--deep-purple-color));
    color: var(--light-text);
    padding: 10rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgcGF0dGVyblRyYW5zZm9ybT0icm90YXRlKDQ1KSI+PHJlY3QgaWQ9InBhdHRlcm4tYmciIHdpZHRoPSI0MDAiIGhlaWdodD0iNDAwIiBmaWxsPSJyZ2JhKDI1NSwgMjU1LCAyNTUsIDAuMDMpIj48L3JlY3Q+PHBhdGggZmlsbD0icmdiYSgyNTUsIDI1NSwgMjU1LCAwLjA3KSIgZD0iTTAgMGg0MHY0MEgweiI+PC9wYXRoPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgZmlsbD0idXJsKCNwYXR0ZXJuKSIgaGVpZ2h0PSIxMDAlIiB3aWR0aD0iMTAwJSI+PC9yZWN0Pjwvc3ZnPg==');
    opacity: 0.4;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    -webkit-text-fill-color: var(--light-text);
    background: none;
    line-height: 1.1;
    font-weight: 900;
}

.hero p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.6;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-text);
    color: var(--primary-color);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-standard);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.01em;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--deep-purple-color));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cta-btn:hover {
    color: var(--light-text);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.cta-btn:hover::before {
    opacity: 1;
}

.cta-btn i {
    font-size: 1.5rem;
    margin-right: 0.8rem;
}

/* Services Section */
.services {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    background-color: var(--light-background);
    z-index: 1;
}

/* Service Cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    position: relative;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 3rem 2.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-standard);
    position: relative;
    z-index: 1;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--deep-purple-color));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--hover-shadow);
    color: var(--light-text);
    border-color: transparent;
}

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

.service-card:hover h3 {
    color: var(--light-text);
}

/* Service card top borders */
.service-card.app-dev {
    border-top: 5px solid var(--secondary-color);
}

.service-card.crm {
    border-top: 5px solid var(--green-color);
}

.service-card.ui-ux {
    border-top: 5px solid var(--purple-color);
}

.service-card.ai {
    border-top: 5px solid var(--deep-purple-color);
}

.service-card.backend {
    border-top: 5px solid var(--primary-color);
}

/* Service card hover effects */
.service-card:hover.app-dev,
.service-card:hover.crm,
.service-card:hover.ui-ux,
.service-card:hover.ai,
.service-card:hover.backend {
    border-top: 5px solid transparent;
    background-clip: padding-box;
}

.service-card:hover::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--secondary-color),
        var(--purple-color),
        var(--deep-purple-color)
    );
    background-size: 300% 300%;
    animation: cardGradientShift 3s ease infinite;
}

@keyframes cardGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.service-icon {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
    position: relative;
}

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

/* Testimonials */
.testimonial-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card::before {
    content: """;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

/* Portfolio Section */
.portfolio-item.mobile-app {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    height: 550px;
    width: 280px;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-item.mobile-app:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 40px 70px rgba(0, 0, 0, 0.18);
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .service-grid {
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}
