@font-face {
    font-family: 'Cinzel';
    src: url('/Cinzel-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --accent: #2ecc71;
    --accent-glow: rgba(46, 204, 113, 0.4);
    --text: #ffffff;
}

body {
    background-color: var(--dark-bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 300;
}

body::selection {
    background: var(--accent);
}


h1,
h2,
h3,
h4 {
    font-family: 'Cinzel', serif;
    font-weight: 500;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-family: 'Cinzel', serif;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-weight: 300;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 12% 5%;
    background: radial-gradient(circle at 75% 30%, var(--accent-glow) 0%, transparent 30%);
}

.hero-content {
    flex: 1;
    padding-right: 5rem;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.profile-img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 0 50px var(--accent-glow);
    animation: float 3s ease-in-out infinite;
    filter: grayscale(0.2) contrast(1.1);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--accent) 30%, #ffffff 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--accent), #27ae60);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button-sm {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(45deg, var(--accent), #27ae60);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}


/* Skills Section */
.skills {
    padding: 5rem 5%;
    background: var(--darker-bg);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-card {
    padding: 2rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}


/* Projects Section */
.projects {
    padding: 5rem 5%;
    background: var(--darker-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, max-content));
    /* Fixed width */
    gap: 2rem;
    justify-content: start;
    align-items: start;
    margin-top: 3rem;
}

.project-card {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 2rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.project-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.project-thumbnail {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.project-thumbnail:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.project-card ul {
    padding-left: 18px;
}

/* Contact Form Section */

.contact-details {
    padding: 5rem 5%;
    background: var(--darker-bg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* gap: 2rem; */
}

.contact-form {
    padding: 2rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);

}

.contact-form:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px var(--accent-glow);
}

form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

form input,
textarea {
    color: var(--text);
    padding: 0.8rem;
    background: transparent;
    font-family: 'Segoe UI', sans-serif;
}

input::placeholder,
textarea::placeholder {
    color: var(--text);
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
}

.form_row {
    display: flex;
    gap: 1.5rem;
}

.form_row input {
    flex: 1;
}

form input:focus {
    border: 1px solid var(--accent);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-left: 4rem;
    padding-top: 2rem;
}

.contact-info h2 {
    font-size: 2rem;
}

.contact-info a {
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}


.social-links-info {
    margin-top: 1rem;
    display: flex;
    justify-content: start;
    gap: 2rem;
}

.social-links-info a {
    color: var(--text);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links-info a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}





/* Footer */
footer {
    background: var(--darker-bg);
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lg-text {
    font-size: 15px;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    color: var(--text);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

@media (max-width: 769px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .profile-img {
        width: 280px;
        height: 280px;
    }

    .nav-links {
        display: none;
    }

    .logo {
        font-size: 1.5rem;
    }

    .contact-details {
        gap: 4rem;
    }

    .form_row {
        flex-direction: column;
    }
}

@media (max-width: 769px) {

    .hero {
        flex-direction: column-reverse;
    }

    h2 {
        text-align: center;
    }

    footer p {
        font-size: 0.9rem
    }

    .social-links a {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 3rem;

    }

    .hero p {
        font-size: 1.1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        max-width: 100%;
    }

    .contact-details {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .contact-info {
        align-items: start;
        margin-left: 1rem;
    }

    .social-links-info a {
        font-size: 1.3rem;
    }

    .lg-text {
        font-size: 15px;
    }

    .form_row {
        flex-direction: column;
    }

}

@media (max-width: 425px) {

    .hero {
        flex-direction: column-reverse;
    }

    h2 {
        text-align: center;
    }

    footer p {
        font-size: 0.9rem
    }

    .social-links a {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 3rem;

    }

    .hero p {
        font-size: 1.1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-details {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .contact-info {
        align-items: start;
        margin-left: 1rem;
    }

    .social-links-info a {
        font-size: 1.3rem;
    }

    .lg-text {
        font-size: 15px;
    }

    .form_row {
        flex-direction: column;
    }

}