* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    
}

/* Header */
header {
  top: 0;
  width: 100%;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.603);
  backdrop-filter: blur(10px);
  z-index: 1000;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.4s ease;
}

header.show {
  opacity: 1;
  transform: translateY(0);
}

.nav-container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Mobile menu icon */
.mobile-menu {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  user-select: none;
}

/* Mobile nav dropdown */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: absolute;
  top: 70px;
  right: 20px;
  width: 180px;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  z-index: 1000;
}

.mobile-nav a,
.mobile-nav span {
  padding: 10px;
  text-decoration: none;
  color: #333;
  border-radius: 8px;
  transition: background 0.3s;
}

.mobile-nav a:hover,
.mobile-nav span:hover {
  background: #f1f5f9;
}


/* Desktop nav (default) */
.nav-links {
  display: flex;
  gap: 24px;
}

/* Mobile view */
@media (max-width: 768px) {
  .nav-links {
    display: none !important; /* ❌ hide nav links on mobile */
  }

  .mobile-menu {
    display: block !important; /* ✅ show 3-dot / hamburger */
  }
}


/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #333344;
}

.logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
}


.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Nav links base */
.nav-links a {
  position: relative;
  padding: 6px 4px;
  text-decoration: none;
  color: #68614a;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Blooming glow */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #f65c5c, #ecaa48);
  box-shadow: 0 0 12px rgba(246, 192, 92, 0.8);
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

/* Hover effect */
.nav-links a:hover {
  color: #000;
}

.nav-links a:hover::after {
  width: 100%;
}


/* Smooth scroll */
html {
  scroll-behavior: smooth;
}


/* Hero Section */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
    position: relative;
    background: radial-gradient(circle at top left, #f7e1d2 0%, transparent 60%),
                radial-gradient(circle at bottom right, #faf1d9 0%, transparent 60%);
    animation: gradientShift 8s ease-in-out infinite alternate;
    text-align: center;
}

@keyframes gradientShift {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(40deg);
    }
}

.hero-content {
    max-width: 750px;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #443933;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #68544a;
    margin-bottom: 30px;
}

.buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}


/* Mobile */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 20px;
        align-content: center;
    }

    .hero-section h1 {
        font-size: 2.3rem;
    }

    .hero-section p {
        font-size: 1.05rem;
    }

    .buttons {
        flex-direction: column;
        align-items: center !important;
    }

    .btn {
        width: 50%;
    }
}

  
/* About Section Layout */
.about-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding: 60px 20px;
    flex-wrap: wrap;
    flex-direction: row !important;  
    
}

/* Profile Image */
.image-section img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #f2eadc;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
}

.image-section img:hover {
    transform: scale(1.05);
}

/* Text Section */
.about-text{
    max-width: 600px;
}

.text-section h1 {
    font-size: 2.5rem;
    color: #443933;
    margin-bottom: 20px;
}

.about-texts{
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #f2f3f6;
    padding: 20px;
    border-radius: 10px;
    background: radial-gradient(circle at top left, #f7e1d2 0%, transparent 60%),
                radial-gradient(circle at bottom right, #faf1d9 0%, transparent 60%);
    animation: gradientShift 8s ease-in-out infinite alternate;
}

.about-text {
    background-color: #ddcbba;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 12px;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
}

.about-text a {
    color: #2a3eb1;
    text-decoration: none;
    font-weight: 600;
}

.about-text a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .image-section img {
        width: 170px;
        height: 170px;
    }

    .text-section h1 {
        font-size: 2.2rem;
    }
}

/* Skills Section */
#skills {
    padding: 60px 0;
    text-align: center;
    background: radial-gradient(circle at top left, #f7e1d2 0%, transparent 60%),
                radial-gradient(circle at bottom right, #faf1d9 0%, transparent 60%);
    animation: gradientShift 8s ease-in-out infinite alternate;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #443933;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: auto;
}

.skill-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px 15px;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease;
    text-align: center;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;   /* centers children horizontally */
    justify-content: center !important;
}

.skill-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.skill-card:hover {
    transform: translateY(-7px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.12);
}

.skill-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #222;
}

.skill-card p {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    text-align: center !important;
}



/* Projects Section */

.containe {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.project-heading {
    font-size: 48px;
    color: #443933;
    margin-bottom: 50px;
    font-weight: 600;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: radial-gradient(circle at top left, #f7e1d2 0%, transparent 60%),
                radial-gradient(circle at bottom right, #faf1d9 0%, transparent 60%);
    animation: gradientShift 8s ease-in-out infinite alternate;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 25px;
}

.project-title {
    font-size: 24px;
    font-weight: 600;
    color: #443933;
    margin-bottom: 15px;
}

.project-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #443933;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background-color: #53493c;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.btn-container {
    display: flex;
    gap: 10px;
}

.contacts {
    max-width: 100% ;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #e7e9f1 ;
    background: radial-gradient(circle at top left, #f7e1d2 0%, transparent 60%),
                radial-gradient(circle at bottom right, #faf1d9 0%, transparent 60%);
    animation: gradientShift 8s ease-in-out infinite alternate;
}

.contact-heading{
    font-size: 48px;
    color: #443933;
    margin-bottom: 60px;
    font-weight: 700;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.contact-card {
    flex: 1;
    min-width: 300px;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.icon-container {
    width: 50px;
    height: 50px;
    background-color: #f0e1d2;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.icon {
    width: 24px;
    height: 24px;
    color: #443933;
}

.contact-content {
    flex-grow: 1;
}

.contact-title {
    font-size: 24px;
    font-weight: 600;
    color: #443933;
    margin-bottom: 15px;
}

.contact-text {
    font-size: 16px;
    color: #53493c;
    margin-bottom: 15px;
    line-height: 1.5;
}

.social-list {
    list-style-type: none;
    padding-left: 20px;
}

.social-list li {
    margin-bottom: 12px;
    position: relative;
}

.social-list li:before {
    content: "•";
    position: absolute;
    left: -20px;
    color: #443933;
}

.social-link {
    color: #443933;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #6366f1;
    text-decoration: underline;
}


/* Ensure contact card doesn't interfere */
.contact-card {
    position: relative;
    z-index: 1;
}

.contact-content {
    position: relative;
    z-index: 2;
}
  


 /* Footer Styles */
 .footer {
    background-color: #3c3c3c;
    color: #ffffff;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.footer-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #ffffff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-copyright {
    font-size: 16px;
    color: #ffffff;
    margin: 20px 0;
}

.back-to-top {
    display: inline-block;
    padding: 12px 24px;
    background-color: #f0e1d2;
    color: #333;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.back-to-top:hover {
    background-color: #cdbda2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .back-to-top {
        margin-top: 20px;
        align-self: flex-start;
    }
    
    .footer-title {
        font-size: 36px;
        margin-bottom: 30px;
    }
}

/* ------------------------------
   GLOBAL ANIMATION CLASSES
--------------------------------*/

/* Smooth fade-up animation */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth zoom animation */
.zoom-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.7s ease;
}

.zoom-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Fade from left */
.fade-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease;
}

.fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fade from right */
.fade-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease;
}

.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Floating animation for images */
.float {
    animation: floatAnim 4s ease-in-out infinite;
}

@keyframes floatAnim {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

