:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #8b5cf6;
    --light: #f8fafc;
    --gray: #94a3b8;
    --dark-gray: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--secondary);
    background-color: var(--light);
    line-height: 1.6;
}

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

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

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

.current-page {
    color: var(--primary);
}

.current-page::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--dark-gray);
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--dark-gray);
    max-width: 600px;
    margin: 0 auto;
}

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

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--dark-gray);
}

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

.profile-img-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 5px solid var(--border);
    box-shadow: var(--shadow);
}

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

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.project-img {
    height: 200px;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-content p {
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    background-color: #dbeafe;
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Page Content */
.page-content {
    padding: 60px 0;
}

.about-detail {
    display: flex;
    gap: 40px;
}

.about-main {
    flex: 2;
}

.about-main h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary);
    margin-top: 30px;
}

.about-main h2:first-child {
    margin-top: 0;
}

.about-main p {
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.experience-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.experience-item:last-child {
    border-bottom: none;
}

.date {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 10px;
}

.about-sidebar {
    flex: 1;
}

.sidebar-box {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.sidebar-box h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.sidebar-box ul {
    list-style: none;
}

.sidebar-box li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.sidebar-box li:last-child {
    border-bottom: none;
}

.sidebar-box a {
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sidebar-box a i {
    margin-right: 10px;
}

.sidebar-box a:hover {
    text-decoration: underline;
}

/* Project Detail Pages */
.project-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.project-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.project-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.project-content-section {
    padding: 60px 0;
}

.project-detail {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

.project-detail-content {
    flex: 2;
}

.project-detail-sidebar {
    flex: 1;
}

.project-detail-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.project-detail-content p {
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.project-detail-content ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.project-detail-content li {
    margin-bottom: 10px;
}

.project-sidebar-box {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.project-sidebar-box h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.project-sidebar-box ul {
    list-style: none;
}

.project-sidebar-box li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.project-sidebar-box li:last-child {
    border-bottom: none;
}

.project-sidebar-box a {
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.project-sidebar-box a i {
    margin-right: 10px;
}

.project-sidebar-box a:hover {
    text-decoration: underline;
}

/* Skills Section */
.skill-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: 200px;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-column p {
    color: var(--gray);
    margin-bottom: 20px;
}

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

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

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 0.9rem;
}

/* Code Styling */
code {
    font-family: 'Source Code Pro', monospace;
    background-color: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.95rem;
}

pre {
    background-color: #1e293b;
    color: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

pre code {
    background: none;
    padding: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .project-detail {
        flex-direction: column;
    }
    
    .about-detail {
        flex-direction: column;
    }
    
    .skill-card {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .btn-outline {
        margin-left: 0;
    }
    
    .hero-content .btn {
        width: auto;
        display: inline-block;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}