/*--- Reset & Variables ---*/
:root {
    --bg-primary: #0a0f1d;
    --bg-secondary: #121829;
    --accent-color: #388da8;
    --accent-hover: #2d738a;
    --text-main: #ffffff;
    --text-muted: #a0aec0;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.05);
    --font-family: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

/*--- Utility Components ---*/
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.d-flex { display: flex; }
.justify-content-between { justify-content-between: space-between; }
.align-items-center { align-items: center; }
.text-center { text-align: center; }

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
}
.btn-primary:hover { background-color: var(--accent-hover); transform: translateY(-2px); }

.btn-secondary {
    border: 2px solid var(--card-border);
    color: var(--text-main);
    padding: 11px 26px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
}
.btn-secondary:hover { background-color: var(--card-border); }

.section-title {
    margin-bottom: 50px;
}
.section-title span {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

section {
    padding: 100px 0;
}

/*--- Navigation Bar ---*/
.navbar {
    background-color: rgba(10, 15, 29, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
}
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}
.logo span { color: var(--accent-color); }

.nav-links a {
    margin: 0 15px;
    font-weight: 500;
    color: var(--text-muted);
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/*--- Hero Section ---*/
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 90% 10%, rgba(56, 141, 168, 0.15), transparent 40%);
    padding-top: 140px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero-content .subtitle {
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 15px;
}
.hero-content h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.2; }
.hero-content h1 span { color: var(--accent-color); }
.hero-content h2 { font-size: 2rem; color: var(--text-muted); margin: 10px 0 20px; }
.hero-content p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 30px; max-width: 500px; }

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 12px;
    font-size: 1.1rem;
}
.social-links a:hover { background: var(--accent-color); color: #fff; transform: translateY(-3px); }
.cta-buttons { margin-top: 35px; display: flex; gap: 15px; }

.hero-image .img-box {
    background: linear-gradient(145deg, var(--bg-secondary), var(--card-bg));
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 15px;
    display: inline-block;
    max-width: 100%;
}
.hero-image img {
    border-radius: 16px;
    width: 100%;
    height: auto;
    display: block;
}

/*--- About & Skills ---*/
.about-section { background-color: var(--bg-secondary); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.about-info h3 { font-size: 1.8rem; margin-bottom: 20px; }
.about-info p { color: var(--text-muted); }

.skills-box h3 { font-size: 1.5rem; margin-bottom: 25px; }
.skill-item { margin-bottom: 20px; }
.skill-info { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 500; }
.progress-bar { background: var(--bg-primary); height: 8px; border-radius: 10px; width: 100%; }
.progress { background: var(--accent-color); height: 100%; border-radius: 10px; }

/*--- Services Section ---*/
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 40px 30px;
    border-radius: 16px;
    transition: all 0.4s ease;
}
.service-card:hover { transform: translateY(-10px); background: rgba(56, 141, 168, 0.05); border-color: var(--accent-color); }
.service-card .icon-box { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 20px; }
.service-card h3 { font-size: 1.4rem; margin-bottom: 15px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/*--- Portfolio Section ---*/
.portfolio-section { background-color: var(--bg-secondary); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.portfolio-card {
    background: var(--bg-primary);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
}
.portfolio-img img { width: 100%; height: auto; display: block; transition: 0.5s ease; }
.portfolio-card:hover .portfolio-img img { transform: scale(1.05); }
.portfolio-info { padding: 25px; }
.portfolio-info span { color: var(--accent-color); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; }
.portfolio-info h3 { font-size: 1.3rem; margin: 10px 0 20px; }
.project-link { font-weight: 600; font-size: 0.95rem; color: var(--text-muted); }
.portfolio-card:hover .project-link { color: var(--accent-color); }

/*--- Contact Section ---*/
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; }
.contact-details h3 { font-size: 1.8rem; margin-bottom: 20px; }
.contact-details p { margin-bottom: 15px; color: var(--text-muted); }
.contact-details i { margin-right: 10px; color: var(--accent-color); }

.contact-form .form-group { margin-bottom: 20px; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 1px solid var(--accent-color); }

/*--- Footer ---*/
footer { padding: 40px 0; border-top: 1px solid var(--card-border); font-size: 0.9rem; color: var(--text-muted); }

/*--- RESPONSIVE DESIGN (MEDIA QUERIES) ---*/
@media (max-width: 992px) {
    .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .services-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-image { text-align: center; }
    .hero-content h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: 0.4s ease;
    }
    .nav-links.active { left: 0; }
    .nav-links a { display: block; margin: 20px 0; font-size: 1.2rem; }
    .nav-btn { display: none; }
    .menu-toggle { display: block; }
    
    .services-grid, .portfolio-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.3rem; }
    section { padding: 60px 0; }
}