:root {
    --dark-navy: #0a192f;
    --navy: #112240;
    --light-navy: #233554;
    --lightest-slate: #ccd6f6;
    --green: #64ffda;
    --slate: #8892b0;
    --white: #e6f1ff;
    --green-tint: rgba(100,255,218,0.1);
    --font-sans: 'Lato', sans-serif;
    --font-mono: 'Montserrat', sans-serif;
    --border-radius: 4px;
    --transition: all 0.25s cubic-bezier(0.645,0.045,0.355,1);
}

/* General Styles */
body {
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    background-color: var(--dark-navy);
    color: var(--slate);
    scroll-behavior: smooth;
    overflow-x: hidden; 
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-navy);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    border: 8px solid var(--light-navy);
    border-top: 8px solid var(--green);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
    box-shadow: 0 0 15px var(--green-tint);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header */
header {
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px -10px rgba(2,12,27,0.7);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green);
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 2rem;
}

nav a {
    color: var(--lightest-slate);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 14px;
    transition: var(--transition);
}

nav a:hover {
    color: var(--green);
    text-shadow: 0 0 8px var(--green-tint);
}

/* --- HERO SECTION (FIXED FULL WIDTH) --- */
#hero {
    height: 100vh;
    /* Force full viewport width, overriding the global section limit */
    width: 100vw; 
    max-width: 100%; 
    
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: var(--dark-navy);
    padding: 0;
    left: 0;
    right: 0;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-text {
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(40px, 8vw, 80px);
    margin: 0;
    color: var(--lightest-slate);
    font-family: var(--font-mono);
    font-weight: 700;
    text-shadow: 0 0 20px rgba(100, 255, 218, 0.2), 
                 3px 3px 0px rgba(2, 12, 27, 0.5); 
}

.hero-text p {
    font-size: 20px;
    color: var(--green);
    margin-top: 20px;
    font-family: var(--font-mono);
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.4);
}

/* Standard Sections (Still constrained to 1000px for readability) */
section {
    padding: 100px 0;
    max-width: 1000px;
    margin: 0 auto;
}

h2 {
    font-size: 32px;
    color: var(--lightest-slate);
    font-family: var(--font-mono);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    text-shadow: 0 0 15px rgba(204, 214, 246, 0.2);
}

h2::after {
    content: "";
    display: block;
    width: 300px;
    height: 1px;
    background-color: var(--light-navy);
    margin-left: 20px;
}

/* About Section */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 300px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
    border: 2px solid var(--green);
    transition: var(--transition);
}

.about-image img:hover {
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 18px;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    text-align: center;
}

.skill-card {
    background-color: var(--navy);
    padding: 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
    border: 1px solid transparent;
}

.skill-card:hover {
    transform: translateY(-5px);
    color: var(--green);
    border-color: var(--green);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.1);
    background-color: var(--light-navy);
}

.skill-card i {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--green);
    filter: drop-shadow(0 0 5px rgba(100, 255, 218, 0.4));
}

.skill-card p {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 14px;
}

/* Projects Section */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background-color: var(--navy);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
    height: 100%;
    border: 1px solid transparent;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--green);
    box-shadow: 0 20px 40px -15px rgba(100, 255, 218, 0.15);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    opacity: 0.9;
    border-bottom: 1px solid var(--light-navy);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    color: var(--lightest-slate);
    margin-bottom: 10px;
    font-family: var(--font-mono);
}

.project-info p {
    font-size: 14px;
    margin-bottom: 20px;
}

.project-info .btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--green);
    color: var(--green);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 13px;
    transition: var(--transition);
}

.project-info .btn:hover {
    background-color: var(--green-tint);
    box-shadow: 0 0 10px var(--green-tint);
}

/* Contact Section */
#contact input, #contact textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background-color: var(--navy);
    border: 1px solid var(--light-navy);
    color: var(--lightest-slate);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

#contact input:focus, #contact textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 10px var(--green-tint);
    outline: none;
}

#contact button {
    padding: 15px 30px;
    background: transparent;
    border: 1px solid var(--green);
    color: var(--green);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: var(--font-mono);
    transition: var(--transition);
}

#contact button:hover {
    background-color: var(--green-tint);
    box-shadow: 0 0 15px var(--green-tint);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: var(--slate);
    font-family: var(--font-mono);
    font-size: 14px;
}

.social-media a {
    color: var(--slate);
    font-size: 20px;
    margin: 0 10px;
    transition: var(--transition);
}

.social-media a:hover {
    color: var(--green);
    text-shadow: 0 0 8px var(--green);
}

#back-to-top {
    display: none;
}

/* Responsive */
@media (max-width: 900px) {
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav ul { display: none; }
    .about-content { flex-direction: column; }
    .skills-container { grid-template-columns: 1fr; }
}

/* Animation States */
.animate__animated {
    opacity: 0;
}

.animate__fadeIn, .animate__fadeInDown, .animate__fadeInUp, .animate__fadeInLeft, .animate__fadeInRight, .animate__zoomIn {
    opacity: 1;
}
