/* --- Root Variables --- */
:root {
    --primary: #003077d9;
    --accent: #95c3ff;
    --dark: #000000;
    --light: #ffffff;
    --text-muted: #aaaaaa;
    --transition: all 0.3s ease;
}

/* --- Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'IBM Plex Mono', monospace;
    background: radial-gradient(circle at top, var(--primary) 0%, var(--dark) 70%);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.section-title {
    font-family: 'Raleway', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--dark);
}

.white-text { color: var(--light); }
.mt-50 { margin-top: 50px; }

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    background: rgba(0, 48, 119, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.brand { font-weight: 800; font-size: 1.5rem; color: var(--light); }

.nav-links { list-style: none; display: flex; gap: 30px; }

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--light); }

.nav-socials a {
    color: var(--text-muted);
    margin-left: 15px;
    font-size: 1.2rem;
    transition: var(--transition);
}

.nav-socials a:hover { color: var(--accent); }

/* --- Hero Section --- */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 100px; }

.main-title {
    font-family: 'Raleway', sans-serif;
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 30px; }

.img-wrapper img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid rgba(149, 195, 255, 0.1);
    animation: floating 5s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* --- Buttons --- */
.btn-glow {
    display: inline-block;
    padding: 15px 35px;
    background: var(--accent);
    color: var(--dark);
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(149, 195, 255, 0.4);
    transition: var(--transition);
}

.btn-glow:hover {
    transform: translateY(-5px);
    background: var(--light);
    box-shadow: 0 0 40px rgba(149, 195, 255, 0.7);
}

/* --- About Section --- */
.about { background: var(--light); color: var(--dark); padding: 100px 0; }

.info-card {
    background: var(--primary);
    color: var(--light);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.info-card:hover { transform: translateX(10px); }

.hobby-list { list-style: none; margin-top: 10px; }
.hobby-list li { margin-bottom: 8px; }

.about-photo img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 20px 20px 0px var(--primary);
}

/* --- Skills Section --- */
.skills { padding: 100px 0; background: var(--primary); }

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.skill-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* --- Contact Section --- */
.contact { background: var(--light); color: var(--dark); padding: 100px 0; }

.form-wrapper { max-width: 600px; margin: 0 auto; }

.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.input-group input, .input-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

/* --- Footer --- */
.footer {
    padding: 40px 0;
    text-align: center;
    background: var(--dark);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; text-align: center; }
    .main-title { font-size: 2.5rem; }
    .nav-links { display: none; }
}

/* --- Background Animation Particles --- */
.bg-animate {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, var(--primary) 0%, var(--dark) 100%);
    overflow: hidden;
}

.bg-animate::after {
    content: "";
    position: absolute;
    width: 200%; height: 200%;
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
    animation: moveBg 100s linear infinite;
    opacity: 0.3;
}

@keyframes moveBg {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50%, -50%); }
}

/* --- Typed Cursor Style --- */
.typed-cursor {
    color: var(--accent);
    font-size: 3rem;
}

/* --- Hover Image Glow Effect --- */
.img-wrapper {
    position: relative;
    display: inline-block;
}

.img-wrapper::before {
    content: '';
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border-radius: 50%;
    background: var(--accent);
    z-index: -1;
    filter: blur(20px);
    opacity: 0;
    transition: var(--transition);
}

.img-wrapper:hover::before {
    opacity: 0.5;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.5; }
}

/* --- Skill Card Advanced Hover --- */
.skill-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.skill-card::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.5s;
    z-index: -1;
}

.skill-card:hover::before {
    left: 100%;
}

/* --- Section Title Animation --- */
.section-title {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 40px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

section:hover .section-title::after {
    width: 150px;
}

/* --- Form Input Animation --- */
.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(149, 195, 255, 0.3);
    transform: translateY(-2px);
    transition: var(--transition);
}