/* Variables */
:root {
    --primary-color: rgb(29, 89, 82);
    --secondary-color: rgb(185, 202, 200);
    --text-color: rgba(0, 0, 0, 0.8);
    --background-color: #f5f5f5;
    --transition-speed: 0.3s;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-family: 'Avenir', 'Open Sans', Helvetica, sans-serif;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f7f9fb;
    color: #333;
    min-height: 100vh;
}

body {
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

/* Content Block */
.content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.content h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content:last-child {
    margin-bottom: 4rem;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

/* Navigation Bar */
nav {
    background-color: var(--primary-color);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 70%;
    display: flex;
    margin: 0 auto;
}

nav li {
    position: relative;
    text-align: center;
    flex: 1;
}

nav a {
    display: block;
    font-size: 1.1rem;
    text-decoration: none;
    color: white;
    text-transform: uppercase;
    padding: 1rem 1.2rem;
    transition: all var(--transition-speed);
}

nav a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Dropdown Menus - Keeping your structure */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    z-index: 10;
    min-width: 200px;
    animation: fadeIn 0.3s ease-in-out;
}

.dropdown-content li { width: 100%; }

.dropdown-content a {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    text-align: left;
}

.dropdown:hover > .dropdown-content { display: block; }

/* Secondary Dropdown */
.secondary-dropdown {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: var(--primary-color);
    min-width: 200px;
}

.dropdown-content > .dropdown:hover > .secondary-dropdown { display: block; }

/* Tertiary Dropdown */
.tertiary-dropdown {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: var(--primary-color);
    min-width: 200px;
}

.secondary-dropdown > .dropdown:hover > .tertiary-dropdown { display: block; }

/* Active Link */
nav a.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Hero Section */
.hero {
    padding: 120px 20px 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.frame-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    position: relative;
}

.frame-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    transition: transform var(--transition-speed);
}

.frame-image img:hover {
    transform: scale(1.05);
}

/* Sections */
section {
    padding: 60px 0;
}

.about {
    background: white;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform var(--transition-speed);
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.skill-category i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Project Cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform var(--transition-speed);
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    max-width: 150px;
    display: block;
    margin: 10px auto 10px 0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid var(--secondary-color);
}

.project-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

.project-content {
    padding: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.project-tags span {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.project-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: color var(--transition-speed);
}

.project-link:hover {
    color: var(--secondary-color);
}

/* Project Page Styles */
.github-banner {
    background: linear-gradient(to right, #2a2e35, #3a3e45);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.github-banner h4 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.github-banner h4 i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.github-banner a {
    color: #64ffda;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.github-banner a:hover {
    color: #9effed;
    text-decoration: underline;
}

.project-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.project-header {
    background: linear-gradient(to right, #406aff, #6b9fff);
    color: white;
    padding: 15px 20px;
}

.project-header h4 {
    margin: 0;
    font-size: 1.3rem;
}

.project-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .project-content {
        flex-direction: row;
    }
}

.project-image {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 6px;
    object-fit: contain;
}

.project-description {
    flex: 2;
    display: flex;
    flex-direction: column;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 15px;
}

.tag {
    background-color: #e9f4ff;
    color: #406aff;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    width: 100%;
    padding: 20px 0;
    margin-top: auto;
}

.footer-content {
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.social-icon {
    color: white;
    font-size: 1.5rem;
    transition: transform var(--transition-speed);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    text-decoration: none;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.social-icon:hover {
    transform: translateY(-3px);
    color: var(--secondary-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Media Queries */
@media (max-width: 768px) {
    html { font-size: 14px; }
    
    nav ul { width: 90%; }
    
    .hero { padding: 100px 20px 40px; }
    
    .skills-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .container { padding: 0 15px; }
}

.pframe-image {
  width: 600px;
  margin: 0 auto;
  display: block;
}

.pframe-image img {
  width: 100%;
  border-radius: 0%; /* Square images */
  border: 3px solid rgba(0, 0, 0, 0.2);
  object-fit: cover;
  overflow: hidden;
}


/* PDF Embed */

.pdf-wrapper {
    position: relative;
    width: 80%;
    height: 80%;
    padding-top: 56.25%;
    overflow: hidden;
    margin: 0 auto;
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform var(--transition-speed);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf {  
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pdf-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #999;
}

.btn-vis {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d7a71 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all var(--transition-speed);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(29, 89, 82, 0.3);
    justify-content: center;
}

.btn-vis:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(29, 89, 82, 0.4);
}