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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

body.dark {
    background-color: #121212;
    color: #e0e0e0;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background-color 0.3s;
}

body.dark header {
    background: rgba(18, 18, 18, 0.9);
}

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

.logo-photo-container {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    margin-left: 10px;
}

.photo-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

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

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

.nav-links a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #007bff;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons .btn {
    margin-right: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-secondary {
    background: transparent;
    border: 1px solid white;
    color: white;
}

/* About */
.about {
    padding: 100px 0;
    background: #f8f9fa;
}

body.dark .about {
    background: #1e1e1e;
}

.about-content {
    display: flex;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-gallery {
    flex: 1;
}

.carousel img {
    width: 100%;
    height: auto;
}

/* Skills */
.skills {
    padding: 100px 0;
}

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

.skill-card {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

body.dark .skill-card {
    background: #2a2a2a;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.skill-card i {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Projects */
.projects {
    padding: 100px 0;
    background: #f8f9fa;
}

body.dark .projects {
    background: #1e1e1e;
}

.filter-buttons {
    text-align: center;
    margin-bottom: 50px;
}

.filter-btn {
    margin: 0 10px;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.filter-btn.active {
    background: #0056b3;
}

.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: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

body.dark .project-card {
    background: #2a2a2a;
}

.project-card:hover {
    transform: translateY(-10px);
}

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

.project-card h3 {
    padding: 20px;
}

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

.project-card .btn {
    margin: 20px;
}

/* Contact */
.contact {
    padding: 100px 0;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

#contact-form input,
#contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

body.dark #contact-form input,
body.dark #contact-form textarea {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #555;
}

.social-links {
    text-align: center;
    margin-top: 50px;
}

.social-link {
    margin: 0 20px;
    font-size: 2rem;
    color: inherit;
    transition: color 0.3s;
}

.social-link:hover {
    color: #007bff;
}

/* Responsive */
@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .about-content {
        flex-direction: column;
    }

    .nav-links {
        display: none; /* Add mobile menu if needed */
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}
