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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
    background: #f5f5f5;
    transition: background 0.3s ease, color 0.3s ease;
}

body.dark {
    background: #1a1a1a;
    color: #fff;
}

/* Header */
header {
    background: rgba(26, 37, 47, 0.9);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

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

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #ff6f61;
    transition: width 0.3s ease;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: #ff6f61;
}

.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

.theme-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #ff6f61;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cta.secondary {
    background: transparent;
    border: 2px solid #ff6f61;
    color: #1a1a1a;
}

.cta.secondary:hover {
    background: #ff6f61;
}

/* Intro Section */
.intro {
    padding: 4rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* About Section */
.about {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    margin-top: 4rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 2rem;
}

body.dark .glass-card {
    background: rgba(0, 0, 0, 0.3);
}

.profile-img {
    max-width: 200px;
    border-radius: 50%;
    margin: 1rem auto;
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

.skills {
    margin: 2rem 0;
}

.skill {
    margin: 1rem 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.skill span {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.skill-bar {
    height: 10px;
    background: #ff6f61;
    border-radius: 5px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

.timeline {
    margin-top: 2rem;
}

.timeline-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid #ff6f61;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

body.dark .timeline-item {
    background: rgba(0, 0, 0, 0.5);
}

.timeline-item:hover {
    transform: translateX(10px);
}

/* Projects Section */
.projects {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 4rem;
}

.projects h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.filter-buttons {
    text-align: center;
    margin-bottom: 2rem;
}

.filter-btn {
    background: none;
    border: 2px solid #ff6f61;
    padding: 0.5rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: #ff6f61;
    color: #fff;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

body.dark .project-card {
    background: rgba(0, 0, 0, 0.5);
}

.project-card:hover {
    transform: scale(1.03);
}

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

.project-card h3 {
    padding: 1rem;
    font-size: 1.5rem;
}

.project-card p {
    padding: 0 1rem;
    color: #666;
}

.project-link {
    display: block;
    padding: 0.5rem 1rem;
    margin: 1rem;
    background: #ff6f61;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.project-link:hover {
    background: #e55a4f;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideIn 0.3s ease;
}

body.dark .modal-content {
    background: #2a2a2a;
}

.modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Contact Section */
.contact {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.contact .glass-card {
    padding: 2rem;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact input,
.contact textarea {
    padding: 1rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    transition: background 0.3s ease;
}

body.dark .contact input,
body.dark .contact textarea {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
}

.contact input:focus,
.contact textarea:focus {
    background: #fff;
    outline: none;
}

body.dark .contact input:focus,
body.dark .contact textarea:focus {
    background: #333;
}

.contact textarea {
    resize: vertical;
    min-height: 150px;
}

#form-message {
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
}

#form-message.success {
    color: #ff6f61;
    animation: fadeIn 0.5s ease;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: #1a252f;
    color: #fff;
}

.social-links a {
    color: #ff6f61;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #fff;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-text {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.animate-text:nth-child(1) { animation-delay: 0.2s; }
.animate-text:nth-child(2) { animation-delay: 0.4s; }

.animate-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(26, 37, 47, 0.9);
        padding: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .contact {
        grid-template-columns: 1fr;
    }
}