:root {
    --primary: #301934;
    --secondary: #FFDF00;
    --bg: radial-gradient(#301934, #2a0845);
    --accent: whitesmoke;
    --blend: radial-gradient(#301934, #FFDF00);
    --blend2: radial-gradient(#FFDF00, #301934);
    --dark: #2a0845;
    --light: #f8f9fa;
    --medium: rgba(255, 223, 0, 0.1);
    --marble: #D3AF37;
    --marble2: #ad880d;
    --rose: #B76E79;
    --orangegold: #f8961e;
    
    --shadow: 0 10px 30px #2a0845;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-radius: 2px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Serif", "Montserrat", serif;
    color: var(--dark);
    background: radial-gradient(#2a0845b3, #B76E79, #2a0845b3),
    url(sky.jpg) center/cover fixed;
    overflow-x: hidden;
    position: relative;
    cursor: none;
    line-height: 1.6;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(48, 25, 52, 0.8) 0%, rgba(42, 8, 69, 0.95) 100%);
    z-index: -1;
}

.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.1s ease;
}

.cursor {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--secondary);
    position: fixed;
    pointer-events: none;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    z-index: 9999;
    display: none;
    border: 1px solid var(--dark);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: var(--transition);
    z-index: 9998;
    display: none;
    background-color: rgba(255, 223, 0, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--light);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

nav:hover {
    background-color: var(--light);
}

nav.scroll {
    background-color: var(--light);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--marble2);
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--dark);
    transition: var(--transition);
    text-decoration: none;
}

.logo:hover {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    gap: 2rem;
    z-index: 101;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition);
    padding-bottom: 5px;
    pointer-events: auto;
    text-decoration: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
    border-radius: 3px;
}

.nav-links a:hover {
    color: var(--dark);
}

.nav-links a:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    position: relative;
    gap: 1rem;
    z-index: 1000;
}

.social-links a {
    color: var(--dark);
    font-size: 1.4rem;
    transition: var(--transition);
}

.social-icon {
    color: var(--orangegold);
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgb(226, 198, 15);
    z-index: 1001;
    text-decoration: none;
    position: relative;
}

.social-icon:hover {
    background-color: var(--secondary);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: none;
    padding: 0.5rem;
    z-index: 101;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark);
    transition: var(--transition);
    transform-origin: center;
}

.menu-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--secondary);
}

.menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--secondary);
}

main {
    padding-top: 80px;
    min-height: 100vh;
    position: relative;
}

section {
    padding: 8rem 10%;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.about {
    background-color: rgb(236, 226, 228);
}

.works {
    background-color: rgba(236, 226, 228, 0.5);
}

.contact {
    background-color: rgb(236, 226, 228);
}

.works .section-title {
    color: var(--secondary);
}

.section-title {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15%;
    position: relative;
}

.hero-content {
    max-width: 600px;
    text-align: center;
}

.name {
    color: var(--secondary);
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--light);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease forwards 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.hero h2 {
    font-size: 1.8rem;
    color: var(--secondary);
    font-weight: 400;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease forwards 0.6s;
    opacity: 0;
    transform: translateY(20px);
}

.hero p {
    display: inline-block;
    font-size: 1.1rem;
    color: var(--light);
    line-height: 1.6;
    margin-bottom: 0;
    padding-bottom: 0;
    animation: fadeInUp 1s ease forwards 0.9s;
    opacity: 0;
    transform: translateY(20px);
}

.hero-buttons {
    display: flex;
    gap: 7rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.5rem !important;
    transform: translateY(-10px);
}

.hero-btn, .resume-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(58, 12, 163, 0.4);
    transition: var(--transition);
    animation: fadeInUp 1s ease forwards 1.3s;
    opacity: 0;
    transform: translateY(20px);
    text-decoration: none;
    margin-bottom: 5rem;
}

.hero-btn {
    background-color: var(--marble2);
    color: var(--light);
}

.resume-btn {
    background-color: var(--primary);
    color: var(--light);
}

.hero-btn:hover, .resume-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(58, 12, 163, 0.6);
}

.hero-btn:hover {
    background: var(--orangegold);
}

.resume-btn:hover {
    background: var(--orangegold);
}

.btn-ripple {
    position: relative;
    overflow: hidden;
}
  
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}
  
@keyframes ripple {
    to {
      transform: scale(2.5);
      opacity: 0;
    }
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
    color: var(--dark);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Skills Section */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .skill {
    position: relative;
    width: calc(50% - 0.6rem);
    max-width: 120px;
    padding: 0.4rem;
    background-color: rgb(221, 184, 190);
    border-radius: 50px;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(252, 218, 0, 0.2);
    cursor: pointer;
  }
  
  .skill:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px (var(--orangegold)) ;
    background-color: var(--secondary);
  }
  
  .skill span {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    text-align: center;
  }
  
  .skill-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 10px;
  }
  
  .skill-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
  }
  
  .skill-progress {
    height: 100%;
    background: var(--dark);
    border-radius: 3px;
    width: 0;
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .skill:hover .skill-progress {
    width: var(--skill-level);
  }
  
  /* Circular ends */
  .skill-bar::before,
  .skill-bar::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: inherit;
    border-radius: 50%;
    z-index: 2;
  }
  
  .skill-bar::before {
    left: -3px;
  }
  
  .skill-bar::after {
    right: -3px;
  }
  
  .skill:hover .skill-bar::before,
  .skill:hover .skill-bar::after {
    background: var(--dark);
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .skill {
      width: calc(50% - 0.8rem);
    }
  }
  
  @media (max-width: 480px) {
    .skill {
      width: 100%;
      max-width: none;
    }
  }


.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image img {
    border-radius: 30px;
    box-shadow: var(--shadow);
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border: 4px solid #ad880d;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.work-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 250px;
}

.work-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.work-item:hover img {
    transform: scale(1.1);
}

.work-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background-color: var(--light);
    transition: var(--transition);
}

.work-item:hover .work-info {
    bottom: 0;
}

.work-info h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.work-info p {
    color: var(--dark);
    font-size: 0.9rem;
}

.work-link {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.work-item:hover .work-link {
    opacity: 1;
}

.work-link:hover {
    background-color: var(--secondary);
    color: var(--dark);
}

.empty-project {
    background: radial-gradient(var(--dark), var(--marble2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 2px var(--secondary);
}

.empty-project:hover {
    background: radial-gradient(circle, var(--rose), rgb(136, 117, 9));
}

.empty-project-content {
    text-align: center;
    padding: 2rem;
}

.empty-project h3 {
    color: var(--light);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-project p {
    color: rgba(255, 255, 255, 0.9);
}

.testimonials {
    background-color: rgba(236, 226, 228, 0.8);
    position: relative;
}
  
.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}
  
.testimonial-item {
    background-color: var(--light);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
  
.testimonial-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
  
.testimonial-content {
    position: relative;
    z-index: 2;
}
  
.quote-icon {
    font-size: 3rem;
    color: var(--secondary);
    opacity: 0.35;
    position: absolute;
    top: 10px;
    right: 20px;
}
  
.testimonial-text {
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--dark);
    position: relative;
    line-height: 1.8;
}
  
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
  
.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary);
}
  
.author-info h4 {
    color: var(--primary);
    margin-bottom: 0.3rem;
}
  
.author-info p {
    color: var(--dark);
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-container {
    display: flex;
    gap: 3rem;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 2rem;
    color: var(--dark);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-details a {
    text-decoration: none ;
    color: var(--dark);
    transition: var(--transition);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 1.3rem;
}

.contact-detail i {
    width: 50px;
    height: 50px;
    background-color: var(--orangegold);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    text-decoration: none;
    transform: rotate3d(90deg) translateX(50px) scale(1.5);
}

.contact-detail i:hover {
    background-color: var(--secondary);
    color: var(--dark);
    transform: rotate(360deg) scale(1.1);
}

.contact-social {
    display: flex;
    gap: 1rem;
    font-size: 1.3rem;
}

.contact-social a {
    width: 50px;
    height: 50px;
    background-color: var(--orangegold);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
    transform-origin: center;
    transform: rotate3d(90deg) translateX(50px) scale(1.5);   
}

.contact-social a:hover {
    background-color: var(--secondary);
    color: var(--dark);
    transform: translateY(-3px);
}

.contact-form {
    flex: 1;
    background-color: var(--light);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 223, 0, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(66, 6, 58, 0.2);
    outline: none;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Error states */
.invalid {
    border-color: #ff4444 !important;
  }
  
  .error-message {
    color: #ff4444;
    font-size: 0.8rem;
    height: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  /* Alerts */
  .form-alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    animation: fadeIn 0.3s;
  }
  
  .form-alert.success {
    background: #d4edda;
    color: #a79706;
  }
  
  .form-alert.error {
    background: #f8d7da;
    color: #721c24;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

.dynamic-fields {
    margin-bottom: 1.5rem;
}

.submit-btn {
    background-color: #330b53;
    color: var(--secondary);
    border: none;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 500;
    cursor: none;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(58, 12, 163, 0.4);
    width: 100%;
}

.submit-btn:hover {
    background: var(--orangegold);
    color: #2a0845;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(58, 12, 163, 0.6);
}

.invalid {
    border-color: var(--rose) !important;
    background-color: rgba(183, 110, 121, 0.05);
}

.valid {
    border-color: var(--secondary) !important;
}

.error-message {
    color: var(--rose);
    font-size: 0.8rem;
    margin-top: 0.3rem;
    height: 1rem;
    display: block;
    opacity: 1;
    transition: opacity 0.3s;
}

.success-message {
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  padding: 1rem;
  margin: 1rem 0;
  background: rgba(42, 8, 69, 0.95); 
  color: var(--marble);
  border-radius: 8px;
  border-left: 4px solid var(--secondary);
  transition: fadeIn 0.3s ease-out;
}

.success-message .success-content {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.success-message .success-content i {
  color: var(--secondary);
  font-size: 1.4rem;
  margin-right: 0.5rem;
}

.success-message .success-content span {
  font-weight: 500;
}

/* Add to styles.css */
.success-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(42, 8, 69, 0.95);
    border: 2px solid var(--marble2);
    color: var(--marble);
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: none;
    opacity: 0;
    transition: all 0.4s ease-out;
    max-width: 90%;
    text-align: center;
  }
  
  .success-toast.show {
    display: block;
    opacity: 1;
    animation: floatUp 0.5s ease-out;
  }
  
  @keyframes floatUp {
    from { transform: translateX(-50%) translateY(20px); }
    to { transform: translateX(-50%) translateY(0); }
  }

.empty {
    display: flex;
    height: 15vh;
}



/* Spinner Styles */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--secondary);
    animation: spin 1s ease-in-out infinite;
    display: none;
    margin-left: 10px;
  }
  
  .spinner.visible {
    display: inline-block;
  }
  
  .submit-btn .btn-text {
    transition: opacity 0.3s;
  }
  
  .submit-btn.loading .btn-text {
    opacity: 0.7;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }


footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    width: 100%;
    border-top-right-radius: 50%;
    border-top-left-radius: 50%;
    background: radial-gradient(circle, #2a0845 30%, #2a0845 35%, #2a0845 70%, rgba(180, 145, 28, 0) 80%, rgba(180, 145, 28, 0) 100%);    
    padding: 4rem 10% 2rem;
    text-align: center;
    position: relative;
    bottom: 7px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.1rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--marble);
    transition: var(--transition);
    margin-bottom: 0;
    text-decoration: none;
}

.footer-logo:hover {
    transform: scale(1.05);
    color: var(--secondary);
    text-decoration: none;
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin: 0.5rem 0;
    padding-bottom: 0;
    flex-wrap: wrap;
    justify-content: center;
    text-decoration: none;
}

.footer-links a {
    color: var(--light);
    transition: var(--transition);
    padding: 0.5rem;
    text-decoration: none;
    margin: 0 auto;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateY(-3px);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.not-allowed {
    cursor: not-allowed;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light);
    font-size: 1.5rem;
    transition: var(--transition);
    margin-bottom: 0;
}

.social-icon:hover {
    background-color: var(--secondary);
    color: var(--dark);
    transform: rotate3d(90deg) translateX(50px) scale(1.2);
}

.footer-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(var(--primary), var(--marble2));
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transform: translateY(0);
    transition: var(--transition);
    border: none;
    cursor: none;
    z-index: 99;
    box-shadow: 0 5px 15px var(--rose);
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.progress-circle {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.progress-circle-track {
    fill: transparent;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 2;
}

.progress-circle-fill {
    fill: transparent;
    stroke: white;
    stroke-width: 2;
    stroke-dasharray: 126;
    stroke-dashoffset: 126;
    transition: stroke-dashoffset 0.1s linear;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Newsletter Styles */
.newsletter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 8, 69, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-out;
  }
  
  .newsletter-modal.active {
    opacity: 1;
    visibility: visible;
  }
  
  .newsletter-content {
    background: var(--light);
    border-radius: 15px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.4s ease-out;
  }
  
  .newsletter-modal.active .newsletter-content {
    transform: translateY(0);
  }
  
  .close-newsletter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--marble);
    cursor: none;
    transition: var(--transition);
  }
  
  .close-newsletter:hover {
    color: var(--rose);
    transform: rotate(90deg);
  }
  
  .newsletter-header {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .newsletter-header h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }
  
  .newsletter-header p {
    color: var(--dark);
    font-size: 1rem;
  }
  
  .newsletter-form .form-group {
    margin-bottom: 1.5rem;
  }
  
  .newsletter-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.9);
  }
  
  .newsletter-form input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(66, 6, 58, 0.2);
    outline: none;
  }
  
  .newsletter-success {
    display: none;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(42, 8, 69, 0.95);
    color: var(--marble);
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    margin-top: 1rem;
  }
  
  .newsletter-success i {
    color: var(--secondary);
    font-size: 1.4rem;
  }
  
  .newsletter-success span {
    font-weight: 500;
  }

/* MEDIA QUERIES START  */

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .cursor, .cursor-follower {
        display: none !important;
    }
}

/* Only show custom cursor on devices that support hover */
@media (hover: hover) and (pointer: fine) {
    .cursor, .cursor-follower {
        display: block;
    }
    
    body {
        cursor: none;
    }
}

/* Tablet adjustments */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        height: auto;
        padding: 8rem 5% 4rem;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .about-content,
    .contact-container {
        flex-direction: column;
    }

    .about-image {
        margin-top: 2rem;
    }

    .nav-links { 
        gap: 1rem;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .empty {
        height: 9vh;
    }
}

/* Mobile menu and general mobile styles */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(248, 249, 250, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        font-size: 1rem;
        padding: 2rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.5s ease;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .menu-toggle {
        display: block;
    }

    .social-links {
        display: flex;
        position: relative;
        bottom: 0;
        left: 0;
        width: 100%;
        justify-content: center;
        background: rgba(248, 249, 250, 0.9);
        padding: 10px 0;
        gap: 0.5rem;
    }

    .hero h2 {
        white-space: normal;
        display: inline-block;
    }

    .hero-buttons {
        gap: 0.3rem !important;
        margin-top: 0.5rem !important;
    }

    .empty {
        height: 5vh;
    }

    footer {
        padding: 1.5rem 5% 1rem;
    }
    
    .footer-links {
        margin: 0.3rem 0;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    section {
        padding: 6rem 5%;
    }

    .social-links {
        display: flex;
        position: relative;
        bottom: 0;
        left: 0;
        width: 100%;
        justify-content: center;
        background: rgba(248, 249, 250, 0.9);
        padding: 10px 0;
        gap: 0.4rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .works-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .empty {
        height: 4vh;
    }
}

/* Very small devices */
@media (max-width: 480px) {
    .social-links {
        display: flex;
        position: relative;
        bottom: 0;
        left: 0;
        width: 100%;
        justify-content: center;
        background: rgba(248, 249, 250, 0.9);
        padding: 10px 0;
        gap: 0.3rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-avatar {
        width: 60px;
        height: 60px;
    }
    
    .testimonials-container {
        grid-template-columns: 1fr;
    }
    
    .testimonial-item {
        padding: 2rem;
    }
}
