@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #f7f9fc;
    color: #1d1d1f;
}

header {
    background: #ffffff;
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    top: 0;
    z-index: 1000;
}

.menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.menu a {
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 36px;
    height: 30px;
    justify-content: space-between;
    position: absolute;
    right: 20px;
    top: 31px;
    z-index: 1101;
	padding: 6px;
	background: transparent;
	border: none;
}

.menu-toggle div {
    width: 100%;
    height: 4px;
    background-color: #000;
    border-radius: 2px;
    transition: 0.3s ease;
}

.menu-toggle .bar {
	display: block;
	height: 3px;
	width: 100%;
	background: #111;
	margin: 4px 0;
	border-radius: 2px;
	transition: transform .25s ease, opacity .2s ease;
}

.menu-overlay {
	display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

.hero {
    position: relative;
    height: 60vh;
    background: linear-gradient(135deg, #007bff, #00aaff);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 20px;
    overflow: hidden;
}

.hero-content { position: relative; z-index: 2; }

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.4rem;
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: 1.2rem;
}

.hero-stats {
    display: flex;
    gap: 20px;
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.hero-stats a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.download-btn {
    display: inline-block;
    padding: 12px 26px;
    background: #ffffff;
    color: #007bff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
}

.download-btn:hover {
    background: #007bff;
    color: #ffffff;
}

/* Floating shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: floatShape 10s ease-in-out infinite;
}

.hero-shape.shape1 { width: 100px; height: 100px; background: #ffffff; top: 10%; left: 15%; }
.hero-shape.shape2 { width: 150px; height: 150px; background: #00ffff; top: 50%; left: 70%; }
.hero-shape.shape3 { width: 80px; height: 80px; background: #007bff; top: 75%; left: 30%; }

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -20px); }
}

.hero-stats span, 
.hero-stats a {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards;
}

.hero-stats span:nth-child(1) { animation-delay: 0.5s; }
.hero-stats span:nth-child(2) { animation-delay: 0.7s; }
.hero-stats a { animation-delay: 0.9s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.content {
    max-width: 850px;
    margin: 60px auto;
    padding: 0 20px;
}

h2 { font-size: 2rem; margin-bottom: 20px; }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

footer {
    text-align: center;
    padding: 30px 0;
    color: #6a6a6a;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.project-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.project-images img {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    object-fit: cover;
    height: 160px; /* adjust if needed */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-images img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.contact-form button {
    width: max-content;
    padding: 12px 25px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background-color: #005fcc;
}

.fade-message {
    opacity: 0;
    transition: opacity 0.6s ease;
    margin-top: 15px;
    font-weight: 500;
}
.fade-message.show { opacity: 1; }

@media (max-width: 1024px) {
    .hero h1 { font-size: 2.8rem; }
    .subtitle { font-size: 1.2rem; }
    .skills-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (max-width: 768px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .contact-form button { width: 100%; }
    .hero h1 { font-size: 2.4rem; }
    .subtitle { font-size: 1rem; }
    .content { margin: 40px auto; padding: 0 15px; }
	.project-images { grid-template-columns: 1fr; }
    .project-images img { height: auto; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .subtitle { font-size: 0.9rem; }
    .download-btn { padding: 10px 20px; font-size: 0.9rem; }
}


@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 75%;
    max-width: 320px;
    background: #fff;
    padding: 84px 28px;
    flex-direction: column;
    gap: 22px;
    transform: translateX(100%);
    transition: transform .35s ease;
    z-index: 1102;
  }

  .menu a {
    font-size: 1.15rem;
    color: #111;
    opacity: 0;
    transform: translateX(16px);
    transition: opacity .28s ease, transform .28s ease;
  }

  .menu.active { transform: translateX(0); }

  .menu.active a:nth-child(1) { transition-delay: .04s; opacity:1; transform:translateX(0); }
  .menu.active a:nth-child(2) { transition-delay: .08s; opacity:1; transform:translateX(0); }
  .menu.active a:nth-child(3) { transition-delay: .12s; opacity:1; transform:translateX(0); }
  .menu.active a:nth-child(4) { transition-delay: .16s; opacity:1; transform:translateX(0); }

  .menu-overlay.active { display:block; opacity: 1; }

  .menu-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .menu-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
