/* =========================================
   SP Developments Design System
   ========================================= */

:root {
    /* Colors */
    --clr-bg-dark: #0B1120;
    --clr-bg-darker: #060913;
    --clr-text: #F8FAFC;
    --clr-text-muted: #94A3B8;
    
    --clr-primary: #8B5CF6;       /* Vibrant Purple */
    --clr-primary-hover: #7C3AED;
    --clr-secondary: #3B82F6;     /* Bright Blue */
    --clr-accent: #10B981;        /* Success green */

    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-secondary) 100%);
    --grad-glow: radial-gradient(circle at center, rgba(139, 92, 246, 0.15) 0%, rgba(11, 17, 32, 0) 70%);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Styling */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 2rem;
    --transition: all 0.3s ease;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg-dark);
    color: var(--clr-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.relative { position: relative; }
.mb-4 { margin-bottom: 1.5rem; }

.section {
    padding: 6rem 0;
}

.section-padding {
    padding: 4rem 0;
}

.bg-darker {
    background-color: var(--clr-bg-darker);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    gap: 0.5rem;
}

.btn-primary {
    background: var(--grad-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--clr-text);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--clr-primary);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

/* Typography elements */
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.divider {
    height: 4px;
    width: 60px;
    background: var(--grad-primary);
    border-radius: 2px;
    margin-bottom: 1.5rem;
}
.divider.center { margin: 0 auto 1.5rem; }

/* Glass Panels */
.glass-panel, .glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(6, 9, 19, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--clr-text);
}

.logo span {
    color: var(--clr-primary);
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--clr-text-muted);
    position: relative;
    padding-bottom: 5px;
}

.nav-link:hover, .nav-link.active {
    color: var(--clr-text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-primary);
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--clr-text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.4);
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(59, 130, 246, 0.3);
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero .stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero .stat-item {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number-wrapper, .stat-icon-wrapper {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--clr-primary);
}

.stat-icon-wrapper {
    font-size: 1.5rem;
}

.hero .stat-label {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .lead {
    font-size: 1.25rem;
    color: var(--clr-text);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-text p {
    color: var(--clr-text-muted);
    margin-bottom: 1rem;
}

.about-image {
    padding: 1rem;
    position: relative;
}

.about-image img {
    border-radius: var(--radius-md);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--grad-primary);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.experience-badge .years {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.experience-badge .text {
    font-weight: 600;
    line-height: 1.2;
}

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

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--grad-primary);
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

/* Stats Banner */
.stats-banner {
    background: linear-gradient(rgba(6, 9, 19, 0.9), rgba(6, 9, 19, 0.9)), url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&w=1200&q=80') center/cover fixed;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

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

.stat-box .stat-val {
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--clr-primary);
    margin-bottom: 0.5rem;
}

.stat-box .stat-name {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Portfolio */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--clr-text);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
}

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

.portfolio-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--clr-bg-darker);
    border: 1px solid var(--glass-border);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 17, 32, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-img img {
    transform: scale(1.1);
}

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

.portfolio-overlay span {
    background: var(--clr-primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
}

.portfolio-card:hover .portfolio-overlay span {
    transform: translateY(0);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.portfolio-info span {
    color: var(--clr-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Why Choose Us */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-list .feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--clr-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-content p {
    color: var(--clr-text-muted);
}

.why-image img {
    border-radius: var(--radius-md);
}

/* Contact Section */
.has-glow {
    position: relative;
    overflow: hidden;
}

.glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: var(--grad-glow);
    z-index: 0;
}

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

.contact-info, .contact-form {
    padding: 3rem;
}

.contact-info h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.contact-info p {
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
}

.contact-details li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-details .icon {
    color: var(--clr-primary);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.contact-details .text span {
    display: block;
    color: var(--clr-text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--clr-primary);
    transform: translateY(-3px);
}

/* Form */
.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clr-text-muted);
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--clr-text);
    font-family: var(--font-body);
    transition: var(--transition);
}

.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    background: rgba(0, 0, 0, 0.4);
}

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

/* Animations */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal {
    opacity: 0;
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
}

.reveal.fade-up {
    transform: translateY(50px);
}

.reveal.fade-up.active {
    transform: translateY(0);
}

.reveal.left {
    transform: translateX(-50px);
}

.reveal.left.active {
    transform: translateX(0);
}

.reveal.right {
    transform: translateX(50px);
}

.reveal.right.active {
    transform: translateX(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Filter Items Animation */
.filter-item {
    transition: all 0.4s ease;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-grid, .why-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding-top: 150px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .experience-badge {
        bottom: 20px;
        left: 20px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(6, 9, 19, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .input-row {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-info, .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 4rem 0;
    }
    
    .hero .stats {
        flex-direction: column;
        gap: 1rem;
    }
}
