/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Calibri', sans-serif; /* Calibri font family */
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    display: flex;
    justify-content: center;
}

/* Make the container look like a PDF page */
.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    height: auto;
    min-height: 1123px;
    display: flex;
    flex-direction: column;
    animation: fadeIn 1.5s ease-in-out;
    text-align: justify; /* Justified alignment for text */
}

/* Header Section */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000000; /* Blue underline */
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.header .photo img {
    width: 170px; /* Slightly larger profile image */
    height: 170px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #000000; /* Thinner blue border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out; /* Animation on hover */
}

.header .photo img:hover {
    transform: scale(1.1); /* Zoom in on hover */
}

.header .contact-info {
    flex: 1;
    text-align: right; /* Keep right-aligned */
    padding-left: 20px;
    opacity: 0;
    animation: slideInRight 1.5s forwards; /* Slide-in effect for contact info */
}

.header h1 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeInUp 1.2s forwards; /* Fades in from below */
}

.header p {
    font-size: 1.1rem;
    color: #666;
    margin: 5px 0;
}

.header a {
    color: #007BFF; /* Blue email and social links */
    font-weight: bold;
    text-decoration: none;
    font-size: 1.2rem;
}

.header a:hover {
    color: #00b318;
}

/* Section Styling */
/* Section styling with zoom effect */
.section {
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: #444;
    opacity: 0;
    animation: fadeIn 1.5s forwards;
    animation-delay: 1s;
    transition: transform 0.3s ease-in-out; /* Smooth transition for zoom effect */
}

/* Zoom effect on hover */
.section:hover {
    transform: scale(1.03); /* Slightly zoom in on hover */
}

.section h2 {
    font-size: 1.5rem;
    color: #003366; /* Navy blue for section headers */
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0;
    animation: fadeInUp 1s forwards;
    animation-delay: 0.8s;
}

.section h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #003366; /* Match navy blue underline */
    bottom: 0;
    left: 0;
}

/* List styling */
ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    padding-left: 20px;
    margin-bottom: 10px;
    position: relative;
}

ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-size: 1.2rem;
}

/* Treat Soft and Hard Skills as Sections */
.skills-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.skills-content > div {
    flex: 1;
}

.skills-content h2 {
    font-size: 1.5rem;
    color: #003366; /* Navy blue section headers */
    margin-bottom: 10px;
}

.skills-content ul {
    padding-left: 0;
}

/* Social links */
.social-links p i {
    color: #007BFF;
    margin-right: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links p a {
    color: #007BFF;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links p:hover i {
    color: #0056b3;
    transform: scale(1.2);
}

.social-links p:hover a {
    color: #0056b3;
}

/* Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

a {
    text-decoration: none;
    color: #4CAF50;
}

a:hover {
    text-decoration: underline;
    color: #333;
}

/* Responsive Design for Mobile View */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
    }

    .header .contact-info {
        text-align: center;
        padding: 0;
        margin-top: 20px;
    }

    .skills-content {
        flex-direction: column;
    }
}


/* General styling adjustments for better layout */
body, .wrapper {
    display: flex;
    justify-content: center;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Navigation Bar */
.navbar {
    background-color: #003366;
    padding: 10px 0;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Wrap items for smaller screens */
}

.navbar ul li {
    margin: 0 10px;
}

.navbar ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.navbar ul li a:hover {
    background-color: #007BFF;
    color: #ffffff;
}

/* Container styling */
.container {
    max-width: 800px;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: justify;
    transition: box-shadow 0.3s ease; /* Smooth transition */
}

.container:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive Design for Mobile View */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column; /* Stack navbar items vertically on small screens */
        gap: 10px;
    }

    .navbar ul li {
        margin: 5px 0;
    }

    .container {
        padding: 20px;
    }
}


/* Footer styling */
footer {
    background-color: #003366;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

footer a {
    color: #007BFF;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

footer a:hover {
    color: #ffffff;
}
