/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Header styles */
header {
    background-color: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(44, 62, 80, 0.98);
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    padding: 0 80px; /* Increased padding */
    margin: 0 auto;
    position: relative; /* Added for absolute positioning of nav */
}

header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(45deg, #fff, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
    margin-right: auto; /* Pushes the name to the far left */
    padding-left: 0; /* Remove left padding */
    position: relative;
    left: -20px; /* Move name further left */
}

nav {
    position: absolute;
    right: 60px; /* Increased right position */
    margin-left: auto; /* Pushes the navigation to the far right */
    padding-right: 20px; /* Add some padding from the right edge */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px; /* Increased gap for more spacing */
}

nav ul li {
    margin-left: 0; /* Remove the default left margin */
}

nav ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

nav ul li a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #fff;
    background-color: rgba(52, 152, 219, 0.1);
}

nav ul li a:hover:before {
    width: 80%;
}

/* Hero section */
#hero {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: #fff;
    text-align: center;
    padding: 150px 0 100px;
}

#hero h2 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Section styling */
section {
    padding: 100px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #3498db;
}

/* About section */
#about {
    background-color: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 350px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 5px solid #fff;
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #555;
}

.personal-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-radius: 5px;
    transition: transform 0.3s;
}

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

.info-item i {
    color: #3498db;
    font-size: 1.2rem;
    width: 25px;
}

.info-item a {
    color: #3498db;
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

/* Skills section */
#skills {
    background-color: #f8fafd;
    background-image: linear-gradient(to bottom right, rgba(52, 152, 219, 0.05) 0%, transparent 100%);
}

.skill-category {
    margin-bottom: 40px;
}

skill-category h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-left: 4px solid #3498db;
    padding-left: 15px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-item {
    background-color: #fff;
    color: #333;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 0.95rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.skill-item:hover {
    background-color: #3498db;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Experience section */
#experience {
    background-color: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #3498db;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -40px;
    top: 30px;
    background-color: #3498db;
    border: 4px solid #fff;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: -40px;
    top: 30px;
    background-color: #3498db;
    border: 4px solid #fff;
    border-radius: 50%;
    z-index: 1;
}

.timeline-content h3 {
    color: #3498db;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

timeline-content h4 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-date {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.responsibilities {
    margin-top: 15px;
    padding-left: 20px;
}

.responsibilities li {
    margin-bottom: 8px;
    color: #555;
}

/* Portfolio section */
#projects {
    background-color: #f8fafd;
    background-image: linear-gradient(to bottom right, rgba(52, 152, 219, 0.05) 0%, transparent 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-card h3 {
    padding: 20px 20px 10px;
    color: #2c3e50;
    font-size: 1.3rem;
}

.project-card p {
    padding: 0 20px 20px;
    color: #555;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 20px;
}

.tech-badge {
    background-color: #e1f0fa;
    color: #3498db;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
}

.more-projects {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 10px;
}

.more-projects p {
    font-size: 1.2rem;
    color: #2c3e50;
    line-height: 1.6;
}

.more-projects a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.more-projects a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Education section */
#education {
    background-color: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

#education .timeline-content {
    background-color: #f8f9fa;
}

/* Certifications section */
#certifications {
    background-color: #f8fafd;
    background-image: linear-gradient(to bottom right, rgba(52, 152, 219, 0.05) 0%, transparent 100%);
    padding: 80px 0;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.certification-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.certification-card:hover {
    transform: translateY(-5px);
}

.certification-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.certification-info {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.certification-info i {
    color: #3498db;
    margin-right: 5px;
}

.certification-card .description {
    color: #555;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.verify-link {
    display: inline-flex;
    align-items: center;
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
    gap: 5px;
}

.verify-link:hover {
    text-decoration: underline;
}

/* Contact section */
#contact {
    background-color: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
}

#contact h2 {
    color: #ffffff;
    font-size: 2.4rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
}

#contact h2:after {
    background: #ffffff;
    height: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.contact-info {
    padding-right: 40px;
    border-right: 2px solid #f0f0f0;
}

contact-info h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

contact-info p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: #555;
}

contact-item i {
    width: 40px;
    height: 40px;
    background-color: #e1f0fa;
    color: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding-right: 0;
        border-right: none;
        border-bottom: 2px solid #f0f0f0;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }
}

form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

button {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
}

button:hover {
    background-color: #2980b9;
}

#success-message {
    margin-top: 20px;
    padding: 15px;
    background-color: #2ecc71;
    color: #fff;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-info {
    text-align: center;
}

.footer-info h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.footer-social {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

social-link i {
    font-size: 1.2rem;
}

social-link span {
    font-size: 0.9rem;
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .footer-social {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 200px;
        justify-content: center;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    nav ul li {
        margin-left: 15px;
    }
    
    #hero {
        padding: 120px 0 80px;
    }
    
    #hero h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-image img {
        margin: 0 auto;
        display: block;
    }
}