/* Code Crafters Web Solution - Custom CSS */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #0f172a;
    --secondary-color: #1e293b;
    --accent-color: #3b82f6;
    --dark-color: #020617;
    --light-color: #f8fafc;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* General Styles */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 76px; /* Account for fixed navbar */
}

/* Ensure sections don't overlap with fixed navbar */
section {
    position: relative;
    overflow: hidden;
    scroll-margin-top: 76px; /* For smooth scroll positioning */
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.5rem; font-weight: 700; }
h3 { font-size: 2rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 600; }
h5 { font-size: 1.25rem; font-weight: 600; }
h6 { font-size: 1.125rem; font-weight: 600; }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 400;
}

/* Modern Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary) !important;
    letter-spacing: -0.025em;
}

.navbar-brand i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    margin: 0 0.75rem;
    transition: all 0.2s ease;
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--text-primary) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Section Spacing System */
.section-standard {
    padding: 6rem 0;
}

.section-large {
    padding: 8rem 0;
}

.section-medium {
    padding: 4rem 0;
}

.section-small {
    padding: 3rem 0;
}

/* Hero Section - Full viewport height */
.hero-section {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 25%, #2d3561 50%, #1a1f3a 75%, #0a0e27 100%);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem 0;
    margin-top: -76px;
    margin-bottom: 0;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(236, 72, 153, 0.04) 0%, transparent 50%);
    opacity: 1;
    animation: heroGradientShift 8s ease-in-out infinite;
}

@keyframes heroGradientShift {
    0%, 100% { 
        background: 
            radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
            radial-gradient(circle at 60% 60%, rgba(236, 72, 153, 0.04) 0%, transparent 50%);
    }
    25% { 
        background: 
            radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 70% 30%, rgba(16, 185, 129, 0.10) 0%, transparent 50%),
            radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.06) 0%, transparent 50%);
    }
    50% { 
        background: 
            radial-gradient(circle at 40% 60%, rgba(59, 130, 246, 0.18) 0%, transparent 50%),
            radial-gradient(circle at 60% 40%, rgba(16, 185, 129, 0.12) 0%, transparent 50%),
            radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.10) 0%, transparent 50%),
            radial-gradient(circle at 70% 70%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
    }
    75% { 
        background: 
            radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 30% 30%, rgba(16, 185, 129, 0.10) 0%, transparent 50%),
            radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
            radial-gradient(circle at 40% 60%, rgba(236, 72, 153, 0.06) 0%, transparent 50%);
    }
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.02)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="dots" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="200" height="200" fill="url(%23dots)"/></svg>');
    opacity: 0.6;
    animation: parallaxFloat 25s ease-in-out infinite;
}

@keyframes parallaxFloat {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-15px) translateX(10px); }
    66% { transform: translateY(-10px) translateX(-10px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    padding: 2rem 0;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 2rem;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 25%, #c7d2fe 50%, #a5b4fc 75%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientTextShift 4s ease-in-out infinite;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes gradientTextShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-content .lead {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 3rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-buttons .btn {
    padding: 1.125rem 2.75rem;
    font-weight: 600;
    font-size: 1.0625rem;
    border-radius: 0.875rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.hero-buttons .btn:hover::before {
    left: 100%;
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, #2563eb, #1d4ed8, #1e40af);
}

.hero-buttons .btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.hero-buttons .btn-outline-light:hover {
    transform: translateY(-3px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.2);
    color: white;
}

.hero-buttons .btn-success {
    background: linear-gradient(135deg, #10b981, #059669, #047857);
    color: white;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4), 0 0 0 1px rgba(16, 185, 129, 0.1);
}

.hero-buttons .btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857, #065f46);
    border-color: rgba(5, 150, 105, 0.8);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.5), 0 0 0 1px rgba(16, 185, 129, 0.2);
}

.hero-features {
    margin-top: 3rem;
    opacity: 0.9;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

.feature-item i {
    color: var(--success-color);
    font-size: 1.125rem;
    flex-shrink: 0;
}

.feature-item span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.hero-image {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero-image img {
    border-radius: 2rem;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899, #f59e0b);
    border-radius: 2rem;
    z-index: -1;
    opacity: 0.8;
    filter: blur(25px);
    animation: imageGlow 3s ease-in-out infinite alternate;
}

@keyframes imageGlow {
    0%, 100% { 
        filter: blur(25px) brightness(1);
        opacity: 0.8;
    }
    50% { 
        filter: blur(35px) brightness(1.2);
        opacity: 0.6;
    }
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    border-radius: 2rem;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-image:hover::after {
    opacity: 1;
}

.hero-image img:hover {
    transform: scale(1.03) translateY(-8px);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float-shape 20s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 30%;
    left: 20%;
    animation-delay: 10s;
}

.shape-4 {
    width: 40px;
    height: 40px;
    top: 80%;
    right: 30%;
    animation-delay: 15s;
}

@keyframes float-shape {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(0) rotate(180deg);
    }
    75% {
        transform: translateY(-10px) rotate(270deg);
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.section-header .lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Portfolio Section */
.portfolio-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, #f1f5f9 100%);
    padding: 2rem 0 4rem 0;
    position: relative;
    margin-top: -2rem;
    z-index: 2;
}

.portfolio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.3;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.portfolio-filter .btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.portfolio-filter .btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    margin: 0 auto;
}

.portfolio-item {
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
}

.portfolio-card {
    background: var(--bg-white);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 480px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 1.25rem 1.25rem 0 0;
}

.portfolio-card:hover {
    transform: translateY(-16px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.portfolio-card:hover::before {
    transform: scaleX(1);
}

.portfolio-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95) saturate(0.95);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1) rotate(1deg);
    filter: brightness(1.1) saturate(1.2);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.7) 30%,
        rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(0px);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
    backdrop-filter: blur(2px);
}

.overlay-content {
    text-align: center;
    color: white;
    padding: 2rem;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h4 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.01em;
}

.overlay-content p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
    font-size: 0.95rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.portfolio-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.portfolio-links .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.portfolio-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-content h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.portfolio-content p {
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    flex: 1;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.project-features .badge {
    font-size: 0.7rem;
    padding: 0.4375rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
}

.project-features .badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.4s ease;
}

.project-features .badge:hover::before {
    left: 100%;
}

.project-features .badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-features .badge i {
    margin-right: 0.375rem;
    font-size: 0.65rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.project-features .badge.bg-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: rgba(59, 130, 246, 0.3);
}

.project-features .badge.bg-success {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: rgba(16, 185, 129, 0.3);
}

.project-features .badge.bg-info {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    border-color: rgba(6, 182, 212, 0.3);
}

.project-features .badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: rgba(245, 158, 11, 0.3);
}

.project-features .badge.bg-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: rgba(239, 68, 68, 0.3);
}

.project-features .badge.bg-secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    border-color: rgba(107, 114, 128, 0.3);
}

/* Premium Services Section */
.premium-services {
    background: linear-gradient(135deg, var(--bg-light) 0%, #f1f5f9 100%);
    padding: 5rem 0;
    position: relative;
    margin-top: 0;
    z-index: 3;
}

.premium-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.3;
}

.premium-service-card {
    background: var(--bg-white);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 500px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--border-color);
}

.premium-service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.premium-service-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.premium-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.premium-service-card:hover .premium-service-image img {
    transform: scale(1.1);
    filter: brightness(0.9);
}

.premium-service-content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), #60a5fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.premium-service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.premium-service-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.premium-service-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
    text-align: center;
}

.premium-service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.premium-service-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.premium-service-features i {
    color: var(--accent-color);
    margin-right: 0.75rem;
    font-size: 0.875rem;
    flex-shrink: 0;
    background: rgba(59, 130, 246, 0.1);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-service-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: auto;
}

.premium-service-link:hover {
    color: #2563eb;
    transform: translateX(5px);
}

.premium-service-link i {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}
.premium-service-link:hover i {
    transform: translateX(3px);
}

/* Why Partner Section */
.premium-why-partner {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    z-index: 4;
}

.premium-why-partner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    opacity: 0.8;
}

.premium-why-partner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.02)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.premium-why-partner .container {
    position: relative;
    z-index: 2;
}

.premium-why-partner .section-header h2 {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.premium-why-partner .section-header .lead {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.premium-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.premium-feature-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.premium-feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #60a5fa, var(--success-color));
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.premium-feature-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.premium-feature-item:hover::before {
    transform: translateX(0);
}

.premium-feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), #60a5fa);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.premium-feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
}

.premium-feature-icon i {
    font-size: 2rem;
    color: white;
}

.premium-feature-item:hover .premium-feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.premium-feature-item:hover .premium-feature-icon img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.premium-feature-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.premium-feature-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Technology Section */
.technology-section {
    background: var(--bg-light);
    padding: 5rem 0;
    position: relative;
    margin-top: 0;
    z-index: 5;
}

.tech-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.tech-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), #60a5fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.tech-item:hover .tech-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.tech-item h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    position: relative;
    margin-top: 0;
    z-index: 6;
}

.contact-form {
    background: var(--bg-white);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.form-control, .form-select {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-control.is-invalid, .form-select.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-invalid:focus, .form-select.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--text-muted);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
    position: relative;
    margin-top: 0;
    z-index: 7;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.footer i {
    color: var(--accent-color);
    margin-right: 0.75rem;
    font-size: 0.875rem;
    width: 16px;
}

.footer hr {
    border-color: var(--border-color);
    margin: 2rem 0;
    opacity: 0.2;
}

.footer .text-center p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Lazy loading for images */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .whatsapp-float,
    .hero-buttons,
    .portfolio-overlay,
    .floating-shapes {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: #000 !important;
        min-height: auto !important;
        padding: 2rem 0 !important;
    }
    
    body {
        padding-top: 0 !important;
    }
}
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 2s infinite;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 60px; /* Smaller navbar on mobile */
    }
    
    section {
        scroll-margin-top: 60px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    /* Mobile Section Spacing */
    .portfolio-section {
        padding: 1rem 0 3rem 0;
        margin-top: -1rem;
    }
    
    .premium-services,
    .technology-section,
    .contact-section {
        padding: 2rem 0;
    }
    
    .hero-section {
        min-height: 100vh;
        margin-top: -60px;
        padding: 5rem 0 3rem 0; /* More top padding for mobile */
    }
    
    /* Portfolio Responsive */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-card {
        margin-bottom: 1.5rem;
        min-height: 400px;
    }
    
    .portfolio-image {
        height: 200px;
    }
    
    .portfolio-content h5 {
        font-size: 1.1rem;
    }
    
    .portfolio-content p {
        font-size: 0.85rem;
    }
    
    .project-features {
        margin-top: 0.5rem;
    }
    
    .project-features .badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
    
    .overlay-content h4 {
        font-size: 1.25rem;
    }
    
    .overlay-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .portfolio-links {
        gap: 0.25rem;
    }
    
    .portfolio-links .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Services Responsive */
    .premium-service-content {
        padding: 2rem;
        min-height: 180px;
    }
    
    .premium-service-image {
        height: 180px;
    }
    
    .premium-service-card {
        min-height: 400px;
    }
    
    .premium-service-content h3 {
        font-size: 1.25rem;
    }
    
    .premium-service-content p {
        font-size: 0.9rem;
    }
    
    .premium-service-features li {
        font-size: 0.85rem;
    }
    
    /* Why Partner Responsive */
    .premium-feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .premium-feature-item {
        padding: 2rem;
    }
    
    .premium-feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .premium-feature-item h3 {
        font-size: 1.25rem;
    }
    
    .premium-feature-item p {
        font-size: 0.9rem;
    }
    
    /* Technology Responsive */
    .tech-item {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }
    
    .tech-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .tech-item h5 {
        font-size: 0.9rem;
    }
    
    /* Contact Responsive */
    .contact-form {
        padding: 2rem;
    }
    
    .form-control, .form-select {
        font-size: 0.9rem;
        padding: 0.75rem 0.875rem;
    }
    
    /* Portfolio Filter Responsive */
    .portfolio-filter {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .portfolio-filter .btn {
        width: 100%;
        max-width: 200px;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* WhatsApp Button Responsive */
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
    }
    
    .whatsapp-float a {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Footer Responsive */
    .footer {
        padding: 3rem 0 2rem;
    }
}

/* Desktop/Laptop Responsive */
@media (min-width: 993px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .portfolio-card {
        min-height: 450px;
    }
    
    .portfolio-image {
        height: 250px;
    }
    
    .portfolio-content {
        min-height: 150px;
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* Tablet Responsive */
@media (max-width: 992px) and (min-width: 769px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .portfolio-image {
        height: 220px;
    }
    
    .premium-feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}
