:root {
    --bg-color: #0a0a0a;
    --bg-card: #141414;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --primary-orange: #ff5e00;
    --accent-green: #00ff88;
    --font-main: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-orange { color: var(--primary-orange); }
.text-green { color: var(--accent-green); }

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--primary-orange);
    color: white;
}

.btn-filled {
    background: var(--primary-orange);
    color: white;
    border: 2px solid var(--primary-orange);
}

.btn-filled:hover {
    background: transparent;
    color: var(--primary-orange);
}

.btn-outline {
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
    margin-left: 10px;
}

.btn-outline:hover {
    background: var(--accent-green);
    color: black;
}

.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 10px; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    padding: 20px 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; }

.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-link { font-size: 0.9rem; transition: var(--transition); }
.nav-link:hover { color: var(--primary-orange); }

/* Mobile Menu */
.menu-toggle { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: white; transition: var(--transition); }

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.custom-shape-divider-bottom-1689 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.shape-fill { fill: var(--bg-card); }

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 10px;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--primary-orange);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-green);
    margin-bottom: 20px;
}

/* About */
.bg-darker { background: var(--bg-card); }
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-list li { margin: 15px 0; font-size: 1.1rem; }
.about-list i { margin-right: 10px; }

.tech-box {
    font-size: 5rem;
    display: flex;
    justify-content: center;
    gap: 20px;
    color: rgba(255,255,255,0.1);
}

/* Dev Portfolio Specifics */
.dev-profile {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #111;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #222;
    margin-bottom: 60px;
}

.dev-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-orange);
}

.dev-img-container { position: relative; }

.status-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #000;
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.status-badge i { font-size: 0.5rem; animation: pulse 2s infinite; }

.role { font-weight: 600; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px;}

.tech-stack { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.tech-tag {
    background: #222;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.portfolio-header { margin-bottom: 30px; border-left: 4px solid var(--primary-orange); padding-left: 15px; }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    group: hover;
}

.project-img {
    width: 100%;
    height: 200px;
    background-color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
}

.project-content { padding: 20px; }
.project-content h4 { color: var(--primary-orange); margin-bottom: 10px; }
.project-link { 
    display: inline-block; 
    margin-top: 15px; 
    color: var(--accent-green); 
    font-size: 0.9rem; 
    font-weight: 600;
}

/* Contact */
.contact-wrapper { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
input, textarea {
    width: 100%;
    padding: 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: white;
    border-radius: 5px;
    font-family: inherit;
}
input:focus, textarea:focus { outline: none; border-color: var(--primary-orange); }
.btn-block { width: 100%; }

/* Footer */
footer { background: black; padding: 40px 0; border-top: 1px solid #222; text-align: center; }
.socials { margin-top: 20px; }
.socials a { margin: 0 10px; font-size: 1.2rem; color: var(--text-muted); transition: var(--transition); }
.socials a:hover { color: var(--primary-orange); }

/* Animations */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.animate-hidden { opacity: 0; transform: translateY(20px); transition: all 0.8s ease; }
.visible { opacity: 1; transform: translateY(0); }

/* Responsive Media Queries */
@media (max-width: 768px) {
    .menu-toggle { display: block; z-index: 1001; }
    
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: black;
        width: 100%;
        height: 100%;
        justify-content: center;
        transition: 0.3s;
    }

    .nav-menu.active { left: 0; }
    
    .hero h1 { font-size: 2.5rem; }
    
    .about-container { grid-template-columns: 1fr; text-align: center; }
    .dev-profile { flex-direction: column; text-align: center; }
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #1a1a1a;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    border-left: 4px solid var(--primary-orange);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease forwards;
    max-width: 350px;
}

.toast.success { border-left-color: var(--accent-green); }
.toast.error { border-left-color: #ff4444; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}