/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f5f5f5;
    --accent-color: #e8505b;
    --text-light: #f5f5f5;
    --text-dark: #1a1a1a;
    --text-gray: #777777;
    --transition: all 0.3s ease;
    --overlay: rgba(0, 0, 0, 0.7);
    --spacing: 100px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--secondary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 85%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: var(--spacing) 0;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-color);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.2s ease;
    opacity: 0.7;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.accent {
    color: var(--accent-color);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    font-weight: 300;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.primary-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 15px;
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

header.sticky {
    background-color: var(--secondary-color);
    padding: 15px 5%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
}

nav {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
}

.menu li {
    margin-left: 30px;
}

.menu-link {
    position: relative;
    padding: 5px 0;
    font-weight: 500;
    transition: var(--transition);
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.menu-link:hover {
    color: var(--accent-color);
}

.menu-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu ul {
    text-align: center;
}

.mobile-menu li {
    margin: 20px 0;
}

.mobile-link {
    font-size: 2rem;
    color: var(--text-light);
    transition: var(--transition);
}

.mobile-link:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: var(--secondary-color);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.05) 0%, rgba(26, 26, 26, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    z-index: 2;
    text-align: center;
}

.hero-cta {
    margin-top: 3rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 45px;
    border: 2px solid var(--text-dark);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 6px;
    height: 6px;
    background-color: var(--text-dark);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheel 1.5s infinite;
}

@keyframes wheel {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

.arrow {
    margin-top: 10px;
    animation: arrow 1.5s infinite;
}

.arrow span {
    display: block;
    width: 15px;
    height: 15px;
    border-bottom: 2px solid var(--text-dark);
    border-right: 2px solid var(--text-dark);
    transform: rotate(45deg);
}

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

/* Section Styling */
.section-header {
    margin-bottom: 50px;
    text-align: center;
}

.section-title {
    display: inline-block;
    position: relative;
    margin-bottom: 20px;
}

.section-line {
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    position: relative;
}

.profile-img {
    width: 100%;
    border-radius: 10px;
    position: relative;
    z-index: 2;
}

.image-overlay {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 10px;
    z-index: 1;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-gray);
}

.skills {
    margin: 30px 0;
}

.skill {
    margin-bottom: 15px;
}

.skill-name {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.skill-bar {
    width: 100%;
    height: 5px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 5px;
}

/* Portfolio Section */
.portfolio {
    background-color: #f9f9f9;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    margin: 5px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn.active, .filter-btn:hover {
    color: var(--accent-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    grid-gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: var(--transition);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-info {
    text-align: center;
    color: var(--text-light);
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-info h3 {
    margin-bottom: 10px;
}

.portfolio-info p {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.view-project {
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.view-project::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-light);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 60px;
}

.contact-info {
    flex: 1;
}

.contact-details {
    margin: 30px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

.contact-form-container {
    flex: 1;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--text-gray);
    color: var(--text-dark);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

.contact-form label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-gray);
    pointer-events: none;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-color);
}

.contact-form input:focus + label,
.contact-form textarea:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 0;
    font-size: 0.8rem;
    color: var(--accent-color);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: transparent;
}

.submit-btn {
    width: 100%;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Animation Classes */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: revealText 1s forwards;
}

@keyframes revealText {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    h1 {
        font-size: 4rem;
    }
    
    h2 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .menu {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    .contact-content,
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing: 70px;
    }
    
    .container {
        width: 90%;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 576px) {
    :root {
        --spacing: 50px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .secondary-btn {
        margin-left: 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* No-scroll class for when mobile menu is active */
.no-scroll {
    overflow: hidden;
}