/* ------------------------------------------------------ */
/* GLOBAL RESET & BODY */
/* ------------------------------------------------------ */

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

body {
    font-family: 'Poppins', sans-serif;
    background: #0d0f11;
    color: #f5f5f5;
    overflow-x: hidden;
}

section {
    padding: 100px 8%;
}

h1, h2, h3 {
    margin: 0;
}

/* ------------------------------------------------------ */
/* HEADER */
/* ------------------------------------------------------ */

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 22px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13,15,17,0.35);
    backdrop-filter: blur(6px);
    z-index: 999;
    transition: 0.3s;
}

header.scrolled {
    background: rgba(13,15,17,0.75);
}

.logo {
    font-family: 'Inter Tight', sans-serif;
    font-size: 30px;
    font-weight: 600;
}

.logo-main { color: white; }
.logo-dot  { color: #4d9eff; }

/* NAVIGATION */

nav a {
    font-family: 'Inter Tight', sans-serif;
    color: white;
    margin-left: 30px;
    font-size: 16px;
    text-decoration: none;
    opacity: 0.9;
    transition: 0.2s;
}

nav a:hover {
    color: #4d9eff;
    opacity: 1;
}

/* ------------------------------------------------------ */
/* HERO SECTION */
/* ------------------------------------------------------ */

/* ------------------------------------------------------ */
/* HERO SECTION – MAN BACKGROUND */
/* ------------------------------------------------------ */

#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 8%;
    position: relative;
    overflow: hidden;

    background-image: url('https://images.unsplash.com/photo-1525182008055-f88b95ff7980?auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark overlay */
#hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 15, 0.55);
}

/* HERO TEXT */
.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-inner h1 {
    font-size: 38px;
    line-height: 1.3;
    margin-bottom: 15px;
}

.hero-inner p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.85;
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

/* BUTTONS */

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 15px;
    text-decoration: none;
    transition: 0.25s;
}

.btn-primary {
    background: #4d9eff;
    color: #0d0f11;
}

.btn-primary:hover {
    background: #64b3ff;
    box-shadow: 0 0 12px rgba(77,158,255,0.35);
}

.btn-secondary {
    border: 1px solid #4d9eff;
    color: #4d9eff;
}

.btn-secondary:hover {
    background: #4d9eff;
    color: #0d0f11;
}

/* ------------------------------------------------------ */
/* SERVICES */
/* ------------------------------------------------------ */

#services h2 {
    margin-bottom: 40px;
    font-size: 32px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
}

.service-card {
    background: #1a1d20;
    padding: 25px;
    border: 1px solid #2a2d31;
    transition: 0.25s;
}

.service-card:hover {
    border-color: #4d9eff;
    box-shadow: 0 0 15px rgba(77,158,255,0.25);
}

.service-icon {
    width: 50px;
    margin-bottom: 12px;
}

.service-icon svg {
    width: 100%;
}

/* ------------------------------------------------------ */
/* PORTFOLIO */
/* ------------------------------------------------------ */

#portfolio h2 {
    margin-bottom: 40px;
    font-size: 32px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.portfolio-card {
    background: #1a1d20;
    padding: 20px;
    border: 1px solid #2a2d31;
    transition: 0.25s;
}

.portfolio-card:hover {
    border-color: #4d9eff;
}

.portfolio-img img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    opacity: 0.95;
    border-radius: 4px;
}

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

.portfolio-btn {
    color: #4d9eff;
    text-decoration: none;
    font-weight: 500;
}

.portfolio-btn:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------ */
/* CONTACT */
/* ------------------------------------------------------ */

#contact h2 {
    margin-bottom: 20px;
    font-size: 32px;
}

.contact-form {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea {
    padding: 15px;
    width: 100%;
    background: #1a1d20;
    border: 1px solid #2a2d31;
    color: white;
    font-size: 16px;
    border-radius: 4px;
}

textarea {
    min-height: 140px;
}

/* ------------------------------------------------------ */
/* FOOTER */
/* ------------------------------------------------------ */

footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #2a2d31;
    margin-top: 40px;
    color: #c9c9c9;
}