/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff6c9;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgb(255, 255, 148);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.navbar:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #6366f1;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #6366f1;
}

.nav-menu a.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.resume-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 0 18px;
    background-color: #667eea;
    color: #ffffff;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.resume-btn:hover {
    background-color: #5568d8;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #d836b0;
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.95;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: #667eea;
    color: white;
    padding: 12px 24px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #6366f1;
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0;
    text-align: center;
    color: #d836b0;
}

.page-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 20px;
    opacity: 0.9;
}

/* Section Titles */
.section-title {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2d3748;
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-subtitle {
    font-size: 22px;
    color: #2d3748;
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 20px;
}

/* Featured Work Section */
.featured-work {
    padding: 80px 0;
    background: #f8f5c1;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.work-card {
    background: #fb55b1;
    border-radius: 12px;
    border: 12px solid #fb55b1;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);

}

.work-image {
    width: 100%;
    border-radius: 12px 12px 0 0;
    height: 250px;
    overflow: hidden;
    background: #e2e8f0;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.work-card:hover .work-image img {
    transform: scale(1.08);
}

.work-info {
    padding: 30px;
}

.work-info h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: white;
    transition: color 0.3s ease;
}

.work-card:hover .work-info h3 {
    color: white;
}

.work-info p {
    font-size: 16px;
    line-height: 1.6;
    color: white;
    margin-bottom: 20px;
}

.work-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.work-link::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.work-link:hover {
    color: #4f46e5;
}

.work-link:hover::after {
    transform: translateX(5px);
}

/* Skills Section */
.skills {
    padding: 20px 0;
    background: #f8f5c1;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-card {
    border: 5px solid #16f0c0;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}


.skill-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.skill-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: black;
}

.skill-card p {
    font-size: 16px;
    color: black;
    line-height: 1.6;
}

/* About Page Styles */
.about-content {
  padding: 20px 20px;
  background: #f8f5c1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  background: #f8f5c1;
  border-radius: 24px;
  overflow: hidden;
  padding: 48px;
}

.about-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

.about-text {
  color: #2d3748;
}

.about-text h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 0 0 24px;
  font-weight: 700;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0 0 20px;
  color: #2d3748;
}

.about-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
    padding: 32px;
    gap: 32px;
  }

  .about-text h2 {
    font-size: 2rem;
  }

  .about-text p {
    font-size: 1rem;
  }
}

/* Carousel Section */
.carousel-section {
    padding: 20px 0;
    background: #f8f5c1;
}

.carousel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.carousel-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.carousel-item {
    border-radius: 12px;
    overflow: hidden;
    background: #e2e8f0;
    border: 8px solid #16f0c0;
    transition: all 0.3s ease;
}

.carousel-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.carousel-item.horizontal {
    aspect-ratio: 16 / 9;
}

.carousel-item.vertical {
    aspect-ratio: 9 / 16;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.carousel-item:hover img {
    transform: scale(1.05);
}

/* Tools Section */
.tools-section {
    padding: 20px 0;
    background: #f8f5c1;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tool-category {
    
    padding: 35px;
    border: 5px solid #fb55b1;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.tool-category h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: black;
}

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

.tool-category li {
    font-size: 16px;
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: black;
    transition: color 0.2s ease;
}

.tool-category li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #3fe1bf;
    font-weight: 600;
}

/* Philosophy Section */
.philosophy-section {
    padding: 20px 0;
    background: #f8f9fa;
}

.philosophy-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.philosophy-card {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.philosophy-card:hover {
    transform: translateY(-8px);
    border-color: white;
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.15);
}

.philosophy-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
}

.philosophy-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #4a5568;
}

/* Work Portfolio Page */
.work-portfolio {
    padding: 20px 0;
    background: #f8f5c1;
}

.project-section {
    margin-bottom: 80px;
    border: 4px solid #16f0c0;
    border-radius: 12px;
    padding: 40px;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.project-section.alternate .project-content {
    direction: rtl;
}

.project-section.alternate .project-content > * {
    direction: ltr;
}

.project-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}

.project-tag {
    display: inline-block;
    background: #6366f1;
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.project-details h2 {
    font-size: 36px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.project-description {
    font-size: 17px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 30px;
}

.project-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: #ffff94;
    border-radius: 12px;
}

.highlight-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: #718096;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.highlight-item p {
    font-size: 16px;
    color: #2d3748;
    font-weight: 500;
}

.project-features {
    margin-bottom: 30px;
}

.project-features h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
}

.project-features ul {
    list-style: none;
}

.project-features li {
    font-size: 16px;
    color: #4a5568;
    padding: 6px 0;
    padding-left: 25px;
    position: relative;
}

.project-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: 600;
    font-size: 20px;
}

/* Gallery Preview */
.gallery-preview {
    padding: 20px 0;
    background: #f8f5c1;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.photo-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #e2e8f0;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.photo-item:hover img {
    transform: scale(1.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    overflow: hidden;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

.modal-content img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 85vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.6);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2001;
}

.modal-close:hover {
    background: rgba(99, 102, 241, 0.9);
    transform: rotate(90deg);
}

/* Contact Section */
.contact {
    padding: 60px 0;
    background: #ffff94;
    text-align: center;
    border-radius: 12px;
}

.contact-container {
    width: 80%;
    border: 12px solid #000;
}

.contact-subtitle {
    font-size: 18px;
    color: #718096;
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

.contact-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
}

.contact-item a {
    text-align: center;
    text-decoration: none;
    color: #2d3748;
}

.contact-item a:hover {
    color: #6366f1;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.social-link:hover {
    color: #666;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #f8f5c1;
    color: rgb(1, 1, 1);
    padding: 30px 0;
    text-align: center;
}

footer p {
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 20px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .about-layout {
        grid-template-columns: 1fr;
    }
    
    .project-content {
        grid-template-columns: 1fr;
    }
    
    .project-section.alternate .project-content {
        direction: ltr;
    }
    
    .project-highlights {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 20px;
    }
    
    .carousel-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 15px;
        font-size: 14px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .page-hero h1 {
        font-size: 32px;
    }
}

/* Accessibility - Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}