/* --- General Styling & Professional Reset --- */
:root {
    --primary-color: #2c3e50; /* A deep, professional blue */
    --secondary-color: #3498db; /* A brighter accent blue */
    --light-gray: #f4f7f6;
    --dark-gray: #333333;
    --text-color: #555;
    --border-radius: 8px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 40px; /* Adjusted padding to prevent content from being hidden by fixed footer */
    padding-left: 5%; /* Added 5% padding to the left */
    padding-right: 5%; /* Added 5% padding to the right */
}

.container {
    max-width: 90%;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
}
html, body {
    height: 100%;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

.page-wrapper {
    width: 100%;
    flex-grow: 1;
    box-sizing: border-box;
}
/* --- Typography --- */
h1, h2, h3, h4 {
    color: var(--primary-color);
    line-height: 1.3;
    font-weight: 500;
}

h1 { font-size: 3rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.5rem; margin-bottom: 1rem; font-weight: 300; }
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

/* --- Header & Navigation --- */
header {
    background: #fff;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e7e7e7;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.8);
    flex-wrap: wrap;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 50px; /* Smaller size */
    height: 50px; /* Smaller size */
    border-radius: 50%; /* Make it circular */
    object-fit: cover; /* Ensure the image covers the area without distortion */
    margin-right: 10px; /* Add some space to the right of the logo */
}

header nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

header nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

header h1 {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

header nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    padding-bottom: 5px;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
    border-bottom: 2px solid transparent;
}

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

header nav a.active {
    color: var(--primary-color);
    font-weight: 500;
    border-bottom-color: var(--secondary-color);
}


/* --- Professional Hero Section --- */
#hero-professional {
    background: var(--light-gray);
    padding: 5rem 0;
    border-bottom: 1px solid #e7e7e7;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-text {
    flex-basis: 55%;
}

.hero-image-container {
    flex-basis: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 950px;
    height: auto;
    border-radius: 70%;
    border: 5px solid #fff;
    box-shadow: var(--shadow);
}


/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-right: 10px;
    margin-top: 1rem;
}

.btn-primary { background: var(--secondary-color); color: #fff; }
.btn-primary:hover {
    box-shadow: 0 7px 20px rgba(52, 152, 219, 0.4);
    transform: translateY(-2px);
}
.btn-secondary { background: transparent; color: var(--secondary-color); border: 1px solid var(--secondary-color); }
.btn-secondary:hover { background: var(--secondary-color); color: #fff; transform: translateY(-2px); }


/* --- Expertise Section --- */
#expertise { padding: 0; max-width: 90%; }
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding-bottom: 15%;
}

.skill-card {
    background: #fff;
    border: 1px solid #e7e7e7;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); }
.skill-card h4 { margin-top: 0; font-size: 1.2rem; color: var(--primary-color); }
.skill-card p { margin-bottom: 0; font-size: 0.95rem; }

/* --- General Project/Card Grids --- */
#project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.project-card {
    background: #fff;
    border: 1px solid #e7e7e7;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); }
.project-card img { max-width: 100%; height: auto; border-radius: 4px; margin-bottom: 1rem; }
.project-card h3 { margin-top: 0; }


/* --- Single Project Page --- */
.project-title { text-align: center; margin-bottom: 2rem; font-size: 2.5rem; padding-top: 2rem; }
.project-overview, .project-details, .project-gallery { margin-bottom: 2.5rem; }
.project-details ul { list-style: none; padding: 0; }
.project-details ul li { padding: 10px 0; border-bottom: 1px solid #eee; }
.project-details ul li strong { margin-right: 10px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 15px; }
.gallery-grid img { width: 100%; height: auto; border: 1px solid #ddd; background-color: #fff; padding: 5px; border-radius: 4px;}


/* --- Floating Bar --- */
.floating-bar {
    position: fixed;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1001;
}

.floating-bar a { color: var(--primary-color); transition: transform 0.2s ease, color 0.2s ease; }
.floating-bar a:hover { color: var(--secondary-color); transform: scale(1.1); }

/* --- Album Gallery Page --- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
.album-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}
.album-card:hover { transform: translateY(-10px); box-shadow: 0 12px 28px rgba(0,0,0,0.12); }
.album-card img { width: 100%; height: 250px; object-fit: cover; display: block; }
.album-info { padding: 1.5rem; }
.album-info h3 { margin-top: 0; color: var(--primary-color); }
.album-info p { margin-bottom: 0; }

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    text-align: center;
}
.contact-card {
    background: #fff;
    padding: 2rem;
    border: 1px solid #e7e7e7;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.contact-card h4 { margin-top: 0; }
.contact-card a { color: var(--secondary-color); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }


/* --- Footer --- */
footer {
    text-align: center;
    padding: 0.5rem 3%; /* Reduced padding */
    background: var(--dark-gray);
    color: #f4f4f4;
    position: fixed;
    bottom: 0;
    width: 100%;
    left: 0;
    z-index: 1000;
}


/* --- Animation Keyframes --- */
.fade-in, .fade-in-delay1, .fade-in-delay2, .fade-in-delay3 {
    animation: fadeIn 0.8s ease-in-out forwards;
    opacity: 0;
}
.fade-in-delay1 { animation-delay: 0.2s; }
.fade-in-delay2 { animation-delay: 0.4s; }
.fade-in-delay3 { animation-delay: 0.6s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        margin-bottom: 2rem;
    }
    .hero-image {
        max-width: 300px;
    }
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    header nav ul {
        justify-content: center;
    }
    .floating-bar {
        display: none;
    }
}
.custom-bg-section {
    background-image: url('assets\personal infront imarates.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Back to Top Button */
#myBtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: var(--primary-color); /* Set a background color */
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 15px; /* Some padding */
    border-radius: 10px; /* Rounded corners */
    font-size: 18px; /* Increase font size */
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease;
}

#myBtn:hover {
    background-color: var(--secondary-color); /* Add a darker background on hover */
}

.expertise-title {
    background-color: rgba(255, 255, 255, 0.6);
}
