/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.6;
    color: #fff;
    position: relative;
    overflow-x: hidden;
    background-color: #000;
    text-align: center; /* Center all text by default */
    margin: auto;
}

/* Canvas styling */
#wave-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Remove the old wave background */
body::before,
body::after {
    display: none;
}

/* Navigation */
header {
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1rem 0;
    text-align: center;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #007bff;
}

/* Main content */
main {
    margin-top: 60px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

section {
    padding: 4rem 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    margin: 2rem auto; /* Center sections */
    border-radius: 10px;
    backdrop-filter: blur(5px);
    text-align: center;
}

.hero {
    background-color: rgba(0, 0, 0, 0.7);
    text-align: center;
    padding: 6rem 2rem;
    border-radius: 10px;
}

.profile-image {
    margin-bottom: 1.5rem;
}

.profile-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero h1 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 3rem;
    color: #fff;
}

.hero h1 {
    animation: fadeInScale 1s ease-in-out; /* Adjust duration and timing function */
}

@keyframes fadeInScale {
    0% {
        opacity: 0; /* Initially invisible */
        transform: scale(0.5); /* Start small */
    }
    100% {
        opacity: 1; /* Become fully visible */
        transform: scale(1); /* Return to normal size */
    }
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #fff;
}

h1, h2, h3, p {
    text-align: center;
    margin-bottom: 1rem;
}

/* Projects section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    justify-items: center; /* Center grid items */
    text-align: center;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    backdrop-filter: blur(5px);
    text-align: center;
    width: 100%;
    max-width: 350px; /* Limit card width */
}

.project-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.project-image {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
    transition: all 0.25s ease;
    background: rgba(255,255,255,0.08);
}
.btn:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.16);
}
.btn.primary {
    background: #007bff;
    border-color: #007bff;
}
.btn.primary:hover {
    background: #0056b3;
    border-color: #0056b3;
}
.btn.ghost {
    background: transparent;
}
.btn.small {
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
}

.hero .subtitle {
    margin-top: 0.75rem;
    color: rgba(255,255,255,0.85);
}

.hero-ctas {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.25rem;
}

.socials {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}
.socials a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}
.socials a:hover {
    color: #007bff;
}

/* Skills */
.skills .badge-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}
.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.95rem;
}

/* Project links */
.project-links {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

/* Contact form */
.contact {
    background-color: rgba(0, 0, 0, 0.7);
    text-align: center;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center; /* Center form elements */
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-align: center;
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

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

button {
    width: auto;
    min-width: 200px;
    margin: 0 auto;
    display: block;
    background-color: #007bff;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    backdrop-filter: blur(10px);
}

/* Responsive design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

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

    section {
        padding: 2rem 1rem;
        margin: 1rem;
    }

    .project-card {
        max-width: 100%;
    }
} 