/* TAG SELECTOR: Applies to the whole body */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #333;
    /* This background is a fallback, specific pages override it via ID */
    background-color: #fff; 
}

/* CLASS SELECTOR: Navigation Bar */
.navbar {
    background-color: rgba(0,0,0,0.8);
    padding: 10px 0;
    text-align: center;
}

/* DESCENDANT SELECTOR: Links inside the navbar */
.navbar a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

/* PSEUDO-CLASS SELECTOR: Mouse hover effect */
.navbar a:hover {
    color: #ff9900; /* Orange on hover */
    text-decoration: underline;
}

/* ID SELECTOR: Specific ID for the active link (Orange) */
#active-link {
    color: #ff9900;
}

/* CLASS SELECTOR: Main Header area */
.main-header {
    padding: 60px 20px;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 5px black;
}

/* CLASS SELECTOR: The white content box */
.content-box {
    background-color: rgba(255, 255, 255, 0.95);
    max-width: 1100px;
    margin: auto;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 50px;
    box-shadow: 0px 0px 20px rgba(0,0,0,0.5);
}

/* CLASS SELECTOR: For Service/Project Cards */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 30px;
}

.card {
    background-color: #f9f9f9;
    width: 30%;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px); /* Moves up slightly on hover */
}

/* CLASS SELECTOR: Footer */
.footer {
    background-color: rgba(0,0,0,0.8);
    color: white;
    text-align: center;
    padding: 20px;
}

/* UTILITY CLASSES */
.text-orange { color: #ff9900; }
.text-blue { color: #0066cc; }
.border-blue { border-left: 5px solid #0066cc; }
.btn-orange {
    background-color: #ff9900;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    display: inline-block;
}
.btn-orange:hover {
    background-color: #e68a00;
}

/* BACKGROUND IMAGES (ID Selectors for specific pages) */
#bg-home { background-color: #ffffff; }
#bg-about { 
    background-image: url('background.png'); 
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed;
}
#bg-services { 
    background-image: url('service\ final.png'); 
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed;
}
#bg-portfolio { 
    background-image: url('portfoliobackground.png'); 
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed;
}
#bg-contact { 
    background-image: url('contactbackground.png'); 
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed;
}