/* --- Variables - ORANGE THEME --- */
:root {
    --primary: #ff6b00; /* Vibrant Orange */
    --primary-hover: #e65a00;
    --bg-color: #0b0f1a;
    --card-bg: #161b2a;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #2d3446;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

.light-mode {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
}

/* --- Global Styles --- */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body { 
    font-family: 'Poppins', sans-serif; 
    background: var(--bg-color); 
    color: var(--text-main); 
    transition: var(--transition);
    overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; }
.highlight { color: var(--primary); }

.section-title { 
    text-align: center; 
    font-size: 2.5rem; 
    margin-bottom: 60px; 
    position: relative; 
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    background: var(--primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* --- Navbar --- */
.navbar { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    z-index: 1000; 
    background: var(--bg-color); 
    border-bottom: 1px solid var(--border); 
    padding: 15px 0; 
    transition: var(--transition);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 1.6rem; font-weight: 700; color: var(--text-main); text-decoration: none; }
.logo span { color: var(--primary); }

.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 500; transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.nav-controls { display: flex; align-items: center; gap: 15px; }
#theme-toggle, #lang-toggle { 
    cursor: pointer; 
    background: var(--card-bg); 
    border: 1px solid var(--border); 
    color: var(--text-main); 
    padding: 6px 12px; 
    border-radius: 6px; 
    font-weight: 600;
}
.about-img-container img {
    width: 100%;
    height: 100%;
    /* This is the magic property: it acts like 'background-size: cover' */
    object-fit: cover; 
    /* Ensures the face is centered if the image is cropped */
    object-position: center; 
}

/* --- Hero --- */
.hero { 
    height: 100vh; 
    display: flex; 
    align-items: center; 
    position: relative;
}

.hero h1 { font-size: 3.8rem; margin: 15px 0; line-height: 1.2; }
.hero h3 { font-size: 1.8rem; color: var(--text-muted); margin-bottom: 25px; }

.orange-glow {
    position: absolute;
    top: 20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.15;
    z-index: -1;
}

.btn { 
    padding: 12px 30px; 
    border-radius: 6px; 
    text-decoration: none; 
    font-weight: 600; 
    display: inline-block;
    transition: var(--transition);
}

.primary-btn { background: var(--primary); color: var(--white); border: 2px solid var(--primary); }
.primary-btn:hover { background: var(--primary-hover); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2); }

.secondary-btn { border: 2px solid var(--primary); color: var(--primary); margin-left: 15px; }
.secondary-btn:hover { background: var(--primary); color: var(--white); }

/* --- Skills --- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.skill-group { background: var(--card-bg); padding: 30px; border-radius: 12px; border: 1px solid var(--border); }
.skill-group h3 { margin-bottom: 25px; color: var(--primary); display: flex; align-items: center; gap: 10px; }

.skill-card { margin-bottom: 20px; }
.skill-info { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 500; }
.progress-line { height: 8px; background: var(--border); border-radius: 10px; position: relative; overflow: hidden; }
.progress-line span { height: 100%; background: var(--primary); position: absolute; border-radius: 10px; transition: width 1.5s ease; }

/* --- Timeline --- */
.timeline { border-left: 3px solid var(--primary); margin-left: 20px; padding-left: 40px; position: relative; }
.timeline-item { margin-bottom: 50px; position: relative; }
.timeline-dot { position: absolute; left: -52px; width: 20px; height: 20px; background: var(--primary); border-radius: 50%; top: 5px; border: 4px solid var(--bg-color); }
.timeline-date { font-weight: 700; color: var(--primary); margin-bottom: 8px; font-size: 1.1rem; }
.timeline-content { background: var(--card-bg); padding: 25px; border-radius: 10px; border: 1px solid var(--border); }

/* --- Projects --- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.project-card { background: var(--card-bg); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); transition: var(--transition); }
.project-card:hover { transform: translateY(-8px); border-color: var(--primary); }
.project-card img { width: 100%; height: 220px; object-fit: cover; }
.project-body { padding: 25px; }
.project-body h3 { margin-bottom: 10px; }
.project-link { color: var(--primary); text-decoration: none; font-weight: 600; display: inline-block; margin-top: 15px; }

/* --- Contact --- */
.contact-wrapper { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form input, .contact-form textarea { 
    padding: 15px; 
    background: var(--card-bg); 
    border: 1px solid var(--border); 
    color: var(--text-main); 
    border-radius: 8px; 
    font-family: inherit;
    outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); }

.social-links { display: flex; gap: 20px; margin-top: 20px; }
.social-links a { 
    font-size: 1.5rem; 
    color: var(--text-main); 
    transition: var(--transition); 
    background: var(--card-bg);
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
}
.social-links a:hover { color: var(--white); background: var(--primary); border-color: var(--primary); transform: translateY(-5px); }

.footer { text-align: center; padding: 40px 0; border-top: 1px solid var(--border); margin-top: 50px; }

#backToTop { 
    position: fixed; bottom: 30px; right: 30px; display: none; 
    background: var(--primary); color: white; border: none; 
    width: 50px; height: 50px; border-radius: 50%; cursor: pointer; 
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.8rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
}