* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Management */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Header visibility control */
.header-home-only {
    display: flex;
}

.header-follow-only {
    display: none;
}

body.follow-page-active .header-home-only {
    display: none;
}

body.follow-page-active .header-follow-only {
    display: flex;
}

header {
    background: rgba(15, 32, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(45deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #00d4ff, #00ff88);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: #00d4ff;
}

.nav-links a.active::after {
    width: 100%;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-30px);
    }
}

.hero-content {
    z-index: 1;
}

.hero-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hero h1 {
    font-size: 56px;
    background: linear-gradient(45deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.clock-widget {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 20px 30px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease 0.2s backwards;
}

.clock-time {
    font-size: 32px;
    font-weight: bold;
    color: #00d4ff;
    font-family: 'Courier New', monospace;
    margin-bottom: 5px;
}

.clock-date {
    font-size: 16px;
    color: #00ff88;
    font-weight: 500;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    font-size: 24px;
    color: #b0b0b0;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, #00d4ff, #00ff88);
    color: #0f2027;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.resume-button {
    display: inline-block;
    padding: 15px 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #00d4ff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 2px solid #00d4ff;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.cta-button:hover,
.resume-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5);
}

section {
    padding: 100px 0;
}

h2 {
    font-size: 42px;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(45deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
    border: 3px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.about-image-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 212, 255, 0.5);
    border-color: #00d4ff;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 255, 136, 0.2));
    z-index: 1;
    transition: opacity 0.3s ease;
}

.about-image-wrapper:hover::before {
    opacity: 0;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.about-image-wrapper:hover img {
    filter: grayscale(0%);
}

.about-text p {
    font-size: 18px;
    color: #c0c0c0;
    margin-bottom: 20px;
    line-height: 1.8;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.skill-card:hover {
    transform: translateY(-10px);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.skill-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.education-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 4px solid #00d4ff;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(10px);
}

.timeline-year {
    color: #00ff88;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.timeline-degree {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 5px;
}

.timeline-institution {
    color: #b0b0b0;
    font-size: 16px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #00d4ff;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #00d4ff, #00ff88);
    color: #0f2027;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 0;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
    background: rgba(0, 212, 255, 0.08);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
    border-color: #00d4ff;
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(15, 32, 39, 0.3) 100%);
}

.project-content {
    padding: 30px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.project-header h3 {
    font-size: 22px;
    color: #ffffff;
    flex: 1;
}

.project-tag {
    background: linear-gradient(45deg, #00d4ff, #00ff88);
    color: #0f2027;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.project-description {
    color: #c0c0c0;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-tech span {
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-btn {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    background: linear-gradient(45deg, #00d4ff, #00ff88);
    color: #0f2027;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.project-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
}

.all-projects-btn {
    display: inline-block;
    padding: 15px 50px;
    background: linear-gradient(45deg, #00d4ff, #00ff88);
    color: #0f2027;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.all-projects-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5);
}
.social-links-footer {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link svg {
    width: 50px;
    height: 50px;
    fill: #00d4ff;
    padding: 15px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.social-link span {
    color: #e0e0e0;
    font-weight: 500;
    font-size: 16px;
}

.social-link:hover svg {
    fill: #00ff88;
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4);
}

.social-link:hover span {
    color: #00d4ff;
}

footer {
    background: rgba(15, 32, 39, 0.95);
    padding: 30px 0;
    text-align: center;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .nav-links {
        gap: 15px;
        font-size: 14px;
    }

    h2 {
        font-size: 32px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .follow-title {
        font-size: 36px;
    }

    .hero-header {
        flex-direction: column;
        gap: 20px;
    }

    .hero h1 {
        font-size: 36px;
    }
}