@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html{
    /* base font scaling for better responsiveness */
    font-size: 62.5%;
}

:root{
    --header-height: 72px;
}

body{
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
    padding-top: var(--header-height);
}

header{
    /* fixed header: remove extra margin so padding-top works predictably */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    padding: 0 6%;
    background-color: transparent;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1400;
}

.logo{
    font-size: clamp(2.2rem, 4vw, 3rem);
    color: #2e003e;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover{
    transform: scale(1.1);
}

nav a{
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    color: white;
    margin-left: 2.6rem;
    font-weight: 500;
    transition: 0.22s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active{
    color: #2e003e;
    border-bottom: 3px solid #2e003e;
}

@media(max-width:995px){
    /* slide-in drawer nav for mobile */
    nav{
        position: fixed;
        top: var(--header-height);
        left: 0;
        height: calc(100vh - var(--header-height));
        width: 85%;
        max-width: 360px;
        background-color: #161616;
        transform: translateX(-110%);
        transition: transform 300ms ease;
        padding: 2.5rem 1.5rem;
        border-right: 1px solid rgba(46,0,62,0.35);
        z-index: 1500;
        box-shadow: 6px 0 30px rgba(0,0,0,0.6);
        border-radius: 0 12px 12px 0;
    }

    nav.active{
        transform: translateX(0);
    }

    /* overlay that appears when nav is open */
    .nav-overlay{
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.45);
        display: none;
        z-index: 1400;
    }

    .nav-overlay.show{ display:block }

    nav a{
        display: block;
        font-size: 1.9rem;
        margin: 2.4rem 0;
        padding: 0.2rem 0.4rem;
    }

    nav a:hover,
    nav a.active{
        color: #ffd24d;
        background: rgba(46,0,62,0.12);
        border-radius: 8px;
    }
}

/* avoid hero being covered by mobile header/menu - keep small safe offset */
@media(max-width:995px){
    .home{ padding-top: 1.2rem; }
}

/* header profile icon (mobile) */
.header-profile{ position:relative; display:flex; align-items:center; gap:8px }
.header-profile-toggle{ background:transparent; border:none; color:#fff; font-size:2.2rem; cursor:pointer; display:none }
.menu-toggle{ display:none; background:transparent; border:none; color:#fff; font-size:2rem }

@media (max-width: 995px){
    .menu-toggle{ display:inline-block }
}

@media (max-width: 900px){
    .header-profile-toggle{ display:inline-block }
}
.profile-menu{ position:absolute; right:0; top:calc(100% + 8px); min-width:200px; background:#161616; border:1px solid rgba(46,0,62,0.35); border-radius:10px; box-shadow:0 10px 30px rgba(0,0,0,0.6); padding:8px; display:none; z-index:1200 }
.profile-menu[aria-hidden="false"], .profile-menu.open{ display:block }
.profile-menu{ display:none !important }
.profile-menu .profile-menu-item{ display:block; color:#e8e8e8; padding:12px 14px; text-decoration:none; border-radius:8px }
.profile-menu .profile-menu-item i{ margin-right:10px }
.profile-menu .profile-menu-item:hover{ background:linear-gradient(90deg, rgba(46,0,62,0.9), rgba(40,2,50,0.6)); color:#ffd24d }

/* Responsive contact/profile layout tweaks */
@media (max-width: 900px){
    .contact-grid{ grid-template-columns: 1fr; gap:18px }
    .profile-card{ width:100%; padding:20px }
    .profile-details{ width:100%; padding:20px }
    .avatar-wrap{ width:110px; height:110px; border-width:5px }
    .profile-name{ font-size:1.8rem }
    .profile-links a{ font-size:1.6rem }
    .profile-contacts p{ font-size:1.4rem }
    .profile-details h2{ font-size:2.2rem }
    .detail-row .label{ width:160px }
}

@media (max-width: 480px){
    .header-profile-toggle{ display:inline-block }
    header{ padding:1rem 4%; }
    .home .home-content h1{ font-size:3.2rem }
    .home-content h3{ font-size:2rem }
    .contact-grid{ padding: 0 12px }
    .avatar-wrap{ width:90px; height:90px }
    .profile-name{ font-size:1.6rem }
    .profile-links a{ font-size:1.5rem }
    .modal-content{ width:92% }
}

/* On small screens hide the dropdown menu and use mobile modal instead */
@media (max-width: 900px){
    .profile-menu{ display:none !important }
}

/* profile modal overrides (reusing modal styles) */
#profile-modal .modal-content{ width:clamp(280px,86%,420px); padding:18px }
#profile-modal h3{ color:#ffd24d; font-size:1.8rem; margin-bottom:10px }
#profile-modal .profile-modal-nav{ display:flex; flex-direction:column; gap:10px }
#profile-modal .profile-modal-nav .contact-btn{ padding:10px 12px; font-size:1.4rem }

/* container spacing responsive */
.container-general{ max-width:1200px; margin:0 auto; padding:0 1rem }

section{
    min-height: auto;
    padding: clamp(2.4rem, 6vw, 6rem) 6% ;
}

.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1.6rem, 6vw, 8rem);
    background-color: black;
    flex-wrap: wrap;
}

.home .home-content h1{
    font-size: clamp(2.8rem, 6vw, 6rem);
    font-weight: 700;
    line-height: 1.15;
}

span{
    color: #2e003e;
}

.home-content h3{
    font-size: clamp(1.8rem, 3.8vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p{
    font-size: clamp(1.2rem, 2.6vw, 1.6rem);
}

.home-img{
    border-radius: 50%;
    display:flex;
    justify-content:center;
    align-items:center;
}

.home-img img{
    position: relative;
    width: clamp(120px, 32vw, 360px);
    height: auto;
    border-radius: 50%;
    box-shadow: 0 0 25px solid #2e003e;
    cursor: pointer;
    transition: 0.2s linear;
}

.home-img img:hover{
    font-size: 1.8rem;
    font-weight: 500;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: clamp(36px, 4.2vw, 56px);
    height: clamp(36px, 4.2vw, 56px);
    background-color: transparent;
    border: 0.2rem solid #2e003e;
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    border-radius: 50%;
    margin: 2.2rem 1.2rem 2.2rem 0;
    transition: 0.3s ease;
    color: #2e003e;
}

.social-icons a:hover{
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #2e003e;
    box-shadow: 0  0 25px #2e003e;
}

.btn{
    display: inline-block;
    padding: 0.9rem 2.2rem;
    background-color: black;
    border-radius: 4rem;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    color: #2e003e;
    letter-spacing: 0.18rem;
    font-weight: 600;
    border: 2px solid #2e003e;
    transition: 0.25s ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale3d(1.03);
    background-color: #2e003e;
    color: black;
    box-shadow: 0 0 25px #2e003e;
}

.typing-text{
    font-size: clamp(1.2rem, 3.4vw, 2.2rem);
    font-weight: 600;
    min-width: 200px;
}

.typing-text span{
    position: relative;
}

.typing-text span::before{
    content: "software Developer";
    color: #2e003e;
    animation: words 20s infinite;
}

.typing-text span::after{
    content: "";
    background-color: black;
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid black;
    right: -8;
    animation: cursor 0.6s infinite;
}

@keyframes cursor{
    to{
        border-left: 3px solid #2e003e;
    }
}

@keyframes words{
    0%, 20%{
        content: "Web Developer";
    }
    21%, 40%{
        content: "Developer";
    }
    41%, 60%{
        content: "Web Designer";
    }
    61%, 80%{
        content: "Youtuber";
    }
    81%, 100%{
        content: "Script Writer";
    }
}

@media (max-width: 1000px){
    .home{
        gap: 3.2rem;
    }
}

@media(max-width:995px){
    .home{
        flex-direction: column;
        margin: 3.5rem 2rem;
        align-items: center;
    }

    .home .home-content h3{
        font-size: clamp(1.6rem, 3.6vw, 2.5rem);
    }

    .home-content h1{
        font-size: clamp(2.4rem, 6vw, 5rem);
    }

    .home-img img{
        width: clamp(120px, 70vw, 320px);
        margin-top: 2.6rem;
    }
}

/* Services and Skills sections — modern #2e003e theme */
#services, #skills {
    background-color: black;
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
}

/* Section titles */
#services h2, #skills h2 {
    font-size: 3rem;
    margin-bottom: 40px;
    color: #2e003e; /* changed to requested color */
}

/* Service cards */

#services .service-box {
    background-color: #111012;
    border: 1px solid rgba(46,0,62,0.4);
    border-radius: 10px;
    padding: 28px;
    margin: 24px auto;
    max-width: 800px;
    box-shadow: 0 0 18px rgba(46,0,62,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#services .service-box h3 {
    color: #2e003e;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

#services .service-box p {
    font-size: 1.6rem;
    line-height: 1.8;
}

#services .service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
}

/* Skills list */

#skills ul {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

#skills li {
    background-color: #111012;
    margin: 18px 0;
    padding: 20px;
    border-radius: 8px;
    font-size: 1.6rem;
    box-shadow: 0 0 12px rgba(106, 13, 173, 0.35);
    transition: background-color 0.3s ease;
}

#skills li:hover {
    background-color: #1a0a26;
}

/* Experience section styling */
#experience {
    background-color: black;
    color: #ffffff;
    padding: 80px 20px;
    text-align: left;
    font-family: 'Segoe UI', sans-serif;
}

#experience h2 {
    color: #2e003e;
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: center;
}

#experience p {
    max-width: 1000px;
    margin: 0 auto 20px auto;
    font-size: 1.6rem;
    line-height: 1.8;
    color: #e8e8e8;
}

#experience ul {
    max-width: 1000px;
    margin: 0 auto;
    padding-left: 1.6rem;
}

#experience li {
    font-size: 1.6rem;
    margin: 10px 0;
    color: #f1f1f1;
}

@media (max-width: 700px) {
    #experience p, #experience li {
        font-size: 1.4rem;
    }
    #experience h2 {
        font-size: 2.4rem;
    }
}

/* Contact / Profile styles */
.contact {
    background-color: #0b0710;
    padding: 80px 20px;
}

.contact .container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid{
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
}

.profile-card{
    background: linear-gradient(180deg, rgba(30,6,45,0.9), rgba(10,6,12,0.9));
    border-radius: 16px;
    padding: 28px;
    color: #ffffff;
    box-shadow: 0 6px 30px rgba(0,0,0,0.6);
    border: 1px solid rgba(46,0,62,0.3);
}

.avatar-wrap{
    width: 140px;
    height: 140px;
    margin: 0 auto 16px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid #2e003e;
    box-shadow: 0 0 18px rgba(46,0,62,0.6);
}

.avatar-wrap img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-name{
    text-align: center;
    margin-top: 8px;
    font-size: 2.2rem;
}

.profile-email{ text-align:center; color:#cfcfcf; margin-bottom:10px; }
.status{ text-align:center; color:#bfbfbf; margin-bottom:16px; }
.status-dot{ display:inline-block; width:10px; height:10px; background:#2ee06a; border-radius:50%; margin-right:8px; vertical-align:middle }

.profile-links{ display:flex; flex-direction:column; gap:12px; margin-top:20px }
.profile-links a{ display:block; padding:12px 14px; color:#e8e8e8; border-radius:8px; text-decoration:none; background:transparent }
.profile-links a.active{ background: linear-gradient(90deg, rgba(46,0,62,0.9), rgba(40,2,50,0.6)); color:#ffd24d }
.profile-links a i{ margin-right:10px }

.profile-details{
    background: linear-gradient(180deg,#080712, #0f0b16);
    border-radius: 16px;
    padding: 28px;
    border-top: 6px solid #2e003e;
    color: #fff;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.profile-details h2{ font-size:3rem; color:#ffd24d; margin-bottom:6px; }
.profile-sub{ color:#bdbdbd; margin-bottom:20px }

.details-card{ background:transparent; border-radius:10px; padding-top:10px }
.detail-row{ display:flex; justify-content:space-between; align-items:flex-start; padding:20px 0; border-top:1px solid rgba(255,255,255,0.03) }
.detail-row:first-of-type{ border-top: none }
.detail-row .label{ color:#ffd24d; font-weight:700; letter-spacing:1px; width:200px }
.detail-row .value{ color:#e8e8e8; max-width:760px }

@media (max-width: 900px){
    .contact-grid{ grid-template-columns: 1fr; }
    .profile-card{ order:2 }
    .profile-details{ order:1 }
    .detail-row{ flex-direction:column; align-items:flex-start }
    .detail-row .label{ width:auto; margin-bottom:6px }
}

/* profile contacts placeholders */
.profile-contacts{ margin-top:18px; padding-top:10px; border-top:1px solid rgba(255,255,255,0.03); color:#dcdcdc }
.profile-contacts p{ font-size:1.4rem; margin:8px 0 }
.profile-contacts span{ color:#ffd24d; font-weight:600 }

/* contact buttons */
.contact-btn{
    display: inline-block;
    padding: 6px 10px;
    background: rgba(46,0,62,0.9);
    color: #ffd24d;
    border-radius: 8px;
    text-decoration: none;
    font-weight:600;
}
.contact-btn:hover{ background: linear-gradient(90deg,#2e003e,#4b006f); color:#fff }

/* prominent Contact Us button (optional) */
.contact-us-large{
    display:inline-block;
    margin-top:14px;
    padding:10px 18px;
    background:#2e003e;
    color:#fff;
    border-radius:10px;
    text-decoration:none;
    font-weight:700;
}
.contact-us-large:hover{ opacity:0.95 }

/* Modal styles */
.modal{ position:fixed; inset:0; display:flex; align-items:center; justify-content:center; visibility:hidden; opacity:0; transition:opacity .25s ease, visibility .25s ease; z-index:9999 }
.modal.open{ visibility:visible; opacity:1 }
.modal-overlay{ position:absolute; inset:0; background:rgba(0,0,0,0.6); backdrop-filter: blur(4px) }
.modal-content{ position:relative; width:clamp(320px, 60%, 680px); background:linear-gradient(180deg,#0f0b16,#080712); border-radius:12px; padding:28px; box-shadow:0 10px 50px rgba(0,0,0,0.7); border:1px solid rgba(255,255,255,0.03); z-index:2 }
.modal-close{ position:absolute; right:12px; top:8px; background:transparent; border:none; color:#fff; font-size:2.4rem; line-height:1; cursor:pointer }
.modal-content h3{ margin:0 0 8px 0; font-size:2rem; color:#ffd24d }
.modal-intro{ color:#cfcfcf; margin-bottom:18px }
.modal-contacts{ display:flex; flex-direction:column; gap:12px }
.modal-contacts .contact-btn{ padding:12px 14px; font-size:1.5rem; border-radius:8px; display:inline-flex; align-items:center; gap:12px }
.modal-contacts .contact-btn i{ font-size:1.6rem }

@media (max-width:480px){
    .modal-content{ width:92%; padding:18px }
    .modal-content h3{ font-size:1.6rem }
    .modal-contacts .contact-btn{ font-size:1.25rem }
}

/* Products Section Styles */
.products {
    background: #0b0710;
    padding: 80px 20px;
    color: #ffffff;
}

.products h2 {
    font-size: 3.5rem;
    text-align: center;
    color: #2e003e;
    margin-bottom: 12px;
}

.products-subtitle {
    text-align: center;
    color: #cfcfcf;
    font-size: 1.6rem;
    margin-bottom: 50px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-card {
    position: relative;
    background: linear-gradient(180deg, rgba(30,6,45,0.85), rgba(10,6,12,0.85));
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(46,0,62,0.4);
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(46,0,62,0.7);
    border-color: rgba(46,0,62,0.8);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.product-badge.popular {
    background: linear-gradient(135deg, #ff007f, #ff1493);
    color: #fff;
}

.product-badge.new {
    background: linear-gradient(135deg, #ff007f, #ff1493);
    color: #fff;
}

.product-badge.trending {
    background: linear-gradient(135deg, #ff007f, #ff1493);
    color: #fff;
}

.product-image {
    width: 100%;
    height: 180px;
    border-radius: 14px;
    margin-bottom: 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* Product-specific backgrounds - replace with your actual images */
.product-image.canva {
    background-image: url('canva.jpg');
    background-color: #00c4cc; /* fallback color if image doesn't load */
}

.product-image.cupcat {
    background-image: url('cupcat.jpg');
    background-color: #000;
}

.product-image.chatgpt {
    background-image: url('chatgpt.jpg');
    background-color: #1a1a1a;
}

.product-image.netflix {
    background-image: url('netflix.jpg');
    background-color: #E50914;
}

.product-image.spotify {
    background-image: url('spotify.jpg');
    background-color: #1DB954;
}

.product-image.crunchyroll {
    background-image: url('crunchyroll.jpg');
    background-color: #F47521;
}

.product-card h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-card p {
    font-size: 1.4rem;
    color: #bdbdbd;
    margin-bottom: 18px;
    line-height: 1.5;
}

.product-price {
    font-size: 2.8rem;
    color: #00d9ff;
    font-weight: 700;
    margin-bottom: 18px;
}

.product-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b2fc9, #2e003e);
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46,0,62,0.5);
    position: absolute;
    bottom: 24px;
    right: 24px;
}

.product-btn:hover {
    background: linear-gradient(135deg, #a03dd1, #4b006f);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(46,0,62,0.8);
}

.product-btn i {
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .products h2 {
        font-size: 2.8rem;
    }
    
    .products-subtitle {
        font-size: 1.4rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .product-card h3 {
        font-size: 1.8rem;
    }
    
    .product-price {
        font-size: 2.4rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    
    .product-card {
        padding: 20px;
    }
}


