@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #0f172a;
    --accent-color: #06b6d4;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-accent: #eff6ff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --navbar-height: 70px;
}

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

body {
    font-family: "Poppins", sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-primary);
    overflow-x: hidden;
    padding-top: var(--navbar-height);
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.nav-logo:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

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

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary-color);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.4rem;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--navbar-height);
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link {
        display: block;
        padding: 0.5rem 2rem;
    }
    
    .nav-cta {
        display: inline-block;
        margin-top: 1rem;
    }
}

/* Hero Section */
.sp {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #e0f2fe 0%, #ddd6fe 50%, #fce7f3 100%);
    padding: 2rem;
}

.container {
    max-width: 900px;
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
}

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

.profile {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.profile img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    transition: var(--transition);
}

.profile img:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.heading {
  
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--secondary-color);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.paragraph {
    font-size: clamp(1rem, 2vw, 1.125rem);
    max-width: 650px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-primary);
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
}

.paragraph strong {
    font-weight: 600;
    color: var(--secondary-color);
}

.highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

a {
    text-decoration: none;
}

.button {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1rem;
}

.btn,
.btn1 {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn {
    background: var(--bg-primary);
    color: var(--primary-color);
    border: 2px solid transparent;
    box-shadow: var(--shadow-lg);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn::after {
    content: " →";
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.btn:hover::after {
    transform: translateX(4px);
}

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

.btn1:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn1::after {
    content: " →";
    margin-left: 0.5rem;
}

/* About Section */
.about {
    background: var(--bg-secondary);
    padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
}

.more {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(2rem, 5vw, 4rem);
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.head2 {
   
    color: var(--primary-color);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.head2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.paragraph2 {
    font-size: clamp(0.95rem, 2vw, 1.0625rem);
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.8;
    font-weight: 400;
}

button {
    padding: 1rem 2rem;
    border: 2px solid var(--primary-color);
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.3s;
    z-index: -1;
}

button:hover::before {
    left: 0;
}

button:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

button::after {
    content: " →";
    margin-left: 0.5rem;
}
   .btn2:hover{
    color: #2563eb;

   }
.about-image {
    flex: 1;
    text-align: center;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Skills Section */
.section1 {
    background: var(--bg-primary);
    padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
    text-align: center;
}

.skill {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    background: var(--bg-primary);
    padding: 2rem 1rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: var(--transition);
}

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

.head {
  
    color: var(--primary-color);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.head::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Portfolio Section */
.project {
    padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
    background: var(--bg-accent);
    text-align: center;
}

.projectcard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.card2 {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.card2:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card2 img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #f8fafc;
    transition: var(--transition);
    padding: 1rem;
}

.card2:hover img {
    transform: scale(1.05);
}

.card2 h3 {
    margin-top: 1.5rem;
    padding: 0 1.5rem;
    color: var(--primary-color);
    font-size: 1.375rem;
    font-weight: 700;
    text-align: left;
}

.ptext {
    margin-top: 0.75rem;
    padding: 0 1.5rem 1.5rem;
    text-align: left;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
    flex-grow: 1;
}

/* Contact Section */
.project1 {
    background: var(--bg-primary);
    padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
}

.paragp {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
    padding: 0 1rem;
}

/* Form Section */
.background {
    background: linear-gradient(135deg, #e0f2fe 0%, #ddd6fe 50%, #fce7f3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 100vh;
}

.formA {
    background: var(--bg-primary);
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contactme {
    text-align: center;
    margin-bottom: 1.5rem;
}

.formA input,
.formA textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin: 0.5rem 0;
    border: 2px solid var(--border-color);
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    color: var(--text-primary);
}

.formA input::placeholder,
.formA textarea::placeholder {
    color: var(--text-secondary);
}

.formA input:focus,
.formA textarea:focus {
    border-color: var(--primary-color);
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.H1 {
    font-family: "Playfair Display", serif;
    color: var(--secondary-color);
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.para1 {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.submit {
    color: #ffffff;
    background: var(--primary-color);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    margin-top: 1rem;
    transition: var(--transition);
    letter-spacing: 0.025em;
    width: 100%;
}

.submit:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    padding: 2rem 1rem;
    text-align: center;
    background: var(--secondary-color);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .more {
        flex-direction: column;
    }
    
    .about-text,
    .about-image {
        min-width: 100%;
    }
    
    .skill {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1.5rem;
    }
    
    .projectcard {
        grid-template-columns: 1fr;
    }
    
    .button {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn,
    .btn1 {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .profile img {
        width: 120px;
        height: 120px;
    }
    
    .skill {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card {
        padding: 1.5rem 0.75rem;
    }
    
    .card img {
        width: 60px;
        height: 60px;
    }
}