* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    line-height: 1.6;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #0f172a;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #38bdf8;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #f8fafc;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: #38bdf8;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #38bdf8;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Main Content */
main {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #f8fafc;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #38bdf8, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .typing {
    font-size: 1.5rem;
    color: #38bdf8;
    border-right: 2px solid #38bdf8;
    animation: blink 1s infinite;
    min-height: 2em;
    display: inline-block;
}

.hero p {
    font-size: 1.2rem;
    margin: 2rem 0;
    max-width: 600px;
    opacity: 0.9;
}

.cta {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #38bdf8, #0ea5e9);
    color: #0f172a;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
}

/* Projects Section */
.projects {
    padding: 6rem 2rem;
    background: #f8fafc;
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #0f172a;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, #38bdf8, #0ea5e9);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #0f172a;
}

.project-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.page-section {
    padding: 80px 0;
}

.projects {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.projects h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.project-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.project-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 14px;
}

.project-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 14px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:not(.secondary) {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn:not(.secondary):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn.secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn.secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.fade-in {
    opacity: 1;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

.control-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 5px 8px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .projects h2 {
        font-size: 2.5rem;
    }

    .project-buttons {
        flex-direction: column;
    }

    .btn {
        flex: none;
    }
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #38bdf8;
    color: white;
    border-radius: 25px;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #0ea5e9;
    transform: translateY(-2px);
}

.btn.secondary {
    background: transparent;
    color: #38bdf8;
    border: 2px solid #38bdf8;
}

.btn.secondary:hover {
    background: #38bdf8;
    color: white;
}

/* About Section */
.about {
    padding: 6rem 2rem;
    background: white;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #0f172a;
}

.about-text {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.skills {
    margin-top: 2rem;
}

.skills h3 {
    margin-bottom: 1rem;
    color: #0f172a;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-item {
    background: linear-gradient(45deg, #0f172a, #1e293b);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #38bdf8, #0ea5e9);
}

.timeline {
    margin-top: 2rem;
}

.timeline h3 {
    margin-bottom: 1rem;
    color: #0f172a;
}

.timeline-item {
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid #38bdf8;
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #0f172a;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #0f172a;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #38bdf8;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.social-links {
    text-align: center;
    margin-top: 3rem;
}

.social-links h3 {
    margin-bottom: 1rem;
    color: #0f172a;
}

.social-links a {
    display: inline-block;
    margin: 0 1rem;
    padding: 1rem;
    background: #0f172a;
    color: white;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #38bdf8;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: #0f172a;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

/* Navigation Styles */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {

    0%,
    50% {
        border-color: transparent;
    }

    51%,
    100% {
        border-color: #38bdf8;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .typing {
        font-size: 1.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
        gap: 0.5rem;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
}