* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #333;
    background: url('background.jpg') center/cover fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.main {
    width: 100%;
    min-height: 100vh;
    position: relative;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(30, 30, 30, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo h2 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
}

.menu {
    display: flex;
    list-style: none;
}

.menu li {
    margin: 0 1rem;
}

.menu a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #4a89dc;
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    position: relative;
    color: #fff;
    z-index: 1;
    padding: 1rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content span {
    color: #4a89dc;
}

.hero-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background-color: #4a89dc;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background-color: #3a70b8;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Section Styles */
.section {
    padding: 5rem 0;
    color: #fff;
}

.section-dark {
    background-color: rgba(20, 20, 20, 0.6);
}

.section:not(.section-dark) {
    background-color: rgba(40, 40, 40, 0.6);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    color: #fff;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #4a89dc;
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.about-img {
    flex: 1;
    min-width: 300px;
}

.about-img img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 3px solid #4a89dc;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: block;
}

/* Fallback if image doesn't load */
.about-img img:not([src]), .about-img img[src=""] {
    min-height: 400px;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #ddd;
}

.about-img img:not([src])::after, .about-img img[src=""]::after {
    content: 'Profile Image';
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-info .info-item h4 {
    font-weight: 600;
    color: #4a89dc;
    margin-bottom: 0.5rem;
}

/* Education Section */
.education-content {
    max-width: 800px;
    margin: 0 auto;
}

.education-item {
    display: flex;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
    border-left: 4px solid #4a89dc;
}

.education-icon {
    font-size: 2.5rem;
    color: #4a89dc;
    margin-right: 2rem;
    display: flex;
    align-items: center;
}

.education-details h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.education-details h4 {
    font-size: 1.2rem;
    color: #4a89dc;
    margin-bottom: 1rem;
    font-weight: 600;
}

.education-details p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.education-details i {
    margin-right: 0.5rem;
    color: #aaa;
}

/* Skills Section */
.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-box {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid #4a89dc;
}

.skill-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.15);
}

.skill-title {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-img {
    margin-right: 1rem;
    font-size: 2rem;
    color: #4a89dc;
}

.skill-title h3 {
    font-size: 1.3rem;
}

/* Projects Section */
.projects-content {
    max-width: 800px;
    margin: 0 auto;
}

.project-item {
    display: flex;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
    border-right: 4px solid #4a89dc;
}

.project-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.project-icon {
    font-size: 2.5rem;
    color: #4a89dc;
    margin-right: 2rem;
    display: flex;
    align-items: center;
}

.project-details h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.8rem;
}

.project-details p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.project-tech span {
    background-color: rgba(74, 137, 220, 0.2);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #4a89dc;
}

/* Achievements Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #4a89dc;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #4a89dc;
    box-shadow: 0 0 0 4px rgba(74, 137, 220, 0.3);
}

.timeline-content {
    position: relative;
    width: calc(50% - 30px);
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    left: calc(50% + 30px);
}

.timeline-content h3 {
    margin-bottom: 1rem;
    color: #fff;
}

/* Contact Section */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-item .icon {
    font-size: 1.5rem;
    color: #4a89dc;
    margin-right: 1rem;
    min-width: 40px;
    text-align: center;
}

.contact-item .text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #4a89dc;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: #4a89dc;
    background-color: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

.social-links {
    margin-bottom: 1.5rem;
}

.social-links a {
    display: inline-block;
    color: #fff;
    font-size: 1.5rem;
    margin: 0 0.8rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #4a89dc;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem 5%;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    .menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .menu li {
        margin: 0.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h3 {
        font-size: 1.5rem;
    }
    
    .about-content, .contact-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        left: 60px !important;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .education-item, .project-item {
        flex-direction: column;
    }
    
    .education-icon, .project-icon {
        margin-right: 0;
        margin-bottom: 1rem;
        justify-content: center;
    }
}