/* General Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #333;
}

/* Navigation Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #1a2a45;
    color: white;
    position: fixed;
    width: 90%;
    top: 0;
    z-index: 1000;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

nav .nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav .nav-links li {
    margin-left: 20px;
}

nav .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

nav .nav-links a:hover {
    color: #f39c12;
}

nav .hire-me {
    background-color: #f39c12;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    color: white;
}

/* Hero Section */
.hero {
    background: url('safety-image.jpg.jpg') no-repeat center center/cover;
    background-color: rgba(26, 42, 69, 0.8);
    background-blend-mode: multiply;
    color: white;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    margin: 0;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    margin: 10px 0;
    position: relative;
    display: inline-block;
}

.hero-content .subtitle::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #f39c12;
}

.hero-content .summary {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto;
}

.hero-buttons {
    margin-top: 30px;
}

.btn {
    text-decoration: none;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    margin: 0 10px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: transparent;
    border: 2px solid white;
}

.btn-primary:hover {
    background-color: white;
    color: #1a2a45;
}

.btn-secondary {
    background-color: #f39c12;
    border: 2px solid #f39c12;
}

.btn-secondary:hover {
    background-color: #e68a00;
    border-color: #e68a00;
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.5rem;
}

/* Main Content Container */
.container {
    width: 80%;
    margin: auto;
    padding: 40px 20px;
}

section {
    padding-top: 80px; /* Offset for fixed nav */
    margin-bottom: 40px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #f39c12;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* About Me Section */
.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: left;
    margin-bottom: 40px;
}

.card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.card i {
    font-size: 2rem;
    color: #1a2a45;
    margin-bottom: 10px;
}

.professional-summary {
    text-align: left;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

/* Experience Section */
.experience-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: left;
}

.experience-item h4 {
    margin: 0;
}

.experience-item ul {
    padding-left: 20px;
}

.tags {
    margin-top: 10px;
}

.tags span {
    background-color: #e9ecef;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-right: 10px;
}

/* Skills Section */
.skills-area {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: left;
}

.two-column-list {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
    list-style-position: inside;
}

/* Education Section */
.education-item {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: left;
}

.education-item i {
    font-size: 2rem;
    margin-right: 20px;
    color: #1a2a45;
}

.education-details {
    flex-grow: 1;
}

.education-details h4, .education-details p {
    margin: 0;
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.contact-item {
    text-align: center;
}

.contact-item i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1a2a45;
}

.btn-dark {
    background-color: #1a2a45;
    color: white;
    border: 2px solid #1a2a45;
}

.btn-dark:hover {
    background-color: #333;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #1a2a45;
    color: white;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    text-align: left;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.gallery-item:hover .gallery-item-description {
    transform: translateY(0);
}

/* Testimonials Section */
.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    text-align: left;
}

.testimonial-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-left: 5px solid #f39c12;
}

.testimonial-card h4 {
    margin-top: 10px;
    font-style: italic;
    color: #555;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 20px auto 0;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 1rem;
}

/* WhatsApp FAB */
.whatsapp-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
    transition: transform 0.3s;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
}
