/* style.css — for CP Digital Studio */

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Raleway', sans-serif;
    color: #333;
    height: 100%;
    background: linear-gradient(135deg, #dfe4ea, #a4c7f5, #dfe4ea);
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
}
 
/* HEADER & NAVIGATION */
header {
    height: 100px;
    overflow: visible; /* ✅ Logo can visually overflow */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* ✅ Needed if we use absolute positioning later */
}


/* 🚀 Added guaranteed small logo fix */
.logo img {
    transform: translateX(20px);
}
header .container.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    height: auto;
}

.logo {
    position: relative;
    z-index: 1001;
    margin-left: 40px; /* ⬅️ Adjust this value as needed */
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: #4285f4;
}

/* HERO SECTION */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 1.5em;
}

/* CTA BUTTON */
.cta {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid #333;
    color: #333;
    text-decoration: none;
    border-radius: 30px;
    transition: background 0.3s, color 0.3s, transform 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cta:hover {
    background: #333;
    color: #fff;
    box-shadow: 0 6px 10px rgba(0,0,0,0.2);
    transform: scale(1.05);
}

/* SECTIONS */
section {
    padding: 60px 20px;
    text-align: center;
}

/* ABOUT & CONTACT TEXT */
.about p, .contact form {
    max-width: 700px;
    margin: 0 auto;
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.services-grid .service {
    position: relative;
    background: rgba(255,255,255,0.8);
    padding: 50px 30px;
    border-radius: 15px;
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.services-grid .service:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.15);
}

.services-grid .service i {
    font-size: 3em;
    margin-bottom: 15px;
    color: #4285f4;
}

.services-grid .service h3 {
    margin: 15px 0 10px;
    font-size: 1.4em;
}

.services-grid .service p {
    color: #555;
    font-size: 1em;
    line-height: 1.5;
}

/* CONTACT FORM */
.contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact input, .contact textarea, .contact button {
    padding: 12px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
}

.contact textarea {
    font-family: inherit;
}

.contact button {
    background: #4285f4;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.contact button:hover {
    background: #2a65c4;
}

/* ANIMATIONS */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 2s ease forwards;
    animation-delay: 0.5s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientBG {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

/* POPUP VIDEO */
.popup {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 600px;
}

.popup-content {
    position: relative;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #333;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}


/* ───────── HOME‑PAGE‑ONLY HEADER OVERRIDE (must be last!) ───────── */
.home-page header {
    background: #ffffff;                     /* solid white strip */
    box-shadow: 0 2px 5px rgba(0,0,0,.1);
}

/* Clean horizontal nav list (also last to ensure bullets are gone) */
.home-page header nav ul {
    list-style: none;        /* remove bullets */
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.home-page header nav ul li {
    /* optional: align to baseline instead of bullet indent   */
    margin: 0;
}
/* ——— Logo size & shift ONLY on the home page ——— */
.home-page .logo img {
    max-height: 300px;   /* match Contact page height */
    height: auto;
    width: auto;
}

.home-page .logo {
    margin-left: -7%;    /* same horizontal offset you liked */
}

