/* styles.css - Advanced Portfolio Template Styles */

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f0f2f5;
    color: #333;
    transition: all 0.3s ease;
}

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

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
}

#themeToggle {
    padding: 8px 16px;
    background: #6200ea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

#themeToggle:hover {
    background: #3700b3;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #6200ea, #00ddeb);
    color: white;
    text-align: center;
    padding: 100px 20px;
    animation: fadeIn 1s ease-in;
}

.hero h2 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #fff;
    color: #6200ea;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: bold;
    transition: transform 0.3s;
}

.btn:hover {
    transform: scale(1.05);
}

/* Projects Section */
.projects {
    padding: 60px 20px;
}

.projects h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
}

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

.project-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.project-card img {
    max-width: 100%;
    border-radius: 5px;
}

.project-card h3 {
    margin: 15px 0 10px;
}

/* Dark Mode */
body.dark {
    background: #1a1a2e;
    color: #e0e0e0;
}

body.dark header {
    background: #16213e;
}

body.dark .project-card {
    background: #16213e;
}

body.dark .btn {
    background: #00ddeb;
    color: #1a1a2e;
}

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

[data-aos="fade-up"].visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2em;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
}