/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #0d1117;
    --secondary-color: #1f6feb;
    --accent-color: #00ff41;
    --light-color: #c9d1d9;
    --dark-color: #0d1117;
    --gray-color: #8b949e;
    --shadow: 0 4px 6px rgba(0, 255, 65, 0.1);
    --terminal-bg: #0d1117;
    --terminal-text: #00ff41;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--light-color);
    background-color: #0d1117;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--secondary-color);
}

p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--gray-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--secondary-color);
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: transparent;
    color: var(--accent-color);
    box-shadow: 0 0 20px var(--secondary-color);
    transform: translateY(-3px);
}

.btn-accent {
    background-color: var(--secondary-color);
    border: 1px solid var(--accent-color);
}

.btn-accent:hover {
    background-color: transparent;
    color: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-color);
}

/* Header & Navigation */
header {
    background-color: rgba(13, 17, 23, 0.95);
    box-shadow: 0 0 20px rgba(31, 111, 235, 0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--secondary-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 600;
    transition: color 0.3s;
    color: var(--light-color);
}

.nav-links a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0d1117 0%, #1a2332 100%);
    padding-top: 150px;
    padding-bottom: 100px;
    text-align: center;
}

.hero-terminal {
    background-color: #0d1117;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 0 30px rgba(31, 111, 235, 0.3);
    overflow: hidden;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.terminal-header {
    background-color: #161b22;
    padding: 10px 15px;
    border-bottom: 1px solid var(--secondary-color);
    display: flex;
    gap: 8px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-dot:nth-child(1) {
    background-color: #ff5f57;
}

.terminal-dot:nth-child(2) {
    background-color: #febc2e;
}

.terminal-dot:nth-child(3) {
    background-color: #28c840;
}

.terminal-content {
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    text-align: left;
    line-height: 1.8;
    color: var(--accent-color);
}

.terminal-prompt {
    color: var(--secondary-color);
}

.terminal-output {
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-color);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--light-color);
}

.subtitle {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.profile-img {
    display: none;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
    color: var(--light-color);
}

.about-img {
    flex: 1;
    text-align: center;
}

.about-img img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(31, 111, 235, 0.3);
    border: 2px solid var(--secondary-color);
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-item {
    background-color: rgba(22, 27, 34, 0.8);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 0 20px rgba(31, 111, 235, 0.2);
    text-align: center;
    transition: all 0.3s;
}

.skill-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.skill-item:hover .skill-icon {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

.skill-item h3 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

/* Portfolio Section */
.portfolio {
    background-color: rgba(13, 17, 23, 0.8);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.portfolio-item {
    background-color: rgba(22, 27, 34, 0.9);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 0 20px rgba(31, 111, 235, 0.2);
    transition: all 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
}

.portfolio-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio-content {
    padding: 20px;
}

.portfolio-content h3 {
    margin-bottom: 10px;
    color: var(--accent-color);
}

.portfolio-content p {
    color: var(--light-color);
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.tag {
    display: inline-block;
    background-color: rgba(31, 111, 235, 0.2);
    border: 1px solid var(--secondary-color);
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Certifications Section */
.certifications {
    background-color: rgba(13, 17, 23, 0.8);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.cert-item {
    background-color: rgba(22, 27, 34, 0.9);
    padding: 30px;
    border-radius: 10px;
    border: 2px solid var(--secondary-color);
    text-align: center;
    box-shadow: 0 0 20px rgba(31, 111, 235, 0.2);
    transition: all 0.3s;
}

.cert-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
    transform: translateY(-10px);
}

.cert-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.cert-item:hover .cert-icon {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

.cert-item h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.cert-item p {
    color: var(--light-color);
}

.cert-desc {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-top: 10px;
}

/* Contact Section */
.contact-container {
    display: flex;
    gap: 50px;
    margin-top: 40px;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

.contact-item h3 {
    color: var(--accent-color);
}

.contact-item p {
    color: var(--light-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--accent-color);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    font-size: 1rem;
    background-color: rgba(22, 27, 34, 0.9);
    color: var(--light-color);
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: #0d1117;
    border-top: 1px solid var(--secondary-color);
    color: var(--light-color);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-about {
    flex: 2;
    margin-right: 50px;
}

.footer-about h3 {
    color: var(--accent-color);
}

.footer-links {
    flex: 1;
}

.footer-social {
    flex: 1;
}

.footer-links h3, .footer-social h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light-color);
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(31, 111, 235, 0.2);
    border: 1px solid var(--secondary-color);
    border-radius: 50%;
    color: var(--accent-color);
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(31, 111, 235, 0.5);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(139, 148, 158, 0.3);
    color: var(--gray-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content, .contact-container {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-about {
        margin-right: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: rgba(13, 17, 23, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        border-bottom: 1px solid var(--secondary-color);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 80%;
        max-width: 250px;
    }
}