@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette - Dark Premium Theme */
    --primary: #ff8fa3;         /* Soft Strawberry Pink */
    --primary-hover: #ff758f;   /* Deeper Pink */
    --secondary: #e6a15c;       /* Warm Honey Gold / Caramel */
    --accent: #81b29a;          /* Sweet Mint Accent */
    --dark: #fef6ee;            /* High contrast warm cream white for text */
    --text-muted: #bdafae;      /* Soft cocoa milk grey for secondary text */
    --light-bg: #1c1412;        /* Luxurious Deep Dark Chocolate */
    --card-bg: #281e1b;         /* Lighter warm cocoa-chocolate for cards */
    --glass-bg: rgba(28, 30, 27, 0.85); /* Dark Glassmorphism */
    --border-color: #3d2c28;    /* Dark warm cocoa border */
    
    /* Fonts */
    --font-base: 'Outfit', sans-serif;
    --font-heading: 'Quicksand', sans-serif;
    
    /* Box Shadows & Radius */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 30px;
    
    /* Animation Speeds */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bouncy: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
    font-family: var(--font-base);
    background-color: var(--light-bg);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--light-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    border: 3px solid var(--light-bg);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Floating Glassmorphic Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.logo {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

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

.nav-links a {
    font-size: 16px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--dark);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background-color: rgba(255, 143, 163, 0.08);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 60%;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
    padding: 80px 8% 60px 8%;
    min-height: calc(85vh - 70px);
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 56px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: var(--primary);
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transform: translateY(0);
    transition: var(--transition-normal);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 143, 163, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 143, 163, 0.05);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image img {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    width: 100%;
    max-width: 450px;
    height: 450px;
    object-fit: cover;
    border: 8px solid var(--card-bg);
    box-shadow: var(--shadow-lg);
    animation: blobMorph 8s ease-in-out infinite alternate;
}

@keyframes blobMorph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 50% 60% 50% 50% / 40% 60% 50% 60%;
    }
    100% {
        border-radius: 40% 60% 70% 30% / 50% 40% 60% 50%;
    }
}

/* Products Section */
.products {
    padding: 80px 8%;
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 15px;
    position: relative;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 50px auto;
    font-size: 16px;
}

.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.card {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-bouncy);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-bouncy);
}

.card:hover img {
    transform: scale(1.08);
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.card-content p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-content .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.card-content .price {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
}

.card-content .btn {
    padding: 8px 20px;
    font-size: 14px;
    border-radius: var(--radius-sm);
}

/* About Preview & Page Layout */
.about-preview {
    padding: 90px 8%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 40px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-text p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--card-bg);
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

/* Contact Page Section */
.contact-section {
    padding: 80px 8%;
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font-base);
    color: var(--dark);
    background-color: var(--light-bg);
    transition: var(--transition-normal);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #241917;
    box-shadow: 0 0 12px rgba(255, 143, 163, 0.15);
}

.contact-form button[type="submit"] {
    width: 100%;
    padding: 14px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.contact-form button[type="submit"]:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(255, 143, 163, 0.25);
}

/* Footer Section */
.footer {
    background-color: #110d0c;
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 40px 8%;
    margin-top: 80px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.footer p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 10px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    font-size: 16px;
    transition: var(--transition-fast);
    color: var(--dark);
}

.social-icon svg,
.social-icon img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    transition: var(--transition-fast);
}

.social-icon:hover {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Responsive Layouts */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
        gap: 30px;
        min-height: auto;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-text h1 {
        font-size: 42px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image img {
        max-width: 320px;
        height: 320px;
    }
    
    .about-preview {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px 4%;
    }
    
    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links a {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .products {
        padding: 60px 4%;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .contact-section {
        padding: 40px 4%;
    }
    
    .contact-form {
        padding: 25px;
    }

}
    .qualification-box{
        width:100%;
    }

    .qualification-section {
        margin-bottom: 10px;
    }

    .section-heading{
        margin-bottom:20px;
        color: var(--dark);
        font-size:26px;
        font-weight:700;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .cards-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 18px;
    }

    .info-card{
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-left: 4px solid var(--primary);
        padding: 22px 24px;
        margin-bottom: 0;
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-sm);
        transition: var(--transition-normal);
    }

    .info-card:hover{
        transform: translateY(-6px);
        box-shadow: var(--shadow-md);
        border-left-color: var(--secondary);
    }

    .info-card.empty-card {
        border-left: 4px dashed var(--border-color);
        text-align: center;
        color: var(--text-muted);
        box-shadow: none;
    }

    .info-card.empty-card:hover {
        transform: none;
        box-shadow: none;
    }

    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        flex-wrap: wrap;
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border-color);
    }

    .info-card h3{
        margin:0;
        font-size:19px;
        color: var(--dark);
        line-height: 1.3;
    }

    .badge {
        flex-shrink: 0;
        display: inline-block;
        background: rgba(255, 143, 163, 0.12);
        color: var(--primary);
        font-family: var(--font-base);
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.3px;
        padding: 5px 14px;
        border-radius: 30px;
        white-space: nowrap;
    }

    .badge.certificate {
        background: rgba(230, 161, 92, 0.15);
        color: var(--secondary);
    }

    .card-body p{
        margin: 8px 0;
        color: var(--text-muted);
        font-size: 14.5px;
        line-height:1.7;
    }

    .card-body p:first-child {
        margin-top: 0;
    }

    .card-body p strong {
        color: var(--dark);
        font-weight: 600;
    }

    .card-body .description {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px dashed var(--border-color);
        font-style: italic;
    }

    .certificate-image {
        margin-top: 14px;
        width: 100%;
        max-height: 180px;
        object-fit: cover;
        border-radius: var(--radius-sm);
        border: 1px solid var(--border-color);
    }

    .certificate-btn{
        display:inline-block;
        margin-top:14px;
        padding:9px 20px;
        background: var(--primary);
        color:#fff;
        font-size: 14px;
        font-weight: 600;
        border-radius: var(--radius-sm);
        text-decoration:none;
        transition: var(--transition-normal);
    }

    .certificate-btn:hover{
        background: var(--primary-hover);
        transform: translateY(-2px);
    }

/* ==========================================================================
   MY TECHNICAL SKILLS SECTION (Fix for stretched width & 2 columns layout)
   ========================================================================== */

/* Main section jahan h2 title hai */
#featured-products {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Container jo black box ki width ko screen par bahar bhaagne se rokega */
#featured-products .product-container {
    display: block; /* Purana grid system cancel */
    width: 100%;
    max-width: 1100px; /* Isse div bohot bada nahi dikhega */
    margin: 0 auto;
    padding: 0 15px;
}

/* Inner box setup */
.skills-box {
    background-color: #0a0a0a; /* Pure Dark background */
    padding: 30px;
    border-radius: 12px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    box-sizing: border-box;
}

/* 1 Row mein 2 cards lane ke liye flexbox setup */
.skills-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 25px 40px; /* Row gap aur Column gap */
    width: 100%;
}

/* Har skill card ki width control */
.skill-card {
    flex: 1 1 calc(50% - 20px); 
    max-width: calc(50% - 20px); /* Agla skill aane par ye automatic barabar aayenge aur stretch nahi honge */
    box-sizing: border-box;
}

/* Agar database mein sirf 1 hi skill ho, tab bhi wo half width par hi ruke */
@media (min-width: 769px) {
    .skill-card:only-child {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

/* Responsive design: Mobile screens par 1 row mein 1 card */
@media (max-width: 768px) {
    .skill-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Header style for name and percentage placement */
.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.skill-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.skill-percentage {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

/* Progress Bar Styling */
.progress {
    background-color: #222222; /* Dark track bar */
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
    width: 100%;
}

.progress-bar {
    background-color: #ffb732; /* Yellow/Orange accent color like image_0b1777.png */
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* Italic description text styling */
.skill-desc {
    font-size: 14px;
    font-style: italic;
    color: #888888; /* Dimmed text color */
    margin: 4px 0 0 0;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

.services-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service-card {
    padding: 35px 30px;
    text-align: center;
    align-items: center;
}

.service-card:hover {
    border-color: var(--primary);
}

.service-icon {
    font-size: 42px;
    margin-bottom: 18px;
    line-height: 1;
}

.service-card .card-content {
    padding: 0;
    flex-grow: 0;
    align-items: center;
}

.service-card .card-content h3 {
    margin-bottom: 12px;
}

.service-card .card-content p {
    margin-bottom: 0;
    text-align: center;
}

@media (max-width: 768px) {
    .service-card {
        padding: 28px 22px;
    }
}