/* ======= Root Variables ======= */
:root {
    --dark-bg: #232946;
    --darker-bg: #1a1a2e;
    --card-bg: #2d3250;
    --accent: #ffb400;
    --accent2: #3ddc97;
    --text: #f4f4f4;
    --text-secondary: #b8c1ec;
    --terminal-bg: #1d1f21;
    --terminal-header: #363636;
    --terminal-text: #f0f0f0;
    --terminal-green: #64ffda;
}

/* ======= Reset & Base ======= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======= Header & Navigation ======= */
header {
    background-color: var(--darker-bg);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: 'Roboto Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text);
    font-size: 2rem;
}

/* ======= Hero Section ======= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, #ffe29f 0%, #ffa99f 100%);
    color: #232946;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #232946;
}

.hero h1 span {
    color: var(--accent);
    color: #232946;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #393e46;
    max-width: 600px;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: #232946;
    padding: 14px 36px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    transition: all 0.3s;
    border: 2px solid var(--accent);
}

.btn:hover {
    background-color: transparent;
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 180, 0, 0.15);
}

/* ======= Section Styling ======= */
section {
    padding: 100px 0;
}

/* Brighter, distinct backgrounds for each section */
.section-projects {
    background: linear-gradient(135deg, #e0e7ff 0%, #b8c1ec 100%);
    color: #232946;
}
.section-experience {
    background: linear-gradient(135deg, #ffe29f 0%, #ffa99f 100%);
    color: #232946;
}
.section-certificates {
    background: linear-gradient(135deg, #c1ffd7 0%, #3ddc97 100%);
    color: #232946;
}
.section-contact {
    background: linear-gradient(135deg, #f7d6e0 0%, #b8c1ec 100%);
    color: #232946;
}

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

.section-title h2 {
    font-size: 2.7rem;
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
    color: #232946;
    color: #ffb400;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    color: #ffb400;
}

/* ======= Projects Section ======= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: #fffbe7;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(35, 41, 70, 0.12);
    transition: transform 0.3s;
    color: #232946;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-img {
    height: 200px;
    background-color: #ffe29f;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8c1ec;
    font-size: 3rem;
}

.project-info {
    padding: 24px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent);
}

.project-info p {
    color: #393e46;
    margin-bottom: 15px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    background-color: var(--accent2);
    color: #232946;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ======= Experience Section ======= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--accent2);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--accent2);
    border-radius: 50%;
    top: 30px;
    right: -10px;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    background-color: #fffbe7;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(35, 41, 70, 0.10);
    color: #232946;
}

.timeline-content h3 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.timeline-content h4 {
    color: #393e46;
    margin-bottom: 15px;
    font-weight: 500;
}

.timeline-content p {
    color: #393e46;
}

/* ======= Certificates Section ======= */
.certificates-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.certificate-card {
    background-color: #eafff7;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(35, 41, 70, 0.10);
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #232946;
}

.certificate-header {
    background-color: #3ddc97;
    padding: 20px;
    text-align: center;
}

.certificate-header h3 {
    color: #232946;
    font-size: 1.5rem;
}

.certificate-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.certificate-body p {
    margin-bottom: 20px;
    color: #393e46;
}

.certificate-footer {
    padding: 0 20px 20px;
    text-align: center;
}

/* Terminal Contact Section */
.terminal {
    background-color: var(--terminal-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    margin: 0 auto;
}

.terminal-header {
    background-color: var(--terminal-header);
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.btn-red { background-color: #ff5f56; }
.btn-yellow { background-color: #ffbd2e; }
.btn-green { background-color: #27c93f; }

.terminal-title {
    color: var(--text-secondary);
    text-align: center;
    flex-grow: 1;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
}

.terminal-body {
    padding: 30px;
    font-family: 'Roboto Mono', monospace;
    color: var(--terminal-text);
}

.terminal-prompt {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.terminal-prompt span {
    color: var(--terminal-green);
    margin-right: 10px;
}

.terminal-input {
    background: transparent;
    border: none;
    color: var(--terminal-text);
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    width: calc(100% - 120px);
    outline: none;
    caret-color: var(--terminal-green);
}

.terminal-input::placeholder {
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--terminal-green);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--terminal-text);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.95rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.terminal-btn-submit {
    background-color: var(--terminal-green);
    color: var(--terminal-bg);
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.terminal-btn-submit:hover {
    background-color: #52dba3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}

/* ======= Footer ======= */
footer {
    background-color: var(--darker-bg);
    padding: 40px 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #ffe29f;
    border-radius: 50%;
    color: #232946;
    font-size: 1.5rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--accent);
    color: #fffbe7;
    transform: translateY(-5px);
}

.footer-text {
    color: #b8c1ec;
    font-size: 0.95rem;
}

/* ======= Responsive Design ======= */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    .timeline::before {
        left: 30px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        left: 0 !important;
    }
    .timeline-item::after {
        left: 20px !important;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--darker-bg);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s;
    }
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    .nav-links li {
        margin: 15px 0;
    }
    .hero h1 {
        font-size: 2.3rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding-top: 60px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .section-title h2 {
        font-size: 2rem;
    }
    .terminal-body {
        padding: 20px;
    }
}