/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f7fa;
}

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

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--light-color);
    margin-bottom: 20px;
}

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

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: white;
    font-weight: 600;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--light-color);
    border-bottom: 2px solid var(--secondary-color);
}

/* Hero Section */
.hero {
    padding: 60px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

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

/* Projects Preview */
.projects-preview {
    padding: 60px 0;
}

.projects-preview h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

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

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

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

.project-card h3 {
    padding: 15px 20px 0;
    color: var(--primary-color);
}

.project-card p {
    padding: 0 20px 15px;
    color: var(--text-light);
}

.project-card .btn {
    display: block;
    margin: 0 20px 20px;
    text-align: center;
}

/* About Section */
.about-section {
    padding: 60px 0;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.profile-image {
    flex: 1;
    min-width: 300px;
}

.profile-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-info {
    flex: 2;
    min-width: 300px;
}

.profile-info h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.profile-info p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.experience-item {
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.experience-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skill-category {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.skill-category h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 5px;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.skill-category li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* Projects Section */
.projects-section {
    padding: 60px 0;
}

.projects-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.project-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.project-image {
    flex: 1;
    min-width: 300px;
}

.project-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-info {
    flex: 2;
    min-width: 300px;
}

.project-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.project-info p {
    margin-bottom: 15px;
}

.project-info strong {
    color: var(--primary-color);
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer .social-links {
    margin-top: 15px;
}

footer .social-links a {
    color: white;
    margin: 0 10px;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .about-content, .project-detail {
        flex-direction: column;
    }
    
    .profile-image, .project-image {
        min-width: 100%;
    }
}