/* --- Variables & Reset --- */
:root {
    --bg-color: #0f1115;       /* Dark modern background */
    --bg-offset: #161b22;      /* Slightly lighter for contrast */
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --accent: #3b82f6;         /* A professional Tech Blue */
    --accent-hover: #2563eb;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Layout Utilities --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 80px 0; }
.bg-offset { background-color: var(--bg-offset); }

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 700;
}

/* --- Buttons --- */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}
.btn-primary:hover { background-color: var(--accent-hover); transform: translateY(-2px); }

.btn-secondary {
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    margin-left: 10px;
}
.btn-secondary:hover { border-color: var(--text-main); }

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Specific styling for the logo image */
.logo-img {
    height: 60px; /* Adjust based on your logo's aspect ratio */
    width: auto;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a:not(.btn-primary) {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
}
.nav-links a:not(.btn-primary):hover { color: var(--text-main); }

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero .highlight {
    color: transparent;
    background: linear-gradient(90deg, var(--accent), #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 600px;
}

/* --- Portfolio Grid --- */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    display: block; /* Important since it is now an <a> tag */
    background-color: rgba(22, 27, 34, 0.7); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); /* Adds a subtle shadow */
}

/* Push the text link to the right on hover to indicate action */
.card:hover .btn-text {
    transform: translateX(5px);
    color: var(--accent-hover);
}

.card-image {
    height: 200px;
    width: 100%;
}

/* Gradients to serve as placeholders for demo screenshots */
.placeholder-gradient-1 { background: linear-gradient(45deg, #1e293b, #3b82f6); }
.placeholder-gradient-2 { background: linear-gradient(45deg, #1e293b, #10b981); }
.placeholder-gradient-3 { background: linear-gradient(45deg, #1e293b, #f59e0b); }
.placeholder-gradient-4 { background: linear-gradient(45deg, #1e293b, #ef4444); } /* Red/Dark aesthetic for the tire shop */

.card-content { padding: 25px; }

.card-content h3 { margin-bottom: 10px; font-size: 1.2rem; }
.card-content p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 15px; }

.tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tags span {
    font-size: 0.75rem;
    background-color: rgba(255,255,255,0.05);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-muted);
}

.btn-text {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition); /* Allows smooth sliding on hover */
}

.card-image {
    height: 200px;
    width: 100%;
    overflow: hidden; /* Keeps the image inside the rounded corners */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the space without stretching */
    object-position: top; /* Focuses on the top part of the screenshot/mockup */
    transition: transform 0.5s ease; /* Optional: smooth zoom setup */
}

/* Optional UX touch: Slight zoom effect on the image when hovering the card */
.card:hover .card-image img {
    transform: scale(1.05);
}

/* --- Services --- */
.service-item {
    padding: 30px;
    border-left: 2px solid var(--accent);
    background: linear-gradient(90deg, rgba(59,130,246,0.05), transparent);
}
.service-item h3 { margin-bottom: 10px; }
.service-item p { color: var(--text-muted); }

/* --- Contact Form --- */
.contact-container { max-width: 600px; }

.form-group { margin-bottom: 20px; }

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

input, textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-offset);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: white;
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.full-width { width: 100%; text-align: center; cursor: pointer;}

/* --- Footer --- */
footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.socials a { margin-left: 20px; transition: var(--transition); }
.socials a:hover { color: var(--text-main); }

/* --- Mobile Responsive --- */
.hamburger { display: none; cursor: pointer; }

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        height: calc(100vh - 70px);
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        padding: 40px;
        transition: 0.3s;
    }

    .nav-links.active { right: 0; }
    .hamburger { display: block; }
    
    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: white;
        transition: 0.3s;
    }

    .hero h1 { font-size: 2.5rem; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
    .socials a { margin: 0 10px; }
}

.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1; /* Ensures it stays behind text */
    overflow: hidden;
    background-color: var(--bg-color);
}

/* The subtle grid pattern */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px; /* Size of the grid squares */
    pointer-events: none;
}

/* The glowing blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px); /* This makes them soft and gaseous */
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}

/* Blob 1: Top Left - Purple/Blue */
.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent), #8b5cf6);
    animation-delay: 0s;
}

/* Blob 2: Bottom Right - Dark Blue */
.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #1e3a8a, var(--accent));
    animation-delay: -2s;
}

/* Blob 3: Center/Random - Cyan/Teal (Accents) */
.blob-3 {
    top: 40%;
    left: 30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #10b981, #0ea5e9);
    opacity: 0.4;
    animation-duration: 15s;
    animation-delay: -5s;
}

/* The movement animation */
@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}