/* CSS Variables for Theming and Dark Mode */
:root {
    --primary-color: #e95420;
    --secondary-color: #fdf6f0;
    --background-light: #fdf6f0;
    --background-dark: #1a1a1a;
    --text-light: #2e2e2e;
    --text-dark: #f0f0f0;
    --text-muted-light: #5e5e5e;
    --text-muted-dark: #a0a0a0;
    --shadow-soft: rgba(0,0,0,0.05);
    --shadow-hover: rgba(233,84,32,0.15);
    --transition: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    --bg-color: var(--background-light);
    --text-color: var(--text-light);
    --muted-color: var(--text-muted-light);
}
body.dark-mode {
    --bg-color: var(--background-dark);
    --text-color: var(--text-dark);
    --muted-color: var(--text-muted-dark);
    --shadow-soft: rgba(255,255,255,0.05);
    --shadow-hover: rgba(233,84,32,0.25);
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Ubuntu', sans-serif;
    transition: color var(--transition), background var(--transition);
}
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    background: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxyZWN0IHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIiBmaWxsPSIjRkRGNkYwIi8+PGNpcmNsZSBjeD0iNTAiIGN5PSI1MCIgcj0iMzAiIGZpbGw9IiNGRUU3QzUiIG9wYWNpdHk9IjAuMDMiLz48L2c+PC9zdmc+') repeat;
    background-size: 100px 100px;
    animation: subtleShift 60s linear infinite;
}
a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    z-index: 9999;
}
.custom-cursor.hover {
    width: 40px;
    height: 40px;
    background: rgba(233,84,32,0.2);
}

/* Navigation Header */
nav {
    background: var(--bg-color);
    border-bottom: 1px solid rgba(224,224,224,0.5);
    padding: 1.5rem 3rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px var(--shadow-soft);
    transition: background var(--transition), box-shadow var(--transition);
}
nav.scrolled {
    background: rgba(var(--bg-color-rgb), 0.98); /* Use RGB for backdrop */
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 10px var(--shadow-soft);
}
nav h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}
nav ul li a {
    font-weight: 500;
    position: relative;
}
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition);
}
nav ul li a:hover::after {
    width: 100%;
}
.dark-toggle {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
    transition: transform 0.3s;
}
.dark-toggle:hover {
    transform: rotate(180deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-color);
    padding: 0 3rem;
    position: relative;
    overflow: hidden;
    background: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI0MDAiIGhlaWdodD0iNDAwIiB2aWV3Qm94PSIwIDAgNDAwIDQwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxyZWN0IHdpZHRoPSI0MDAiIGhlaWdodD0iNDAwIiBmaWxsPSIjRkRGNkYwIi8+PGNpcmNsZSBjeD0iMjAwIiBjeT0iMjAwIiByPSIxNjAiIGZpbGw9IiNGRkU3QzUiIG9wYWNpdHk9IjAuMDMiLz48Y2lyY2xlIGN4PSIxMDAiIGN5PSIxMDAiIHI9IjgwIiBmaWxsPSIjRTk1NDIwIiBvcGFjaXR5PSIwLjAxIi8+PGNpcmNsZSBjeD0iMzAwIiBjeT0iMzAwIiByPSIxMDAiIGZpbGw9IiNGRkZGRkYiIG9wYWNpdHk9IjAuMDIiLz48L2c+PC9zdmc+') repeat, linear-gradient(135deg, var(--bg-color), var(--background-white));
    background-size: 400px 400px, cover;
    background-attachment: fixed;
    animation: subtleShift 30s linear infinite;
}
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    filter: blur(5px);
}
#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 5;
    max-width: 1200px;
}
.hero h2 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-shadow: 0 4px 8px var(--shadow-soft);
}
.hero p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    max-width: 800px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.cta-button {
    background: var(--primary-color);
    color: #ffffff;
    padding: 1.5rem 4rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1.3rem;
    box-shadow: 0 6px 12px rgba(233,84,32,0.3);
    transition: transform var(--transition), box-shadow var(--transition), border var(--transition);
    border: 2px solid transparent;
}
.cta-button:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 16px rgba(233,84,32,0.4);
    border: 2px solid #ffd700; /* Gold border for standout effect */
}

/* Story Section */
.story {
    padding: 6rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-color);
    border-radius: 24px;
    box-shadow: 0 10px 30px var(--shadow-soft);
    position: relative;
    z-index: 10;
    transform: translateY(-8rem);
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.story.visible {
    opacity: 1;
    transform: translateY(-8rem) translateY(20px); /* Slight bounce effect */
}
.story h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
}
.story p {
    font-size: 1.4rem;
    color: var(--muted-color);
    margin-bottom: 2.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    padding: 1rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.story p.visible {
    opacity: 1;
    transform: translateX(0);
}
.story p:nth-child(2) {
    transition-delay: 0.2s;
}
.story p:nth-child(3) {
    transition-delay: 0.4s;
}

/* Features Section */
.features {
    padding: 8rem 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(to bottom, var(--bg-color), var(--secondary-color));
}
.feature-card {
    background: var(--bg-color);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 8px 24px var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid rgba(233,84,32,0.08);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 32px var(--shadow-hover);
}
.feature-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.8rem;
    transition: transform var(--transition);
}
.feature-card:hover .feature-icon {
    transform: rotate(10deg) scale(1.15);
}
.feature-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.feature-card p {
    font-size: 1.2rem;
    color: var(--muted-color);
}

/* Contact Section */
.contact {
    padding: 8rem 3rem;
    text-align: center;
    background: var(--secondary-color);
    max-width: 1100px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.contact.visible {
    opacity: 1;
    transform: translateY(0);
}
.contact h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
}
.contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact input, .contact textarea {
    padding: 1.2rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: border var(--transition);
    background: var(--bg-color);
    color: var(--text-color);
}
.contact input:focus, .contact textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}
.contact button {
    background: var(--primary-color);
    color: #ffffff;
    padding: 1.2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}
.contact button:hover {
    background: #d13e0a;
}

/* Footer */
footer {
    background: linear-gradient(to top, var(--secondary-color), #f5f5f7);
    color: var(--muted-color);
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
    border-top: 1px solid #e0e0e0;
}
footer a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color var(--transition);
}
footer a:hover {
    color: #d13e0a;
}
.social-icons {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.social-icons i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: transform var(--transition);
}
.social-icons i:hover {
    transform: scale(1.2);
}

/* Keyframe Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes subtleShift {
    0% { background-position: 0 0; }
    100% { background-position: 400px 400px; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h2 { font-size: 4rem; }
    .hero p { font-size: 1.6rem; }
}
@media (max-width: 768px) {
    .hero { padding: 0 1.5rem; height: 90vh; }
    .hero h2 { font-size: 3rem; }
    .hero p { font-size: 1.4rem; }
    nav { padding: 1rem 1.5rem; }
    nav h1 { font-size: 1.8rem; }
    nav ul { gap: 1rem; }
    .story { padding: 4rem 1.5rem; transform: translateY(-4rem); }
    .features { padding: 6rem 1.5rem; gap: 3rem; }
    .contact { padding: 6rem 1.5rem; }
}
