
/* --- Pre-loader and Terminal Effect --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.terminal {
    width: 80%;
    max-width: 600px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    color: var(--text-color);
}

.terminal pre {
    white-space: pre-wrap; /* Allows text to wrap */
    word-wrap: break-word;
}

/* For different colored text in the log */
.log-success { color: var(--primary-accent); }
.log-warning { color: var(--secondary-accent); } /* We will add this variable soon */
.log-error { color: #ff4d4d; } /* Bright red for errors */
/* Blinking cursor effect */
.cursor::after {
    content: '_';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* --- Professional Dark Theme --- */
:root {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --primary-accent: #00ff99;
    --secondary-accent: #ffd700; /* BOLD YELLOW/GOLD */
    --text-color: #e0e0e0;
    --text-secondary: #a0a0a0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
    /* ... rest of the variables ... */
}


* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    background-color: var(--bg-color);
    color: var(--text-color);
}
section { padding: 80px 20px; border-bottom: 1px solid var(--border-color); }
h1, h2, h3 { font-weight: 700; }
h1 { font-size: 4.5rem; letter-spacing: -2px; }
h2 { font-size: 3rem; text-align: center; margin-bottom: 40px; }
p, a, li { color: var(--text-secondary); text-decoration: none; }

/* --- Header & Navigation --- */
header {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    z-index: 1000;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 1rem 1.5rem;
}
.logo { font-size: 1.8rem; font-weight: 900; color: var(--text-color); }
.nav-links { list-style: none; display: flex; align-items: center; }
.nav-links li { margin-left: 30px; }
.nav-links a { font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary-accent); }
.nav-resume-button {
    padding: 8px 16px;
    border: 1px solid var(--primary-accent);
    color: var(--primary-accent);
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}
.nav-resume-button:hover {
    background-color: var(--primary-accent);
    color: var(--bg-color);
}
.hamburger { display: none; cursor: pointer; }
.hamburger .line { width: 25px; height: 3px; background: var(--text-color); margin: 5px; transition: all 0.3s ease; }

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-color) url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23222" fill-opacity="0.4"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}
#hero h1 { color: var(--text-color); }
#hero .subtitle { font-size: 1.5rem; color: var(--text-secondary); margin: 1rem 0 2.5rem 0; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }
.cta-button {
    display: inline-block;
    padding: 14px 28px;
    background: var(--primary-accent);
    color: var(--bg-color);
    font-weight: 700;
    border-radius: 5px;
    border: 2px solid var(--primary-accent);
    transition: transform 0.3s ease, background-color 0.3s;
}
.cta-button:hover { transform: translateY(-3px); }
.secondary-cta { background: transparent; color: var(--primary-accent); }
.secondary-cta:hover { background: var(--primary-accent); color: var(--bg-color); }

/* --- Contact Form --- */
#contact-form { max-width: 800px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; gap: 20px; }
#contact .subtext {
    text-align: center;
    margin-bottom: 20px;
}
#contact-form input, #contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}
#contact-form input:focus, #contact-form textarea:focus { outline: none; border-color: var(--primary-accent); }
#contact-form button { width: 100%; font-size: 1.1rem; }
#contact-form button i { margin-left: 10px; }

#contact-form button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

#contact-form input:disabled,
#contact-form textarea:disabled,
#contact-form button:disabled {
    opacity: 0.6;
}

/* --- Footer --- */
footer { text-align: center; padding: 40px 20px; background: var(--surface-color); }
.social-links { display: flex; justify-content: center; gap: 25px; margin-bottom: 20px; }
.social-links a { color: var(--text-secondary); font-size: 1.8rem; transition: color 0.3s, transform 0.3s; }
.social-links a:hover { color: var(--primary-accent); transform: translateY(-5px); }
footer p { font-size: 0.9rem; }

/* --- Fade-in Animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Media Queries (for mobile) --- */
@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    
    .nav-links {
        position: fixed;
        right: -100%;
        top: 60px;
        height: calc(100vh - 60px);
        width: 60%;
        background-color: var(--surface-color);
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        transition: right 0.5s ease-in-out;
    }

    .nav-links.nav-active { right: 0; }
    .hamburger { display: block; }
    .form-group { flex-direction: column; }
}
/* --- Competencies Section --- */
#competencies { background-color: var(--surface-color); }
.competencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.competency-card {
    text-align: center;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.3s;
}
.competency-card:hover {
    background-color: #2a2a2a;
    transform: translateY(-5px);
}
.competency-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    /* HERE'S OUR YELLOW ACCENT! */
    color: var(--secondary-accent);
}
.competency-card h3 {
    color: var(--text-color);
    margin-bottom: 10px;
}

/* --- Philosophy Section --- */
#philosophy {
    background: var(--bg-color);
    text-align: center;
}
#philosophy blockquote {
    max-width: 800px;
    margin: 0 auto;
    border-left: 4px solid var(--secondary-accent);
    padding-left: 30px;
    text-align: left;
}
#philosophy blockquote p {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-color);
    line-height: 1.6;
}
#philosophy blockquote cite {
    display: block;
    margin-top: 20px;
    font-size: 1rem;
    font-style: normal;
    color: var(--primary-accent);
}
.tech {
    font-weight: 800;
}
.project-cards{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.profile-photo {
    width: 250px;       /* Is this here and not 0? */
    height: 250px;      /* Is this here and not 0? */
    border-radius: 50%; 
    object-fit: cover; 
    border: 3px solid var(--primary-accent);
    box-shadow: 0 0 25px rgba(0, 255, 153, 0.3); 
}
/* --- About Section (Centered Layout) --- */
.about-content {
    display: flex;
    flex-direction: column;  /* <-- This is the KEY: Stacks items vertically */
    align-items: center;     /* This now centers everything horizontally */
    gap: 40px;               /* Space between your photo and the text below it */
    max-width: 800px;        /* A good width for centered text */
    margin: 0 auto;
}

.profile-photo {
    width: 250px;            /* <-- CHANGED: Made the circle medium-large */
    height: 250px;           /* <-- CHANGED: Made the circle medium-large */
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-accent);
    box-shadow: 0 0 25px rgba(0, 255, 153, 0.3);
}

.about-text {
    text-align: center;      /* <-- CHANGED: Centers your bio text */
}

/* We need to adjust the paragraph inside the text for better readability */
.about-text p {
    margin-bottom: 1rem;
    color: var(--text-secondary); /* Ensures consistent text color */
}

/* --- UPGRADED Skills / Tech Stack Section --- */
#skills {
    background-color: var(--surface-color); /* A slightly different background */
}

.tech-stack {
    margin-top:20px;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category-card {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.skill-category-card h3 {
    color: var(--text-color);
    margin-bottom: 25px;
    font-size: 1.4rem;
    border-bottom: 2px solid var(--primary-accent);
    padding-bottom: 10px;
}

.skill-bar {
    margin-bottom: 20px;
}
.skill-bar:last-child {
    margin-bottom: 0;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 500;
}
.skill-info span:first-child { color: var(--text-color); }
.skill-info span:last-child { color: var(--text-secondary); }

.skill-progress-bar {
    width: 100%;
    height: 10px;
    background-color: #333;
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    border-radius: 5px;
    width: 0; /* Starts at 0, animation will fill it */
    transition: width 1.5s ease-in-out;
}

/* We need to use JS to trigger this animation on scroll */
/* When the #skills section becomes visible, the animation runs */
#skills.visible .skill-progress {
    width: var(--width, 0); /* Fallback to 0 if --width is not set */
    transition: width 1.5s ease-in-out;
}

/* Styling for the new Professional Skills section */
.professional-skills .skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.professional-skills .skill-item {
    background-color: rgba(255, 215, 0, 0.1); /* Use secondary accent color */
    color: var(--secondary-accent);
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 500;
}