:root {
    --primary-color: #F8FAFC;
    --accent-color: #0891b2;
    --text-light: #0F172A;
    --text-dim: #475569;
    --card-bg: #FFFFFF;
    --transition: all 0.3s ease;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --nav-border: transparent;
    --mobile-nav-bg: rgba(255, 255, 255, 0.98);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --nav-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --hero-bg: linear-gradient(135deg, rgba(245, 247, 250, 0.9) 0%, rgba(226, 232, 240, 0.9) 100%),
        url('Images/white background.jpg');
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
    transition: var(--transition);
}

.cert-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 12px;
}

.logo-img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.5);
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* default card styling (light mode) */
.project-card,
.timeline-item,
.skill-card,
.cert-badge {
    box-shadow: var(--card-shadow);
    border: 1px solid #e2e8f0;
}

/* dark mode overrides (switches to dark when toggled) */
[data-theme="dark"] {
    --primary-color: #0F172A;
    --accent-color: #22D3EE;
    --text-light: #F8FAFC;
    --text-dim: #94A3B8;
    --card-bg: #1E293B;
    --nav-bg: rgba(15, 23, 42, 0.95);
    --nav-border: rgba(255, 255, 255, 0.1);
    --mobile-nav-bg: rgba(15, 23, 42, 0.98);
    --nav-shadow: none;
    --card-shadow: none;
    --hero-bg: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)), 
                url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=1920&auto=format&fit=crop');
}

/* clean up borders in dark mode */
[data-theme="dark"] .project-card,
[data-theme="dark"] .timeline-item,
[data-theme="dark"] .skill-card,
[data-theme="dark"] .cert-badge {
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
}


html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--primary-color);
    color: var(--text-light);
    line-height: 1.6;
}

a { 
    text-decoration: none; 
    color: inherit; 
}

ul { 
    list-style: none; 
}

/* navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg); 
    border-bottom: 1px solid var(--nav-border);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--nav-shadow);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-light);
}

.theme-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-light);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-left: 1rem;
}

.theme-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--accent-color);
}

[data-theme="light"] .theme-btn {
    border-color: rgba(0,0,0,0.1);
}

[data-theme="light"] .theme-btn:hover {
    background: rgba(0,0,0,0.05);
}

/* hero section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0 1rem;
    transition: background-image 0.5s ease;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--accent-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(34, 211, 238, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    margin-left: 1rem;
}

.btn-outline:hover {
    background: rgba(34, 211, 238, 0.1);
}

/* shared section padding */
section {
    padding: 5rem 10%;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* about section */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-dim);
}

.skills-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.skill-tag {
    background: rgba(34, 211, 238, 0.1);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.skills-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1.5rem;
    justify-items: center;
    padding-top: 1rem;
}

.skill-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(34, 211, 238, 0.1);
}

.skill-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.skill-card p {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    transition: var(--transition);
    display: flex; 
    gap: 1.5rem;
    align-items: flex-start;
}

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-logo-area {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    overflow: hidden;
}

.timeline-logo-area img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.timeline-content {
    flex: 1;
    width: 100%;
}

.timeline-date {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content h3 { 
    margin-bottom: 0.2rem; 
    font-size: 1.2rem; 
}

.timeline-content h4 { 
    color: var(--text-dim); 
    font-size: 0.95rem; 
    margin-bottom: 0.8rem; 
    font-weight: 400; 
}

/* certifications */
.cert-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

.cert-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.cert-badge i { 
    font-size: 2rem; 
}

.cert-details h4 { 
    font-size: 1rem; 
    margin: 0; 
    color: var(--text-light); 
}

.cert-details span { 
    font-size: 0.85rem; 
    color: var(--text-dim); 
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

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

.project-img {
    height: 200px;
    background: #333;
    background-size: cover;
    background-position: center;
}

.project-info { 
    padding: 1.5rem; 
}

.project-info h3 { 
    margin-bottom: 0.5rem; 
}

.project-info p { 
    color: var(--text-dim); 
    font-size: 0.9rem; 
    margin-bottom: 1rem; 
}

/* typing animation */
.typing-wrapper {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto 2rem;
    min-height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.typed-text {
    font-weight: 500;
    color: var(--accent-color);
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--text-light);
    animation: blink 1s infinite;
    margin-left: 5px;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* vertical timeline structure */
.timeline-block {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-block::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 170px;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.timeline-row {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-time {
    width: 150px;
    text-align: right;
    padding-right: 2rem;
    padding-top: 1rem;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 0 4px var(--primary-color);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3px;
    position: absolute;
    left: 151px;
    top: 10px;
}

.timeline-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.timeline-row .timeline-content {
    margin-left: 3rem;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
}

.timeline-row .timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    border-width: 10px 10px 10px 0;
    border-style: solid;
    border-color: transparent var(--card-bg) transparent transparent;
}

.timeline-row:hover .timeline-content {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(34, 211, 238, 0.1);
}

.timeline-row .timeline-content h3 { 
    margin-bottom: 0.5rem; 
    color: var(--text-light); 
}

.timeline-row .timeline-content h4 { 
    color: var(--text-dim); 
    font-size: 0.95rem; 
    margin-bottom: 0.5rem; 
}

.timeline-row .timeline-content p { 
    font-size: 0.9rem; 
    color: var(--text-dim); 
}

.mobile-date { 
    display: none; 
}

/* contact section */
.minimal-contact {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 6rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.minimal-contact .content-wrapper { 
    max-width: 95%;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color); 
    margin-bottom: 1rem;
    display: block;
}

.minimal-contact h2 { 
    font-size: 3.5rem; 
    font-weight: 700; 
    margin-bottom: 1rem; 
}

.minimal-contact .subtitle { 
    font-size: 1.1rem; 
    color: var(--text-dim); 
    margin-bottom: 3rem; 
}

.contact-container {
    display: flex;
    justify-content: space-between; 
    align-items: flex-start;
    gap: 5rem;
    margin-top: 4rem;
    width: 100%;
}

.contact-info {
    flex: 1; 
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-left: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(34, 211, 238, 0.1); 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-item:hover .icon-box {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
}

.info-text h3 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.info-text span, 
.info-text a {
    color: var(--text-dim);
    font-size: 1.1rem;
    display: block;
}

.info-text a:hover {
    color: var(--accent-color);
}

.social-grid-left {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-left: 10px;
}

.social-grid-left a {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    transition: var(--transition);
}

.social-grid-left a:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* form styles */
.contact-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.contact-container .contact-form {
    flex: 1; 
    max-width: 600px; 
    width: 100%; 
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-left: auto; 
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    background: var(--card-bg);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.2rem;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.1);
}

.submit-btn {
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(34, 211, 238, 0.3);
}

.form-message {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 1rem;
    height: 1.5rem;
}

/* footer */
.minimal-footer {
    background-color: var(--primary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    padding: 2rem 5%;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-socials { 
    display: flex; 
    gap: 1.5rem; 
}

.footer-socials a {
    color: var(--text-dim);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-socials a:hover { 
    color: var(--accent-color); 
}

.modal {
    display: none;
    position: fixed; 
    z-index: 2000;
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
    border: 2px solid var(--accent-color);
    animation: zoomIn 0.3s ease;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--text-light);
    padding: 10px 0;
    height: 150px;
    font-size: 1.2rem;
    font-weight: 500;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; } 
    to { transform: scale(1); opacity: 1; }
}

/* scroll animation */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hidden.show {
    opacity: 1;
    transform: translateY(0);
}

/* mobile responsive things */
@media (max-width: 768px) {
    .hamburger { display: block; }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--mobile-nav-bg); 
        border-bottom: 1px solid var(--nav-border);
        padding: 1rem 0;
        display: none;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    
    nav.active { display: flex; }
    
    nav ul {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        text-align: center;
    }
    
    nav a {
        font-size: 1.2rem;
        display: block;
        width: 100%;
        padding: 0.5rem 0;
    }

    .hero-content h1 { font-size: 2.5rem; }
    
    .typing-wrapper {
        font-size: 1rem;
        min-height: 4rem;
        flex-wrap: wrap;
    }
    
    .about { grid-template-columns: 1fr; }
    
    .minimal-contact h2 { font-size: 2.5rem; }
    
    .minimal-contact .content-wrapper {
        max-width: 100%;
        padding: 0 1rem;
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
        gap: 4rem;
    }

    .contact-info {
        text-align: center;
        align-items: center;
        width: 100%;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .social-grid-left {
        padding-left: 0;
        justify-content: center;
    }

    .contact-container .contact-form {
        width: 100%;
        padding: 2rem;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-socials {
        flex-wrap: wrap;
        justify-content: center;
    }

    .timeline-block::before { left: 20px; }
    .timeline-time { display: none; }
    
    .timeline-row { 
        flex-direction: column; 
        padding-left: 45px; 
    }
    
    .timeline-icon {
        left: 0;
        width: 40px; 
        height: 40px;
    }
    
    .timeline-row .timeline-content {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .timeline-row .timeline-content::before { display: none; }
    
    .mobile-date {
        display: block !important;
        color: var(--accent-color);
        font-weight: 600;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }
    
    .modal-content {
        width: 95%; 
        margin-top: 20%;
    }
    
    .close-modal {
        top: 15px;
        right: 20px;
        font-size: 50px;
        background: rgba(0,0,0,0.5);
        width: 50px;
        height: 50px;
        line-height: 50px;
        text-align: center;
        border-radius: 50%;
    }
    
    #caption {
        font-size: 1rem;
        width: 95%;
    }
}


.icon-box {
    width: 60px;
    height: 60px;
    
    /* changed to cyan for visibility */
    background: rgba(34, 211, 238, 0.15); 
    
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    
    color: var(--accent-color);
    
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition);
    
    border: 1px solid rgba(34, 211, 238, 0.3);
}

.contact-item:hover .icon-box {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
}

[data-theme="light"] .icon-box {
    background: rgba(8, 145, 178, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(8, 145, 178, 0.2);
}

[data-theme="light"] .contact-item:hover .icon-box {
    background: var(--accent-color);
    color: #ffffff;
}
@media (min-width: 600px) {
    .cert-wrapper { flex-direction: row; }
    .cert-badge { flex: 1; }
}

@media (max-width: 500px) {
    .timeline-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .timeline-logo-area { margin-bottom: 1rem; }
}

@media (max-width: 400px) {
    .skills-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}