* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    display: none; 
}

:root {
    --primary-color: #4f46e5;
    --secondary-color: #6366f1;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-secondary: #f9fafb;
    --gray-light: #f3f4f6;
    --gray-medium: #6b7280;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--bg-color);
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.navbar {
    position: fixed;
    width: 100%;
    padding: 1rem 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    animation: fadeInDown 0.8s var(--ease-out);
}

.navbar.scrolled {
    padding: 1rem 7%;
    background: rgba(255, 255, 255, 0.95);
}

@keyframes fadeInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: -0.05em;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.35s var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.menu-btn {
    display: none;
    cursor: pointer;
}

.menu-btn .bar {
    width: 28px;
    height: 3px;
    background-color: var(--text-color);
    margin: 6px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.menu-btn.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 7px);
}

.menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-btn.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -7px);
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 7rem 7% 3rem;
    background: linear-gradient(to bottom, #f9fafb 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    width: 100%;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1.2s var(--ease-out) 0.2s both;
}

.hero h1 {
    font-size: clamp(2.75rem, 6vw, 4rem);
    margin-bottom: 1rem;
    line-height: 1.1;
    transition: text-shadow 0.3s;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--gray-medium);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--gray-medium);
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
    letter-spacing: 0.01em;
}

.hero h1:hover {
    text-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    transition: color 0.3s;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: rgba(99, 102, 241, 0.2);
    z-index: -1;
    transform: skewX(-12deg);
    transition: all 0.4s var(--ease-out);
}

.highlight:hover::after {
    height: 40%;
    background: rgba(99, 102, 241, 0.3);
    transform: skewX(-5deg);
}

.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    margin: 0.75rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s var(--bounce);
    font-weight: 600;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: translateY(2px) scale(0.98);
}

.btn.primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn.primary:hover {
    background: var(--secondary-color);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
    transform: translateY(-2px);
}

.btn.secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn.secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.btn.primary:hover {
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: fadeIn 1s 1.5s forwards, bounce 2s 2s infinite;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, -50%);
    }
    40% {
        transform: translate(-50%, -70%);
    }
    60% {
        transform: translate(-50%, -60%);
    }
}

.mouse {
    width: 34px;
    height: 56px;
    border: 3px solid var(--text-color);
    border-radius: 18px;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
}

.mouse::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 10px;
    background: var(--primary-color);
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
    border-radius: 3px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 25px);
        opacity: 0;
    }
}

section {
    padding: 10rem 7%;
}

.section-title {
    text-align: center;
    font-size: clamp(2.25rem, 5vw, 3rem);
    margin-bottom: 4rem;
    position: relative;
    color: var(--text-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

.about-image img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 2.5rem;
}

.skill {
    padding: 0.7rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
    transition: all 0.3s ease;
}

.skill:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.projects {
    background: var(--bg-secondary);
    position: relative;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1300px;
    margin: 0 auto;
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-light);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.12);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-info {
    padding: 2rem;
    transition: background-color 0.3s;
    position: relative;
    z-index: 1;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.project-tech span {
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s var(--ease-out);
}

.project-tech span:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.project-card:hover .project-info {
    background-color: rgba(250, 251, 255, 0.8);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    max-width: 1300px;
    margin: 0 auto;
}

.form-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: transparent;
    transition: var(--transition);
    font-size: 1rem;
}

.form-group label {
    position: absolute;
    left: 1.2rem;
    top: 1.2rem;
    color: var(--gray-medium);
    transition: var(--transition);
    pointer-events: none;
    background: var(--bg-color);
    padding: 0 0.8rem;
    font-weight: 500;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    transform: translateY(-1.6rem) scale(0.85);
    color: var(--primary-color);
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gray-light);
    border-radius: 12px;
    transition: all 0.4s var(--ease-out);
}

.info-item:hover {
    transform: translateX(12px);
    background: #f1f5f9;
    box-shadow: -8px 8px 16px rgba(0, 0, 0, 0.05);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.social-link {
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.4s var(--bounce);
    font-size: 1.5rem;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-6px) scale(1.15);
}

.icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.email-icon {
    background-image: url("https://cdn-icons-png.flaticon.com/512/3178/3178158.png");
}

.phone-icon {
    background-image: url("https://cdn-icons-png.flaticon.com/512/455/455705.png");
}

.location-icon {
    background-image: url("https://cdn-icons-png.flaticon.com/512/1180/1180754.png");
}

.linkedin-icon {
    background-image: url("https://cdn-icons-png.flaticon.com/512/3536/3536505.png");
}

.github-icon {
    background-image: url("https://cdn-icons-png.flaticon.com/512/733/733553.png");
}

footer {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--gray-light);
    font-size: 0.95rem;
    color: var(--text-light);
    border-top: 1px solid #e5e7eb;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s var(--ease-out) forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s var(--ease-out) forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

.achievements-content {
    display: flex;
    justify-content: center;
    width: 100%;
}

.centered-achievements {
    list-style-type: none;
    padding: 0;
    max-width: 900px;
    text-align: left;
}

.centered-achievements li {
    margin-bottom: 1.5rem;
    padding: 1.2rem 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--gray-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.centered-achievements li:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.centered-achievements li i {
    margin-right: 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 30px;
}

.centered-certs {
    justify-content: center;
}

.certifications-content {
    display: flex;
    justify-content: center;
}

.cert-card {
    text-align: center;
    transition: all 0.3s ease;
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--gray-light);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    display: block;
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.cert-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.cert-card:hover .cert-icon {
    transform: scale(1.1);
}

.achievements-container,
.certifications-container {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

.achievements-content {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.centered-achievements {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline-block;
    text-align: left;
}

.certifications-content {
    width: 100%;
    max-width: 1000px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
    margin: 0 auto;
}

.achievements-container,
.certifications-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.achievements-content {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: center;
}

.centered-achievements {
    list-style: none;
    padding: 0;
    margin: 0;
    width: fit-content;
}

.centered-achievements li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.centered-achievements li i {
    margin-right: 10px;
    min-width: 20px;
    text-align: center;
}

.certifications-content {
    width: 100%;
    max-width: 1200px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    width: 100%;
    justify-content: center;
    align-items: stretch;
}

.cert-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    background: var(--gray-light);
    border-radius: 15px;
    transition: all 0.5s var(--bounce);
    cursor: pointer;
}

.cert-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.cert-card p {
    color: var(--gray-medium);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.cert-credential {
    display: block;
    font-size: 0.75rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
    font-weight: 600;
}

.cert-badge {
    display: inline-block;
    font-size: 0.7rem;
    color: #059669;
    background: #d1fae5;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    margin-top: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

@media (max-width: 768px) {
    .cert-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .achievements-container,
    .certifications-container {
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        padding: 1.5rem;
        flex-direction: column;
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
        backdrop-filter: blur(10px);
        z-index: 100;
        box-shadow: var(--shadow-md);
        height: auto;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .menu-btn {
        display: block;
        z-index: 101;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        display: flex;
        justify-content: center;
    }

    .about-image img {
        width: 280px;
        height: 280px;
    }

    section {
        padding: 7rem 2rem;
    }

    .hero {
        padding: 7rem 1rem 3rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        max-width: 100%;
    }

    .project-info {
        opacity: 1;
        position: static;
        padding: 1.5rem;
        transform: none;
    }

    .info-item {
        padding: 1rem;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }
    
    .navbar.scrolled {
        padding: 0.75rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 3rem;
    }

    .btn {
        width: 100%;
        margin: 0.5rem 0;
        padding: 0.8rem 1.5rem;
    }

    .project-card {
        border-radius: 10px;
    }
    
    .project-card img {
        height: 180px;
    }

    .skills {
        gap: 0.8rem;
    }

    .skill {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .about-image img {
        width: 220px;
        height: 220px;
    }

    .achievements-content ul,
    .certifications-content ul {
        padding-left: 1.5rem;
    }
    
    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .about-image img {
        width: 180px;
        height: 180px;
    }
}

.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.4);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.float-animation {
    animation: float 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}