/* ===== Basic Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(180deg, #f8f9fa 0%, #e8f4f8 50%, #f0f0f5 100%);
    background-attachment: fixed;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ===== Navigation ===== */
.navbar {
    background: linear-gradient(90deg, #2c3e50 0%, #5c94cb 50%, #2c3e50 100%);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    background: rgba(44, 62, 80, 0.95);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #3498db;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #3498db;
}

/* ===== Home Section ===== */
.home {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.home .container {
    position: relative;
    z-index: 1;
}

.home h1 {
    font-size: 48px;
    margin-bottom: 15px;
    animation: slideInDown 0.8s ease;
}

.subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: slideInUp 0.8s ease 0.2s both;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.6);
}

.btn:active {
    transform: translateY(-1px);
}

.project-btn {
    display: inline-block;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 8px 18px;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.project-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5);
}

/* ===== Sections ===== */
section {
    padding: 60px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #2c3e50;
    position: relative;
    z-index: 1;
    display: inline-block;
    width: 100%;
}

section h2::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #667eea, #764ba2);
    border-radius: 2px;
}

section p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
}

/* ===== About Section ===== */
.about {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9f1f7 50%, #f0f3f8 100%);
    position: relative;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.about .container {
    position: relative;
    z-index: 1;
}

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

.about h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 32px;
}

.about-text p {
    max-width: 100%;
    margin-bottom: 20px;
    font-size: 16px;
    text-align: left;
    color: #555;
}

/* ===== Photo Frame ===== */
.photo-frame {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
    perspective: 1000px;
}

.photo-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid #3498db;
    box-shadow: 
        0 0 0 3px white,
        0 0 0 8px #3498db,
        0 15px 35px rgba(52, 152, 219, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    animation: floatPhoto 3s ease-in-out infinite;
}

.photo-wrapper:hover {
    box-shadow: 
        0 0 0 3px white,
        0 0 0 8px #2980b9,
        0 20px 50px rgba(52, 152, 219, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.1);
    transform: scale(1.05) rotateZ(5deg);
}

.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Photo frame shimmer effect */
.photo-frame::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

/* About Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #3498db;
    transition: 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
}

.stat-box h3 {
    font-size: 28px;
    color: #3498db;
    margin-bottom: 5px;
}

.stat-box p {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0;
}

/* Animations */
@keyframes floatPhoto {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
/* ===== Projects Section ===== */
.projects {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 50%, #ffffff 100%);
    position: relative;
}

.projects::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

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

.project-card {
    background: white;
    border: 2px solid #ecf0f1;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    transition: left 0.5s ease;
}

.project-card:hover {
    border-color: #3498db;
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.25);
    transform: translateY(-10px);
}

.project-card:hover::before {
    left: 100%;
}

.project-header {
    font-size: 50px;
    margin-bottom: 15px;
    display: inline-block;
    transition: 0.3s;
}

.project-card:hover .project-header {
    transform: scale(1.2) rotate(10deg);
}

.project-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 20px;
}

.project-card p {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 14px;
}

.tech {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

/* ===== Skills Section ===== */
.skills {
    background: linear-gradient(135deg, #eef5ff 0%, #f0e9f7 50%, #f5f0ff 100%);
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.skills::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.skills .container {
    position: relative;
    z-index: 1;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.skill-item h3 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #3498db;
}

.skill-item ul {
    list-style: none;
}

.skill-item li {
    padding: 12px 0;
    color: #555;
    font-size: 15px;
    border-bottom: 1px solid #ecf0f1;
    transition: 0.3s;
}

.skill-item li:last-child {
    border-bottom: none;
}

.skill-item li:hover {
    color: #3498db;
    padding-left: 10px;
    font-weight: 500;
}

.skill-item li::before {
    content: '✓ ';
    color: #27ae60;
    font-weight: bold;
    margin-right: 5px;
}

/* ===== Contact Section ===== */
.contact {
    background: linear-gradient(180deg, #f9fbff 0%, #f5f8ff 50%, #f0f5ff 100%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact p {
    text-align: center;
    margin-bottom: 30px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 100%);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(52, 152, 219, 0.15);
    border: 2px solid rgba(52, 152, 219, 0.1);
    position: relative;
    z-index: 2;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
    background: #fafbfc;
}

.contact-links {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 2px solid rgba(52, 152, 219, 0.2);
    position: relative;
    z-index: 2;
}

.contact-links p {
    margin: 15px 0;
    font-size: 15px;
}

.contact-links a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.contact-links a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    color: white;
    text-align: center;
    padding: 30px 0;
    border-top: 3px solid #3498db;
    position: relative;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.footer p {
    margin: 0;
    font-weight: 500;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #667eea, #764ba2, #3498db);
    background-size: 200% 100%;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .home h1 {
        font-size: 32px;
    }

    .subtitle {
        font-size: 16px;
    }

    section h2 {
        font-size: 24px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .photo-wrapper {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .stat-box {
        padding: 15px 10px;
    }

    .stat-box h3 {
        font-size: 24px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .home h1 {
        font-size: 24px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-box h3 {
        font-size: 20px;
    }

    .photo-wrapper {
        width: 200px;
        height: 200px;
    }
}
