/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

a {
    text-decoration: none;
    color: #0066cc;
    transition: color 0.3s ease;
}

a:hover {
    color: #004080;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo h1 {
    color: #0066cc;
    font-size: 24px;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: #333;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

nav ul li a.active,
nav ul li a:hover {
    color: #0066cc;
}

nav ul li a.active:after,
nav ul li a:hover:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0066cc;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    text-align: center;
    background-color: #f0f7ff;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #0066cc;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 18px;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    background-color: #0066cc;
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #004080;
    color: #fff;
}

/* Experience Section */
.experience {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 50px;
    color: #0066cc;
}

.experience-item {
    margin-bottom: 40px;
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.experience-item h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
}

.experience-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #0066cc;
}

.experience-item p {
    margin-bottom: 15px;
    color: #555;
}

.experience-item ul {
    padding-left: 20px;
}

.experience-item li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Projects Section */
.projects {
    padding: 80px 0;
    background-color: #fff;
}

.project-item {
    margin-bottom: 40px;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.project-item h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
}

.project-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #0066cc;
}

.project-item p {
    margin-bottom: 15px;
    color: #555;
}

.project-item ul {
    padding-left: 20px;
}

.project-item li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 20px;
}

footer h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #fff;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-info ul {
    list-style: none;
}

.contact-info ul li {
    margin-bottom: 10px;
}

.contact-info ul li a {
    color: #fff;
    transition: color 0.3s ease;
}

.contact-info ul li a:hover {
    color: #66b3ff;
}

.contact-info i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.copyright {
    padding-top: 20px;
    border-top: 1px solid #555;
    text-align: center;
    font-size: 14px;
    color: #bbb;
}

/* New Footer Styles */
.main-footer {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    padding: 2rem 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-footer .logo {
    margin-bottom: 1.5rem;
}

.main-footer .logo h2 {
    font-size: 2rem;
    color: #0066cc;
    font-weight: 700;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 1.5rem;
}

.footer-nav ul li {
    margin: 0 1.5rem;
}

.footer-nav ul li a {
    color: #333;
    font-size: 1rem;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: #0066cc;
}

.footer-nav ul li a:hover:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0066cc;
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    color: #333;
    margin: 0 0.8rem;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #0066cc;
    transform: translateY(-3px);
}

.copyright {
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}

/* Email copy functionality */
.copy-email {
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #fff;
    transition: color 0.3s ease;
}

.copy-email:hover {
    color: #66b3ff;
}

.copy-button {
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#copyIcon {
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.copy-email:hover #copyIcon {
    opacity: 1;
}

#copyStatus {
    font-size: 14px;
    color: #4CAF50;
    font-weight: 600;
}

/* Remove old tooltip styles that we're no longer using */
.tooltip {
    display: none;
}

/* Two-column layout for About page */
.about-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.about-content {
    flex: 0 1 575px; 
    text-align: left;
    margin-top: 30px;
}

.about-content .intro-text {
    margin: 0 0 30px 0;
    text-align: left;
}

.resume-viewer {
    position: relative;
    margin-top: -55px;
    flex: 0 1 400px; /* Fixed width similar to left content */
    height: 500px; /* Adjust height as needed */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.resume-viewer object {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: #f5f5f5;
    padding: 20px;
    text-align: center;
}

.pdf-click-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.05);
    z-index: 10;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-open-icon {
    background-color: rgba(255, 255, 255, 0.9);
    color: #0066cc;
    padding: 12px 16px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.pdf-open-icon i {
    margin-right: 6px;
}

.pdf-click-overlay:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.pdf-click-overlay:hover .pdf-open-icon {
    opacity: 1;
    transform: translateY(0);
}

/* Slideshow Styles */
.slideshow-section {
    padding: 60px 0;
    background-color: #f0f7ff;
}

.slideshow-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 500px;
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.slideshow-nav:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #0066cc;
}

.slideshow-nav.prev {
    left: 15px;
}

.slideshow-nav.next {
    right: 15px;
}

.slideshow-dots {
    position: absolute;
    bottom: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #0066cc;
}

/* Button group for About page */
.button-group {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .button-group .cta-button {
        width: 100%;
        text-align: center;
    }
}

/* Responsive adjustments for the about section */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
    }
    
    .about-content, .resume-viewer {
        width: 100%;
        max-width: 100%;
    }
    
    .about-content {
        margin-bottom: 40px;
    }
    
    .resume-viewer {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .resume-viewer {
        height: 400px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .intro-text {
        font-size: 14px;
        padding: 0 20px;
    }
    
    .experience {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .experience-item {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .projects {
        padding: 50px 0;
    }
    
    .project-item {
        padding: 20px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .slides {
        height: 250px;
    }
    
    .slideshow-nav {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}