/* --- Global Styles & Resets --- */
:root {
    --primary-color: #56ccf2; 
    --secondary-color: #2f80ed; 
    --dark-bg: #0a192f; 
    --light-bg: #112240; 
    --text-light: #ccd6f6; 
    --text-medium: #8892b0; 
    --text-dark: #0a192f; 
    --font-family: 'Poppins', sans-serif;
    --header-height: 70px;
}

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

html { 
    scroll-behavior: smooth; 
    font-size: 16px; 
}

body { 
    font-family: var(--font-family); 
    background-color: var(--dark-bg); 
    color: var(--text-light); 
    line-height: 1.6; 
    overflow-x: hidden; 
}

h1, h2, h3, h4, h5, h6 { 
    color: var(--text-light); 
    margin-bottom: 1rem; 
    line-height: 1.2; 
    font-weight: 600; 
}

h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p { 
    color: var(--text-medium); 
    margin-bottom: 1rem; 
}

a { 
    color: var(--primary-color); 
    text-decoration: none; 
    transition: color 0.3s ease; 
}

a:hover { 
    color: var(--secondary-color); 
}

img { 
    max-width: 100%; 
    height: auto; 
}

section { 
    padding: 80px 20px; 
    min-height: 80vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

/* Adjusted min-height for contact section as it has less content now */
#contact {
    min-height: 60vh; 
}


.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* --- Header & Navigation --- */
.header { 
    background-color: rgba(10, 25, 47, 0.85); 
    backdrop-filter: blur(10px); 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: var(--header-height); 
    z-index: 1000; 
    transition: background-color 0.3s ease; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); 
}

.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.logo img { 
    height: 50px; 
    max-width: 200px; 
    object-fit: contain; 
}

.logo span { 
    position: absolute; 
    width: 1px; height: 1px; 
    padding: 0; margin: -1px; 
    overflow: hidden; clip: rect(0,0,0,0); 
    border: 0; 
}

.nav-menu { 
    list-style: none; 
    display: flex; 
}

.nav-item { 
    margin-left: 25px; 
}

.nav-link { 
    color: var(--text-light); 
    font-weight: 400; 
    padding: 5px 0; 
    position: relative; 
    transition: color 0.3s ease; 
}

.nav-link::after { 
    content: ''; 
    position: absolute; 
    bottom: -2px; 
    left: 0; 
    width: 0; 
    height: 2px; 
    background-color: var(--primary-color); 
    transition: width 0.3s ease; 
}

.nav-link:hover, 
.nav-link.active { 
    color: var(--primary-color); 
}

.nav-link:hover::after, 
.nav-link.active::after { 
    width: 100%; 
}

.hamburger { 
    display: none; 
    cursor: pointer; 
    padding: 10px; 
    background: none; 
    border: none; 
}

.bar { 
    display: block; 
    width: 25px; 
    height: 3px; 
    margin: 5px auto; 
    background-color: var(--text-light); 
    transition: all 0.3s ease-in-out; 
}

/* --- Hero Section --- */
#hero { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    padding-top: var(--header-height); 
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.9)), 
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100"><defs><pattern id="p" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="1" cy="1" r="1" fill="%23112240"/></pattern></defs><rect width="100%" height="100%" fill="url(%23p)"/></svg>'); 
    background-size: auto, 50px 50px; 
}

#hero .container { 
    max-width: 800px; 
}

#hero h1 { 
    color: var(--primary-color); 
    margin-bottom: 1rem; 
}

#hero h1 span { 
    color: var(--text-light); 
}

#hero p { 
    font-size: 1.2rem; 
    color: var(--text-light); 
    margin-bottom: 2rem; 
}

.cta-button { 
    display: inline-block; 
    background-color: var(--primary-color); 
    color: var(--dark-bg); 
    padding: 12px 30px; 
    border-radius: 5px; 
    font-weight: 600; 
    font-size: 1rem; 
    transition: background-color 0.3s ease, transform 0.2s ease; 
    border: 2px solid var(--primary-color); 
}

.cta-button:hover { 
    background-color: transparent; 
    color: var(--primary-color); 
    transform: translateY(-2px); 
}

/* --- About Section --- */
#about { 
    background-color: var(--light-bg); 
}

#about h2::after, 
#services h2::after, 
#contact h2::after { 
    content: ''; 
    position: absolute; 
    bottom: -10px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 60px; 
    height: 3px; 
    background-color: var(--primary-color); 
}

#about h2, 
#services h2, 
#contact h2 { 
    text-align: center; 
    margin-bottom: 3rem; 
    position: relative; 
    display: inline-block; 
    left: 50%; 
    transform: translateX(-50%); 
}

#about .container { 
    max-width: 900px; 
}

#about p { 
    text-align: center; 
    font-size: 1.1rem; 
    max-width: 700px; 
    margin-left: auto; 
    margin-right: auto; 
}

/* --- Services Section --- */
#services { 
    background-color: var(--dark-bg); 
}

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
    margin-top: 2rem; 
}

.service-card { 
    background-color: var(--light-bg); 
    padding: 30px; 
    border-radius: 8px; 
    text-align: center; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    border: 1px solid rgba(86, 204, 242, 0.1); 
}

.service-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); 
}

.service-card svg { 
    width: 50px; 
    height: 50px; 
    margin-bottom: 1rem; 
    fill: var(--primary-color); 
    role: img; 
    aria-hidden: true; 
}

.service-card h3 { 
    color: var(--primary-color); 
    margin-bottom: 0.8rem; 
}

.service-card p { 
    font-size: 0.95rem; 
    color: var(--text-medium); 
}

/* --- Contact Section --- */
#contact { 
    background-color: var(--dark-bg); 
    padding-bottom: 60px; 
} 

#contact .container { 
    max-width: 1100px; 
} 

#contact p.intro { 
    text-align: center; 
    margin-bottom: 2.5rem; 
    font-size: 1.1rem; 
    max-width: 700px; 
    margin-left: auto; 
    margin-right: auto;
}
        
/* Layout to center the remaining contact details block */
.contact-layout-centered { 
    display: flex;
    justify-content: center; /* Center the single item */
    margin-top: 2rem;
}
        
.contact-details-container { 
    flex-basis: 500px; /* Give it a reasonable width */
    max-width: 90%; /* Ensure it doesn't get too wide */
    min-width: 300px; 
}

.contact-info {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(86, 204, 242, 0.1); 
}

.contact-info h3 {
     color: var(--primary-color);
     margin-bottom: 1.5rem;
     text-align: center;
}

.contact-info p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: var(--text-light); 
    display: flex; 
    align-items: flex-start; 
    gap: 10px;
}

 .contact-info p strong {
     color: var(--text-medium);
     min-width: 60px; 
     display: inline-block;
     flex-shrink: 0; 
 }

  .contact-info p span {
      flex-grow: 1; 
  }

.contact-info a {
    color: var(--primary-color); 
    word-break: break-all; 
}

/* Style for the email placeholder before JS runs */
#email-display-placeholder {
    color: var(--text-medium);
    font-style: italic;
}

/* Style for the link itself */
#email-link-placeholder {
     /* Inherit color or set specifically */
}

 .contact-info a:hover {
     text-decoration: underline;
 }


/* --- Footer --- */
.footer { 
    background-color: var(--dark-bg); 
    text-align: center; 
    padding: 25px 20px; 
    border-top: 1px solid var(--light-bg); 
    margin-top: 40px; 
}

.footer p { 
    color: var(--text-medium); 
    font-size: 0.9rem; 
    margin: 0; 
}

/* --- Responsiveness --- */
@media (max-width: 992px) { 
    h1 { font-size: 2.5rem; } 
    h2 { font-size: 1.8rem; } 
}

@media (max-width: 768px) { 
    html { font-size: 15px; } 
    h1 { font-size: 2.2rem; } 
    .nav-menu { 
        position: fixed; 
        left: -100%; 
        top: var(--header-height); 
        flex-direction: column; 
        background-color: var(--light-bg); 
        width: 100%; 
        height: calc(100vh - var(--header-height)); 
        text-align: center; 
        transition: left 0.4s ease-in-out; 
        padding-top: 40px; 
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1); 
    } 
    .nav-menu.active { 
        left: 0; 
    } 
    .nav-item { 
        margin: 25px 0; 
    } 
    .nav-link { 
        font-size: 1.2rem; 
    } 
    .nav-link::after { 
        display: none; 
    } 
    .hamburger { 
        display: block; 
    } 
    .hamburger.active .bar:nth-child(2) { 
        opacity: 0; 
    } 
    .hamburger.active .bar:nth-child(1) { 
        transform: translateY(8px) rotate(45deg); 
    } 
    .hamburger.active .bar:nth-child(3) { 
        transform: translateY(-8px) rotate(-45deg); 
    } 
    section { 
        padding: 60px 15px; 
    } 
    #hero { 
        padding-top: calc(var(--header-height) + 20px); 
    } 
    .services-grid { 
        grid-template-columns: 1fr; 
    } 
     .contact-details-container {
         max-width: 95%; 
         width: 100%; 
     }
}

@media (max-width: 480px) { 
    html { font-size: 14px; } 
    h1 { font-size: 1.9rem; } 
    h2 { font-size: 1.6rem; } 
    .cta-button { 
        padding: 10px 25px; 
        font-size: 0.95rem; 
    } 
    .logo img { 
        height: 40px; 
    } 
    .contact-info p { 
        font-size: 0.95rem; 
    } 
}