/* Global Styles */
:root {
    --black: #000;
    --white: #fff;
    --gray: #222;
    --light-gray: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--light-gray);
}

a {
    text-decoration: none;
    color: var(--black);
    transition: 0.2s;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    color: var(--black);
}

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

section {
    padding: 80px 0;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    color: var(--black);
}

h2::after {
    display: none;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn:hover {
    background: #222;
    color: var(--white);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

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

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

.nav-links {
    display: flex;
}

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

.nav-links a {
    font-weight: 600;
    position: relative;
    color: var(--black);
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
/* --- HERO SECTION IMPROVEMENTS --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 80px;
    background-color: var(--white);
    gap: 40px;
    flex-wrap: wrap;
    animation: fadeInHero 1.2s ease;
}

@keyframes fadeInHero {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    text-align: center;
    animation: fadeInHero 1.2s 0.2s backwards;
}

/* HERO H1 CUSTOM STYLES */
.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.15;
    text-align: left;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}
.hero-content h1 b {
    font-weight: 900;
    color: #111;
}
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
        text-align: left;
    }
}
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.3rem;
    }
}

.hero-content h2 {
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    margin-bottom: 30px;
    color: var(--gray);
    max-width: 600px;
    text-align: center;
}

.hero-image {
    flex: 1 1 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 320px;
    min-height: 320px;
    animation: fadeInHero 1.2s 0.4s backwards;
}

.image-placeholder {
    width: 350px;
    height: 350px;
    border-radius: 20px;
    background: var(--white);
    border: 2px solid var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s;
}
.image-placeholder:hover {
    box-shadow: 0 8px 32px rgba(33,150,243,0.12);
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    color: var(--black);
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--gray);
}

.about-img {
    border: 2px solid var(--black);
    border-radius: 12px;
    background: var(--white);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 260px;
    min-height: 260px;
}

.about-img svg {
    width: 220px;
    height: 220px;
    filter: grayscale(100%);
}

/* Skills Section */
#skills {
    
    
    padding: 2.5rem 2rem;
    margin-bottom: 2.5rem;
    background: #fff;
}
#skills h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
}
.skill-card {
    background: #fff;
    border: 2px solid #000;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0.5rem 1rem 0.5rem;
    font-weight: 600;
    color: #000;
    font-size: 1.1rem;
    transition: background 0.2s, color 0.2s, border 0.2s;
    cursor: pointer;
    min-height: 140px;
}
.skill-card i, .skill-card svg {
    margin-bottom: 1rem;
    font-size: 2.2rem;
    color: #000;
    transition: color 0.2s;
}
.skill-card.active, .skill-card:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}
.skill-card.active i, .skill-card.active svg,
.skill-card:hover i, .skill-card:hover svg {
    color: #fff;
}



/* Projects Section */
.project-intro {
    text-align: center;
    margin-bottom: 40px;
}

.project-intro h3 {
    font-size: 1.5rem;
    color: var(--gray);
}

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

.project-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    border: 2px solid var(--black);
    transition: 0.2s;
    position: relative;
    color: var(--black);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.project-number {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: var(--black);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.project-card h3 {
    margin-bottom: 15px;
    color: var(--black);
}

.project-card p {
    color: var(--gray);
}

/* Testimonials Section */
.testimonial-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    border: 2px solid var(--black);
}

.testimonial-content p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--gray);
}

.author .name {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--black);
}

.author .title {
    color: var(--gray);
}

/* Contact Section */
.contact-container {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--black);
}

.contact-info p {
    margin-bottom: 20px;
    color: var(--gray);
}

.contact-info .email, 
.contact-info .phone {
    font-weight: 600;
    color: var(--black);
}

.contact-form {
    flex: 1;
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    border: 2px solid var(--black);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #222;
    border-radius: 5px;
    font-family: inherit;
    transition: 0.2s;
    background: var(--white);
    color: var(--black);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--black);
    box-shadow: 0 0 0 2px #0002;
}

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

/* Footer */
footer {
    background-color: var(--black);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    display: inline-block;
    margin: 0 10px;
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    border: 2px solid var(--black);
    transition: 0.2s;
}

.social-links a:hover {
    background-color: var(--black);
    color: var(--white);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        padding-top: 120px;
        gap: 20px;
    }
    .hero-content, .hero-image {
        padding: 0;
        min-width: unset;
    }
    .image-placeholder {
        width: 260px;
        height: 260px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: 0.2s;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
    }


}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .image-placeholder {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 900px) {
    #skills {
        padding: 1.5rem 0.7rem;
    }
    .skills-grid {
        gap: 1rem;
    }
    .skill-card {
        padding: 1.2rem 0.2rem 0.7rem 0.2rem;
        font-size: 1rem;
    }
}
@media (max-width: 600px) {
    #skills {
        padding: 1rem 0.2rem;
    }
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }
    .skill-card {
        padding: 0.7rem 0.1rem 0.5rem 0.1rem;
        font-size: 0.95rem;
    }
}

.hero-image spline-viewer {
    width: 700px;   /* Set your desired width */
    height: 1080px;  /* Set your desired height */
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
}

.bw-logo {
    filter: grayscale(100%) brightness(0.5);
}

.automation-btn {
    padding: 10px 28px;
    border: 2px solid #111;
    border-radius: 8px;
    background: #000000;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
    margin-top: 10px;
}
.automation-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #111;
}

.contact-card {
    background: #fff;
    border: 2px solid #111;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    padding: 2.5rem 2rem;
    max-width: 350px;
    margin: 0 auto 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.contact-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    color: #111;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.1rem;
    color: #111;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-link:hover {
    color: #2196f3;
}

.contact-icon {
    width: 28px;
    height: 28px;
    filter: grayscale(100%);
}

.project-link-btn {
    margin-top: 1rem;
    padding: 8px 22px;
    border: 2px solid #111;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
    display: inline-block;
}
.project-link-btn:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}