@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Space+Grotesk:wght@300;500;700&display=swap');

:root {
    --bg-dark: #020617;
    /* Darker navy */
    --bg-card: rgba(15, 23, 42, 0.7);
    --primary-blue: #38bdf8;
    /* Sky Blue */
    --electric-blue: #0ea5e9;
    /* Electric Blue */
    --accent-blue: #f8fafc;
    /* Near white blue */
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --neon-glow: 0 0 20px rgba(56, 189, 248, 0.3);
    --glass-border: rgba(255, 255, 255, 0.1);
}

.text-gradient {
    background: linear-gradient(to right, var(--text-white), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hover-expand {
    transition: letter-spacing 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

.hover-expand:hover {
    letter-spacing: 2px;
    color: var(--primary-blue);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
.display-font {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

/* Glassmorphism */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.glass-nav {
    background: rgba(5, 10, 21, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

/* Animations & Transitions */
.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: var(--neon-glow);
    transform: translateY(-5px);
}

.neon-text {
    text-shadow: 0 0 10px rgba(0, 238, 255, 0.8);
}

.btn-premium {
    background: var(--text-white);
    color: var(--bg-dark);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.btn-premium:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    background: var(--primary-blue);
    color: white;
}

.btn-outline-cyan {
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 10px 24px;
    border-radius: 50px;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-cyan:hover {
    background: var(--primary-blue);
    color: var(--bg-dark);
    box-shadow: var(--neon-glow);
}

/* Background patterns */
.bg-circuit {
    background-image: url('../img/bg-pattern.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.bg-circuit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(5, 10, 21, 0.9) 0%, rgba(5, 10, 21, 0.4) 50%, rgba(5, 10, 21, 0.9) 100%);
    z-index: 1;
}

.content-pos {
    position: relative;
    z-index: 2;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-blue), var(--electric-blue));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-white);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--neon-glow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--text-white);
}

/* Masonry for Portfolio */
.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

@media (max-width: 992px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .masonry-grid {
        column-count: 1;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.project-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(5, 10, 21, 0.9));
    transition: bottom 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.masonry-item:hover .project-overlay {
    bottom: 0;
}

/* Pricing Cards */
.pricing-card {
    transition: all 0.5s ease;
    perspective: 1000px;
}

.pricing-card:hover {
    transform: translateY(-10px) rotate3d(1, 1, 0, 5deg);
}

/* Premium Card Enhancements */
.card-premium {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.4) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-premium:hover {
    transform: translateY(-10px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--neon-glow);
}

.card-premium:hover::before {
    opacity: 1;
}

.icon-box {
    width: 64px;
    height: 64px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-blue);
    transition: all 0.4s ease;
    margin-bottom: 1.5rem;
}

.card-premium:hover .icon-box {
    background: var(--primary-blue);
    color: var(--bg-dark);
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

/* Process Flow */
.process-flow {
    position: relative;
    perspective: 2000px;
}

#process-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 0.1s linear;
    filter: drop-shadow(0 0 8px var(--primary-blue));
}

@media (max-width: 767px) {
    #process-svg {
        display: none;
    }
}

.perspective-1000 {
    perspective: 1000px;
}

.tilt-child {
    transform-style: preserve-3d;
}

.tilt-inner {
    transform: translateZ(50px);
}

@media (min-width: 768px) {
    .process-flow::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 5%;
        right: 5%;
        height: 2px;
        background: linear-gradient(to right, transparent, rgba(56, 189, 248, 0.2), transparent);
        z-index: 0;
    }
}

.step-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    position: absolute;
    top: -10px;
    right: 20px;
    line-height: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    pointer-events: none;
}
/* Premium Form Styles */
.form-input-container {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: white;
    font-family: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.form-input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary-blue);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15), 
                inset 0 0 10px rgba(56, 189, 248, 0.05);
    transform: translateY(-2px);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

/* Custom Select Styling */
select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url(" data:image/svg+xml,%3Csvg xmlns=http://www.w3.org/2000/svg fill=none viewBox=0 0 24 24 stroke=white%3E%3Cpath stroke-linecap=round stroke-linejoin=round stroke-width=2 d=M19 9l-7 7-7-7%3E%3C/path%3E%3C/svg%3E\);
 background-repeat: no-repeat;
 background-position: right 1.25rem center;
 background-size: 1.25rem;
 padding-right: 3rem;
}

select.form-input option {
 background: #0f172a;
 color: white;
}

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