/* Custom CSS for Digicrafter */
:root {
    --bg-color: #0d0f14;
    --surface-color: rgba(255, 255, 255, 0.03);
    --surface-border: rgba(255, 255, 255, 0.08);
    --primary-color: #7c3aed;
    --secondary-color: #3b82f6;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --gradient-1: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
}

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

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Typography elements */
.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: #fff;
}

.btn:hover {
    transform: translateY(-2px);
}

.glow-effect:hover {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

.fw-full {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 20px 0;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(13, 15, 20, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--surface-border);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
}

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

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

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

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-primary);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('../assets/images/hero_bg.png') no-repeat center right/cover;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom right, rgba(13, 15, 20, 0.95), rgba(13, 15, 20, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: left;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

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

.service-card {
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.4s ease, background 0.4s;
    background: linear-gradient(to bottom right, var(--surface-color), transparent);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(124, 58, 237, 0.3);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--surface-color);
    border: 1px solid rgba(124, 58, 237, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
}

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

.service-card p {
    color: var(--text-secondary);
}

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

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid var(--surface-border);
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 0;
    overflow: hidden;
}

.contact-form {
    padding: 3rem;
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.2);
}

.contact-info {
    padding: 3rem;
    background: rgba(124, 58, 237, 0.05);
    border-left: 1px solid var(--surface-border);
}

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

.contact-info p {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
}

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

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

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

/* Footer */
.footer {
    border-top: 1px solid var(--surface-border);
    padding: 4rem 0 2rem;
    margin-top: 2rem;
}

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

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--surface-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hidden-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hidden-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.show {
    opacity: 1;
    transform: translate(0);
}

.text-focus-in {
    animation: text-focus-in 1s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}

@keyframes text-focus-in {
    0% { filter: blur(12px); opacity: 0; transform: translateY(20px); }
    100% { filter: blur(0px); opacity: 1; transform: translateY(0); }
}

.tracking-in-expand {
    animation: tracking-in-expand 0.7s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

@keyframes tracking-in-expand {
    0% { letter-spacing: -0.5em; opacity: 0; }
    40% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links {
        position: absolute;
        top: 100%; left: 0;
        width: 100%;
        background: rgba(13, 15, 20, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: transform 0.4s;
        z-index: -1;
    }
    .nav-links.active { transform: translateY(0); }
    .hero { text-align: center; }
    .hero-content { text-align: center; margin: 0 auto; }
    .hero h1 { font-size: 2.5rem; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-text .section-title { text-align: center; }
    .about-text { text-align: center; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-form { padding: 2rem; }
    .contact-info { padding: 2rem; border-left: none; border-top: 1px solid var(--surface-border); }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 1rem auto; }
}
