/* --- Global Styles --- */
*, *::before, *::after {
    box-sizing: border-box; /* Critical: keeps elements inside their containers */
}

body {
    background-color: black;
    color: #f8fafc;
    margin: 0;
    overflow-x: hidden;
}

/* --- Home & About Sections (Keeping your features) --- */
.site-title {
    position: absolute;
    left: 5rem;
    top: 1rem;
    font-family: 'Times New Roman', Times, serif;
    color: white;
    font-size: medium;
    border: 2px solid red;
    padding: 10px;
    display: inline-block;
}

.profile-img, .about-img {
    position: absolute;
    border-radius: 100%;
    display: block;
}

.profile-img { top: 20%; left: 40%; height: 300px; width: 325px; }
.about-img { top: 10%; left: 35%; height: 300px; width: 325px; }

/* --- Navigation Fix --- */
/* We keep absolute positioning for Home/About pages, but fix the depth for Contact page */
.navigation {
    position: absolute;
    top: 1rem;
    right: 2rem; /* Changed to right-aligned for better fit */
    z-index: 1000;
}

.navigation a {
    display: inline-block;
    color: #f8fafc;
    font-family: Cambria, serif;
    text-decoration: none;
    font-weight: bold;
    font-size: large;
    margin-left: 20px;
    transition: all 0.3s ease;
}

.navigation a:hover {
    text-decoration: underline;
    text-transform: uppercase;
    color: #007bff;
}

/* --- Premium Contact Page Glassmorphism --- */
.contact-page {
    background: radial-gradient(circle at top left, #1a1a1a, #000000);
    min-height: 100vh;
}

.glass-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05); /* Glass effect */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 50px 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.C {
    font-size: 2.8rem; /* Professional gradient text */
    background: linear-gradient(to right, #ffffff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    margin-bottom: 10px;
}

.sub-text {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
}

/* --- Form Elements --- */
.input-group {
    margin-bottom: 20px;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    color: white;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus, 
.input-group textarea:focus {
    border-color: #007bff;
    background: rgba(255, 255, 255, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* --- Social Footer Fix --- */
.social-footer {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.social-footer a:hover { color: white; }