:root {
    --primary-color: #736cf6; 
    --secondary-color: #f50057; 
    --dark-bg: #1a1a2e;
    --light-bg: #f4f6f8;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 80px; 
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

header {
    background: #a8a2fd;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;  
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav {
    display: flex;
    gap: 25px;
}

header nav a {
    font-weight: 500;
    transition: color 0.3s;
    color: white;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
}

header nav a:hover {
    color: var(--primary-color);
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: orange;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

header nav ul {
    display: flex;
    align-items: center;
}

header nav ul li {
    margin-left: 30px;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-bg);
}

.logo span {
    color: var(--primary-color);
}

.nav-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    transition: background 0.3s;
}

.nav-btn:hover {
    background: #6a62d8;
    color: var(--white);
}

.hero {
    padding: 80px 40px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero h2 {
    font-size: 24px;
    font-weight: normal;
    color: #aaa;
}

.hero p {
    max-width: 600px;
    margin: 20px auto;
    font-size: 18px;
}

.accent {
    color: orange;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark-bg);
}

.section-padding {
    padding: 100px 0; 
}

.bg-light {
    background: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-light);
}

.page-header-section {
    background: var(--dark-bg);
    color: var(--white);
    padding: 100px 0 50px 0;
    text-align: center;
}

.page-header-section h1 {
    font-size: 3rem;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.section-tag {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.img-box {
    width: 100%;
    height: auto;
    background: #ddd;
    border-radius: 50px;
    position: relative;
    box-shadow: 20px 20px 0px var(--primary-color);
    overflow: hidden;
}

.img-box-hmtl {
    width: 100%;
    max-width: 400px;
    overflow: hidden; 
    border-radius: 20px;
}

.img-box-hmtl img,
.about-image-html img,
.about-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); 
    transition: transform 0.3s ease;
}

.about-image-html img:hover,
.about-image img:hover {
    transform: scale(1.02);
}

.skills-container h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tags span {
    background: #eef0f4;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    transition: 0.3s;
}

.skill-tags span:hover {
    background: var(--primary-color);
    color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card h3 {
    margin-bottom: 15px;
}

.projects {
    padding: 80px 40px;
    background: #f9f9f9;
}

.projects h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: auto;
}

.card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden; 
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0; 
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: top;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.color-1 { background: #ff9a9e; }
.color-2 { background: #a18cd1; }
.color-3 { background: #84fab0; }

.card-content {
    padding: 25px;
}

.card-content h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.card-content a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.project-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    margin-bottom: 10px;
}

.project-card p {
    font-size: 15px;
    color: #555;
}

.tech {
    display: inline-block;
    margin-top: 15px;
    font-size: 14px;
    color: orange;
    font-weight: bold;
}

.bg-dark {
    background: var(--dark-bg);
    color: var(--white);
    text-align: center;
}

.contact-container {
    text-align: center;
    color: var(--text-color);
}

.contact-box {
    max-width: 600px;
    margin: 0 auto;
}

.contact-container h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-container p, .contact-subtext {
    color: #ccc;
    margin-bottom: 40px;
}

.contact-card {
    background: #6a62d8;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

footer {
    background: #111;
    color: #777;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    margin-top: auto;
}
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 100;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-color);
}


.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
}

@media (max-width: 768px) {
    .nav-toggle-label {
        display: flex; 
        align-items: center;
        cursor: pointer;
    }

    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background: var(--dark-bg);
        height: 3px;
        width: 25px;
        border-radius: 2px;
        position: relative;
    }

    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        content: '';
        position: absolute;
    }

    .nav-toggle-label span::before { bottom: 8px; }
    .nav-toggle-label span::after { top: 8px; }

    header nav {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #6a62d8;
        border-bottom: 2px solid var(--primary-color);
    }

    header nav ul {
        flex-direction: column;
        padding: 20px;
    }

    header nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    .nav-toggle:checked ~ nav {
        display: block;
    }
}



.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white); 
}

