/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;700&display=swap');

:root {
    --bg-color: #000000;
    --surface-color: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #38bdf8;
    --transition: all 0.3s ease;
}

html, body {
    padding: 0;
    margin: 0;
    font-family: 'Raleway', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

* {
    box-sizing: border-box;
}

/* Background Logic */
#tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 5%;
    background-color: transparent;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}
.logo-image {
    width: 5rem;
    height: auto;
    border-radius: 10%;
}
/* About Section & Card */
.about-section {
    padding: 5rem 5%;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.main-info-card {
    display: flex;
    align-items: center;
    /* Adjust the alpha channel (0.15) to control transparency */
    background-color: rgba(30, 41, 59, 0.15); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    gap: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    /* This creates the frosted glass blur effect */
    backdrop-filter: blur(1px); 
    -webkit-backdrop-filter: blur(1px);
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    flex-shrink: 0;
}

.info-container {
    flex: 1;
}

.hello {
    font-size: 2.2rem;
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.info-container p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.link:hover {
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

/* Projects Grid */
.projects-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.projects-section h2 {
    margin-bottom: 3rem;
    font-size: 2rem;
    text-align: center;
}

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

.project-card {
    background: rgba(30, 41, 59, 0.85);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.project-card h3 {
    margin: 0 0 1rem 0;
    color: var(--accent);
}

.project-card p {
    margin: 0;
    color: var(--text-secondary);
}
/*Project Media*/
/* Media Container Styling for Project Cards */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Enforces 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 1rem 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Ensure the iframe itself has no border, which we handled in the JS but is good to enforce in CSS */
    border: none; 
}

.project-image {
    width: 100%;
    height: auto;
    max-height: 250px; /* Prevents massive vertical stretching */
    object-fit: cover; /* Ensures the image fills the space without distortion */
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Adjusting the header to accommodate dynamic data cleanly */
.project-header {
    margin-bottom: 1rem;
}

.project-date {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.project-role {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin: 0.2rem 0 0 0;
}

.project-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-link {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

.project-link:hover {
    background-color: var(--accent);
    color: var(--bg-color);
}
/* Footer */
.footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.motto {
    font-style: italic;
    margin-bottom: 0.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-info-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
}