/* General */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    color: #1a1a1a;
    background: #f9f9f9;
}

a { text-decoration: none; color: inherit; }

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    padding: 15px 50px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    z-index: 100;
}
nav .nav-links { list-style: none; display: flex; gap: 25px; }
nav .nav-links li a.active { color: #4facfe; font-weight: 700; }
.logo { font-weight: 700; font-size: 1.4rem; background: linear-gradient(90deg, #4facfe, #00f2fe); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Hero */
header#hero {
    height: 100vh;
    background: linear-gradient(135deg, #4facfe, #00f2fe, #1e90ff);
    background-size: 600% 600%;
    animation: gradientShift 15s ease infinite;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    padding: 0 20px;
}
header#hero h1 {
    font-size: 3rem;
    margin: 0;
    background: linear-gradient(90deg, #ffffff, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGlow 2s ease-in-out infinite alternate;
}
header#hero h2 { font-size: 1.6rem; margin: 15px 0; color: #e0f7ff; }
header#hero p { font-size: 1.1rem; color: #d0f0ff; }

/* Hero buttons */
.cta-buttons a {
    padding: 14px 32px; margin: 10px; border-radius: 10px; font-weight: 700; transition: all 0.4s ease; letter-spacing: 0.5px;
}
.btn-primary {
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    color: white;
    box-shadow: 0 8px 25px rgba(0,127,255,0.3);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 35px rgba(0,127,255,0.5); }
.btn-secondary { background: transparent; border: 2px solid white; color: white; }
.btn-secondary:hover { background: rgba(255,255,255,0.2); transform: translateY(-3px) scale(1.05); }

/* Sections */
.section { padding: 80px 50px; max-width: 1200px; margin: auto; }
.section h2 { font-size: 2rem; margin-bottom: 40px; text-align: center; color: #1a1a1a; }

/* About */
.about-content { display: flex; gap: 50px; flex-wrap: wrap; align-items: center; justify-content: center; }
.about-text { max-width: 600px; }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; justify-items: center; }
.skill-card { background: linear-gradient(135deg, #ffffff, #eaf6ff); padding: 20px; border-radius: 10px; text-align: center; font-weight: 600; transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease; }
.skill-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,127,255,0.2); background: linear-gradient(135deg, #e0f3ff, #c0f0ff); }

/* Projects */
.projects-grid { display: flex; flex-direction: column; gap: 50px; }
.project-card { background: #ffffff; border-radius: 12px; overflow: hidden; padding: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease; }
.project-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0,127,255,0.2); border: 1px solid #4facfe; }

/* Carousel */
.carousel-container { position: relative; display: flex; align-items: center; gap: 10px; }
.carousel { display: flex; gap: 15px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 0; }
.carousel img { flex: 0 0 auto; width: 300px; height: 200px; object-fit: cover; border-radius: 10px; scroll-snap-align: start; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.carousel img:hover { transform: scale(1.05); box-shadow: 0 8px 20px rgba(0,127,255,0.3); }

/* Arrows */
.arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,127,255,0.7); border: none; color: white; font-size: 2rem; padding: 5px 12px; border-radius: 50%; cursor: pointer; transition: all 0.3s ease; z-index: 10; }
.arrow:hover { background: rgba(0,127,255,0.9); transform: translateY(-50%) scale(1.1); }
.arrow.left { left: 5px; }
.arrow.right { right: 5px; }

/* Dots */
.dots { text-align: center; margin-top: 10px; }
.dots span { display: inline-block; width: 10px; height: 10px; margin: 0 5px; background: #c0e8ff; border-radius: 50%; cursor: pointer; transition: all 0.3s ease; }
.dots span.active { background: #4facfe; }

/* Fade-in */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.visible { opacity: 1; transform: translateY(0); }

/* Experience */
.experience-card { background: linear-gradient(135deg, #ffffff, #eaf6ff); padding: 20px; border-radius: 10px; transition: box-shadow 0.3s ease; }
.experience-card:hover { box-shadow: 0 10px 25px rgba(0,127,255,0.2); }

/* Contact */
#contact ul { list-style: none; padding: 0; text-align: center; }
#contact ul li { margin: 10px 0; }
#contact ul li a { color: #4facfe; font-weight: 600; transition: color 0.3s ease; }
#contact ul li a:hover { color: #00f2fe; }

/* Footer */
footer { text-align: center; padding: 20px; background: #222; color: white; font-size: 0.9rem; }

/* Hero animations */
@keyframes gradientShift { 0% { background-position:0% 50%; } 50% { background-position:100% 50%; } 100% { background-position:0% 50%; } }
@keyframes textGlow { 0% { filter: drop-shadow(0 0 3px #00f2fe); } 100% { filter: drop-shadow(0 0 15px #ffffff); } }

/* Responsive */
@media (max-width: 768px) {
    .about-content { flex-direction: column; text-align: center; }
    .carousel img { width: 250px; height: 170px; }
}
