/* --- My Global Styles --- */
:root {
    --primary: #d4a373;
    --dark: #2b2d2f;
    --cream: #fdfaf5;
    --white: #ffffff;
    --accent: #3d5a80;
}

html { 
    scroll-behavior: smooth; 
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--cream);
    color: var(--dark);
    line-height: 1.6;
}

h1, h2, h3, h4 { 
    font-family: 'Lora', serif; 
}

/* --- Header & Nav --- */
#header {
    position: fixed;
    top: 0; 
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* Modern glass effect */
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text {
    font-family: 'Lora', serif;
    font-size: 1.9rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--dark);
}

.logo-sub {
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: var(--primary);
    font-weight: 600;
}

#nav-bar {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover { 
    color: var(--primary); 
}

.nav-cta {
    background: var(--dark);
    color: var(--white);
    padding: 10px 20px;
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: 2px;
    font-weight: 600;
}

/* --- Hero Styling --- */
#hero {
    height: 60vh;
    margin-top: 130px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/bac.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    border-radius: 15px;
}

#hero h1 { 
    font-size: 3.5rem; 
    margin: 0; 
}

#form { 
    margin-top: 30px; 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap; 
    justify-content: center;
}

#email { 
    padding: 15px; 
    width: 300px; 
    border-radius: 4px; 
    border: none; 
}

.btn { 
    background: var(--primary); 
    color: white; 
    padding: 15px 30px; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: 600; 
}

/* --- My Features and Services Style Generic Grid System --- */
section { 
    padding: 80px 5%; 
    max-width: 1100px; 
    margin: 0 auto; 
}

.section-title { 
    text-align: center;
    margin-bottom: 50px; 
}

.section-title .line { 
    height: 3px; 
    width: 60px; 
    background: var(--primary); 
    margin: 10px auto; 
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    /* display: flex; 
    gap: 40px; 
    flex-wrap: wrap; 
    margin-top: 40px; */
}

.card {
    /* flex: 1; 
    min-width: 250px; */ 
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 11px 30px rgba(0, 0, 0, 0.28);
    transition: transform 0.3s ease;
    text-align: center;
}
.card:hover { 
    transform: translateY(-10px);
    cursor: pointer; 
}

/* --- Feature & Pricing others Styling --- */
.icon { 
    font-size: 5rem; 
    margin-bottom: 20px;
}

.price { 
    font-size: 2rem; 
    font-weight: bold; 
    color: var(--primary); 
    margin: 20px 0; 
}

.pricing-card ul { 
    list-style: none; 
    padding: 0; 
    margin-bottom: 30px; 
}

.pricing-card ul li { 
    padding: 10px 0; 
    border-bottom: 1px solid #eee; 
}

.btn-select { 
    width: 100%; 
    padding: 12px; 
    background: var(--dark); 
    color: white; 
    border: none; 
    cursor: pointer; 
    border-radius: 4px; 
}

.featured { 
    border: 2px solid var(--primary); 
    position: relative; 
}

.badge { 
    position: absolute; 
    top: -15px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: var(--primary); 
    color: white; 
    padding: 5px 15px; 
    font-size: 0.7rem; 
    border-radius: 20px; 
}

/* --- The Process undergoes Section --- */
.process-container { 
    display: flex; 
    gap: 40px; 
    flex-wrap: wrap; 
    margin-top: 40px;
}

.process-step { 
    flex: 1; 
    min-width: 250px; 
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    transition: transform 0.4s ease;
}

.process-step:hover{
    box-shadow: 0  11px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #333;
    transform: scale(1.03);
    cursor: pointer;
}

.step-num { 
    font-size: 3rem; 
    font-weight: 800; 
    color: #e9ecef; 
    display: block; 
}

/* --- Portfolio or Works Styling --- */
.portfolio-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 15px; 
}

.p-item {
    position: relative; /* Required for the overlay to sit on top */
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.p-item img { 
    width: 100%;
    height: 100%; 
    display: block; /* Removes tiny gap at bottom of image */
    filter: grayscale(50%); 
    transition: transform 0.5s ease, filter 0.5s ease; 
}

/* The Overlay Styling */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 28, 30, 0.7); /* Deep slate with transparency */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.4s ease;
}

.overlay span {
    color: white;
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
    transform: translateY(20px); /* Small slide-up effect */
    transition: transform 0.2s ease;
}

/* The hover state style */
.p-item:hover img { 
    filter: grayscale(0); 
    transform: scale(1.1);
}

.p-item:hover .overlay {
    opacity: 1; /* Fade in overlay */
}

.p-item:hover .overlay span {
    transform: translateY(0); /* Text slides into place */
}



/* --- Footer Styling --- */
#footer {
    background-color: #1a1c1e;
    color: #e9ecef;
    padding: 80px 5% 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

/* Brand Column and Other */
.logo-text2 {
    font-family: 'Lora', serif;
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--white);
}

.brand-info p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #adb5bd;
    margin-bottom: 20px;
}

/* Headings and Links */
.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Subtle underline for footer headers */
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #adb5bd;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.social-links a {
    color: var(--white);
    margin-right: 15px;
    text-decoration: none;
    font-size: 1.8rem;
    padding: 5px 8px;
    border-radius: 4px;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--primary);
}

/* Bottom Bar */
.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #2d3135;
    color: #6c757d;
    font-size: 0.85rem;
}

.footer-bottom a{
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    font-family: 'Lora', serif;
    transition: 0.3s ease;
}

.footer-bottom a:hover{
    color: var(--primary)
}

.contact-email a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: 0.3s ease;
}

.contact-email a:hover{
    color: var(--white)
}

/* ---Styling Form --- */
.footer-inquiry {
    flex: 1.5; /* Gives the form slightly more room than the other columns */
    max-width: 450px; /* Prevents the form from being too wide on desktop */
}

.footer-inquiry p {
    font-size: 0.85rem;
    color: #adb5bd;
    margin-bottom: 20px;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group {
    display: flex;
    gap: 10px;
}

#contact-form input, 
#contact-form textarea {
    width: 100%;
    background-color: #25282a;
    border: 1px solid #333;
    padding: 12px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    border-radius: 4px;
    box-sizing: border-box;
    width: 50%;
}

#contact-form input:focus, 
#contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-submit {
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 12px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: 0.3s ease;
    width: 50%;
}

.btn-submit:hover {
    background-color: #b88d5e;
    transform: translateY(-2px);
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .footer-inquiry {
        max-width: 100%; /* Allows it to take more space on tablets */
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .input-group {
        flex-direction: column; /* Stacks name and email on phones */
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    #contact-form {
        max-width: 100%;
    }

    #contact-form input, 
    #contact-form textarea {
        width: 120%;
    }

    .btn-submit {
        width: 120%;
    }
}

/* --- Mobile --- */
@media (max-width: 768px) {
    #hero h1 { 
        font-size: 2rem; 
    }

    #nav-bar { 
        gap: 15px; 
    }

    #email { 
        width: 100%; 
    }
}

/* For Techno Camon 30s */
@media (max-width:960px) {
    .nav-cta {
        background: var(--dark);
        color: var(--white);
        padding: 8px 10px;
        text-decoration: none;
        font-size: 0.6rem;
        border-radius: 2px;
        font-weight: 600;
    }

    .logo-text {
        font-family: 'Lora', serif;
        font-size: 1.6rem;
        font-weight: bold;
        letter-spacing: 2px;
        color: var(--dark);
    }

    .logo-sub {
        font-size: 0.5rem;
        letter-spacing: 3px;
        color: var(--primary);
        font-weight: 600;
    }
}
