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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.227), transparent 35%),
        radial-gradient(circle at bottom right, rgb(46, 47, 46), transparent 80%),
        #020202;
    color: rgb(255, 253, 253);
    overflow-x: hidden;
}

section {
    min-height: 100vh;
    padding: 120px 8% 80px;
}

img {
    width: 100%;
    display: block;
    border-radius: 20px;
    transition: 0.4s;
}

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

h1 {
    font-size: 3.8rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

p {
    color: #d1d5db;
    line-height: 1.8;
}

/*    COMMON CLASSES */

.section-title {
        margin-top:30px;
    text-align: center;
    margin-bottom: 50px;
}

.glass {
    background: rgba(255, 255, 255, 0.664);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 253, 253, 0.1);
    border-radius: 20px;
}

/*  NAVBAR  */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
     height: 70px; 
    padding: 18px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #151515;
    z-index: 1000;
    flex-wrap: wrap;
}

.logo {
    font-size: 2rem;
    font-weight: 600;
}

.gradient {
    color: #d4dcd9;
}

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

#nav-links li a {
    color: rgb(249, 246, 246);
    text-decoration: none;
    transition: 0.3s;
}

#nav-links li a:hover {
    color: #fbf8f8;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

#theme-toggle {
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

#menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* =====================================
   HOME / HERO
===================================== */

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    min-height: 100vh;
    padding-top: 80px;
}

.home-text {
    flex: 1.3;
}

.home-text h1 {
    font-size: 75px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 25px;
}

.home-text h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #fff;
}

.home-text p {
    font-size: 18px;
    line-height: 1.8;
    max-width: 700px;
}

.hire-btn {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    background: #c3dfd5;
    padding: 14px 35px;
    border-radius: 30px;
    transition: 0.3s;
    font-weight: 600;
}

.hire-btn:hover {
    background: rgb(154, 214, 214);
    color: #000;
}

.hero-image {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 360px;
    height: 360px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #595c5b;
    box-shadow:
        0 0 5px #5f6261,
        0 0 25px #959d9b,
        0 0 50px #646565,
        0 0 100px rgba(246, 246, 245, 0.8);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        box-shadow:
            0 0 10px #848988,
            0 0 25px #979d9b,
            0 0 50px #b4bcb9;
    }
    100% {
        box-shadow:
            0 0 20px #808483,
            0 0 50px #e2eeeb,
            0 0 100px #999d9c,
            0 0 150px #5c5e5e;
    }
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(108, 108, 108, 0.364);
    border: 1px solid rgba(187, 194, 191, 0.478);
    color: #aeaeae;
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    box-shadow: 0 0 15px #959998;
    transform: translateY(-4px);
}

/* =====================================
   ABOUT
===================================== */

.about {
    padding: 60px 8%;
    background: rgba(4, 79, 122, 0);
}

.about-container {
    max-width: 1000px;
    margin: auto;
    text-align: center;
}

.about-container h1 {
    font-size: 3.5rem;
    margin-bottom: 40px;
}

.about-text {
    color: #d1d5db;
    font-size: 1.1rem;
    line-height: 1.9;
}

.about-text p {
    margin-bottom: 30px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 70px;
}

.about-content p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.9;
    color: #d1d5db;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.about-card {
    background: rgba(58, 44, 152, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 35px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: 0.4s;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 20px rgba(206, 223, 249, 0.3);
}

.about-card h2 {
    color: #e9ebee;
    margin-bottom: 10px;
    text-align: center;
}

.about-card p {
    color: #f3f4f5;
    text-align: center;
}

/* =====================================
   EDUCATION & SKILLS
===================================== */

.education-skills {
    width: 100%;
    padding: 60px 8%;
    max-width: 1300px;
    margin: 0 auto;
}

.education-section {
    width: 100%;
    margin-bottom: 100px;
}

.skills-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.section-description {
    text-align: center;
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* =====================================
   TIMELINE
===================================== */

.timeline {
    position: relative;
    border-left: 3px solid #cccece;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
}

.timeline-dot {
    position: absolute;
    left: -40px;
    top: 18px;
    width: 16px;
    height: 16px;
    background: #b3bab8;
    border-radius: 50%;
    border: 4px solid #222222;
}

.timeline-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 23px;
    transition: 0.4s;
}

.timeline-card:hover {
    transform: translateX(10px);
    box-shadow: 0 0 20px rgba(120, 142, 139, 0.35);
}

.timeline-card h2 {
    color: #fbfcfc;
    font-size: 18px;
    margin-bottom: 10px;
}

.timeline-card h3 {
    margin-bottom: 10px;
}

.timeline-card p {
    color: #f8f9fa;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* =====================================
   SKILLS CARDS
===================================== */

.top-card {
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.skills span {
    background: rgba(75, 76, 76, 0.536);
    border: 1px solid rgba(95, 97, 97, 0.4);
    color: #fafbfb;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    transition: 0.3s;
    cursor: default;
}

.skills span:hover {
    background: #6e706f;
    color: white;
    transform: translateY(-4px);
}

.bottom-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.top-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.skill-card h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: white;
}

.skill-card {
    background: rgba(242, 245, 244, 0.105);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.329);
    border-radius: 25px;
    padding: 30px;
    transition: 0.4s;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(234, 240, 239, 0.25);
}

.platform-list,
.certificate-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.platform-list a,
.certificate-list a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #cbd5e1;
    text-decoration: none;
    padding: 12px;
    border-radius: 12px;
    transition: 0.3s;
}

.platform-list a:hover,
.certificate-list a:hover {
    background: rgba(205, 217, 237, 0.15);
    color: #93b8ae;
    padding-left: 20px;
}

.platform-list i,
.certificate-list i {
    color: #838c8a;
    margin-right: 10px;
}

.platform-list i {
    font-size: 22px;
}

.platform-list a:hover {
    color: #868d8b;
    transform: translateX(8px);
}

/* =====================================
   PROJECTS
===================================== */

.projects-section {
    width: 100%;
    padding: 100px 8%;
}

.project-title {
    text-align: center;
    font-size: 3rem;
    font-style: inherit;
    margin-bottom: 60px;
}
.project-card{
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    border-radius: 20px;
    box-sizing: border-box;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(154, 154, 154, 0.4);
}

.project-category {
    color: #eaecee;
    font-size: 0.95rem;
}

.project-card h2 {
    margin: 15px 0;
}

.project-card p {
    line-height: 1.4;
    margin-bottom: 10px;
}

.tech-stack span {
    font-size: 15px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    background: #949494;
    border: 1px solid #525252cc;
    color: #010101;
    display: inline-block;
    transition: 0.3s;
}

.tech-stack span:hover {
    transform: scale(1.1);
    background: #f0f6f4;
    color: white;
}

.highlights span {
    font-size: 15px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    background: #8284836d;
    border: 1px solid #e1e8e66a;
    color: #e2e8f0;
    display: inline-block;
    transition: 0.3s;
}

.tech-stack,
.highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-stack {
    margin-bottom: 18px;
}

.project-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 28px;
    background: #4b4c4b;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.project-btn:hover {
    background: #848484;
}

/* =====================================
   CONTACT
===================================== */
@media (max-width:768px){

    .contact-section{
        padding:110px 5% 60px;
    }

}

.section-subtitle {
    text-align: center;
    color: #aaa;
    margin-bottom: 60px;
}

.contact-container {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 280px;
}

.contact-info h2 {
    margin-bottom: 15px;
}

.contact-info p {
    color: #ccc;
    line-height: 1.6;
}

.info-box {
    margin-top: 20px;
}

.info-box h3 {
    color: #555857;
    margin-bottom: 5px;
}

.socials {
    margin-top: 20px;
}

.socials a {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 10px;
    padding: 8px 12px;
    border: 1px solid #f7f7f7;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s;
}

.socials a:hover {
    background: #f9eded;
    color: black;
}

.contact-form {
    flex: 1;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.contact-form h2 {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaa;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    width: 100%;
    padding: 12px;
    background: #3d3d3d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    background: #bcc0be;
    color: black;
}

footer {
    text-align: center;
    padding: 25px;
    margin-top: 60px;
    background: #000000;
}

/* =====================================
   LIGHT THEME
===================================== */

.light-theme {
    background: #fff;
    color: #111;
}

.light-theme nav {
    background: #f5f5f5;
}

.light-theme nav a {
    color: #353535 !important;
}
.light-theme .logo,
.light-theme .gradient{
    color:#111;
}

.light-theme #theme-toggle,
.light-theme #menu-toggle{
    color:#111;
}

.light-theme .home-text h1,
.light-theme .home-text h2,
.light-theme .section-title,
.light-theme .project-title,
.light-theme .about-container h1 {
    color: #111;
}

.light-theme .home-text p,
.light-theme .about-text p,
.light-theme .about-card p,
.light-theme .project-card p,
.light-theme .timeline-card p,
.light-theme .platform-list a,
.light-theme .certificate-list a {
    color: #333;
}

.light-theme .skill-card {
    background: rgba(0, 0, 0, 0.05);
}

.light-theme .skill-card h2 {
    color: #111;
}

.light-theme .project-card {
    background: #f5f5f5;
    border-color: #ddd;
}

.light-theme .timeline-card {
    background: rgba(0, 0, 0, 0.05);
}

.light-theme .about-card {
    background: rgba(0, 0, 0, 0.04);
}

.light-theme .about-card h2 {
    color: #111;
}

.light-theme .platform-list a:hover,
.light-theme .certificate-list a:hover {
    background: rgba(0, 0, 0, 0.08);
}

.light-theme .skills span {
    background: #e0e0e0;
    color: #333;
}

.light-theme .skills span:hover {
    background: #848786;
    color: white;
}

.light-theme .contact-form {
    background: rgba(0, 0, 0, 0.05);
}

.light-theme .contact-form input,
.light-theme .contact-form textarea {
    background: #e0e0e0;
    color: #111;
}

.light-theme .contact-form input::placeholder,
.light-theme .contact-form textarea::placeholder {
    color: #666;
}
/* Contact Section */
.light-theme .contact-section{
    background: #ffffff;
    color: #111;
}

.light-theme .contact-section h1,
.light-theme .contact-section h2,
.light-theme .contact-section h3,
.light-theme .contact-section p,
.light-theme .contact-section span{
    color:#111;
}

.light-theme .section-subtitle{
    color:#555;
}

.light-theme .contact-info p{
    color:#444;
}

.light-theme .info-box h3{
    color:#111;
}

.light-theme .socials a{
    color:#111;
    border-color:#999;
}
/* =====================================
   RESPONSIVE BREAKPOINTS
===================================== */

/* Large Laptops / Desktops */
@media (max-width: 1200px) {
    h1 {
        font-size: 3rem;
    }
    .home-text h1 {
        font-size: 60px;
    }
    .home-text h2 {
        font-size: 34px;
    }
    .hero {
        gap: 50px;
    }
}

/* Tablets & Small Laptops */
@media (max-width: 992px) {
    section {
        padding: 80px 6%;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .home-text {
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .hero-image img {
        width: 300px;
        height: 300px;
    }
    
    .home-text p {
        max-width: 100%;
        margin: 0 auto 20px;
    }
    
    .contact-row {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .top-row {
        grid-template-columns: 1fr;
    }
    
    .bottom-row {
        grid-template-columns: 1fr;
    }
    
    .about-container h1 {
        font-size: 2.8rem;
    }
    
    .section-title {
            margin-top:30px;
        font-size: 2.5rem;
    }
    
    .project-title {
        font-size: 2.5rem;
    }
}

/* Mobile Phones */
@media (max-width: 768px) {
    section {
       padding:120px 5% 60px;
    }
    
    /* Navbar */
    nav {
        padding: 15px 5%;
    }
    
    #menu-toggle {
        display: block;
    }
    @media (max-width:768px){

    section{
        padding-top:120px;
    }

}
    
    #nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 20px;
        background: #272727;
        width: 200px;
        padding: 20px;
        border-radius: 10px;
        gap: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    #nav-links.active {
        display: flex;
    }
    
    #nav-links li {
        text-align: center;
    }
    
    .light-theme #nav-links {
        background: #f5f5f5;
        border-color: #ddd;
    }
    
    /* Hero */
    .home-text h1 {
        font-size: 42px;
    }
    
    .home-text h2 {
        font-size: 28px;
    }
    
    .home-text p {
        font-size: 16px;
    }
    
    .hero-image img {
        width: 240px;
        height: 240px;
    }
    
    .hire-btn {
        padding: 12px 28px;
        font-size: 16px;
    }
    
    .contact-row {
        flex-direction: column;
        gap: 15px;
    }
    
    /* About */
    .about-container h1 {
        font-size: 2.2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-text {
        font-size: 1rem;
    }
    
    /* Education & Skills */
    .education-skills {
        padding: 40px 5%;
    }
    
    .section-title {
            margin-top:30px;
        font-size: 2rem;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-dot {
        left: -30px;
        width: 12px;
        height: 12px;
    }
    
    .timeline-card {
        padding: 18px;
    }
    
    .timeline-card h2 {
        font-size: 16px;
    }
    
    .skill-card {
        padding: 20px;
    }
    
    .skills span {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    /* Projects */
    .projects-section {
        padding: 60px 5%;
    }
    
    .project-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .project-card {
        padding: 16px;
    }
    
    /* Contact */
    .contact-section {
        padding: 60px 5%;
    }
    
    .contact-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .contact-info {
        min-width: unset;
    }
    
    .contact-form {
        min-width: unset;
        padding: 20px;
    }
    
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
    section {
        padding: 60px 4%;
    }
    
    .home-text h1 {
        font-size: 32px;
    }
    
    .home-text h2 {
        font-size: 22px;
    }
    
    .home-text p {
        font-size: 14px;
    }
    
    .hero-image img {
        width: 200px;
        height: 200px;
        border-width: 4px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    #nav-links {
        width: 180px;
        right: 10px;
        top: 60px;
        padding: 15px;
    }
    
    #nav-links li a {
        font-size: 14px;
    }
    
    .about-container h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
            margin-top:30px;
        font-size: 1.8rem;
    }
    
    .project-title {
        font-size: 1.6rem;
    }
    
    .skill-card h2 {
        font-size: 1.2rem;
    }
    
    .skills span {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
    
    .platform-list a,
    .certificate-list a {
        font-size: 0.9rem;
        padding: 8px;
    }
    
    .contact-form {
        padding: 16px;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 10px;
    }
    
    .socials a {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    p {
        font-size: 0.9rem;
    }
}

/* Fix for very small screens */
@media (max-width: 360px) {
    .home-text h1 {
        font-size: 28px;
    }
    
    .hero-image img {
        width: 160px;
        height: 160px;
    }
    
    .hire-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width:768px){

    .project-card{
        width:95%;
        padding:20px;
        margin:20px auto;
    }

    .tech-stack,
    .highlights{
        display:flex;
        flex-wrap:wrap;
        gap:10px;
    }

    .project-title{
        font-size:2.2rem;
        text-align:center;
    }

    .project-content h2{
        font-size:1.6rem;
    }

    .project-content p{
        font-size:15px;
    }

    .project-btn{
        width:100%;
        text-align:center;
    }

}