/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    color: #333;
    line-height: 1.6;
    font-size: 16px;
    padding: 20px;
    transition: all 0.4s ease-in-out;
}

/* Dark Mode */
.dark-mode {
    background: #1e272e;
    color: #ecf0f1;
}

/* Headers */
h1, h2, h3 {
    color: #fff;
}

/* Links */
a {
    text-decoration: none;
    color: #e74c3c;
    font-weight: 600;
    transition: 0.3s ease;
}

a:hover {
    color: #c0392b;
}

/* Header */
header {
    background: #2c3e50;
    color: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 28px;
    letter-spacing: 1px;
}

/* Dark Mode Toggle */
#darkModeToggle {
    background: white;
    border: none;
    padding: 10px 16px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

#darkModeToggle:hover {
    background: #ddd;
}

/* Dark Mode Enhancements */
.dark-mode h1, 
.dark-mode h2, 
.dark-mode h3 {
    color: #f1c40f;
}

.dark-mode a {
    color: #f39c12;
}

.dark-mode a:hover {
    color: #ffd700;
}

.dark-mode #darkModeToggle {
    background: #f39c12;
    color: #2c3e50;
}

.dark-mode #darkModeToggle:hover {
    background: #e6b800;
}

/* Section Styles */
section {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

section:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Dark Mode for Sections */
.dark-mode section {
    background: #34495e;
    color: #ecf0f1;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* Profile Section */
.profile {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.profile img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #e74c3c;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.profile-text {
    max-width: 600px;
}

.profile-text h2 {
    font-size: 30px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.profile-text p {
    font-size: 18px;
    color: #7f8c8d;
    line-height: 1.8;
}

/* Skills */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill {
    background: #e74c3c;
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s;
}

.skill:hover {
    background: #c0392b;
}

/* Dark Mode for Skills */
.dark-mode .skill {
    background: #f39c12;
    color: #2c3e50;
}

.dark-mode .skill:hover {
    background: #d35400;
}

/* Projects */
.project {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.project h3 {
    margin-bottom: 8px;
    color: #2980b9;
}

.project:hover {
    transform: scale(1.03);
}

/* Dark Mode for Projects */
.dark-mode .project {
    background: #2c3e50;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 14px;
}

/* Footer Links */
footer a {
    color: #f39c12;
    font-weight: bold;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header, section, footer {
    animation: fadeIn 1s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile {
        flex-direction: column;
        text-align: center;
    }

    .profile img {
        width: 120px;
        height: 120px;
    }

    .profile-text {
        text-align: center;
    }

    section {
        padding: 20px;
    }
}
