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

:root {
    --primary-color: #1e3a8a; /* Dark blue */
    --secondary-color: #0f172a; /* Darker blue */
    --accent-color: #3b82f6; /* Lighter blue for accents */
    --text-color: #e2e8f0; /* Light text for dark background */
    --text-light: #94a3b8; /* Lighter text for secondary content */
    --bg-color: #0f172a; /* Dark blue background */
    --bg-light: #1e293b; /* Slightly lighter blue for alternating sections */
    --border-color: #334155; /* Border color for dark theme */
    --success-color: #10b981; /* Keep success color */
    --container-width: 1200px;
    --section-padding: 80px 0;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    min-height: 100vh;
    background-image: radial-gradient(var(--bg-color) 1px, transparent 1px);
    background-size: 20px 20px;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.primary-btn {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.primary-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
}

.secondary-btn {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.1);
}

.secondary-btn:hover {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.2);
}

/* Header Styles */
header {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    font-weight: 500;
    position: relative;
    padding: 5px 10px;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
    background-color: rgba(59, 130, 246, 0.1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    transition: var(--transition);
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
}

.nav-links a:hover::after {
    width: 80%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    padding: 160px 0 80px;
    background-color: var(--bg-color);
    background-image: linear-gradient(to bottom right, var(--secondary-color), var(--primary-color));
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 800px;
    text-align: center;
}

.hero-content.full-width {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    letter-spacing: 1px;
}

.hero-content h2 {
    font-size: 24px;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        max-width: 250px;
        margin: 0 auto;
    }
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 400px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 5px solid var(--bg-color);
}

/* Section Styles */
.section {
    padding: var(--section-padding);
    background-color: var(--bg-light);
}

.section:nth-child(even) {
    background-color: var(--bg-color);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    position: relative;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* About Section */
.about-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-text {
    flex: 2;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.about-details {
    flex: 1;
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-left: 2px solid var(--accent-color);
}

.detail-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--text-color);
    display: block;
    margin-bottom: 5px;
}

.detail-value {
    color: var(--text-light);
}

/* Timeline (Experience & Education) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 120px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    border-radius: 50%;
    left: 113px;
    top: 15px;
    z-index: 1;
}

.timeline-date {
    position: absolute;
    width: 100px;
    text-align: right;
    left: 0;
    top: 12px;
    font-weight: 600;
    color: var(--accent-color);
}

.timeline-content {
    margin-left: 150px;
    background-color: var(--secondary-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-left: 2px solid var(--accent-color);
}

.timeline-content h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.timeline-content h4 {
    font-size: 16px;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 500;
}

.timeline-content p {
    margin-bottom: 10px;
    color: var(--text-light);
    font-weight: 500;
}

.timeline-content ul {
    padding-left: 20px;
}

.timeline-content ul li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
    color: var(--text-light);
}

.timeline-content ul li::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
    left: 0;
    top: 10px;
}

/* Skills Section */
.skills-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.skills-category {
    flex: 1;
    min-width: 300px;
}

.skills-category h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-item span {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-item span:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

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

.project-card {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border-top: 4px solid var(--accent-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.project-info p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-tags span {
    background-color: rgba(59, 130, 246, 0.2);
    color: var(--accent-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--accent-color);
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: auto;
    padding-top: 15px;
}

.project-links a {
    font-size: 14px;
    font-weight: 500;
}

.project-links a i {
    margin-right: 5px;
}

/* Contact Section */
.contact-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-item p {
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    transition: var(--transition);
    border: 1px solid var(--accent-color);
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-left: 2px solid var(--accent-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    background-color: var(--bg-light);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: white;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 42px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-date {
        position: static;
        text-align: left;
        margin-bottom: 10px;
    }
    
    .timeline-dot {
        left: 13px;
    }
    
    .timeline-content {
        margin-left: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content h2 {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content h2 {
        font-size: 18px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}