/* ==========================================
   PORTFOLIO CSS - PRATIUSH PALIWAL
   ========================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a2332;
    color: #fff;
    overflow-x: hidden;
}

/* ==========================================
   NAVIGATION SECTION
   ========================================== */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.8s ease;
}
.nav-links a {
    padding: 6px 10px; 
    border: 1px solid #087ad1;
    border-radius: 2px;
}

.nav-links a:hover {
    background: #ffffff;
    color: #000;
}



@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ==========================================
   HERO SECTION (HOME)
   ========================================== */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.profile-photo-container {
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.1s both;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #3b9dd8;
    box-shadow: 0 10px 40px rgba(59, 157, 216, 0.4);
    transition: all 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(59, 157, 216, 0.6);
}

.hero-content h1 {
    font-size: 60px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-content h1 .highlight {
    color: #3b9dd8;
}

.hero-content .typewriter {
    font-size: 28px;
    margin-bottom: 30px;
    min-height: 40px;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.6s both;
    opacity: 0.9;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #3b9dd8;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.8s both;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 157, 216, 0.5);
    background: #2a8bc7;
}

/* ==========================================
   SECTION STYLES (GENERAL)
   ========================================== */

section {
    padding: 100px 50px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 48px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #3b9dd8;
    border-radius: 2px;
}

/* ==========================================
   ABOUT ME SECTION
   ========================================== */

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
}

.about-intro {
    font-size: 24px;
    margin-bottom: 30px;
    color: #3b9dd8;
    font-weight: 500;
    line-height: 1.6;
}

.about-description {
    font-size: 18px;
    margin-bottom: 25px;
    line-height: 1.8;
    opacity: 0.9;
    text-align: left;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.highlight-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(59, 157, 216, 0.3);
}

.highlight-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.highlight-item h4 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #3b9dd8;
}

.highlight-item p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
}

/* ==========================================
   SKILLS SECTION
   ========================================== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.skill-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.skill-card p {
    opacity: 0.9;
    line-height: 1.6;
}

/* ==========================================
   TECHNICAL SKILLS SECTION
   ========================================== */

.technical-skills {
    max-width: 800px;
    margin: 150px auto 0;
    scroll-margin-top: 80px;
    padding-top: 100px;
}

.skill-bar-container {
    margin-bottom: 30px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-name {
    font-size: 18px;
    font-weight: 500;
}

.skill-percentage {
    font-size: 18px;
    color: #3b9dd8;
    font-weight: bold;
}

.skill-bar-bg {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b9dd8, #5ec5ff);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease;
    box-shadow: 0 0 10px rgba(59, 157, 216, 0.5);
}

.skill-bar-container.animate .skill-bar-fill {
    animation: fillBar 1.5s ease forwards;
}

/* ==========================================
   PROJECTS SECTION
   ========================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #3b9dd8 0%, #2a8bc7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.project-content p {
    opacity: 0.9;
    line-height: 1.6;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */

/* CONTACT SECTION */
#contact {
    padding: 50px 20px;
    text-align: center;
    background: #1B2433;   /* your dark background color */
}

#contact h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #ffffff;   /* white text for contrast */
}

/* Contact Info */
#contact p {
    font-size: 18px;
    margin: 6px 0;
    color: #d9e3f0;  /* soft white text */
}

/* Social Links Container */
.social-links {
    margin-top: 20px;
}

/* Social Icons */
.social-links a {
    display: inline-block;
    margin: 0 12px;
    font-size: 28px;
    color: #d9e3f0;       /* default light text */
    transition: 0.3s ease;
}

/* Hover Colors */
.social-links a[title="LinkedIn"]:hover {
    color: #0077b5;
}

.social-links a[title="GitHub"]:hover {
    color: #ffffff;
}

social-links a[title="Instagram"]:hover {
    color: #d4245e;
}

.social-links a[title="X"]:hover {
    color: #617785;
}


/* ==========================================
   ANIMATIONS
   ========================================== */

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    .profile-photo {
        width: 150px;
        height: 150px;
    }

    .hero-content h1 {
        font-size: 40px;
    }
    
    .hero-content .typewriter {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    nav {
        padding: 15px 20px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 14px;
    }
    
    section {
        padding: 80px 20px;
    }

    .about-intro {
        font-size: 20px;
    }

    .about-description {
        font-size: 16px;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }
}

/* ====================================
   CURRENT POSITION SECTION (SMALL BOX)
   ==================================== */

.current-position {
    background-color: #1A2332;
    padding: 80px 20px;
}

.cp-container {
    max-width: 1100px;
    margin: auto;
}

/* GRID FOR SIDE-BY-SIDE */
.cp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 boxes */
    gap: 30px;
}

/* CARD */
.cp-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.6);
}

/* TEXT */
.cp-role {
    font-size: 22px;
    color: #38bdf8;
    margin-bottom: 6px;
}

.cp-org {
    font-size: 16px;
    color: #cbd5f5;
    margin-bottom: 14px;
}

.cp-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #e5e7eb;
    margin-bottom: 20px;
}

/* TAGS */
.cp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cp-tags span {
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 18px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

/* MOBILE STACK */
@media (max-width: 768px) {
    .cp-grid {
        grid-template-columns: 1fr; /* stack vertically */
    }
}



/* ==========================================
   Footer Styles
   ========================================== */
footer {
    text-align: center;
    padding: 15px 0;
    background-color: #1B2433;   /* match your dark theme */
    color: #d9e3f0;               /* soft white text */
    font-size: 14px;
    margin-top: 40px;
    border-top: 1px solid #2d3646; /* subtle top border */
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
footer {
    margin-top: auto;
}

/* ==========================================
   END OF STYLE.CSS
   ========================================== */
