/* Base Styles */
:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --bg-light: #f8f9fa;
    --text-color: #333333;
    --text-light: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*{
    flex: none;
    align-self: center;
    scroll-behavior: smooth;}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 20px;
}

.project-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card h3 {
  margin: 15px;
  font-size: 18px;
}

.project-card p {
  margin: 0 15px 20px;
  font-size: 14px;
  color: #555;

}

/* MODAL */
.modal {
  
display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  overflow-y: auto;
  
}

.modal-content {
  padding: 60px;
  
}

.project-content {
  display: none;
}

.project-content img {
  display: inline-flex;
   flex-direction: column;
   flex-wrap: wrap;
   align-items: center;
   justify-items: center;
   justify-content: center;
   align-content: center;
   height:250px;
   border-radius: 5px;
   border-style: double;
   border: 2px;
   border-color: black;
  border-radius: 8px;
  
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    background-color: var(--bg-light);
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* About Section Layout */
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap; 
}

.about-text {
    flex: 1;
    min-width: 300px;
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: left;
    line-height: 1.8;}
    
   

img {
    display: inline-flex;
   flex-direction: column;
   flex-wrap: wrap;
   align-items: center;
   justify-items: center;
   justify-content: center;
   align-content: center;
   height:250px;
   border-radius: 5px;
   border-style: double;
   border: 2px;
   border-color: black;}

/* Image Styling and Floating Animation */
.about-image-wrapper {
    flex-shrink: 0;
}

.about-img {
    width: 280px;
    height: 280px;
    border-radius: 50%; 
    object-fit: cover; 
    box-shadow: 0 15px 25px rgba(0,0,0,0.1);
    animation: floatImage 4s ease-in-out infinite; 
}

/* Keyframes for continuous smooth floating */
@keyframes floatImage {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-50px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .about-container {
        gap: 2rem;
    }
    .about-text {
        text-align: center;
    }
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--accent-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
}

/* Common Section Styles */
.section {
    padding: 5rem 5%;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.section-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-light);
}

.bg-light {
    background-color: var(--bg-light);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
}

.skill-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
}

.placeholder-img {
    height: 200px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-weight: 600;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Contact & Footer */
#contact {
    text-align: center;
}

#contact .btn {
    margin-top: 2rem;
}

footer {
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding: 2rem 5%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Simple mobile hide for now */
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}


