:root {
    --primary: #00d2ff;
    --secondary: #3a7bd5;
    --accent: #ff00c1;
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

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

/* Base Styles */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

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

main {
    padding-bottom: 8rem;
}

section {
    padding: 5rem 0;
}

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

/* Typography */
h1, h2, h3 {
    font-weight: 700;
}

h1 {
    font-size: 4rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 2px;
}

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

nav.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    padding: 1rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 2.2rem;
    padding: 0.5rem;
    z-index: 1200;
    line-height: 1;
}

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

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 120px 3rem 0;
    gap: 1.5rem;
    transition: var(--transition);
    border-left: 1px solid var(--glass-border);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.mobile-menu .hire-btn {
    margin-top: 1rem;
}

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

.hire-btn {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
    color: white !important;
}

.hire-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.5);
}

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

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    z-index: 10;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: -10%;
    width: 70%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: -1;
}

/* Service Card (Fiverr Style) */
.services-section {
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: #1e293b;
    border-radius: 1rem;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary);
}

.service-img {
    height: 200px;
    background: #334155;
    position: relative;
    overflow: hidden;
}

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

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

.service-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.seller-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.seller-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    color: #fff;
}

.seller-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.service-title {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    height: 3.2rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 500;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.2rem;
    margin-top: auto;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #ffb33e;
    font-size: 0.9rem;
}

.price {
    font-weight: 800;
    color: var(--text-white);
    font-size: 1.2rem;
}

.price span {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: 400;
    text-transform: uppercase;
}

/* Service Detail Page */
.service-header {
    padding-top: 150px;
    padding-bottom: 50px;
}

.service-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.service-content-main h3 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
}

.service-gallery {
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--glass-border);
}

.service-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.package-card {
    position: sticky;
    top: 120px;
    padding: 2rem;
}

.package-tabs {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-gray);
}

.tab.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.package-price {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.package-desc {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.package-features {
    margin-bottom: 2rem;
}

.package-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.package-features li i {
    color: var(--primary);
}

/* Footer */
footer {
    padding: 6rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
    background: #0b1120;
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--text-white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-col p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-gray);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.contact-info i {
    color: var(--primary);
    margin-top: 4px;
}

.subscribe-form {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-card);
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
}

.subscribe-form input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-white);
    padding: 0.5rem 1rem;
    flex-grow: 1;
}

.subscribe-btn {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.subscribe-btn:hover {
    transform: scale(1.05);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    margin-right: 0.5rem;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

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

@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
}

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 992px) {
    .service-layout { grid-template-columns: 1fr; }
    .package-card { position: static; margin-top: 2rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }
}

/* Contact Page Specific */
.contact-layout {
    grid-template-columns: 1fr 1.8fr;
    gap: 3rem;
    margin-bottom: 5rem;
}

.contact-sidebar-card {
    padding: 2.5rem;
    height: 100%;
}

.contact-form-card {
    padding: 3.5rem;
}

@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .contact-form-card {
        padding: 2.5rem;
    }
}

@media (max-width: 576px) {
    .contact-form-card, .contact-sidebar-card {
        padding: 1.5rem;
    }
}

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

@media (max-width: 576px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}
