:root {
    --bg: #0f172a;
    --card-bg: #1e293b;
    --accent: #38bdf8;
    --text: #f8fafc;
    --text-dim: #94a3b8;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

/* Navbar */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 10%;
    height: 80px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logo Styling */
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo a {
    text-decoration: none; 
    color: #38bdf8;        
    transition: 0.3s ease;
}

.logo a:hover {
    color: #f8fafc;        
    opacity: 0.8;
}


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

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-cta {
    border: 1px solid var(--accent);
    padding: 8px 20px;
    border-radius: 5px;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(100vh - 80px);
    width: 80%;
    margin: 0 auto;
    gap: 50px;
}

.name-heading h1 {
    font-size: clamp(2.5rem, 5vw, 4rem); 
    margin-bottom: 20px;
    line-height: 1.1;
}

.name-heading p {
    color: var(--text-dim);
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: 30px;
}

.main-btn {
    display: inline-block;
    background: var(--accent);
    color: var(--bg);
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

/* Image Logic */
.image-wrapper {
    flex-shrink: 0;
}

.image-wrapper img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border: 8px solid var(--card-bg);
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* Hamburger & Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text);
    margin: 5px 0;
    transition: 0.4s;
}

@media (max-width: 900px) {
    .hamburger { display: block; }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--bg);
        width: 100%;
        height: 100vh;
        transition: 0.4s;
        padding-top: 40px;
    }

    .nav-links.active { left: 0; }

    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
        padding: 40px 0;
    }
    
    .image-wrapper img {
        width: 250px;
        height: 250px;
    }
}

/* Menu X Animation */
.toggle span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.toggle span:nth-child(2) { opacity: 0; }
.toggle span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }


/* About Section Styles */
.about-section {
    padding: 100px 10%;
    background: #0f172a;
}

.about-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #38bdf8;
    margin-bottom: 20px;
}

.about-text p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(30, 41, 59, 0.5);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.1);
    transition: 0.3s ease;
}

.skill-item:hover {
    border-color: #38bdf8;
    transform: translateY(-5px);
}

.skill-item i {
    color: #38bdf8;
    font-size: 1.2rem;
}

/* Skill Tags inside Bio Card */
.skill-tag {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-tag i {
    font-size: 0.9rem;
}

/* Stats Cards */
.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: #1e293b;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border-bottom: 4px solid #38bdf8;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: #f8fafc;
}

.stat-card p {
    color: #94a3b8;
    font-weight: 500;
}

/* Scroll Animation Logic */
.about-container {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.about-container.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/*  */

/* About Page Specific Styles */
.about-page {
    padding: 60px 0;
    animation: fadeIn 0.8s ease-in;
}

.about-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-header h1 {
    font-size: 3rem;
}

.highlight {
    color: #38bdf8;
}

.subtitle {
    color: #94a3b8;
    font-size: 1.2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.bio-card {
    background: #1e293b;
    padding: 40px;
    border-radius: 20px;
    line-height: 1.8;
}

.bio-card h3 {
    margin-bottom: 20px;
    color: #38bdf8;
}

/* Expertise Icon Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.exp-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(56, 189, 248, 0.1);
    transition: 0.3s;
}

.exp-item:hover {
    background: rgba(56, 189, 248, 0.05);
    border-color: #38bdf8;
    transform: translateY(-5px);
}

.exp-item i {
    font-size: 2rem;
    color: #38bdf8;
    margin-bottom: 15px;
}

.exp-item h4 {
    margin-bottom: 8px;
}

.exp-item p {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Mobile Adjustments */
@media (max-width: 850px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero Buttons */
.hero-btns {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.secondary-btn {
    display: inline-block;
    border: 1px solid #38bdf8;
    color: #38bdf8;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.secondary-btn:hover {
    background: rgba(56, 189, 248, 0.1);
}

/* Bio Card Text */
.bio-card p strong {
    color: #38bdf8;
}

/* Update Icon sizes for Expertise */
.exp-item i {
    font-size: 2.5rem; /* Larger icons for a more visul feel */
    margin-bottom: 20px;
    display: block;
}

/* Highlight style for text */
.highlight {
    color: #38bdf8;
    font-weight: 700;
}


/* Project Page Layout */
.project-page {
    padding: 60px 0;
}

.project-header {
    text-align: center;
    margin-bottom: 50px;
}

/* Table-based Grid */
.project-table {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.project-row {
    display: flex;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.project-row:last-child {
    border-bottom: none;
}

.project-cell {
    flex: 1;
    padding: 40px;
    border-right: 1px solid rgba(56, 189, 248, 0.2);
    transition: background 0.3s ease;
}

.project-cell:last-child {
    border-right: none;
}

.project-cell:hover {
    background: rgba(56, 189, 248, 0.03);
}

/* Content Styling */
.tag {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.project-cell h3 {
    margin-top: 15px;
    font-size: 1.5rem;
    color: #f8fafc;
}

.project-cell p {
    color: #94a3b8;
    margin: 15px 0;
    line-height: 1.6;
}

.tech-stack {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #38bdf8;
    margin-bottom: 20px;
}

.view-link {
    text-decoration: none;
    color: #f8fafc;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid #38bdf8;
    padding-bottom: 2px;
}

.view-link i {
    font-size: 0.8rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.view-link:hover i {
    transform: translate(3px, -3px); 
    color: #38bdf8;
}

/* Responsive Logic */
@media (max-width: 850px) {
    .project-row {
        flex-direction: column;
    }
    .project-cell {
        border-right: none;
        border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    }
}


/* contact.html */

/* Contact Page Specifics */
.contact-page {
    padding: 60px 0;
    animation: fadeIn 0.8s ease-out;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Form Styling */
.contact-form {
    background: #1e293b;
    padding: 40px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid rgba(56, 189, 248, 0.1);
}

.input-group {
    display: flex;
    gap: 20px;
}

.contact-form input, 
.contact-form textarea {
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 15px;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    outline: none;
    transition: 0.3s;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.1);
}

/* Info Tiles */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-tile {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(56, 189, 248, 0.03);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(56, 189, 248, 0.1);
    transition: 0.3s;
}

.info-tile:hover {
    transform: translateX(10px);
    background: rgba(56, 189, 248, 0.08);
}

.info-tile i {
    font-size: 1.5rem;
    color: #38bdf8;
}

.info-tile h4 {
    color: #94a3b8;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.main-btn{
    cursor: pointer;
}
/* Social Grid */
.social-grid {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.4rem;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.social-icon:hover {
    background: #38bdf8;
    color: #0f172a;
    transform: scale(1.1) translateY(-5px);
}

/* Mobile Responsive Contact */
@media (max-width: 850px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .input-group {
        flex-direction: column;
    }
}


/* Experience Timeline Styles */
.experience-section {
    padding: 60px 0;
}

.experience-header {
    text-align: center;
    margin-bottom: 60px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 30px;
    border-left: 2px solid rgba(56, 189, 248, 0.3); /* The vertical line */
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 20px;
    animation: fadeIn 1s ease-out;
}

.timeline-dot {
    position: absolute;
    left: -41px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: #38bdf8;
    border-radius: 50%;
    border: 4px solid #0f172a;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.timeline-date {
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.timeline-content {
    background: #1e293b;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(56, 189, 248, 0.1);
    transition: 0.3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
}

.timeline-content h3 {
    margin-bottom: 5px;
    color: #f8fafc;
}

.company {
    color: #94a3b8;
    font-style: italic;
    margin-bottom: 15px;
    display: block;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content li {
    color: #94a3b8;
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.timeline-content li::before {
    content: "▹"; /* Custom bullet point */
    position: absolute;
    left: 0;
    color: #38bdf8;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .timeline {
        margin-left: 10px;
    }
}